123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827 |
- @use "sass:math";
- $no-columns-breakpoint: 600px;
- $sidebar-width: 240px;
- $content-width: 840px;
- .admin-wrapper {
- display: flex;
- justify-content: center;
- width: 100%;
- min-height: 100vh;
- .sidebar-wrapper {
- min-height: 100vh;
- overflow: hidden;
- pointer-events: none;
- flex: 1 1 auto;
- &__inner {
- display: flex;
- justify-content: flex-end;
- background: $ui-base-color;
- height: 100%;
- }
- }
- .sidebar {
- width: $sidebar-width;
- padding: 0;
- pointer-events: auto;
- &__toggle {
- display: none;
- background: darken($ui-base-color, 4%);
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- align-items: center;
- &__logo {
- flex: 1 1 auto;
- a {
- display: block;
- padding: 15px;
- }
- }
- &__icon {
- display: block;
- color: $darker-text-color;
- text-decoration: none;
- flex: 0 0 auto;
- font-size: 18px;
- padding: 10px;
- margin: 5px 10px;
- border-radius: 4px;
- &:focus {
- background: $ui-base-color;
- }
- .fa-times {
- display: none;
- }
- &.active {
- .fa-times {
- display: block;
- }
- .fa-bars {
- display: none;
- }
- }
- }
- }
- .logo {
- display: block;
- margin: 40px auto;
- width: 100px;
- height: 100px;
- }
- .logo--wordmark {
- display: inherit;
- margin: inherit;
- width: inherit;
- height: 25px;
- }
- @media screen and (max-width: $no-columns-breakpoint) {
- & > a:first-child {
- display: none;
- }
- }
- ul {
- list-style: none;
- border-radius: 4px 0 0 4px;
- overflow: hidden;
- margin-bottom: 20px;
- @media screen and (max-width: $no-columns-breakpoint) {
- margin-bottom: 0;
- }
- a {
- display: block;
- padding: 15px;
- color: $darker-text-color;
- text-decoration: none;
- transition: all 200ms linear;
- transition-property: color, background-color;
- border-radius: 4px 0 0 4px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- i.fa {
- margin-right: 5px;
- }
- &:hover {
- color: $primary-text-color;
- background-color: darken($ui-base-color, 5%);
- transition: all 100ms linear;
- transition-property: color, background-color;
- }
- &.selected {
- background: darken($ui-base-color, 2%);
- border-radius: 4px 0 0;
- }
- }
- ul {
- background: darken($ui-base-color, 4%);
- border-radius: 0 0 0 4px;
- margin: 0;
- a {
- border: 0;
- padding: 15px 35px;
- }
- }
- .simple-navigation-active-leaf a {
- color: $primary-text-color;
- background-color: darken($ui-highlight-color, 2%);
- border-bottom: 0;
- border-radius: 0;
- &:hover {
- background-color: $ui-highlight-color;
- }
- }
- }
- & > ul > .simple-navigation-active-leaf a {
- border-radius: 4px 0 0 4px;
- }
- }
- .content-wrapper {
- box-sizing: border-box;
- width: 100%;
- max-width: $content-width;
- flex: 1 1 auto;
- }
- @media screen and (max-width: $content-width + $sidebar-width) {
- .sidebar-wrapper--empty {
- display: none;
- }
- .sidebar-wrapper {
- width: $sidebar-width;
- flex: 0 0 auto;
- }
- }
- @media screen and (max-width: $no-columns-breakpoint) {
- .sidebar-wrapper {
- width: 100%;
- }
- }
- .content {
- padding: 55px 15px 20px 25px;
- @media screen and (max-width: $no-columns-breakpoint) {
- max-width: none;
- padding: 15px;
- padding-top: 30px;
- }
- &__heading {
- margin-bottom: 45px;
- &__row {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- justify-content: space-between;
- margin: -15px -15px 0 0;
- & > * {
- margin-top: 15px;
- margin-right: 15px;
- }
- }
- &__tabs {
- margin-top: 30px;
- width: 100%;
- & > div {
- display: flex;
- flex-wrap: wrap;
- gap: 5px;
- }
- a {
- font-size: 14px;
- display: inline-flex;
- align-items: center;
- padding: 7px 10px;
- border-radius: 4px;
- color: $darker-text-color;
- text-decoration: none;
- font-weight: 500;
- gap: 5px;
- white-space: nowrap;
- &:hover,
- &:focus,
- &:active {
- background: lighten($ui-base-color, 4%);
- }
- &.selected {
- font-weight: 700;
- color: $primary-text-color;
- background: $ui-highlight-color;
- &:hover,
- &:focus,
- &:active {
- background: lighten($ui-highlight-color, 4%);
- }
- }
- }
- }
- &__actions {
- display: inline-flex;
- & > :not(:first-child) {
- margin-left: 5px;
- }
- }
- h2 small {
- font-size: 12px;
- display: block;
- font-weight: 500;
- color: $darker-text-color;
- line-height: 18px;
- }
- @media screen and (max-width: $no-columns-breakpoint) {
- border-bottom: 0;
- padding-bottom: 0;
- }
- }
- h2 {
- color: $secondary-text-color;
- font-size: 24px;
- line-height: 36px;
- font-weight: 700;
- }
- h3 {
- color: $secondary-text-color;
- font-size: 20px;
- line-height: 28px;
- font-weight: 400;
- margin-bottom: 30px;
- }
- h4 {
- text-transform: uppercase;
- font-size: 13px;
- font-weight: 700;
- color: $darker-text-color;
- padding-bottom: 8px;
- margin-bottom: 8px;
- border-bottom: 1px solid lighten($ui-base-color, 8%);
- }
- h6 {
- font-size: 16px;
- color: $secondary-text-color;
- line-height: 28px;
- font-weight: 500;
- }
- .fields-group h6 {
- color: $primary-text-color;
- font-weight: 500;
- }
- .directory__tag > a,
- .directory__tag > div {
- box-shadow: none;
- }
- .directory__tag .table-action-link .fa {
- color: inherit;
- }
- .directory__tag h4 {
- font-size: 18px;
- font-weight: 700;
- color: $primary-text-color;
- text-transform: none;
- padding-bottom: 0;
- margin-bottom: 0;
- border-bottom: 0;
- }
- & > p {
- font-size: 14px;
- line-height: 21px;
- color: $secondary-text-color;
- margin-bottom: 20px;
- strong {
- color: $primary-text-color;
- font-weight: 500;
- @each $lang in $cjk-langs {
- &:lang(#{$lang}) {
- font-weight: 700;
- }
- }
- }
- }
- hr {
- width: 100%;
- height: 0;
- border: 0;
- border-bottom: 1px solid rgba($ui-base-lighter-color, 0.6);
- margin: 20px 0;
- &.spacer {
- height: 1px;
- border: 0;
- }
- }
- }
- @media screen and (max-width: $no-columns-breakpoint) {
- display: block;
- .sidebar-wrapper {
- min-height: 0;
- }
- .sidebar {
- width: 100%;
- padding: 0;
- height: auto;
- &__toggle {
- display: flex;
- }
- & > ul {
- display: none;
- &.visible {
- display: block;
- position: fixed;
- z-index: 10;
- width: 100%;
- height: calc(100vh - 56px);
- left: 0;
- bottom: 0;
- overflow-y: auto;
- background: $ui-base-color;
- }
- }
- ul a,
- ul ul a {
- border-radius: 0;
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- transition: none;
- &:hover {
- transition: none;
- }
- }
- ul ul {
- border-radius: 0;
- }
- ul .simple-navigation-active-leaf a {
- border-bottom-color: $ui-highlight-color;
- }
- }
- }
- }
- hr.spacer {
- width: 100%;
- border: 0;
- margin: 20px 0;
- height: 1px;
- }
- body,
- .admin-wrapper .content {
- .muted-hint {
- color: $darker-text-color;
- a {
- color: $highlight-text-color;
- }
- }
- .positive-hint,
- .negative-hint,
- .neutral-hint {
- a {
- color: inherit;
- text-decoration: underline;
- &:focus,
- &:hover,
- &:active {
- text-decoration: none;
- }
- }
- }
- .positive-hint {
- color: $valid-value-color;
- font-weight: 500;
- }
- .negative-hint {
- color: $error-value-color;
- font-weight: 500;
- }
- .neutral-hint {
- color: $dark-text-color;
- font-weight: 500;
- }
- .warning-hint {
- color: $gold-star;
- font-weight: 500;
- }
- }
- .filters {
- display: flex;
- flex-wrap: wrap;
- .filter-subset {
- flex: 0 0 auto;
- margin: 0 40px 20px 0;
- &:last-child {
- margin-bottom: 30px;
- }
- ul {
- margin-top: 5px;
- list-style: none;
- li {
- display: inline-block;
- margin-right: 5px;
- }
- }
- & > div {
- display: flex;
- gap: 5px;
- }
- strong {
- font-weight: 500;
- text-transform: uppercase;
- font-size: 12px;
- @each $lang in $cjk-langs {
- &:lang(#{$lang}) {
- font-weight: 700;
- }
- }
- }
- &--with-select strong {
- display: block;
- margin-bottom: 10px;
- }
- a {
- display: inline-block;
- color: $darker-text-color;
- text-decoration: none;
- text-transform: uppercase;
- font-size: 12px;
- font-weight: 500;
- border-bottom: 2px solid $ui-base-color;
- &:hover {
- color: $primary-text-color;
- border-bottom: 2px solid lighten($ui-base-color, 5%);
- }
- &.selected {
- color: $highlight-text-color;
- border-bottom: 2px solid $ui-highlight-color;
- }
- }
- }
- }
- .report-accounts {
- display: flex;
- flex-wrap: wrap;
- margin-bottom: 20px;
- }
- .report-accounts__item {
- display: flex;
- flex: 250px;
- flex-direction: column;
- margin: 0 5px;
- & > strong {
- display: block;
- margin: 0 0 10px -5px;
- font-weight: 500;
- font-size: 14px;
- line-height: 18px;
- color: $secondary-text-color;
- @each $lang in $cjk-langs {
- &:lang(#{$lang}) {
- font-weight: 700;
- }
- }
- }
- .account-card {
- flex: 1 1 auto;
- }
- }
- .report-status,
- .account-status {
- display: flex;
- margin-bottom: 10px;
- .activity-stream {
- flex: 2 0 0;
- margin-right: 20px;
- max-width: calc(100% - 60px);
- .entry {
- border-radius: 4px;
- }
- }
- }
- .report-status__actions,
- .account-status__actions {
- flex: 0 0 auto;
- display: flex;
- flex-direction: column;
- .icon-button {
- font-size: 24px;
- width: 24px;
- text-align: center;
- margin-bottom: 10px;
- }
- }
- .simple_form.new_report_note,
- .simple_form.new_account_moderation_note {
- max-width: 100%;
- }
- .simple_form {
- .actions {
- margin-top: 15px;
- }
- .button {
- font-size: 15px;
- }
- }
- .batch-form-box {
- display: flex;
- flex-wrap: wrap;
- margin-bottom: 5px;
- #form_status_batch_action {
- margin: 0 5px 5px 0;
- font-size: 14px;
- }
- input.button {
- margin: 0 5px 5px 0;
- }
- .media-spoiler-toggle-buttons {
- margin-left: auto;
- .button {
- overflow: visible;
- margin: 0 0 5px 5px;
- float: right;
- }
- }
- }
- .back-link {
- margin-bottom: 10px;
- font-size: 14px;
- a {
- color: $highlight-text-color;
- text-decoration: none;
- &:hover {
- text-decoration: underline;
- }
- }
- }
- .special-action-button,
- .back-link {
- text-align: right;
- flex: 1 1 auto;
- }
- .action-buttons {
- display: flex;
- overflow: hidden;
- justify-content: space-between;
- }
- .spacer {
- flex: 1 1 auto;
- }
- .log-entry {
- display: block;
- line-height: 20px;
- padding: 15px;
- padding-left: 15px * 2 + 40px;
- background: $ui-base-color;
- border-bottom: 1px solid darken($ui-base-color, 8%);
- position: relative;
- text-decoration: none;
- color: $darker-text-color;
- font-size: 14px;
- &:first-child {
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- }
- &:last-child {
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- border-bottom: 0;
- }
- &:hover,
- &:focus,
- &:active {
- background: lighten($ui-base-color, 4%);
- }
- &__avatar {
- position: absolute;
- left: 15px;
- top: 15px;
- .avatar {
- border-radius: 4px;
- width: 40px;
- height: 40px;
- }
- }
- &__title {
- word-wrap: break-word;
- }
- &__timestamp {
- color: $dark-text-color;
- }
- a,
- .username,
- .target {
- color: $secondary-text-color;
- text-decoration: none;
- font-weight: 500;
- }
- a {
- &:hover,
- &:focus,
- &:active {
- text-decoration: underline;
- }
- }
- }
- a.name-tag,
- .name-tag,
- a.inline-name-tag,
- .inline-name-tag {
- text-decoration: none;
- color: $secondary-text-color;
- .username {
- font-weight: 500;
- }
- &.suspended {
- .username {
- text-decoration: line-through;
- color: lighten($error-red, 12%);
- }
- .avatar {
- filter: grayscale(100%);
- opacity: 0.8;
- }
- }
- }
- a.name-tag,
- .name-tag {
- display: inline-flex;
- align-items: center;
- vertical-align: top;
- .avatar {
- display: block;
- margin: 0;
- margin-right: 5px;
- border-radius: 50%;
- }
- &.suspended {
- .avatar {
- filter: grayscale(100%);
- opacity: 0.8;
- }
- }
- }
- .speech-bubble {
- margin-bottom: 20px;
- border-left: 4px solid $ui-highlight-color;
- &.positive {
- border-left-color: $success-green;
- }
- &.negative {
- border-left-color: lighten($error-red, 12%);
- }
- &.warning {
- border-left-color: $gold-star;
- }
- &__bubble {
- padding: 16px;
- padding-left: 14px;
- font-size: 15px;
- line-height: 20px;
- border-radius: 4px 4px 4px 0;
- position: relative;
- font-weight: 500;
- a {
- color: $darker-text-color;
- }
- }
- &__owner {
- padding: 8px;
- padding-left: 12px;
- }
- time {
- color: $dark-text-color;
- }
- }
- .report-card {
- background: $ui-base-color;
- border-radius: 4px;
- margin-bottom: 20px;
- &__profile {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 15px;
- .account {
- padding: 0;
- border: 0;
- &__avatar-wrapper {
- margin-left: 0;
- }
- }
- &__stats {
- flex: 0 0 auto;
- font-weight: 500;
- color: $darker-text-color;
- text-transform: uppercase;
- text-align: right;
- a {
- color: inherit;
- text-decoration: none;
- &:focus,
- &:hover,
- &:active {
- color: lighten($darker-text-color, 8%);
- }
- }
- .red {
- color: $error-value-color;
- }
- }
- }
- &__summary {
- &__item {
- display: flex;
- justify-content: flex-start;
- border-top: 1px solid darken($ui-base-color, 4%);
- &:hover {
- background: lighten($ui-base-color, 2%);
- }
- &__reported-by,
- &__assigned {
- padding: 15px;
- flex: 0 0 auto;
- box-sizing: border-box;
- width: 150px;
- color: $darker-text-color;
- &,
- .username {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- }
- &__content {
- flex: 1 1 auto;
- max-width: calc(100% - 300px);
- &__icon {
- color: $dark-text-color;
- margin-right: 4px;
- font-weight: 500;
- }
- }
- &__content a {
- display: block;
- box-sizing: border-box;
- width: 100%;
- padding: 15px;
- text-decoration: none;
- color: $darker-text-color;
- }
- }
- }
- }
- .one-line {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .ellipsized-ip {
- display: inline-block;
- max-width: 120px;
- overflow: hidden;
- text-overflow: ellipsis;
- vertical-align: middle;
- }
- .admin-account-bio {
- display: flex;
- flex-wrap: wrap;
- margin: 0 -5px;
- margin-top: 20px;
- > div {
- box-sizing: border-box;
- padding: 0 5px;
- margin-bottom: 10px;
- flex: 1 0 50%;
- max-width: 100%;
- }
- .account__header__fields,
- .account__header__content {
- background: lighten($ui-base-color, 8%);
- border-radius: 4px;
- height: 100%;
- }
- .account__header__fields {
- margin: 0;
- border: 0;
- a {
- color: $highlight-text-color;
- }
- dl:first-child .verified {
- border-radius: 0 4px 0 0;
- }
- .verified a {
- color: $valid-value-color;
- }
- }
- .account__header__content {
- box-sizing: border-box;
- padding: 20px;
- color: $primary-text-color;
- }
- }
- .center-text {
- text-align: center;
- }
- .applications-list__item,
- .filters-list__item {
- padding: 15px 0;
- background: $ui-base-color;
- border: 1px solid lighten($ui-base-color, 4%);
- border-radius: 4px;
- margin-top: 15px;
- }
- .user-role {
- color: var(--user-role-accent);
- }
- .announcements-list,
- .filters-list {
- border: 1px solid lighten($ui-base-color, 4%);
- border-radius: 4px;
- &__item {
- padding: 15px 0;
- background: $ui-base-color;
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- &__title {
- padding: 0 15px;
- display: block;
- font-weight: 500;
- font-size: 18px;
- line-height: 1.5;
- color: $secondary-text-color;
- text-decoration: none;
- margin-bottom: 10px;
- .account-role {
- vertical-align: middle;
- }
- }
- a.announcements-list__item__title {
- &:hover,
- &:focus,
- &:active {
- color: $primary-text-color;
- }
- }
- &__meta {
- padding: 0 15px;
- color: $dark-text-color;
- a {
- color: inherit;
- text-decoration: underline;
- &:hover,
- &:focus,
- &:active {
- text-decoration: none;
- }
- }
- }
- &__action-bar {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- &__permissions {
- margin-top: 10px;
- }
- &:last-child {
- border-bottom: 0;
- }
- }
- }
- .filters-list__item {
- &__title {
- display: flex;
- justify-content: space-between;
- margin-bottom: 0;
- }
- &__permissions {
- margin-top: 0;
- margin-bottom: 10px;
- }
- .expiration {
- font-size: 13px;
- }
- &.expired {
- .expiration {
- color: lighten($error-red, 12%);
- }
- .permissions-list__item__icon {
- color: $dark-text-color;
- }
- }
- }
- .dashboard__counters.admin-account-counters {
- margin-top: 10px;
- }
- .account-badges {
- margin: -2px 0;
- }
- .retention {
- overflow: auto;
- > h4 {
- position: sticky;
- left: 0;
- }
- &__table {
- &__number {
- color: $secondary-text-color;
- padding: 10px;
- }
- &__date {
- white-space: nowrap;
- padding: 10px 0;
- text-align: left;
- min-width: 120px;
- &.retention__table__average {
- font-weight: 700;
- }
- }
- &__size {
- text-align: center;
- padding: 10px;
- }
- &__label {
- font-weight: 700;
- color: $darker-text-color;
- }
- &__box {
- box-sizing: border-box;
- background: $ui-highlight-color;
- padding: 10px;
- font-weight: 500;
- color: $primary-text-color;
- width: 52px;
- margin: 1px;
- @for $i from 0 through 10 {
- &--#{10 * $i} {
- background-color: rgba($ui-highlight-color, 1 * (math.div(max(1, $i), 10)));
- }
- }
- }
- }
- }
- .sparkline {
- display: block;
- text-decoration: none;
- background: lighten($ui-base-color, 4%);
- border-radius: 4px;
- padding: 0;
- position: relative;
- padding-bottom: 55px + 20px;
- overflow: hidden;
- &__value {
- display: flex;
- line-height: 33px;
- align-items: flex-end;
- padding: 20px;
- padding-bottom: 10px;
- &__total {
- display: block;
- margin-right: 10px;
- font-weight: 500;
- font-size: 28px;
- color: $primary-text-color;
- }
- &__change {
- display: block;
- font-weight: 500;
- font-size: 18px;
- color: $darker-text-color;
- margin-bottom: -3px;
- &.positive {
- color: $valid-value-color;
- }
- &.negative {
- color: $error-value-color;
- }
- }
- }
- &__label {
- padding: 0 20px;
- padding-bottom: 10px;
- text-transform: uppercase;
- color: $darker-text-color;
- font-weight: 500;
- }
- &__graph {
- position: absolute;
- bottom: 0;
- width: 100%;
- svg {
- display: block;
- margin: 0;
- }
- path:first-child {
- fill: rgba($highlight-text-color, 0.25) !important;
- fill-opacity: 100% !important;
- }
- path:last-child {
- stroke: lighten($highlight-text-color, 6%) !important;
- fill: none !important;
- }
- }
- }
- a.sparkline {
- &:hover,
- &:focus,
- &:active {
- background: lighten($ui-base-color, 6%);
- }
- }
- .skeleton {
- background-color: lighten($ui-base-color, 8%);
- background-image: linear-gradient(90deg, lighten($ui-base-color, 8%), lighten($ui-base-color, 12%), lighten($ui-base-color, 8%));
- background-size: 200px 100%;
- background-repeat: no-repeat;
- border-radius: 4px;
- display: inline-block;
- line-height: 1;
- width: 100%;
- animation: skeleton 1.2s ease-in-out infinite;
- }
- @keyframes skeleton {
- 0% {
- background-position: -200px 0;
- }
- 100% {
- background-position: calc(200px + 100%) 0;
- }
- }
- .dimension {
- table {
- width: 100%;
- }
- &__item {
- border-bottom: 1px solid lighten($ui-base-color, 4%);
- &__key {
- font-weight: 500;
- padding: 11px 10px;
- }
- &__value {
- text-align: right;
- color: $darker-text-color;
- padding: 11px 10px;
- }
- &__indicator {
- display: inline-block;
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: $ui-highlight-color;
- margin-right: 10px;
- @for $i from 0 through 10 {
- &--#{10 * $i} {
- background-color: rgba($ui-highlight-color, 1 * (math.div(max(1, $i), 10)));
- }
- }
- }
- &:last-child {
- border-bottom: 0;
- }
- }
- }
- .report-reason-selector {
- border-radius: 4px;
- background: $ui-base-color;
- margin-bottom: 20px;
- &__category {
- cursor: pointer;
- border-bottom: 1px solid darken($ui-base-color, 8%);
- &:last-child {
- border-bottom: 0;
- }
- &__label {
- padding: 15px;
- }
- &__rules {
- margin-left: 30px;
- }
- }
- &__rule {
- cursor: pointer;
- padding: 15px;
- }
- }
- .report-header {
- display: grid;
- grid-gap: 15px;
- grid-template-columns: minmax(0, 1fr) 300px;
- &__details {
- &__item {
- border-bottom: 1px solid lighten($ui-base-color, 8%);
- padding: 15px 0;
- &:last-child {
- border-bottom: 0;
- }
- &__header {
- font-weight: 600;
- padding: 4px 0;
- }
- }
- &--horizontal {
- display: grid;
- grid-auto-columns: minmax(0, 1fr);
- grid-auto-flow: column;
- .report-header__details__item {
- border-bottom: 0;
- }
- }
- }
- @media screen and (max-width: 930px) {
- grid-template-columns: minmax(0, 1fr);
- }
- }
- .account-card {
- background: $ui-base-color;
- border-radius: 4px;
- &__permalink {
- color: inherit;
- text-decoration: none;
- }
- &__header {
- padding: 4px;
- border-radius: 4px;
- height: 128px;
- img {
- display: block;
- margin: 0;
- width: 100%;
- height: 100%;
- object-fit: cover;
- background: darken($ui-base-color, 8%);
- }
- }
- &__title {
- margin-top: -(15px + 8px);
- display: flex;
- align-items: flex-end;
- &__avatar {
- padding: 14px;
- img,
- .account__avatar {
- display: block;
- margin: 0;
- width: 56px;
- height: 56px;
- background-color: darken($ui-base-color, 8%);
- border-radius: 8px;
- border: 1px solid $ui-base-color;
- }
- }
- .display-name {
- color: $darker-text-color;
- padding-bottom: 15px;
- font-size: 15px;
- line-height: 20px;
- bdi {
- display: block;
- color: $primary-text-color;
- font-weight: 700;
- }
- }
- }
- &__bio {
- padding: 0 15px;
- margin: 8px 0;
- overflow: hidden;
- text-overflow: ellipsis;
- word-wrap: break-word;
- max-height: 21px * 2;
- position: relative;
- font-size: 15px;
- line-height: 21px;
- &::after {
- display: block;
- content: "";
- width: 50px;
- height: 21px;
- position: absolute;
- bottom: 0;
- right: 15px;
- background: linear-gradient(to left, $ui-base-color, transparent);
- pointer-events: none;
- }
- a {
- color: $secondary-text-color;
- text-decoration: none;
- unicode-bidi: isolate;
- &:hover {
- text-decoration: underline;
- }
- &.mention {
- &:hover {
- text-decoration: none;
- span {
- text-decoration: underline;
- }
- }
- }
- }
- }
- &__actions {
- display: flex;
- justify-content: space-between;
- align-items: center;
- &__button {
- flex-shrink: 1;
- padding: 0 15px;
- overflow: hidden;
- .button {
- min-width: 0;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- max-width: 100%;
- }
- }
- }
- &__counters {
- flex: 1 1 auto;
- display: grid;
- grid-auto-columns: minmax(0, 1fr);
- grid-auto-flow: column;
- max-width: 340px;
- min-width: 65px * 3;
- &__item {
- padding: 15px 0;
- text-align: center;
- color: $primary-text-color;
- font-weight: 600;
- font-size: 15px;
- line-height: 21px;
- small {
- display: block;
- color: $darker-text-color;
- font-weight: 400;
- font-size: 13px;
- line-height: 18px;
- }
- }
- }
- }
- .report-notes {
- margin-bottom: 20px;
- &__item {
- background: $ui-base-color;
- position: relative;
- padding: 15px;
- padding-left: 15px * 2 + 40px;
- border-bottom: 1px solid darken($ui-base-color, 8%);
- &:first-child {
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- }
- &:last-child {
- border-bottom-left-radius: 4px;
- border-bottom-right-radius: 4px;
- border-bottom: 0;
- }
- &:hover {
- background-color: lighten($ui-base-color, 4%);
- }
- &__avatar {
- position: absolute;
- left: 15px;
- top: 15px;
- border-radius: 4px;
- width: 40px;
- height: 40px;
- }
- &__header {
- color: $darker-text-color;
- font-size: 15px;
- line-height: 20px;
- margin-bottom: 4px;
- .username {
- color: $primary-text-color;
- font-weight: 500;
- margin-right: 5px;
- a {
- color: inherit;
- text-decoration: none;
- &:hover,
- &:focus,
- &:active {
- text-decoration: underline;
- }
- }
- }
- time {
- margin-left: 5px;
- vertical-align: baseline;
- }
- }
- &__content {
- font-size: 15px;
- line-height: 20px;
- word-wrap: break-word;
- font-weight: 400;
- color: $primary-text-color;
- p {
- margin-bottom: 20px;
- white-space: pre-wrap;
- unicode-bidi: plaintext;
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- &__actions {
- position: absolute;
- top: 15px;
- right: 15px;
- text-align: right;
- }
- }
- }
- .report-actions {
- border: 1px solid darken($ui-base-color, 8%);
- &__item {
- display: flex;
- align-items: center;
- line-height: 18px;
- border-bottom: 1px solid darken($ui-base-color, 8%);
- &:last-child {
- border-bottom: 0;
- }
- &__button {
- box-sizing: border-box;
- flex: 0 0 auto;
- width: 200px;
- padding: 15px;
- padding-right: 0;
- .button {
- display: block;
- width: 100%;
- }
- }
- &__description {
- padding: 15px;
- font-size: 14px;
- color: $dark-text-color;
- }
- }
- @media screen and (max-width: 800px) {
- border: 0;
- &__item {
- flex-direction: column;
- border: 0;
- &__button {
- width: 100%;
- padding: 15px 0;
- }
- &__description {
- padding: 0;
- padding-bottom: 15px;
- }
- }
- }
- }
- .section-skip-link {
- float: right;
- a {
- color: $ui-highlight-color;
- text-decoration: none;
- &:hover,
- &:focus,
- &:active {
- text-decoration: underline;
- }
- }
- }
- .strike-card {
- padding: 15px;
- border-radius: 4px;
- background: $ui-base-color;
- font-size: 15px;
- line-height: 20px;
- word-wrap: break-word;
- font-weight: 400;
- color: $primary-text-color;
- box-sizing: border-box;
- min-height: 100%;
- p {
- margin-bottom: 20px;
- unicode-bidi: plaintext;
- &:last-child {
- margin-bottom: 0;
- }
- strong {
- font-weight: 700;
- }
- }
- &__rules {
- list-style: disc;
- padding-left: 15px;
- margin-bottom: 20px;
- color: $darker-text-color;
- &:last-child {
- margin-bottom: 0;
- }
- &__text {
- color: $primary-text-color;
- }
- }
- &__statuses-list {
- border-radius: 4px;
- border: 1px solid darken($ui-base-color, 8%);
- font-size: 13px;
- line-height: 18px;
- overflow: hidden;
- &__item {
- padding: 16px;
- background: lighten($ui-base-color, 2%);
- border-bottom: 1px solid darken($ui-base-color, 8%);
- &:last-child {
- border-bottom: 0;
- }
- &__meta {
- color: $darker-text-color;
- }
- a {
- color: inherit;
- text-decoration: none;
- &:hover,
- &:focus,
- &:active {
- text-decoration: underline;
- }
- }
- }
- }
- }
- .availability-indicator {
- display: flex;
- align-items: center;
- margin-bottom: 30px;
- font-size: 14px;
- line-height: 21px;
- &__hint {
- padding: 0 15px;
- }
- &__graphic {
- display: flex;
- margin: 0 -2px;
- &__item {
- display: block;
- flex: 0 0 auto;
- width: 4px;
- height: 21px;
- background: lighten($ui-base-color, 8%);
- margin: 0 2px;
- border-radius: 2px;
- &.positive {
- background: $valid-value-color;
- }
- &.negative {
- background: $error-value-color;
- }
- }
- }
- }
- .history {
- counter-reset: step 0;
- font-size: 15px;
- line-height: 22px;
- li {
- counter-increment: step 1;
- padding-left: 2.5rem;
- padding-bottom: 8px;
- position: relative;
- margin-bottom: 8px;
- &::before {
- position: absolute;
- content: counter(step);
- font-size: 0.625rem;
- font-weight: 500;
- left: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- width: calc(1.375rem + 1px);
- height: calc(1.375rem + 1px);
- background: $ui-base-color;
- border: 1px solid $highlight-text-color;
- color: $highlight-text-color;
- border-radius: 8px;
- }
- &::after {
- position: absolute;
- content: "";
- width: 1px;
- background: $highlight-text-color;
- bottom: 0;
- top: calc(1.875rem + 1px);
- left: 0.6875rem;
- }
- &:last-child {
- margin-bottom: 0;
- &::after {
- display: none;
- }
- }
- }
- &__entry {
- h5 {
- font-weight: 500;
- color: $primary-text-color;
- line-height: 25px;
- margin-bottom: 16px;
- }
- .status {
- border: 1px solid lighten($ui-base-color, 4%);
- background: $ui-base-color;
- border-radius: 4px;
- }
- }
- }
|