logo

pleroma-fe

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

theme_tab.scss (5519B)


  1. .theme-tab {
  2. padding-bottom: 2em;
  3. .preset-switcher {
  4. margin-right: 1em;
  5. }
  6. .btn {
  7. margin-left: 0.25em;
  8. margin-right: 0.25em;
  9. }
  10. .style-control {
  11. display: flex;
  12. align-items: baseline;
  13. margin-bottom: 5px;
  14. .label {
  15. flex: 1;
  16. }
  17. .opt {
  18. margin: 0.5em;
  19. }
  20. .color-input {
  21. flex: 0 0 0;
  22. }
  23. input,
  24. select {
  25. min-width: 3em;
  26. margin: 0;
  27. flex: 0;
  28. &[type="number"] {
  29. min-width: 5em;
  30. }
  31. &[type="range"] {
  32. flex: 1;
  33. min-width: 3em;
  34. align-self: flex-start;
  35. }
  36. }
  37. &.disabled {
  38. input,
  39. select {
  40. opacity: 0.5;
  41. }
  42. }
  43. }
  44. .reset-container {
  45. flex-wrap: wrap;
  46. }
  47. .fonts-container,
  48. .reset-container,
  49. .apply-container,
  50. .radius-container,
  51. .color-container, {
  52. display: flex;
  53. }
  54. .fonts-container,
  55. .radius-container {
  56. flex-direction: column;
  57. }
  58. .color-container {
  59. > h4 {
  60. width: 99%;
  61. }
  62. flex-wrap: wrap;
  63. justify-content: space-between;
  64. }
  65. .fonts-container,
  66. .color-container,
  67. .shadow-container,
  68. .radius-container,
  69. .presets-container {
  70. margin: 1em 1em 0;
  71. }
  72. .tab-header {
  73. display: flex;
  74. justify-content: space-between;
  75. align-items: baseline;
  76. width: 100%;
  77. min-height: 30px;
  78. margin-bottom: 1em;
  79. p {
  80. flex: 1;
  81. margin: 0;
  82. margin-right: 0.5em;
  83. }
  84. }
  85. .tab-header-buttons {
  86. display: flex;
  87. flex-direction: column;
  88. .btn {
  89. min-width: 1px;
  90. flex: 0 auto;
  91. padding: 0 1em;
  92. margin-bottom: 0.5em;
  93. }
  94. }
  95. .shadow-selector {
  96. .override {
  97. flex: 1;
  98. margin-left: 0.5em;
  99. }
  100. .select-container {
  101. margin-top: -4px;
  102. margin-bottom: -3px;
  103. }
  104. }
  105. .save-load,
  106. .save-load-options {
  107. display: flex;
  108. justify-content: center;
  109. align-items: baseline;
  110. flex-wrap: wrap;
  111. .presets,
  112. .import-export {
  113. margin-bottom: 0.5em;
  114. }
  115. .import-export {
  116. display: flex;
  117. }
  118. .override {
  119. margin-left: 0.5em;
  120. }
  121. }
  122. .save-load-options {
  123. flex-wrap: wrap;
  124. margin-top: 0.5em;
  125. justify-content: center;
  126. .keep-option {
  127. margin: 0 0.5em 0.5em;
  128. min-width: 25%;
  129. }
  130. }
  131. .preview-container {
  132. border-top: 1px dashed;
  133. border-bottom: 1px dashed;
  134. border-color: var(--border);
  135. margin: 1em 0;
  136. padding: 1em;
  137. background-color: var(--wallpaper);
  138. background-image: var(--body-background-image);
  139. background-size: cover;
  140. background-position: 50% 50%;
  141. .dummy {
  142. .post {
  143. font-family: var(--postFont);
  144. display: flex;
  145. .content {
  146. flex: 1;
  147. h4 {
  148. margin-bottom: 0.25em;
  149. }
  150. .icons {
  151. margin-top: 0.5em;
  152. display: flex;
  153. i {
  154. margin-right: 1em;
  155. }
  156. }
  157. }
  158. }
  159. .after-post {
  160. margin-top: 1em;
  161. display: flex;
  162. align-items: center;
  163. }
  164. .avatar,
  165. .avatar-alt {
  166. background:
  167. linear-gradient(
  168. 135deg,
  169. #b8e1fc 0%,
  170. #a9d2f3 10%,
  171. #90bae4 25%,
  172. #90bcea 37%,
  173. #90bff0 50%,
  174. #6ba8e5 51%,
  175. #a2daf5 83%,
  176. #bdf3fd 100%
  177. );
  178. color: black;
  179. font-family: sans-serif;
  180. text-align: center;
  181. margin-right: 1em;
  182. }
  183. .avatar-alt {
  184. flex: 0 auto;
  185. margin-left: 28px;
  186. font-size: 12px;
  187. min-width: 20px;
  188. min-height: 20px;
  189. line-height: 20px;
  190. }
  191. .avatar {
  192. flex: 0 auto;
  193. width: 48px;
  194. height: 48px;
  195. font-size: 14px;
  196. line-height: 48px;
  197. }
  198. .actions {
  199. display: flex;
  200. align-items: baseline;
  201. .checkbox {
  202. display: inline-flex;
  203. align-items: baseline;
  204. margin-right: 1em;
  205. flex: 1;
  206. }
  207. }
  208. .separator {
  209. margin: 1em;
  210. border-bottom: 1px solid;
  211. border-color: var(--border);
  212. }
  213. .btn {
  214. min-width: 3em;
  215. }
  216. }
  217. }
  218. .radius-item {
  219. flex-basis: auto;
  220. }
  221. .radius-item,
  222. .color-item {
  223. min-width: 20em;
  224. margin: 5px 6px 0 0;
  225. display: flex;
  226. flex-direction: column;
  227. flex: 1 1 0;
  228. &.wide {
  229. min-width: 60%;
  230. }
  231. &:not(.wide):nth-child(2n+1) {
  232. margin-right: 7px;
  233. }
  234. .color,
  235. .opacity {
  236. display: flex;
  237. align-items: baseline;
  238. }
  239. }
  240. .theme-radius-rn,
  241. .theme-color-cl {
  242. border: 0;
  243. box-shadow: none;
  244. background: transparent;
  245. color: var(--textFaint);
  246. align-self: stretch;
  247. }
  248. .theme-color-cl,
  249. .theme-radius-in,
  250. .theme-color-in {
  251. margin-left: 4px;
  252. }
  253. .theme-radius-in {
  254. min-width: 1em;
  255. max-width: 7em;
  256. flex: 1;
  257. }
  258. .theme-radius-lb {
  259. max-width: 50em;
  260. }
  261. .theme-preview-content {
  262. padding: 20px;
  263. }
  264. .theme-warning {
  265. display: flex;
  266. align-items: baseline;
  267. margin-bottom: 0.5em;
  268. .buttons {
  269. .btn {
  270. margin-bottom: 0.5em;
  271. }
  272. }
  273. }
  274. }
  275. .extra-content {
  276. .apply-container {
  277. display: flex;
  278. flex-direction: row;
  279. justify-content: space-around;
  280. flex-grow: 1;
  281. /* stylelint-disable-next-line no-descending-specificity */
  282. .btn {
  283. flex-grow: 1;
  284. min-height: 2em;
  285. min-width: 0;
  286. max-width: 10em;
  287. padding: 0;
  288. }
  289. }
  290. }