logo

pleroma-fe

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

style_tab.scss (4858B)


  1. .StyleTab {
  2. .style-control {
  3. display: flex;
  4. flex-wrap: wrap;
  5. align-items: baseline;
  6. margin-bottom: 0.5em;
  7. .label {
  8. margin-right: 0.5em;
  9. flex: 1 1 0;
  10. line-height: 2;
  11. min-height: 2em;
  12. }
  13. &.suboption {
  14. margin-left: 1em;
  15. }
  16. .color-input {
  17. flex: 0 0 0;
  18. }
  19. input,
  20. select {
  21. min-width: 3em;
  22. margin: 0;
  23. flex: 0;
  24. &[type="number"] {
  25. min-width: 9em;
  26. &.-small {
  27. min-width: 5em;
  28. }
  29. }
  30. &[type="range"] {
  31. flex: 1;
  32. min-width: 9em;
  33. align-self: center;
  34. margin: 0 0.25em;
  35. }
  36. &[type="checkbox"] + i {
  37. height: 1.1em;
  38. align-self: center;
  39. }
  40. }
  41. }
  42. .meta-preview {
  43. display: grid;
  44. grid-template:
  45. "meta meta preview preview"
  46. "meta meta preview preview"
  47. "meta meta preview preview"
  48. "meta meta preview preview";
  49. grid-gap: 0.5em;
  50. grid-template-columns: min-content min-content 6fr max-content;
  51. ul.setting-list {
  52. padding: 0;
  53. margin: 0;
  54. display: grid;
  55. grid-template-rows: subgrid;
  56. grid-area: meta;
  57. > li {
  58. margin: 0;
  59. }
  60. .meta-field {
  61. margin: 0;
  62. .setting-label {
  63. display: inline-block;
  64. margin-bottom: 0.5em;
  65. }
  66. }
  67. }
  68. #edited-style-preview {
  69. grid-area: preview;
  70. }
  71. }
  72. .setting-item {
  73. padding-bottom: 0;
  74. .btn {
  75. padding: 0 0.5em;
  76. }
  77. &:not(:first-child) {
  78. margin-top: 0.5em;
  79. }
  80. &:not(:last-child) {
  81. margin-bottom: 0.5em;
  82. }
  83. }
  84. .list-editor {
  85. display: grid;
  86. grid-template-areas:
  87. "label editor"
  88. "selector editor"
  89. "movement editor";
  90. grid-template-columns: 10em 1fr;
  91. grid-template-rows: auto 1fr auto;
  92. grid-gap: 0.5em;
  93. .list-edit-area {
  94. grid-area: editor;
  95. }
  96. .list-select {
  97. grid-area: selector;
  98. margin: 0;
  99. &-label {
  100. font-weight: bold;
  101. grid-area: label;
  102. margin: 0;
  103. align-self: baseline;
  104. }
  105. &-movement {
  106. grid-area: movement;
  107. margin: 0;
  108. }
  109. }
  110. }
  111. .palette-editor {
  112. width: min-content;
  113. .list-edit-area {
  114. display: grid;
  115. align-self: baseline;
  116. grid-template-rows: subgrid;
  117. grid-template-columns: 1fr;
  118. }
  119. .palette-editor-single {
  120. grid-row: 2 / span 2;
  121. }
  122. }
  123. .variables-editor {
  124. .variable-selector {
  125. display: grid;
  126. grid-template-columns: auto 1fr auto 10em;
  127. grid-template-rows: subgrid;
  128. align-items: baseline;
  129. grid-gap: 0 0.5em;
  130. }
  131. .list-edit-area {
  132. display: grid;
  133. grid-template-rows: subgrid;
  134. }
  135. .shadow-control {
  136. grid-row: 2 / span 2;
  137. }
  138. }
  139. .component-editor {
  140. display: grid;
  141. grid-template-columns: 6fr 3fr 4fr;
  142. grid-template-rows: auto auto 1fr;
  143. grid-gap: 0.5em;
  144. grid-template-areas:
  145. "component component variant"
  146. "state state state"
  147. "preview settings settings";
  148. .component-selector {
  149. grid-area: component;
  150. align-self: center;
  151. }
  152. .component-selector,
  153. .state-selector,
  154. .variant-selector {
  155. display: grid;
  156. grid-template-columns: 1fr minmax(1fr, 10em);
  157. grid-template-rows: auto;
  158. grid-auto-flow: column;
  159. grid-gap: 0.5em;
  160. align-items: baseline;
  161. > label:not(.Select) {
  162. font-weight: bold;
  163. justify-self: right;
  164. }
  165. }
  166. .state-selector {
  167. grid-area: state;
  168. grid-template-columns: minmax(min-content, 7em) 1fr;
  169. }
  170. .variant-selector {
  171. grid-area: variant;
  172. }
  173. .state-selector-list {
  174. display: grid;
  175. list-style: none;
  176. grid-auto-flow: dense;
  177. grid-template-columns: repeat(5, minmax(min-content, 1fr));
  178. grid-auto-rows: 1fr;
  179. grid-gap: 0.5em;
  180. padding: 0;
  181. margin: 0;
  182. }
  183. .preview-container {
  184. --border: none;
  185. --shadow: none;
  186. --roundness: none;
  187. grid-area: preview;
  188. }
  189. .component-settings {
  190. grid-area: settings;
  191. }
  192. .editor-tab {
  193. display: grid;
  194. grid-template-columns: 1fr 2em;
  195. grid-column-gap: 0.5em;
  196. align-items: center;
  197. grid-auto-rows: min-content;
  198. grid-auto-flow: dense;
  199. border-left: 1px solid var(--border);
  200. border-right: 1px solid var(--border);
  201. border-bottom: 1px solid var(--border);
  202. padding: 0.5em;
  203. }
  204. .shadow-tab {
  205. grid-template-columns: 1fr;
  206. justify-items: center;
  207. }
  208. }
  209. }
  210. .extra-content {
  211. .style-actions-container {
  212. width: 100%;
  213. display: flex;
  214. justify-content: end;
  215. .style-actions {
  216. display: grid;
  217. grid-template-columns: repeat(4, minmax(7em, 1fr));
  218. grid-gap: 0.25em;
  219. }
  220. }
  221. }