soapbox/app/styles/basics.scss

141 wiersze
2.3 KiB
SCSS
Czysty Zwykły widok Historia

2022-03-21 18:09:01 +00:00
body {
@apply antialiased;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
2020-03-27 20:59:38 +00:00
}
2022-03-21 18:09:01 +00:00
body.with-modals {
@apply overflow-hidden;
2020-03-27 20:59:38 +00:00
}
body {
&.lighter {
2020-06-07 03:55:00 +00:00
background: var(--brand-color--med);
2020-03-27 20:59:38 +00:00
}
&.player {
text-align: center;
}
&.embed {
2020-06-07 03:55:00 +00:00
background: var(--brand-color--faint);
2020-03-27 20:59:38 +00:00
margin: 0;
padding-bottom: 0;
.container {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
}
&.admin {
2020-06-07 03:55:00 +00:00
background: var(--brand-color--med);
2020-03-27 20:59:38 +00:00
position: fixed;
width: 100%;
height: 100%;
padding: 0;
}
&.error {
position: absolute;
text-align: center;
2020-06-07 03:55:00 +00:00
color: var(--primary-text-color--faint);
background: var(--brand-color--med);
2020-03-27 20:59:38 +00:00
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;
}
}
}
}
2022-03-21 18:09:01 +00:00
// Note: this is needed for React HotKeys performance. Removing this
// will cause severe performance degradation on Safari.
div[tabindex="-1"]:focus {
outline: 0;
2020-03-27 20:59:38 +00:00
}
.visuallyhidden {
border: 0 !important;
2020-05-29 00:58:37 +00:00
clip: rect(1px, 1px, 1px, 1px) !important;
2020-03-27 20:59:38 +00:00
font-size: 1px !important;
height: 1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
}
::selection {
2022-03-21 18:09:01 +00:00
@apply bg-primary-600 text-white;
2020-03-27 20:59:38 +00:00
}
2020-06-03 02:11:01 +00:00
noscript {
text-align: center;
img {
width: 200px;
opacity: 0.5;
animation: flicker 4s infinite;
}
div {
font-size: 14px;
margin: 30px auto;
2020-06-07 03:55:00 +00:00
color: var(--primary-text-color--faint);
2020-06-03 02:11:01 +00:00
max-width: 400px;
a {
color: var(--highlight-text-color);
text-decoration: underline;
&:hover {
text-decoration: none;
}
}
}
}
.floating-link {
width: 100%;
height: 100%;
top: 0;
right: 0;
bottom: 0;
left: 0;
position: absolute;
z-index: 201;
2020-08-25 16:33:51 +00:00
background: transparent;
border: 0;
margin: 0;
padding: 0;
}
2021-07-01 02:39:27 +00:00
.greentext {
color: #789922;
}