logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

shadow_control.scss (2002B)


  1. .ShadowControl {
  2. display: grid;
  3. grid-template-columns: 10em 1fr 1fr;
  4. grid-template-rows: 1fr;
  5. grid-template-areas: "selector preview tweak";
  6. grid-gap: 0.5em;
  7. justify-content: stretch;
  8. &.-compact {
  9. grid-template-columns: 10em 1fr;
  10. grid-template-rows: auto auto;
  11. grid-template-areas:
  12. "selector preview"
  13. "tweak tweak";
  14. &.-no-preview {
  15. grid-template-columns: 1fr;
  16. grid-template-rows: 10em 1fr;
  17. grid-template-areas:
  18. "selector"
  19. "tweak";
  20. }
  21. }
  22. .shadow-switcher {
  23. grid-area: selector;
  24. order: 1;
  25. flex: 1 0 6em;
  26. min-width: 6em;
  27. margin-right: 0.125em;
  28. display: flex;
  29. flex-direction: column;
  30. .shadow-list {
  31. flex: 1 0 auto;
  32. }
  33. }
  34. .shadow-tweak {
  35. grid-area: tweak;
  36. order: 3;
  37. flex: 2 0 10em;
  38. min-width: 10em;
  39. margin-left: 0.125em;
  40. margin-right: 0.125em;
  41. display: grid;
  42. grid-template-rows: auto 1fr;
  43. grid-gap: 0.25em;
  44. /* hack */
  45. .input-boolean {
  46. flex: 1;
  47. display: flex;
  48. .label {
  49. flex: 1;
  50. }
  51. }
  52. .input-string {
  53. flex: 1 0 5em;
  54. }
  55. .shadow-expression {
  56. width: 100%;
  57. height: 100%;
  58. }
  59. .id-control {
  60. align-items: stretch;
  61. .shadow-switcher,
  62. .btn {
  63. min-width: 1px;
  64. margin-right: 5px;
  65. }
  66. .btn {
  67. padding: 0 0.4em;
  68. margin: 0 0.1em;
  69. }
  70. }
  71. }
  72. &.-no-preview {
  73. grid-template-columns: 10em 1fr;
  74. grid-template-rows: 1fr;
  75. grid-template-areas: "selector tweak";
  76. .shadow-tweak {
  77. order: 0;
  78. flex: 2 0 8em;
  79. max-width: 100%;
  80. }
  81. .input-range {
  82. min-width: 5em;
  83. }
  84. }
  85. .inset-alert {
  86. padding: 0.25em 0.5em;
  87. }
  88. &.disabled {
  89. .inset-alert {
  90. opacity: 0.2;
  91. }
  92. }
  93. .shadow-preview {
  94. grid-area: preview;
  95. min-width: 25em;
  96. margin-left: 0.125em;
  97. align-self: start;
  98. justify-self: center;
  99. }
  100. }
  101. .inset-tooltip {
  102. max-width: 30em;
  103. }