admin.scss 32 KB

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