bigbuffet-rw/app/styles/basics.scss

109 lines
1.7 KiB
SCSS
Raw Normal View History

2022-03-21 11:09:01 -07:00
body {
@apply antialiased;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
2020-03-27 13:59:38 -07:00
}
2022-03-21 11:09:01 -07:00
body.with-modals {
@apply overflow-hidden;
2020-03-27 13:59:38 -07:00
}
body {
&.lighter {
2020-06-06 20:55:00 -07:00
background: var(--brand-color--med);
2020-03-27 13:59:38 -07:00
}
&.player {
text-align: center;
}
&.embed {
2020-06-06 20:55:00 -07:00
background: var(--brand-color--faint);
2020-03-27 13:59:38 -07:00
margin: 0;
padding-bottom: 0;
.container {
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
}
}
&.admin {
2020-06-06 20:55:00 -07:00
background: var(--brand-color--med);
2020-03-27 13:59:38 -07:00
position: fixed;
width: 100%;
height: 100%;
padding: 0;
}
&.error {
position: absolute;
text-align: center;
2020-06-06 20:55:00 -07:00
color: var(--primary-text-color--faint);
background: var(--brand-color--med);
2020-03-27 13:59:38 -07: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 11:09:01 -07: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 13:59:38 -07:00
}
::selection {
2022-03-21 11:09:01 -07:00
@apply bg-primary-600 text-white;
2020-03-27 13:59:38 -07:00
}
2020-06-02 19:11:01 -07:00
noscript {
text-align: center;
img {
width: 200px;
opacity: 0.5;
animation: flicker 4s infinite;
}
div {
font-size: 14px;
margin: 30px auto;
2020-06-06 20:55:00 -07:00
color: var(--primary-text-color--faint);
2020-06-02 19:11:01 -07:00
max-width: 400px;
a {
color: var(--highlight-text-color);
text-decoration: underline;
&:hover {
text-decoration: none;
}
}
}
}
.floating-link {
2022-06-04 15:10:41 -07:00
@apply w-full h-full inset-0 absolute z-10;
}
2021-06-30 19:39:27 -07:00
.greentext {
color: #789922;
}