123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- @function hex-color($color) {
- @if type-of($color) == 'color' {
- $color: str-slice(ie-hex-str($color), 4);
- }
- @return '%23' + unquote($color);
- }
- body {
- font-family: $font-sans-serif, sans-serif;
- background: darken($ui-base-color, 7%);
- font-size: 13px;
- line-height: 18px;
- font-weight: 400;
- color: $primary-text-color;
- text-rendering: optimizelegibility;
- font-feature-settings: "kern";
- text-size-adjust: none;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0%);
- -webkit-tap-highlight-color: transparent;
- &.system-font {
- // system-ui => standard property (Chrome/Android WebView 56+, Opera 43+, Safari 11+)
- // -apple-system => Safari <11 specific
- // BlinkMacSystemFont => Chrome <56 on macOS specific
- // Segoe UI => Windows 7/8/10
- // Oxygen => KDE
- // Ubuntu => Unity/Ubuntu
- // Cantarell => GNOME
- // Fira Sans => Firefox OS
- // Droid Sans => Older Androids (<4.0)
- // Helvetica Neue => Older macOS <10.11
- // $font-sans-serif => web-font (Roboto) fallback and newer Androids (>=4.0)
- font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", $font-sans-serif, sans-serif;
- }
- &.app-body {
- padding: 0;
- &.layout-single-column {
- height: auto;
- min-height: 100vh;
- overflow-y: scroll;
- }
- &.layout-multiple-columns {
- position: absolute;
- width: 100%;
- height: 100%;
- }
- &.with-modals--active {
- overflow-y: hidden;
- }
- }
- &.lighter {
- background: $ui-base-color;
- }
- &.with-modals {
- overflow-x: hidden;
- overflow-y: scroll;
- &--active {
- overflow-y: hidden;
- }
- }
- &.player {
- padding: 0;
- margin: 0;
- position: absolute;
- width: 100%;
- height: 100%;
- overflow: hidden;
- & > div {
- height: 100%;
- }
- .video-player video {
- width: 100%;
- height: 100%;
- max-height: 100vh;
- }
- .media-gallery {
- margin-top: 0;
- height: 100% !important;
- border-radius: 0;
- }
- .media-gallery__item {
- border-radius: 0;
- }
- }
- &.embed {
- background: lighten($ui-base-color, 4%);
- margin: 0;
- padding-bottom: 0;
- .container {
- position: absolute;
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- }
- &.admin {
- background: darken($ui-base-color, 4%);
- padding: 0;
- }
- &.error {
- position: absolute;
- text-align: center;
- color: $darker-text-color;
- background: $ui-base-color;
- width: 100%;
- height: 100%;
- padding: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- .dialog {
- vertical-align: middle;
- margin: 20px;
- &__illustration {
- img {
- display: block;
- max-width: 470px;
- width: 100%;
- height: auto;
- margin-top: -120px;
- }
- }
- h1 {
- font-size: 20px;
- line-height: 28px;
- font-weight: 400;
- }
- }
- }
- }
- button {
- font-family: inherit;
- cursor: pointer;
- &:focus {
- outline: none;
- }
- }
- .app-holder {
- &,
- & > div,
- & > noscript {
- display: flex;
- width: 100%;
- align-items: center;
- justify-content: center;
- outline: 0 !important;
- }
- & > noscript {
- height: 100vh;
- }
- }
- .layout-single-column .app-holder {
- &,
- & > div {
- min-height: 100vh;
- }
- }
- .layout-multiple-columns .app-holder {
- &,
- & > div {
- height: 100%;
- }
- }
- .error-boundary,
- .app-holder noscript {
- flex-direction: column;
- font-size: 16px;
- font-weight: 400;
- line-height: 1.7;
- color: lighten($error-red, 4%);
- text-align: center;
- & > div {
- max-width: 500px;
- }
- p {
- margin-bottom: 0.85em;
- &:last-child {
- margin-bottom: 0;
- }
- }
- a {
- color: $highlight-text-color;
- &:hover,
- &:focus,
- &:active {
- text-decoration: none;
- }
- }
- &__footer {
- color: $dark-text-color;
- font-size: 13px;
- a {
- color: $dark-text-color;
- }
- }
- button {
- display: inline;
- border: 0;
- background: transparent;
- color: $dark-text-color;
- font: inherit;
- padding: 0;
- margin: 0;
- line-height: inherit;
- cursor: pointer;
- outline: 0;
- transition: color 300ms linear;
- text-decoration: underline;
- &:hover,
- &:focus,
- &:active {
- text-decoration: none;
- }
- &.copied {
- color: $valid-value-color;
- transition: none;
- }
- }
- }
- .logo-resources {
- // Not using display: none because of https://bugs.chromium.org/p/chromium/issues/detail?id=258029
- visibility: hidden;
- user-select: none;
- pointer-events: none;
- width: 0;
- height: 0;
- overflow: hidden;
- position: absolute;
- top: 0;
- left: 0;
- z-index: -1000;
- }
- // NoScript adds a __ns__pop2top class to the full ancestry of blocked elements,
- // to set the z-index to a high value, which messes with modals and dropdowns.
- // Blocked elements can in theory only be media and frames/embeds, so they
- // should only appear in statuses, under divs and articles.
- body,
- div,
- article {
- .__ns__pop2top {
- z-index: unset !important;
- }
- }
|