admin.scss 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827
  1. @use "sass:math";
  2. $no-columns-breakpoint: 600px;
  3. $sidebar-width: 240px;
  4. $content-width: 840px;
  5. .admin-wrapper {
  6. display: flex;
  7. justify-content: center;
  8. width: 100%;
  9. min-height: 100vh;
  10. .sidebar-wrapper {
  11. min-height: 100vh;
  12. overflow: hidden;
  13. pointer-events: none;
  14. flex: 1 1 auto;
  15. &__inner {
  16. display: flex;
  17. justify-content: flex-end;
  18. background: $ui-base-color;
  19. height: 100%;
  20. }
  21. }
  22. .sidebar {
  23. width: $sidebar-width;
  24. padding: 0;
  25. pointer-events: auto;
  26. &__toggle {
  27. display: none;
  28. background: darken($ui-base-color, 4%);
  29. border-bottom: 1px solid lighten($ui-base-color, 4%);
  30. align-items: center;
  31. &__logo {
  32. flex: 1 1 auto;
  33. a {
  34. display: block;
  35. padding: 15px;
  36. }
  37. }
  38. &__icon {
  39. display: block;
  40. color: $darker-text-color;
  41. text-decoration: none;
  42. flex: 0 0 auto;
  43. font-size: 18px;
  44. padding: 10px;
  45. margin: 5px 10px;
  46. border-radius: 4px;
  47. &:focus {
  48. background: $ui-base-color;
  49. }
  50. .fa-times {
  51. display: none;
  52. }
  53. &.active {
  54. .fa-times {
  55. display: block;
  56. }
  57. .fa-bars {
  58. display: none;
  59. }
  60. }
  61. }
  62. }
  63. .logo {
  64. display: block;
  65. margin: 40px auto;
  66. width: 100px;
  67. height: 100px;
  68. }
  69. .logo--wordmark {
  70. display: inherit;
  71. margin: inherit;
  72. width: inherit;
  73. height: 25px;
  74. }
  75. @media screen and (max-width: $no-columns-breakpoint) {
  76. & > a:first-child {
  77. display: none;
  78. }
  79. }
  80. ul {
  81. list-style: none;
  82. border-radius: 4px 0 0 4px;
  83. overflow: hidden;
  84. margin-bottom: 20px;
  85. @media screen and (max-width: $no-columns-breakpoint) {
  86. margin-bottom: 0;
  87. }
  88. a {
  89. display: block;
  90. padding: 15px;
  91. color: $darker-text-color;
  92. text-decoration: none;
  93. transition: all 200ms linear;
  94. transition-property: color, background-color;
  95. border-radius: 4px 0 0 4px;
  96. white-space: nowrap;
  97. overflow: hidden;
  98. text-overflow: ellipsis;
  99. i.fa {
  100. margin-right: 5px;
  101. }
  102. &:hover {
  103. color: $primary-text-color;
  104. background-color: darken($ui-base-color, 5%);
  105. transition: all 100ms linear;
  106. transition-property: color, background-color;
  107. }
  108. &.selected {
  109. background: darken($ui-base-color, 2%);
  110. border-radius: 4px 0 0;
  111. }
  112. }
  113. ul {
  114. background: darken($ui-base-color, 4%);
  115. border-radius: 0 0 0 4px;
  116. margin: 0;
  117. a {
  118. border: 0;
  119. padding: 15px 35px;
  120. }
  121. }
  122. .simple-navigation-active-leaf a {
  123. color: $primary-text-color;
  124. background-color: darken($ui-highlight-color, 2%);
  125. border-bottom: 0;
  126. border-radius: 0;
  127. &:hover {
  128. background-color: $ui-highlight-color;
  129. }
  130. }
  131. }
  132. & > ul > .simple-navigation-active-leaf a {
  133. border-radius: 4px 0 0 4px;
  134. }
  135. }
  136. .content-wrapper {
  137. box-sizing: border-box;
  138. width: 100%;
  139. max-width: $content-width;
  140. flex: 1 1 auto;
  141. }
  142. @media screen and (max-width: $content-width + $sidebar-width) {
  143. .sidebar-wrapper--empty {
  144. display: none;
  145. }
  146. .sidebar-wrapper {
  147. width: $sidebar-width;
  148. flex: 0 0 auto;
  149. }
  150. }
  151. @media screen and (max-width: $no-columns-breakpoint) {
  152. .sidebar-wrapper {
  153. width: 100%;
  154. }
  155. }
  156. .content {
  157. padding: 55px 15px 20px 25px;
  158. @media screen and (max-width: $no-columns-breakpoint) {
  159. max-width: none;
  160. padding: 15px;
  161. padding-top: 30px;
  162. }
  163. &__heading {
  164. margin-bottom: 45px;
  165. &__row {
  166. display: flex;
  167. flex-wrap: wrap;
  168. align-items: center;
  169. justify-content: space-between;
  170. margin: -15px -15px 0 0;
  171. & > * {
  172. margin-top: 15px;
  173. margin-right: 15px;
  174. }
  175. }
  176. &__tabs {
  177. margin-top: 30px;
  178. width: 100%;
  179. & > div {
  180. display: flex;
  181. flex-wrap: wrap;
  182. gap: 5px;
  183. }
  184. a {
  185. font-size: 14px;
  186. display: inline-flex;
  187. align-items: center;
  188. padding: 7px 10px;
  189. border-radius: 4px;
  190. color: $darker-text-color;
  191. text-decoration: none;
  192. font-weight: 500;
  193. gap: 5px;
  194. white-space: nowrap;
  195. &:hover,
  196. &:focus,
  197. &:active {
  198. background: lighten($ui-base-color, 4%);
  199. }
  200. &.selected {
  201. font-weight: 700;
  202. color: $primary-text-color;
  203. background: $ui-highlight-color;
  204. &:hover,
  205. &:focus,
  206. &:active {
  207. background: lighten($ui-highlight-color, 4%);
  208. }
  209. }
  210. }
  211. }
  212. &__actions {
  213. display: inline-flex;
  214. & > :not(:first-child) {
  215. margin-left: 5px;
  216. }
  217. }
  218. h2 small {
  219. font-size: 12px;
  220. display: block;
  221. font-weight: 500;
  222. color: $darker-text-color;
  223. line-height: 18px;
  224. }
  225. @media screen and (max-width: $no-columns-breakpoint) {
  226. border-bottom: 0;
  227. padding-bottom: 0;
  228. }
  229. }
  230. h2 {
  231. color: $secondary-text-color;
  232. font-size: 24px;
  233. line-height: 36px;
  234. font-weight: 700;
  235. }
  236. h3 {
  237. color: $secondary-text-color;
  238. font-size: 20px;
  239. line-height: 28px;
  240. font-weight: 400;
  241. margin-bottom: 30px;
  242. }
  243. h4 {
  244. text-transform: uppercase;
  245. font-size: 13px;
  246. font-weight: 700;
  247. color: $darker-text-color;
  248. padding-bottom: 8px;
  249. margin-bottom: 8px;
  250. border-bottom: 1px solid lighten($ui-base-color, 8%);
  251. }
  252. h6 {
  253. font-size: 16px;
  254. color: $secondary-text-color;
  255. line-height: 28px;
  256. font-weight: 500;
  257. }
  258. .fields-group h6 {
  259. color: $primary-text-color;
  260. font-weight: 500;
  261. }
  262. .directory__tag > a,
  263. .directory__tag > div {
  264. box-shadow: none;
  265. }
  266. .directory__tag .table-action-link .fa {
  267. color: inherit;
  268. }
  269. .directory__tag h4 {
  270. font-size: 18px;
  271. font-weight: 700;
  272. color: $primary-text-color;
  273. text-transform: none;
  274. padding-bottom: 0;
  275. margin-bottom: 0;
  276. border-bottom: 0;
  277. }
  278. & > p {
  279. font-size: 14px;
  280. line-height: 21px;
  281. color: $secondary-text-color;
  282. margin-bottom: 20px;
  283. strong {
  284. color: $primary-text-color;
  285. font-weight: 500;
  286. @each $lang in $cjk-langs {
  287. &:lang(#{$lang}) {
  288. font-weight: 700;
  289. }
  290. }
  291. }
  292. }
  293. hr {
  294. width: 100%;
  295. height: 0;
  296. border: 0;
  297. border-bottom: 1px solid rgba($ui-base-lighter-color, 0.6);
  298. margin: 20px 0;
  299. &.spacer {
  300. height: 1px;
  301. border: 0;
  302. }
  303. }
  304. }
  305. @media screen and (max-width: $no-columns-breakpoint) {
  306. display: block;
  307. .sidebar-wrapper {
  308. min-height: 0;
  309. }
  310. .sidebar {
  311. width: 100%;
  312. padding: 0;
  313. height: auto;
  314. &__toggle {
  315. display: flex;
  316. }
  317. & > ul {
  318. display: none;
  319. &.visible {
  320. display: block;
  321. position: fixed;
  322. z-index: 10;
  323. width: 100%;
  324. height: calc(100% - 56px);
  325. left: 0;
  326. bottom: 0;
  327. overflow-y: auto;
  328. background: $ui-base-color;
  329. }
  330. }
  331. ul a,
  332. ul ul a {
  333. border-radius: 0;
  334. border-bottom: 1px solid lighten($ui-base-color, 4%);
  335. transition: none;
  336. &:hover {
  337. transition: none;
  338. }
  339. }
  340. ul ul {
  341. border-radius: 0;
  342. }
  343. ul .simple-navigation-active-leaf a {
  344. border-bottom-color: $ui-highlight-color;
  345. }
  346. }
  347. }
  348. }
  349. hr.spacer {
  350. width: 100%;
  351. border: 0;
  352. margin: 20px 0;
  353. height: 1px;
  354. }
  355. body,
  356. .admin-wrapper .content {
  357. .muted-hint {
  358. color: $darker-text-color;
  359. a {
  360. color: $highlight-text-color;
  361. }
  362. }
  363. .positive-hint,
  364. .negative-hint,
  365. .neutral-hint {
  366. a {
  367. color: inherit;
  368. text-decoration: underline;
  369. &:focus,
  370. &:hover,
  371. &:active {
  372. text-decoration: none;
  373. }
  374. }
  375. }
  376. .positive-hint {
  377. color: $valid-value-color;
  378. font-weight: 500;
  379. }
  380. .negative-hint {
  381. color: $error-value-color;
  382. font-weight: 500;
  383. }
  384. .neutral-hint {
  385. color: $dark-text-color;
  386. font-weight: 500;
  387. }
  388. .warning-hint {
  389. color: $gold-star;
  390. font-weight: 500;
  391. }
  392. }
  393. .filters {
  394. display: flex;
  395. flex-wrap: wrap;
  396. .filter-subset {
  397. flex: 0 0 auto;
  398. margin: 0 40px 20px 0;
  399. &:last-child {
  400. margin-bottom: 30px;
  401. }
  402. ul {
  403. margin-top: 5px;
  404. list-style: none;
  405. li {
  406. display: inline-block;
  407. margin-right: 5px;
  408. }
  409. }
  410. & > div {
  411. display: flex;
  412. gap: 5px;
  413. }
  414. strong {
  415. font-weight: 500;
  416. text-transform: uppercase;
  417. font-size: 12px;
  418. @each $lang in $cjk-langs {
  419. &:lang(#{$lang}) {
  420. font-weight: 700;
  421. }
  422. }
  423. }
  424. &--with-select strong {
  425. display: block;
  426. margin-bottom: 10px;
  427. }
  428. a {
  429. display: inline-block;
  430. color: $darker-text-color;
  431. text-decoration: none;
  432. text-transform: uppercase;
  433. font-size: 12px;
  434. font-weight: 500;
  435. border-bottom: 2px solid $ui-base-color;
  436. &:hover {
  437. color: $primary-text-color;
  438. border-bottom: 2px solid lighten($ui-base-color, 5%);
  439. }
  440. &.selected {
  441. color: $highlight-text-color;
  442. border-bottom: 2px solid $ui-highlight-color;
  443. }
  444. }
  445. }
  446. }
  447. .report-accounts {
  448. display: flex;
  449. flex-wrap: wrap;
  450. margin-bottom: 20px;
  451. }
  452. .report-accounts__item {
  453. display: flex;
  454. flex: 250px;
  455. flex-direction: column;
  456. margin: 0 5px;
  457. & > strong {
  458. display: block;
  459. margin: 0 0 10px -5px;
  460. font-weight: 500;
  461. font-size: 14px;
  462. line-height: 18px;
  463. color: $secondary-text-color;
  464. @each $lang in $cjk-langs {
  465. &:lang(#{$lang}) {
  466. font-weight: 700;
  467. }
  468. }
  469. }
  470. .account-card {
  471. flex: 1 1 auto;
  472. }
  473. }
  474. .report-status,
  475. .account-status {
  476. display: flex;
  477. margin-bottom: 10px;
  478. .activity-stream {
  479. flex: 2 0 0;
  480. margin-right: 20px;
  481. max-width: calc(100% - 60px);
  482. .entry {
  483. border-radius: 4px;
  484. }
  485. }
  486. }
  487. .report-status__actions,
  488. .account-status__actions {
  489. flex: 0 0 auto;
  490. display: flex;
  491. flex-direction: column;
  492. .icon-button {
  493. font-size: 24px;
  494. width: 24px;
  495. text-align: center;
  496. margin-bottom: 10px;
  497. }
  498. }
  499. .simple_form.new_report_note,
  500. .simple_form.new_account_moderation_note {
  501. max-width: 100%;
  502. }
  503. .simple_form {
  504. .actions {
  505. margin-top: 15px;
  506. }
  507. .button {
  508. font-size: 15px;
  509. }
  510. }
  511. .batch-form-box {
  512. display: flex;
  513. flex-wrap: wrap;
  514. margin-bottom: 5px;
  515. #form_status_batch_action {
  516. margin: 0 5px 5px 0;
  517. font-size: 14px;
  518. }
  519. input.button {
  520. margin: 0 5px 5px 0;
  521. }
  522. .media-spoiler-toggle-buttons {
  523. margin-left: auto;
  524. .button {
  525. overflow: visible;
  526. margin: 0 0 5px 5px;
  527. float: right;
  528. }
  529. }
  530. }
  531. .back-link {
  532. margin-bottom: 10px;
  533. font-size: 14px;
  534. a {
  535. color: $highlight-text-color;
  536. text-decoration: none;
  537. &:hover {
  538. text-decoration: underline;
  539. }
  540. }
  541. }
  542. .special-action-button,
  543. .back-link {
  544. text-align: right;
  545. flex: 1 1 auto;
  546. }
  547. .action-buttons {
  548. display: flex;
  549. overflow: hidden;
  550. justify-content: space-between;
  551. }
  552. .spacer {
  553. flex: 1 1 auto;
  554. }
  555. .log-entry {
  556. display: block;
  557. line-height: 20px;
  558. padding: 15px;
  559. padding-left: 15px * 2 + 40px;
  560. background: $ui-base-color;
  561. border-bottom: 1px solid darken($ui-base-color, 8%);
  562. position: relative;
  563. text-decoration: none;
  564. color: $darker-text-color;
  565. font-size: 14px;
  566. &:first-child {
  567. border-top-left-radius: 4px;
  568. border-top-right-radius: 4px;
  569. }
  570. &:last-child {
  571. border-bottom-left-radius: 4px;
  572. border-bottom-right-radius: 4px;
  573. border-bottom: 0;
  574. }
  575. &:hover,
  576. &:focus,
  577. &:active {
  578. background: lighten($ui-base-color, 4%);
  579. }
  580. &__avatar {
  581. position: absolute;
  582. left: 15px;
  583. top: 15px;
  584. .avatar {
  585. border-radius: 4px;
  586. width: 40px;
  587. height: 40px;
  588. }
  589. }
  590. &__title {
  591. word-wrap: break-word;
  592. }
  593. &__timestamp {
  594. color: $dark-text-color;
  595. }
  596. a,
  597. .username,
  598. .target {
  599. color: $secondary-text-color;
  600. text-decoration: none;
  601. font-weight: 500;
  602. }
  603. a {
  604. &:hover,
  605. &:focus,
  606. &:active {
  607. text-decoration: underline;
  608. }
  609. }
  610. }
  611. a.name-tag,
  612. .name-tag,
  613. a.inline-name-tag,
  614. .inline-name-tag {
  615. text-decoration: none;
  616. color: $secondary-text-color;
  617. .username {
  618. font-weight: 500;
  619. }
  620. &.suspended {
  621. .username {
  622. text-decoration: line-through;
  623. color: lighten($error-red, 12%);
  624. }
  625. .avatar {
  626. filter: grayscale(100%);
  627. opacity: 0.8;
  628. }
  629. }
  630. }
  631. a.name-tag,
  632. .name-tag {
  633. display: inline-flex;
  634. align-items: center;
  635. vertical-align: top;
  636. .avatar {
  637. display: block;
  638. margin: 0;
  639. margin-right: 5px;
  640. border-radius: 50%;
  641. }
  642. &.suspended {
  643. .avatar {
  644. filter: grayscale(100%);
  645. opacity: 0.8;
  646. }
  647. }
  648. }
  649. .speech-bubble {
  650. margin-bottom: 20px;
  651. border-left: 4px solid $ui-highlight-color;
  652. &.positive {
  653. border-left-color: $success-green;
  654. }
  655. &.negative {
  656. border-left-color: lighten($error-red, 12%);
  657. }
  658. &.warning {
  659. border-left-color: $gold-star;
  660. }
  661. &__bubble {
  662. padding: 16px;
  663. padding-left: 14px;
  664. font-size: 15px;
  665. line-height: 20px;
  666. border-radius: 4px 4px 4px 0;
  667. position: relative;
  668. font-weight: 500;
  669. a {
  670. color: $darker-text-color;
  671. }
  672. }
  673. &__owner {
  674. padding: 8px;
  675. padding-left: 12px;
  676. }
  677. time {
  678. color: $dark-text-color;
  679. }
  680. }
  681. .report-card {
  682. background: $ui-base-color;
  683. border-radius: 4px;
  684. margin-bottom: 20px;
  685. &__profile {
  686. display: flex;
  687. justify-content: space-between;
  688. align-items: center;
  689. padding: 15px;
  690. .account {
  691. padding: 0;
  692. border: 0;
  693. &__avatar-wrapper {
  694. margin-left: 0;
  695. }
  696. }
  697. &__stats {
  698. flex: 0 0 auto;
  699. font-weight: 500;
  700. color: $darker-text-color;
  701. text-transform: uppercase;
  702. text-align: right;
  703. a {
  704. color: inherit;
  705. text-decoration: none;
  706. &:focus,
  707. &:hover,
  708. &:active {
  709. color: lighten($darker-text-color, 8%);
  710. }
  711. }
  712. .red {
  713. color: $error-value-color;
  714. }
  715. }
  716. }
  717. &__summary {
  718. &__item {
  719. display: flex;
  720. justify-content: flex-start;
  721. border-top: 1px solid darken($ui-base-color, 4%);
  722. &:hover {
  723. background: lighten($ui-base-color, 2%);
  724. }
  725. &__reported-by,
  726. &__assigned {
  727. padding: 15px;
  728. flex: 0 0 auto;
  729. box-sizing: border-box;
  730. width: 150px;
  731. color: $darker-text-color;
  732. &,
  733. .username {
  734. white-space: nowrap;
  735. overflow: hidden;
  736. text-overflow: ellipsis;
  737. }
  738. }
  739. &__content {
  740. flex: 1 1 auto;
  741. max-width: calc(100% - 300px);
  742. &__icon {
  743. color: $dark-text-color;
  744. margin-right: 4px;
  745. font-weight: 500;
  746. }
  747. }
  748. &__content a {
  749. display: block;
  750. box-sizing: border-box;
  751. width: 100%;
  752. padding: 15px;
  753. text-decoration: none;
  754. color: $darker-text-color;
  755. }
  756. }
  757. }
  758. }
  759. .one-line {
  760. white-space: nowrap;
  761. overflow: hidden;
  762. text-overflow: ellipsis;
  763. }
  764. .ellipsized-ip {
  765. display: inline-block;
  766. max-width: 120px;
  767. overflow: hidden;
  768. text-overflow: ellipsis;
  769. vertical-align: middle;
  770. }
  771. .admin-account-bio {
  772. display: flex;
  773. flex-wrap: wrap;
  774. margin: 0 -5px;
  775. margin-top: 20px;
  776. > div {
  777. box-sizing: border-box;
  778. padding: 0 5px;
  779. margin-bottom: 10px;
  780. flex: 1 0 50%;
  781. max-width: 100%;
  782. }
  783. .account__header__fields,
  784. .account__header__content {
  785. background: lighten($ui-base-color, 8%);
  786. border-radius: 4px;
  787. height: 100%;
  788. }
  789. .account__header__fields {
  790. margin: 0;
  791. border: 0;
  792. a {
  793. color: $highlight-text-color;
  794. }
  795. dl:first-child .verified {
  796. border-radius: 0 4px 0 0;
  797. }
  798. .verified a {
  799. color: $valid-value-color;
  800. }
  801. }
  802. .account__header__content {
  803. box-sizing: border-box;
  804. padding: 20px;
  805. color: $primary-text-color;
  806. }
  807. }
  808. .center-text {
  809. text-align: center;
  810. }
  811. .applications-list__item,
  812. .filters-list__item {
  813. padding: 15px 0;
  814. background: $ui-base-color;
  815. border: 1px solid lighten($ui-base-color, 4%);
  816. border-radius: 4px;
  817. margin-top: 15px;
  818. }
  819. .user-role {
  820. color: var(--user-role-accent);
  821. }
  822. .announcements-list,
  823. .filters-list {
  824. border: 1px solid lighten($ui-base-color, 4%);
  825. border-radius: 4px;
  826. &__item {
  827. padding: 15px 0;
  828. background: $ui-base-color;
  829. border-bottom: 1px solid lighten($ui-base-color, 4%);
  830. &__title {
  831. padding: 0 15px;
  832. display: block;
  833. font-weight: 500;
  834. font-size: 18px;
  835. line-height: 1.5;
  836. color: $secondary-text-color;
  837. text-decoration: none;
  838. margin-bottom: 10px;
  839. .account-role {
  840. vertical-align: middle;
  841. }
  842. }
  843. a.announcements-list__item__title {
  844. &:hover,
  845. &:focus,
  846. &:active {
  847. color: $primary-text-color;
  848. }
  849. }
  850. &__meta {
  851. padding: 0 15px;
  852. color: $dark-text-color;
  853. a {
  854. color: inherit;
  855. text-decoration: underline;
  856. &:hover,
  857. &:focus,
  858. &:active {
  859. text-decoration: none;
  860. }
  861. }
  862. }
  863. &__action-bar {
  864. display: flex;
  865. justify-content: space-between;
  866. align-items: center;
  867. }
  868. &__permissions {
  869. margin-top: 10px;
  870. }
  871. &:last-child {
  872. border-bottom: 0;
  873. }
  874. }
  875. }
  876. .filters-list__item {
  877. &__title {
  878. display: flex;
  879. justify-content: space-between;
  880. margin-bottom: 0;
  881. }
  882. &__permissions {
  883. margin-top: 0;
  884. margin-bottom: 10px;
  885. }
  886. .expiration {
  887. font-size: 13px;
  888. }
  889. &.expired {
  890. .expiration {
  891. color: lighten($error-red, 12%);
  892. }
  893. .permissions-list__item__icon {
  894. color: $dark-text-color;
  895. }
  896. }
  897. }
  898. .dashboard__counters.admin-account-counters {
  899. margin-top: 10px;
  900. }
  901. .account-badges {
  902. margin: -2px 0;
  903. }
  904. .retention {
  905. overflow: auto;
  906. > h4 {
  907. position: sticky;
  908. left: 0;
  909. }
  910. &__table {
  911. &__number {
  912. color: $secondary-text-color;
  913. padding: 10px;
  914. }
  915. &__date {
  916. white-space: nowrap;
  917. padding: 10px 0;
  918. text-align: left;
  919. min-width: 120px;
  920. &.retention__table__average {
  921. font-weight: 700;
  922. }
  923. }
  924. &__size {
  925. text-align: center;
  926. padding: 10px;
  927. }
  928. &__label {
  929. font-weight: 700;
  930. color: $darker-text-color;
  931. }
  932. &__box {
  933. box-sizing: border-box;
  934. background: $ui-highlight-color;
  935. padding: 10px;
  936. font-weight: 500;
  937. color: $primary-text-color;
  938. width: 52px;
  939. margin: 1px;
  940. @for $i from 0 through 10 {
  941. &--#{10 * $i} {
  942. background-color: rgba($ui-highlight-color, 1 * (math.div(max(1, $i), 10)));
  943. }
  944. }
  945. }
  946. }
  947. }
  948. .sparkline {
  949. display: block;
  950. text-decoration: none;
  951. background: lighten($ui-base-color, 4%);
  952. border-radius: 4px;
  953. padding: 0;
  954. position: relative;
  955. padding-bottom: 55px + 20px;
  956. overflow: hidden;
  957. &__value {
  958. display: flex;
  959. line-height: 33px;
  960. align-items: flex-end;
  961. padding: 20px;
  962. padding-bottom: 10px;
  963. &__total {
  964. display: block;
  965. margin-right: 10px;
  966. font-weight: 500;
  967. font-size: 28px;
  968. color: $primary-text-color;
  969. }
  970. &__change {
  971. display: block;
  972. font-weight: 500;
  973. font-size: 18px;
  974. color: $darker-text-color;
  975. margin-bottom: -3px;
  976. &.positive {
  977. color: $valid-value-color;
  978. }
  979. &.negative {
  980. color: $error-value-color;
  981. }
  982. }
  983. }
  984. &__label {
  985. padding: 0 20px;
  986. padding-bottom: 10px;
  987. text-transform: uppercase;
  988. color: $darker-text-color;
  989. font-weight: 500;
  990. }
  991. &__graph {
  992. position: absolute;
  993. bottom: 0;
  994. width: 100%;
  995. svg {
  996. display: block;
  997. margin: 0;
  998. }
  999. path:first-child {
  1000. fill: rgba($highlight-text-color, 0.25) !important;
  1001. fill-opacity: 100% !important;
  1002. }
  1003. path:last-child {
  1004. stroke: lighten($highlight-text-color, 6%) !important;
  1005. fill: none !important;
  1006. }
  1007. }
  1008. }
  1009. a.sparkline {
  1010. &:hover,
  1011. &:focus,
  1012. &:active {
  1013. background: lighten($ui-base-color, 6%);
  1014. }
  1015. }
  1016. .skeleton {
  1017. background-color: lighten($ui-base-color, 8%);
  1018. background-image: linear-gradient(90deg, lighten($ui-base-color, 8%), lighten($ui-base-color, 12%), lighten($ui-base-color, 8%));
  1019. background-size: 200px 100%;
  1020. background-repeat: no-repeat;
  1021. border-radius: 4px;
  1022. display: inline-block;
  1023. line-height: 1;
  1024. width: 100%;
  1025. animation: skeleton 1.2s ease-in-out infinite;
  1026. }
  1027. @keyframes skeleton {
  1028. 0% {
  1029. background-position: -200px 0;
  1030. }
  1031. 100% {
  1032. background-position: calc(200px + 100%) 0;
  1033. }
  1034. }
  1035. .dimension {
  1036. table {
  1037. width: 100%;
  1038. }
  1039. &__item {
  1040. border-bottom: 1px solid lighten($ui-base-color, 4%);
  1041. &__key {
  1042. font-weight: 500;
  1043. padding: 11px 10px;
  1044. }
  1045. &__value {
  1046. text-align: right;
  1047. color: $darker-text-color;
  1048. padding: 11px 10px;
  1049. }
  1050. &__indicator {
  1051. display: inline-block;
  1052. width: 8px;
  1053. height: 8px;
  1054. border-radius: 50%;
  1055. background: $ui-highlight-color;
  1056. margin-right: 10px;
  1057. @for $i from 0 through 10 {
  1058. &--#{10 * $i} {
  1059. background-color: rgba($ui-highlight-color, 1 * (math.div(max(1, $i), 10)));
  1060. }
  1061. }
  1062. }
  1063. &:last-child {
  1064. border-bottom: 0;
  1065. }
  1066. }
  1067. }
  1068. .report-reason-selector {
  1069. border-radius: 4px;
  1070. background: $ui-base-color;
  1071. margin-bottom: 20px;
  1072. &__category {
  1073. cursor: pointer;
  1074. border-bottom: 1px solid darken($ui-base-color, 8%);
  1075. &:last-child {
  1076. border-bottom: 0;
  1077. }
  1078. &__label {
  1079. padding: 15px;
  1080. }
  1081. &__rules {
  1082. margin-left: 30px;
  1083. }
  1084. }
  1085. &__rule {
  1086. cursor: pointer;
  1087. padding: 15px;
  1088. }
  1089. }
  1090. .report-header {
  1091. display: grid;
  1092. grid-gap: 15px;
  1093. grid-template-columns: minmax(0, 1fr) 300px;
  1094. &__details {
  1095. &__item {
  1096. border-bottom: 1px solid lighten($ui-base-color, 8%);
  1097. padding: 15px 0;
  1098. &:last-child {
  1099. border-bottom: 0;
  1100. }
  1101. &__header {
  1102. font-weight: 600;
  1103. padding: 4px 0;
  1104. }
  1105. }
  1106. &--horizontal {
  1107. display: grid;
  1108. grid-auto-columns: minmax(0, 1fr);
  1109. grid-auto-flow: column;
  1110. .report-header__details__item {
  1111. border-bottom: 0;
  1112. }
  1113. }
  1114. }
  1115. @media screen and (max-width: 930px) {
  1116. grid-template-columns: minmax(0, 1fr);
  1117. }
  1118. }
  1119. .account-card {
  1120. background: $ui-base-color;
  1121. border-radius: 4px;
  1122. &__permalink {
  1123. color: inherit;
  1124. text-decoration: none;
  1125. }
  1126. &__header {
  1127. padding: 4px;
  1128. border-radius: 4px;
  1129. height: 128px;
  1130. img {
  1131. display: block;
  1132. margin: 0;
  1133. width: 100%;
  1134. height: 100%;
  1135. object-fit: cover;
  1136. background: darken($ui-base-color, 8%);
  1137. }
  1138. }
  1139. &__title {
  1140. margin-top: -(15px + 8px);
  1141. display: flex;
  1142. align-items: flex-end;
  1143. &__avatar {
  1144. padding: 14px;
  1145. img,
  1146. .account__avatar {
  1147. display: block;
  1148. margin: 0;
  1149. width: 56px;
  1150. height: 56px;
  1151. background-color: darken($ui-base-color, 8%);
  1152. border-radius: 8px;
  1153. border: 1px solid $ui-base-color;
  1154. }
  1155. }
  1156. .display-name {
  1157. color: $darker-text-color;
  1158. padding-bottom: 15px;
  1159. font-size: 15px;
  1160. line-height: 20px;
  1161. bdi {
  1162. display: block;
  1163. color: $primary-text-color;
  1164. font-weight: 700;
  1165. }
  1166. }
  1167. }
  1168. &__bio {
  1169. padding: 0 15px;
  1170. margin: 8px 0;
  1171. overflow: hidden;
  1172. text-overflow: ellipsis;
  1173. word-wrap: break-word;
  1174. max-height: 21px * 2;
  1175. position: relative;
  1176. font-size: 15px;
  1177. line-height: 21px;
  1178. &::after {
  1179. display: block;
  1180. content: "";
  1181. width: 50px;
  1182. height: 21px;
  1183. position: absolute;
  1184. bottom: 0;
  1185. right: 15px;
  1186. background: linear-gradient(to left, $ui-base-color, transparent);
  1187. pointer-events: none;
  1188. }
  1189. a {
  1190. color: $secondary-text-color;
  1191. text-decoration: none;
  1192. unicode-bidi: isolate;
  1193. &:hover {
  1194. text-decoration: underline;
  1195. }
  1196. &.mention {
  1197. &:hover {
  1198. text-decoration: none;
  1199. span {
  1200. text-decoration: underline;
  1201. }
  1202. }
  1203. }
  1204. }
  1205. }
  1206. &__actions {
  1207. display: flex;
  1208. justify-content: space-between;
  1209. align-items: center;
  1210. &__button {
  1211. flex-shrink: 1;
  1212. padding: 0 15px;
  1213. overflow: hidden;
  1214. .button {
  1215. min-width: 0;
  1216. white-space: nowrap;
  1217. text-overflow: ellipsis;
  1218. overflow: hidden;
  1219. max-width: 100%;
  1220. }
  1221. }
  1222. }
  1223. &__counters {
  1224. flex: 1 1 auto;
  1225. display: grid;
  1226. grid-auto-columns: minmax(0, 1fr);
  1227. grid-auto-flow: column;
  1228. max-width: 340px;
  1229. min-width: 65px * 3;
  1230. &__item {
  1231. padding: 15px 0;
  1232. text-align: center;
  1233. color: $primary-text-color;
  1234. font-weight: 600;
  1235. font-size: 15px;
  1236. line-height: 21px;
  1237. small {
  1238. display: block;
  1239. color: $darker-text-color;
  1240. font-weight: 400;
  1241. font-size: 13px;
  1242. line-height: 18px;
  1243. }
  1244. }
  1245. }
  1246. }
  1247. .report-notes {
  1248. margin-bottom: 20px;
  1249. &__item {
  1250. background: $ui-base-color;
  1251. position: relative;
  1252. padding: 15px;
  1253. padding-left: 15px * 2 + 40px;
  1254. border-bottom: 1px solid darken($ui-base-color, 8%);
  1255. &:first-child {
  1256. border-top-left-radius: 4px;
  1257. border-top-right-radius: 4px;
  1258. }
  1259. &:last-child {
  1260. border-bottom-left-radius: 4px;
  1261. border-bottom-right-radius: 4px;
  1262. border-bottom: 0;
  1263. }
  1264. &:hover {
  1265. background-color: lighten($ui-base-color, 4%);
  1266. }
  1267. &__avatar {
  1268. position: absolute;
  1269. left: 15px;
  1270. top: 15px;
  1271. border-radius: 4px;
  1272. width: 40px;
  1273. height: 40px;
  1274. }
  1275. &__header {
  1276. color: $darker-text-color;
  1277. font-size: 15px;
  1278. line-height: 20px;
  1279. margin-bottom: 4px;
  1280. .username {
  1281. color: $primary-text-color;
  1282. font-weight: 500;
  1283. margin-right: 5px;
  1284. a {
  1285. color: inherit;
  1286. text-decoration: none;
  1287. &:hover,
  1288. &:focus,
  1289. &:active {
  1290. text-decoration: underline;
  1291. }
  1292. }
  1293. }
  1294. time {
  1295. margin-left: 5px;
  1296. vertical-align: baseline;
  1297. }
  1298. }
  1299. &__content {
  1300. font-size: 15px;
  1301. line-height: 20px;
  1302. word-wrap: break-word;
  1303. font-weight: 400;
  1304. color: $primary-text-color;
  1305. p {
  1306. margin-bottom: 20px;
  1307. white-space: pre-wrap;
  1308. unicode-bidi: plaintext;
  1309. &:last-child {
  1310. margin-bottom: 0;
  1311. }
  1312. }
  1313. }
  1314. &__actions {
  1315. position: absolute;
  1316. top: 15px;
  1317. right: 15px;
  1318. text-align: right;
  1319. }
  1320. }
  1321. }
  1322. .report-actions {
  1323. border: 1px solid darken($ui-base-color, 8%);
  1324. &__item {
  1325. display: flex;
  1326. align-items: center;
  1327. line-height: 18px;
  1328. border-bottom: 1px solid darken($ui-base-color, 8%);
  1329. &:last-child {
  1330. border-bottom: 0;
  1331. }
  1332. &__button {
  1333. box-sizing: border-box;
  1334. flex: 0 0 auto;
  1335. width: 200px;
  1336. padding: 15px;
  1337. padding-right: 0;
  1338. .button {
  1339. display: block;
  1340. width: 100%;
  1341. }
  1342. }
  1343. &__description {
  1344. padding: 15px;
  1345. font-size: 14px;
  1346. color: $dark-text-color;
  1347. }
  1348. }
  1349. @media screen and (max-width: 800px) {
  1350. border: 0;
  1351. &__item {
  1352. flex-direction: column;
  1353. border: 0;
  1354. &__button {
  1355. width: 100%;
  1356. padding: 15px 0;
  1357. }
  1358. &__description {
  1359. padding: 0;
  1360. padding-bottom: 15px;
  1361. }
  1362. }
  1363. }
  1364. }
  1365. .section-skip-link {
  1366. float: right;
  1367. a {
  1368. color: $ui-highlight-color;
  1369. text-decoration: none;
  1370. &:hover,
  1371. &:focus,
  1372. &:active {
  1373. text-decoration: underline;
  1374. }
  1375. }
  1376. }
  1377. .strike-card {
  1378. padding: 15px;
  1379. border-radius: 4px;
  1380. background: $ui-base-color;
  1381. font-size: 15px;
  1382. line-height: 20px;
  1383. word-wrap: break-word;
  1384. font-weight: 400;
  1385. color: $primary-text-color;
  1386. box-sizing: border-box;
  1387. min-height: 100%;
  1388. p {
  1389. margin-bottom: 20px;
  1390. unicode-bidi: plaintext;
  1391. &:last-child {
  1392. margin-bottom: 0;
  1393. }
  1394. strong {
  1395. font-weight: 700;
  1396. }
  1397. }
  1398. &__rules {
  1399. list-style: disc;
  1400. padding-left: 15px;
  1401. margin-bottom: 20px;
  1402. color: $darker-text-color;
  1403. &:last-child {
  1404. margin-bottom: 0;
  1405. }
  1406. &__text {
  1407. color: $primary-text-color;
  1408. }
  1409. }
  1410. &__statuses-list {
  1411. border-radius: 4px;
  1412. border: 1px solid darken($ui-base-color, 8%);
  1413. font-size: 13px;
  1414. line-height: 18px;
  1415. overflow: hidden;
  1416. &__item {
  1417. padding: 16px;
  1418. background: lighten($ui-base-color, 2%);
  1419. border-bottom: 1px solid darken($ui-base-color, 8%);
  1420. &:last-child {
  1421. border-bottom: 0;
  1422. }
  1423. &__meta {
  1424. color: $darker-text-color;
  1425. }
  1426. a {
  1427. color: inherit;
  1428. text-decoration: none;
  1429. &:hover,
  1430. &:focus,
  1431. &:active {
  1432. text-decoration: underline;
  1433. }
  1434. }
  1435. }
  1436. }
  1437. }
  1438. .availability-indicator {
  1439. display: flex;
  1440. align-items: center;
  1441. margin-bottom: 30px;
  1442. font-size: 14px;
  1443. line-height: 21px;
  1444. &__hint {
  1445. padding: 0 15px;
  1446. }
  1447. &__graphic {
  1448. display: flex;
  1449. margin: 0 -2px;
  1450. &__item {
  1451. display: block;
  1452. flex: 0 0 auto;
  1453. width: 4px;
  1454. height: 21px;
  1455. background: lighten($ui-base-color, 8%);
  1456. margin: 0 2px;
  1457. border-radius: 2px;
  1458. &.positive {
  1459. background: $valid-value-color;
  1460. }
  1461. &.negative {
  1462. background: $error-value-color;
  1463. }
  1464. }
  1465. }
  1466. }
  1467. .history {
  1468. counter-reset: step 0;
  1469. font-size: 15px;
  1470. line-height: 22px;
  1471. li {
  1472. counter-increment: step 1;
  1473. padding-left: 2.5rem;
  1474. padding-bottom: 8px;
  1475. position: relative;
  1476. margin-bottom: 8px;
  1477. &::before {
  1478. position: absolute;
  1479. content: counter(step);
  1480. font-size: 0.625rem;
  1481. font-weight: 500;
  1482. left: 0;
  1483. display: flex;
  1484. justify-content: center;
  1485. align-items: center;
  1486. width: calc(1.375rem + 1px);
  1487. height: calc(1.375rem + 1px);
  1488. background: $ui-base-color;
  1489. border: 1px solid $highlight-text-color;
  1490. color: $highlight-text-color;
  1491. border-radius: 8px;
  1492. }
  1493. &::after {
  1494. position: absolute;
  1495. content: "";
  1496. width: 1px;
  1497. background: $highlight-text-color;
  1498. bottom: 0;
  1499. top: calc(1.875rem + 1px);
  1500. left: 0.6875rem;
  1501. }
  1502. &:last-child {
  1503. margin-bottom: 0;
  1504. &::after {
  1505. display: none;
  1506. }
  1507. }
  1508. }
  1509. &__entry {
  1510. h5 {
  1511. font-weight: 500;
  1512. color: $primary-text-color;
  1513. line-height: 25px;
  1514. margin-bottom: 16px;
  1515. }
  1516. .status {
  1517. border: 1px solid lighten($ui-base-color, 4%);
  1518. background: $ui-base-color;
  1519. border-radius: 4px;
  1520. }
  1521. }
  1522. }