1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645 |
- @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: lighten($ui-base-color, 8%);
- height: 48px;
- &__logo {
- flex: 1 1 auto;
- a {
- display: inline-block;
- padding: 15px;
- }
- svg {
- fill: $primary-text-color;
- height: 20px;
- position: relative;
- bottom: -2px;
- }
- }
- &__icon {
- display: block;
- color: $darker-text-color;
- text-decoration: none;
- flex: 0 0 auto;
- font-size: 20px;
- padding: 15px;
- }
- a {
- &:hover,
- &:focus,
- &:active {
- background: lighten($ui-base-color, 12%);
- }
- }
- }
- .logo {
- display: block;
- margin: 40px auto;
- width: 100px;
- height: 100px;
- }
- @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: $ui-highlight-color;
- border-bottom: 0;
- border-radius: 0;
- &:hover {
- background-color: lighten($ui-highlight-color, 5%);
- }
- }
- }
- & > 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 {
- display: flex;
- padding-bottom: 36px;
- border-bottom: 1px solid lighten($ui-base-color, 8%);
- margin: -15px -15px 40px 0;
- flex-wrap: wrap;
- align-items: center;
- justify-content: space-between;
- & > * {
- margin-top: 15px;
- margin-right: 15px;
- }
- &-actions {
- display: inline-flex;
- & > :not(:first-child) {
- margin-left: 5px;
- }
- }
- @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: 400;
- @media screen and (max-width: $no-columns-breakpoint) {
- 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;
- }
- }
- 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;
- }
- }
- 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: lighten($ui-highlight-color, 8%);
- }
- 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 {
- padding: 15px 0;
- background: $ui-base-color;
- border: 1px solid lighten($ui-base-color, 4%);
- border-radius: 4px;
- margin-top: 15px;
- }
- .announcements-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;
- }
- &__action-bar {
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- &__permissions {
- margin-top: 10px;
- }
- &:last-child {
- border-bottom: 0;
- }
- }
- }
- .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: 1 !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;
- }
- }
- }
- }
|