logo

mastofe

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

admin.scss (8904B)


  1. .admin-wrapper {
  2. display: flex;
  3. justify-content: center;
  4. height: 100%;
  5. .sidebar-wrapper {
  6. flex: 1;
  7. height: 100%;
  8. background: $ui-base-color;
  9. display: flex;
  10. justify-content: flex-end;
  11. }
  12. .sidebar {
  13. width: 240px;
  14. height: 100%;
  15. padding: 0;
  16. overflow-y: auto;
  17. .logo {
  18. display: block;
  19. margin: 40px auto;
  20. width: 100px;
  21. height: 100px;
  22. }
  23. ul {
  24. list-style: none;
  25. border-radius: 4px 0 0 4px;
  26. overflow: hidden;
  27. margin-bottom: 20px;
  28. a {
  29. display: block;
  30. padding: 15px;
  31. color: rgba($primary-text-color, 0.7);
  32. text-decoration: none;
  33. transition: all 200ms linear;
  34. border-radius: 4px 0 0 4px;
  35. i.fa {
  36. margin-right: 5px;
  37. }
  38. &:hover {
  39. color: $primary-text-color;
  40. background-color: darken($ui-base-color, 5%);
  41. transition: all 100ms linear;
  42. }
  43. &.selected {
  44. background: darken($ui-base-color, 2%);
  45. border-radius: 4px 0 0;
  46. }
  47. }
  48. ul {
  49. background: darken($ui-base-color, 4%);
  50. border-radius: 0 0 0 4px;
  51. margin: 0;
  52. a {
  53. border: 0;
  54. padding: 15px 35px;
  55. &.selected {
  56. color: $primary-text-color;
  57. background-color: $ui-highlight-color;
  58. border-bottom: 0;
  59. border-radius: 0;
  60. &:hover {
  61. background-color: lighten($ui-highlight-color, 5%);
  62. }
  63. }
  64. }
  65. }
  66. }
  67. }
  68. .content-wrapper {
  69. flex: 2;
  70. overflow: auto;
  71. }
  72. .content {
  73. max-width: 700px;
  74. padding: 20px 15px;
  75. padding-top: 60px;
  76. padding-left: 25px;
  77. h2 {
  78. color: $ui-secondary-color;
  79. font-size: 24px;
  80. line-height: 28px;
  81. font-weight: 400;
  82. margin-bottom: 40px;
  83. }
  84. h3 {
  85. color: $ui-secondary-color;
  86. font-size: 20px;
  87. line-height: 28px;
  88. font-weight: 400;
  89. margin-bottom: 30px;
  90. }
  91. h4 {
  92. text-transform: uppercase;
  93. font-size: 13px;
  94. font-weight: 500;
  95. color: $ui-primary-color;
  96. padding-bottom: 8px;
  97. margin-bottom: 8px;
  98. border-bottom: 1px solid lighten($ui-base-color, 8%);
  99. }
  100. h6 {
  101. font-size: 16px;
  102. color: $ui-secondary-color;
  103. line-height: 28px;
  104. font-weight: 400;
  105. }
  106. & > p {
  107. font-size: 14px;
  108. line-height: 18px;
  109. color: $ui-secondary-color;
  110. margin-bottom: 20px;
  111. strong {
  112. color: $primary-text-color;
  113. font-weight: 500;
  114. @each $lang in $cjk-langs {
  115. &:lang(#{$lang}) {
  116. font-weight: 700;
  117. }
  118. }
  119. }
  120. }
  121. hr {
  122. margin: 20px 0;
  123. border: 0;
  124. background: transparent;
  125. border-bottom: 1px solid $ui-base-color;
  126. &.section-break {
  127. margin: 30px 0;
  128. border-bottom: 2px solid $ui-base-lighter-color;
  129. }
  130. }
  131. .muted-hint {
  132. color: $ui-primary-color;
  133. a {
  134. color: $ui-highlight-color;
  135. }
  136. }
  137. .positive-hint {
  138. color: $valid-value-color;
  139. font-weight: 500;
  140. }
  141. }
  142. .simple_form {
  143. max-width: 400px;
  144. &.edit_user,
  145. &.new_form_admin_settings,
  146. &.new_form_two_factor_confirmation,
  147. &.new_form_delete_confirmation,
  148. &.new_import,
  149. &.new_domain_block,
  150. &.edit_domain_block {
  151. max-width: none;
  152. }
  153. .form_two_factor_confirmation_code,
  154. .form_delete_confirmation_password {
  155. max-width: 400px;
  156. }
  157. .actions {
  158. max-width: 400px;
  159. }
  160. }
  161. @media screen and (max-width: 600px) {
  162. display: block;
  163. overflow-y: auto;
  164. -webkit-overflow-scrolling: touch;
  165. .sidebar-wrapper,
  166. .content-wrapper {
  167. flex: 0 0 auto;
  168. height: auto;
  169. overflow: initial;
  170. }
  171. .sidebar {
  172. width: 100%;
  173. padding: 10px 0;
  174. height: auto;
  175. .logo {
  176. margin: 20px auto;
  177. }
  178. }
  179. .content {
  180. padding-top: 20px;
  181. }
  182. }
  183. }
  184. .filters {
  185. display: flex;
  186. flex-wrap: wrap;
  187. .filter-subset {
  188. flex: 0 0 auto;
  189. margin: 0 40px 10px 0;
  190. &:last-child {
  191. margin-bottom: 20px;
  192. }
  193. ul {
  194. margin-top: 5px;
  195. list-style: none;
  196. li {
  197. display: inline-block;
  198. margin-right: 5px;
  199. }
  200. }
  201. strong {
  202. font-weight: 500;
  203. text-transform: uppercase;
  204. font-size: 12px;
  205. @each $lang in $cjk-langs {
  206. &:lang(#{$lang}) {
  207. font-weight: 700;
  208. }
  209. }
  210. }
  211. a {
  212. display: inline-block;
  213. color: rgba($primary-text-color, 0.7);
  214. text-decoration: none;
  215. text-transform: uppercase;
  216. font-size: 12px;
  217. font-weight: 500;
  218. border-bottom: 2px solid $ui-base-color;
  219. &:hover {
  220. color: $primary-text-color;
  221. border-bottom: 2px solid lighten($ui-base-color, 5%);
  222. }
  223. &.selected {
  224. color: $ui-highlight-color;
  225. border-bottom: 2px solid $ui-highlight-color;
  226. }
  227. }
  228. }
  229. }
  230. .report-accounts {
  231. display: flex;
  232. flex-wrap: wrap;
  233. margin-bottom: 20px;
  234. }
  235. .report-accounts__item {
  236. display: flex;
  237. flex: 250px;
  238. flex-direction: column;
  239. margin: 0 5px;
  240. & > strong {
  241. display: block;
  242. margin: 0 0 10px -5px;
  243. font-weight: 500;
  244. font-size: 14px;
  245. line-height: 18px;
  246. color: $ui-secondary-color;
  247. @each $lang in $cjk-langs {
  248. &:lang(#{$lang}) {
  249. font-weight: 700;
  250. }
  251. }
  252. }
  253. .account-card {
  254. flex: 1 1 auto;
  255. }
  256. }
  257. .report-status,
  258. .account-status {
  259. display: flex;
  260. margin-bottom: 10px;
  261. .activity-stream {
  262. flex: 2 0 0;
  263. margin-right: 20px;
  264. max-width: calc(100% - 60px);
  265. .entry {
  266. border-radius: 4px;
  267. }
  268. }
  269. }
  270. .report-status__actions,
  271. .account-status__actions {
  272. flex: 0 0 auto;
  273. display: flex;
  274. flex-direction: column;
  275. .icon-button {
  276. font-size: 24px;
  277. width: 24px;
  278. text-align: center;
  279. margin-bottom: 10px;
  280. }
  281. }
  282. .report-note__comment {
  283. margin-bottom: 20px;
  284. }
  285. .report-note__form {
  286. margin-bottom: 20px;
  287. .report-note__textarea {
  288. box-sizing: border-box;
  289. border: 0;
  290. padding: 7px 4px;
  291. margin-bottom: 10px;
  292. font-size: 16px;
  293. color: $ui-base-color;
  294. display: block;
  295. width: 100%;
  296. outline: 0;
  297. font-family: inherit;
  298. resize: vertical;
  299. }
  300. .report-note__buttons {
  301. text-align: right;
  302. }
  303. .report-note__button {
  304. margin: 0 0 5px 5px;
  305. }
  306. }
  307. .batch-form-box {
  308. display: flex;
  309. flex-wrap: wrap;
  310. margin-bottom: 5px;
  311. #form_status_batch_action {
  312. margin: 0 5px 5px 0;
  313. font-size: 14px;
  314. }
  315. input.button {
  316. margin: 0 5px 5px 0;
  317. }
  318. .media-spoiler-toggle-buttons {
  319. margin-left: auto;
  320. .button {
  321. overflow: visible;
  322. margin: 0 0 5px 5px;
  323. float: right;
  324. }
  325. }
  326. }
  327. .batch-checkbox,
  328. .batch-checkbox-all {
  329. display: flex;
  330. align-items: center;
  331. margin-right: 5px;
  332. }
  333. .back-link {
  334. margin-bottom: 10px;
  335. font-size: 14px;
  336. a {
  337. color: $classic-highlight-color;
  338. text-decoration: none;
  339. &:hover {
  340. text-decoration: underline;
  341. }
  342. }
  343. }
  344. .spacer {
  345. flex: 1 1 auto;
  346. }
  347. .log-entry {
  348. margin-bottom: 8px;
  349. line-height: 20px;
  350. &__header {
  351. display: flex;
  352. justify-content: flex-start;
  353. align-items: center;
  354. padding: 10px;
  355. background: $ui-base-color;
  356. color: $ui-primary-color;
  357. border-radius: 4px 4px 0 0;
  358. font-size: 14px;
  359. position: relative;
  360. }
  361. &__avatar {
  362. margin-right: 10px;
  363. .avatar {
  364. display: block;
  365. margin: 0;
  366. border-radius: 50%;
  367. width: 40px;
  368. height: 40px;
  369. }
  370. }
  371. &__content {
  372. max-width: calc(100% - 90px);
  373. }
  374. &__title {
  375. word-wrap: break-word;
  376. }
  377. &__timestamp {
  378. color: lighten($ui-base-color, 34%);
  379. }
  380. &__extras {
  381. background: lighten($ui-base-color, 6%);
  382. border-radius: 0 0 4px 4px;
  383. padding: 10px;
  384. color: $ui-primary-color;
  385. font-family: monospace;
  386. font-size: 12px;
  387. word-wrap: break-word;
  388. min-height: 20px;
  389. }
  390. &__icon {
  391. font-size: 28px;
  392. margin-right: 10px;
  393. color: lighten($ui-base-color, 34%);
  394. }
  395. &__icon__overlay {
  396. position: absolute;
  397. top: 10px;
  398. right: 10px;
  399. width: 10px;
  400. height: 10px;
  401. border-radius: 50%;
  402. &.positive {
  403. background: $success-green;
  404. }
  405. &.negative {
  406. background: $error-red;
  407. }
  408. &.neutral {
  409. background: $ui-highlight-color;
  410. }
  411. }
  412. a,
  413. .username,
  414. .target {
  415. color: $ui-secondary-color;
  416. text-decoration: none;
  417. font-weight: 500;
  418. }
  419. .diff-old {
  420. color: $error-red;
  421. }
  422. .diff-neutral {
  423. color: $ui-secondary-color;
  424. }
  425. .diff-new {
  426. color: $success-green;
  427. }
  428. }
  429. .name-tag {
  430. display: flex;
  431. align-items: center;
  432. .avatar {
  433. display: block;
  434. margin: 0;
  435. margin-right: 5px;
  436. border-radius: 50%;
  437. }
  438. .username {
  439. font-weight: 500;
  440. }
  441. }