soapbox/app/styles/basics.scss

111 wiersze
1.9 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;
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
}
::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;
}
}
}
}
2022-09-30 18:35:26 +00:00
.emojione {
@apply w-5 h-5 -mt-[3px] inline;
}
// Virtuoso empty placeholder fix.
// https://gitlab.com/petyosi/soapbox-fe/-/commit/1e22c39934b60e5e186de804060ecfdf1955b506
div[data-viewport-type="window"] {
position: static !important;
}