2018-09-20 16:21:58 +00:00
|
|
|
@function hex-color($color) {
|
|
|
|
@if type-of($color) == 'color' {
|
|
|
|
$color: str-slice(ie-hex-str($color), 4);
|
|
|
|
}
|
|
|
|
@return '%23' + unquote($color)
|
|
|
|
}
|
|
|
|
|
2017-04-12 14:01:59 +00:00
|
|
|
body {
|
2018-10-01 11:13:58 +00:00
|
|
|
font-family: $font-sans-serif, sans-serif;
|
2019-07-19 07:25:22 +00:00
|
|
|
background: darken($ui-base-color, 7%);
|
2017-04-12 14:01:59 +00:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 18px;
|
|
|
|
font-weight: 400;
|
2017-05-08 13:57:49 +00:00
|
|
|
color: $primary-text-color;
|
2017-04-12 14:01:59 +00:00
|
|
|
text-rendering: optimizelegibility;
|
|
|
|
font-feature-settings: "kern";
|
|
|
|
text-size-adjust: none;
|
2017-07-06 19:26:07 +00:00
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
2017-04-12 14:01:59 +00:00
|
|
|
|
2017-09-01 14:13:31 +00:00
|
|
|
&.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
|
2018-10-01 11:13:58 +00:00
|
|
|
// $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;
|
2017-08-24 17:28:49 +00:00
|
|
|
}
|
|
|
|
|
2017-10-11 19:18:46 +00:00
|
|
|
&.app-body {
|
2017-04-12 14:01:59 +00:00
|
|
|
padding: 0;
|
2019-07-19 07:25:22 +00:00
|
|
|
|
|
|
|
&.layout-single-column {
|
|
|
|
height: auto;
|
2019-08-01 10:26:58 +00:00
|
|
|
min-height: 100vh;
|
2019-07-19 07:25:22 +00:00
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.layout-multiple-columns {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2018-07-31 21:04:09 +00:00
|
|
|
|
|
|
|
&.with-modals--active {
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
2017-04-12 14:01:59 +00:00
|
|
|
}
|
|
|
|
|
2018-07-31 21:04:09 +00:00
|
|
|
&.lighter {
|
|
|
|
background: $ui-base-color;
|
2017-07-11 13:27:59 +00:00
|
|
|
}
|
|
|
|
|
2018-07-31 21:04:09 +00:00
|
|
|
&.with-modals {
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
|
|
|
&--active {
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
2017-10-07 18:00:35 +00:00
|
|
|
}
|
|
|
|
|
2017-04-12 14:01:59 +00:00
|
|
|
&.embed {
|
2018-07-31 20:54:18 +00:00
|
|
|
background: lighten($ui-base-color, 4%);
|
2017-04-12 14:01:59 +00:00
|
|
|
margin: 0;
|
2017-09-09 14:23:44 +00:00
|
|
|
padding-bottom: 0;
|
2017-04-12 14:01:59 +00:00
|
|
|
|
|
|
|
.container {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.admin {
|
2017-05-08 13:57:49 +00:00
|
|
|
background: darken($ui-base-color, 4%);
|
2017-04-12 14:01:59 +00:00
|
|
|
padding: 0;
|
|
|
|
}
|
2017-09-25 02:04:04 +00:00
|
|
|
|
|
|
|
&.error {
|
2017-10-11 19:18:46 +00:00
|
|
|
position: absolute;
|
2017-09-25 02:04:04 +00:00
|
|
|
text-align: center;
|
2018-05-05 15:58:46 +00:00
|
|
|
color: $darker-text-color;
|
2017-10-11 19:18:46 +00:00
|
|
|
background: $ui-base-color;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 0;
|
2017-10-09 18:51:36 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2017-09-25 02:04:04 +00:00
|
|
|
|
2017-10-11 19:18:46 +00:00
|
|
|
.dialog {
|
|
|
|
vertical-align: middle;
|
|
|
|
margin: 20px;
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
max-width: 470px;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
margin-top: -120px;
|
|
|
|
}
|
2017-09-25 02:04:04 +00:00
|
|
|
|
2017-10-11 19:18:46 +00:00
|
|
|
h1 {
|
|
|
|
font-size: 20px;
|
|
|
|
line-height: 28px;
|
|
|
|
font-weight: 400;
|
|
|
|
}
|
2017-09-25 02:04:04 +00:00
|
|
|
}
|
|
|
|
}
|
2017-04-12 14:01:59 +00:00
|
|
|
}
|
|
|
|
|
2017-05-25 19:15:41 +00:00
|
|
|
button {
|
|
|
|
font-family: inherit;
|
2017-05-26 22:53:25 +00:00
|
|
|
cursor: pointer;
|
2017-05-25 19:15:41 +00:00
|
|
|
|
2017-05-26 22:53:25 +00:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
2017-04-12 14:01:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.app-holder {
|
2017-10-05 23:07:59 +00:00
|
|
|
&,
|
|
|
|
& > div {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-02-23 18:22:58 +00:00
|
|
|
outline: 0 !important;
|
2017-10-05 23:07:59 +00:00
|
|
|
}
|
2017-04-12 14:01:59 +00:00
|
|
|
}
|
2019-08-15 18:28:56 +00:00
|
|
|
|
|
|
|
.layout-single-column .app-holder {
|
|
|
|
&,
|
|
|
|
& > div {
|
|
|
|
min-height: 100vh;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.layout-multiple-columns .app-holder {
|
|
|
|
&,
|
|
|
|
& > div {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
2020-04-28 07:44:17 +00:00
|
|
|
|
2020-04-28 08:16:55 +00:00
|
|
|
.logo-resources {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-04-28 07:44:17 +00:00
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|