where i deviate from standard mastodon assets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin.scss 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. $no-columns-breakpoint: 600px;
  2. $sidebar-width: 240px;
  3. $content-width: 840px;
  4. .admin-wrapper {
  5. display: flex;
  6. justify-content: center;
  7. height: 100%;
  8. .sidebar-wrapper {
  9. flex: 1 1 $sidebar-width;
  10. height: 100%;
  11. background: $ui-base-color;
  12. display: flex;
  13. justify-content: flex-end;
  14. }
  15. .sidebar {
  16. width: $sidebar-width;
  17. height: 100%;
  18. padding: 0;
  19. overflow-y: auto;
  20. .logo {
  21. display: block;
  22. margin: 40px auto;
  23. width: 100px;
  24. height: 100px;
  25. }
  26. @media screen and (max-width: $no-columns-breakpoint) {
  27. & > a:first-child {
  28. display: none;
  29. }
  30. }
  31. ul {
  32. list-style: none;
  33. border-radius: 4px 0 0 4px;
  34. overflow: hidden;
  35. margin-bottom: 20px;
  36. @media screen and (max-width: $no-columns-breakpoint) {
  37. margin-bottom: 0;
  38. }
  39. a {
  40. display: block;
  41. padding: 15px;
  42. color: $darker-text-color;
  43. text-decoration: none;
  44. transition: all 200ms linear;
  45. transition-property: color, background-color;
  46. border-radius: 4px 0 0 4px;
  47. i.fa {
  48. margin-right: 5px;
  49. }
  50. &:hover {
  51. color: $primary-text-color;
  52. background-color: darken($ui-base-color, 5%);
  53. transition: all 100ms linear;
  54. transition-property: color, background-color;
  55. }
  56. &.selected {
  57. background: darken($ui-base-color, 2%);
  58. border-radius: 4px 0 0;
  59. }
  60. }
  61. ul {
  62. background: darken($ui-base-color, 4%);
  63. border-radius: 0 0 0 4px;
  64. margin: 0;
  65. a {
  66. border: 0;
  67. padding: 15px 35px;
  68. }
  69. }
  70. .simple-navigation-active-leaf a {
  71. color: $primary-text-color;
  72. background-color: $ui-highlight-color;
  73. border-bottom: 0;
  74. border-radius: 0;
  75. &:hover {
  76. background-color: lighten($ui-highlight-color, 5%);
  77. }
  78. }
  79. }
  80. & > ul > .simple-navigation-active-leaf a {
  81. border-radius: 4px 0 0 4px;
  82. }
  83. }
  84. .content-wrapper {
  85. flex: 2 1 $content-width;
  86. overflow: auto;
  87. }
  88. .content {
  89. max-width: $content-width;
  90. padding: 20px 15px;
  91. padding-top: 60px;
  92. padding-left: 25px;
  93. @media screen and (max-width: $no-columns-breakpoint) {
  94. max-width: none;
  95. padding: 15px;
  96. padding-top: 30px;
  97. }
  98. h2 {
  99. color: $secondary-text-color;
  100. font-size: 24px;
  101. line-height: 28px;
  102. font-weight: 400;
  103. padding-bottom: 40px;
  104. border-bottom: 1px solid lighten($ui-base-color, 8%);
  105. margin-bottom: 40px;
  106. }
  107. h3 {
  108. color: $secondary-text-color;
  109. font-size: 20px;
  110. line-height: 28px;
  111. font-weight: 400;
  112. margin-bottom: 30px;
  113. }
  114. h4 {
  115. text-transform: uppercase;
  116. font-size: 13px;
  117. font-weight: 700;
  118. color: $darker-text-color;
  119. padding-bottom: 8px;
  120. margin-bottom: 8px;
  121. border-bottom: 1px solid lighten($ui-base-color, 8%);
  122. }
  123. h6 {
  124. font-size: 16px;
  125. color: $secondary-text-color;
  126. line-height: 28px;
  127. font-weight: 400;
  128. }
  129. .fields-group h6 {
  130. color: $primary-text-color;
  131. font-weight: 500;
  132. }
  133. .directory__tag > a,
  134. .directory__tag > div {
  135. box-shadow: none;
  136. }
  137. .directory__tag .table-action-link .fa {
  138. color: inherit;
  139. }
  140. .directory__tag h4 {
  141. font-size: 18px;
  142. font-weight: 700;
  143. color: $primary-text-color;
  144. text-transform: none;
  145. padding-bottom: 0;
  146. margin-bottom: 0;
  147. border-bottom: 0;
  148. }
  149. & > p {
  150. font-size: 14px;
  151. line-height: 18px;
  152. color: $secondary-text-color;
  153. margin-bottom: 20px;
  154. strong {
  155. color: $primary-text-color;
  156. font-weight: 500;
  157. @each $lang in $cjk-langs {
  158. &:lang(#{$lang}) {
  159. font-weight: 700;
  160. }
  161. }
  162. }
  163. }
  164. hr {
  165. width: 100%;
  166. height: 0;
  167. border: 0;
  168. border-bottom: 1px solid rgba($ui-base-lighter-color, .6);
  169. margin: 20px 0;
  170. &.spacer {
  171. height: 1px;
  172. border: 0;
  173. }
  174. }
  175. .muted-hint {
  176. color: $darker-text-color;
  177. a {
  178. color: $highlight-text-color;
  179. }
  180. }
  181. .positive-hint {
  182. color: $valid-value-color;
  183. font-weight: 500;
  184. }
  185. .negative-hint {
  186. color: $error-value-color;
  187. font-weight: 500;
  188. }
  189. .neutral-hint {
  190. color: $dark-text-color;
  191. font-weight: 500;
  192. }
  193. }
  194. @media screen and (max-width: $no-columns-breakpoint) {
  195. display: block;
  196. overflow-y: auto;
  197. -webkit-overflow-scrolling: touch;
  198. .sidebar-wrapper,
  199. .content-wrapper {
  200. flex: 0 0 auto;
  201. height: auto;
  202. overflow: initial;
  203. }
  204. .sidebar {
  205. width: 100%;
  206. padding: 0;
  207. height: auto;
  208. }
  209. }
  210. }
  211. .filters {
  212. display: flex;
  213. flex-wrap: wrap;
  214. .filter-subset {
  215. flex: 0 0 auto;
  216. margin: 0 40px 10px 0;
  217. &:last-child {
  218. margin-bottom: 20px;
  219. }
  220. ul {
  221. margin-top: 5px;
  222. list-style: none;
  223. li {
  224. display: inline-block;
  225. margin-right: 5px;
  226. }
  227. }
  228. strong {
  229. font-weight: 500;
  230. text-transform: uppercase;
  231. font-size: 12px;
  232. @each $lang in $cjk-langs {
  233. &:lang(#{$lang}) {
  234. font-weight: 700;
  235. }
  236. }
  237. }
  238. a {
  239. display: inline-block;
  240. color: $darker-text-color;
  241. text-decoration: none;
  242. text-transform: uppercase;
  243. font-size: 12px;
  244. font-weight: 500;
  245. border-bottom: 2px solid $ui-base-color;
  246. &:hover {
  247. color: $primary-text-color;
  248. border-bottom: 2px solid lighten($ui-base-color, 5%);
  249. }
  250. &.selected {
  251. color: $highlight-text-color;
  252. border-bottom: 2px solid $ui-highlight-color;
  253. }
  254. }
  255. }
  256. }
  257. .report-accounts {
  258. display: flex;
  259. flex-wrap: wrap;
  260. margin-bottom: 20px;
  261. }
  262. .report-accounts__item {
  263. display: flex;
  264. flex: 250px;
  265. flex-direction: column;
  266. margin: 0 5px;
  267. & > strong {
  268. display: block;
  269. margin: 0 0 10px -5px;
  270. font-weight: 500;
  271. font-size: 14px;
  272. line-height: 18px;
  273. color: $secondary-text-color;
  274. @each $lang in $cjk-langs {
  275. &:lang(#{$lang}) {
  276. font-weight: 700;
  277. }
  278. }
  279. }
  280. .account-card {
  281. flex: 1 1 auto;
  282. }
  283. }
  284. .report-status,
  285. .account-status {
  286. display: flex;
  287. margin-bottom: 10px;
  288. .activity-stream {
  289. flex: 2 0 0;
  290. margin-right: 20px;
  291. max-width: calc(100% - 60px);
  292. .entry {
  293. border-radius: 4px;
  294. }
  295. }
  296. }
  297. .report-status__actions,
  298. .account-status__actions {
  299. flex: 0 0 auto;
  300. display: flex;
  301. flex-direction: column;
  302. .icon-button {
  303. font-size: 24px;
  304. width: 24px;
  305. text-align: center;
  306. margin-bottom: 10px;
  307. }
  308. }
  309. .simple_form.new_report_note,
  310. .simple_form.new_account_moderation_note {
  311. max-width: 100%;
  312. }
  313. .batch-form-box {
  314. display: flex;
  315. flex-wrap: wrap;
  316. margin-bottom: 5px;
  317. #form_status_batch_action {
  318. margin: 0 5px 5px 0;
  319. font-size: 14px;
  320. }
  321. input.button {
  322. margin: 0 5px 5px 0;
  323. }
  324. .media-spoiler-toggle-buttons {
  325. margin-left: auto;
  326. .button {
  327. overflow: visible;
  328. margin: 0 0 5px 5px;
  329. float: right;
  330. }
  331. }
  332. }
  333. .back-link {
  334. margin-bottom: 10px;
  335. font-size: 14px;
  336. a {
  337. color: $highlight-text-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: 20px;
  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: $darker-text-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: $dark-text-color;
  379. }
  380. &__extras {
  381. background: lighten($ui-base-color, 6%);
  382. border-radius: 0 0 4px 4px;
  383. padding: 10px;
  384. color: $darker-text-color;
  385. font-family: $font-monospace, 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: $dark-text-color;
  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: lighten($error-red, 12%);
  407. }
  408. &.neutral {
  409. background: $ui-highlight-color;
  410. }
  411. }
  412. a,
  413. .username,
  414. .target {
  415. color: $secondary-text-color;
  416. text-decoration: none;
  417. font-weight: 500;
  418. }
  419. .diff-old {
  420. color: lighten($error-red, 12%);
  421. }
  422. .diff-neutral {
  423. color: $secondary-text-color;
  424. }
  425. .diff-new {
  426. color: $success-green;
  427. }
  428. }
  429. a.name-tag,
  430. .name-tag,
  431. a.inline-name-tag,
  432. .inline-name-tag {
  433. text-decoration: none;
  434. color: $secondary-text-color;
  435. .username {
  436. font-weight: 500;
  437. }
  438. &.suspended {
  439. .username {
  440. text-decoration: line-through;
  441. color: lighten($error-red, 12%);
  442. }
  443. .avatar {
  444. filter: grayscale(100%);
  445. opacity: 0.8;
  446. }
  447. }
  448. }
  449. a.name-tag,
  450. .name-tag {
  451. display: flex;
  452. align-items: center;
  453. .avatar {
  454. display: block;
  455. margin: 0;
  456. margin-right: 5px;
  457. border-radius: 50%;
  458. }
  459. &.suspended {
  460. .avatar {
  461. filter: grayscale(100%);
  462. opacity: 0.8;
  463. }
  464. }
  465. }
  466. .speech-bubble {
  467. margin-bottom: 20px;
  468. border-left: 4px solid $ui-highlight-color;
  469. &.positive {
  470. border-left-color: $success-green;
  471. }
  472. &.negative {
  473. border-left-color: lighten($error-red, 12%);
  474. }
  475. &.warning {
  476. border-left-color: $gold-star;
  477. }
  478. &__bubble {
  479. padding: 16px;
  480. padding-left: 14px;
  481. font-size: 15px;
  482. line-height: 20px;
  483. border-radius: 4px 4px 4px 0;
  484. position: relative;
  485. font-weight: 500;
  486. a {
  487. color: $darker-text-color;
  488. }
  489. }
  490. &__owner {
  491. padding: 8px;
  492. padding-left: 12px;
  493. }
  494. time {
  495. color: $dark-text-color;
  496. }
  497. }
  498. .report-card {
  499. background: $ui-base-color;
  500. border-radius: 4px;
  501. margin-bottom: 20px;
  502. &__profile {
  503. display: flex;
  504. justify-content: space-between;
  505. align-items: center;
  506. padding: 15px;
  507. .account {
  508. padding: 0;
  509. border: 0;
  510. &__avatar-wrapper {
  511. margin-left: 0;
  512. }
  513. }
  514. &__stats {
  515. flex: 0 0 auto;
  516. font-weight: 500;
  517. color: $darker-text-color;
  518. text-transform: uppercase;
  519. text-align: right;
  520. a {
  521. color: inherit;
  522. text-decoration: none;
  523. &:focus,
  524. &:hover,
  525. &:active {
  526. color: lighten($darker-text-color, 8%);
  527. }
  528. }
  529. .red {
  530. color: $error-value-color;
  531. }
  532. }
  533. }
  534. &__summary {
  535. &__item {
  536. display: flex;
  537. justify-content: flex-start;
  538. border-top: 1px solid darken($ui-base-color, 4%);
  539. &:hover {
  540. background: lighten($ui-base-color, 2%);
  541. }
  542. &__reported-by,
  543. &__assigned {
  544. padding: 15px;
  545. flex: 0 0 auto;
  546. box-sizing: border-box;
  547. width: 150px;
  548. color: $darker-text-color;
  549. &,
  550. .username {
  551. white-space: nowrap;
  552. overflow: hidden;
  553. text-overflow: ellipsis;
  554. }
  555. }
  556. &__content {
  557. flex: 1 1 auto;
  558. max-width: calc(100% - 300px);
  559. &__icon {
  560. color: $dark-text-color;
  561. margin-right: 4px;
  562. font-weight: 500;
  563. }
  564. }
  565. &__content a {
  566. display: block;
  567. box-sizing: border-box;
  568. width: 100%;
  569. padding: 15px;
  570. text-decoration: none;
  571. color: $darker-text-color;
  572. }
  573. }
  574. }
  575. }
  576. .one-line {
  577. white-space: nowrap;
  578. overflow: hidden;
  579. text-overflow: ellipsis;
  580. }
  581. .ellipsized-ip {
  582. display: inline-block;
  583. max-width: 120px;
  584. overflow: hidden;
  585. text-overflow: ellipsis;
  586. vertical-align: middle;
  587. }