abtmtr-comms/assets/style.css

213 lines
No EOL
3.9 KiB
CSS

@import url("/assets/styles/fade-in.css");
@import url("/assets/styles/fader.css");
@font-face {
font-family: "Red Hat Display";
src: url("/assets/fonts/RHD/RedHatDisplay.ttf");
}
@font-face {
font-family: "Red Hat Text";
src: url("/assets/fonts/RHT/RedHatText.ttf");
}
body {
--bg: 255, 255, 255;
background-color: white;
color: black;
font-family: "Red Hat Text";
}
html::after {
display: inline-block;
content: "";
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
image-rendering: pixelated;
background:
url("/assets/imgs/stylistic/dot.png");
background-position: 50% 0;
/* background-size: 3840px 1080px; */
mask-image: url("/assets/imgs/stylistic/bg_dust.png");
mask-repeat: repeat;
mask-composite: exclude;
mask-size: 960px 270px;
mask-position: 50% 0;
opacity: 0.125;
z-index: -1;
pointer-events: none;
user-select: none;
}
/* body::after {
display: inline-block;
content: "";
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100%;
image-rendering: pixelated;
background:
linear-gradient(to left, white, transparent calc(50% - 384px)),
linear-gradient(to right, white, transparent calc(50% - 384px)),
linear-gradient(to top, white 1rem, transparent 5rem),
url("/assets/imgs/stylistic/dot.png");
background-position: 50% 0;
/* background-size: 3840px 1080px; *
mask-image: url("/assets/imgs/stylistic/bg_dust.png");
mask-repeat: repeat;
mask-composite: exclude;
mask-size: 960px 270px;
mask-position: 50% 0;
opacity: 0.25;
z-index: -2;
pointer-events: none;
user-select: none;
} */
h1, h2, h3, h4, h5, h6 {
font-family: "Red Hat Display";
}
main .cakeView {
display: flex;
flex-direction: column;
justify-content: flex-end;
min-height: calc(100svh - 14rem);
/* margin-bottom: calc((100vh - 100svh) + 4rem); */
}
img:not(.screen) {
box-shadow: 0 0 8px 8px white;
}
/* @media (prefers-color-scheme: dark) {
main .cakeView section {
background-color: transparent;
box-shadow: none;
}
} */
main .cakeView h2 {
font-size: 3em;
/* word-wrap: break-word; */
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
@media (prefers-color-scheme: dark) {
body {
--bg: 0,0,0;
background-color: black;
color: white;
}
img:not(.screen),
body::after {
filter: invert(100%) hue-rotate(180deg);
}
html::after {
opacity: 0.2;
filter: invert(100%) hue-rotate(180deg);
}
}
.yesNoListView {
background-color: rgb(var(--bg));
border: 1px solid currentColor;
padding-top: 0;
padding-left: 1rem;
padding-right: 0;
padding-bottom: 0.5rem;
}
.yesNoListView img {
margin-top: 1rem;
}
input, textarea, button {
background-color: rgb(var(--bg));
}
input[type=submit],
input[type=reset],
input[type=button],
a,
button {
transition: 0.25s opacity;
}
.satisfiedBox {
margin: 2rem 0;
padding-inline-start: 1rem;
}
.satisfiedBox h2::before {
content: "↗ ";
margin-inline-start: -1em;
}
.satisfiedBox a,
.cta {
display: inline-block;
vertical-align: baseline;
transition: all 0.25s;
}
.satisfiedBox a:hover {
filter: invert(100%);
opacity: 1;
background-color: rgb(var(--bg));
text-decoration-color: transparent;
padding: 4px;
margin: -4px 0;
}
.cta:hover {
filter: invert(100%);
opacity: 1;
text-decoration-color: transparent;
padding: 8px 16px;
border-color: rgb(var(--bg));
}
.satisfiedBox a:active {
translate: 4px 0;
}
.cta:active {
translate: 0 4px;
}
.satisfiedBox a::after,
.cta::after {
display: inline-block;
content: ">>";
margin-inline-start: 0;
width: 0;
opacity: 0.5;
overflow: hidden;
vertical-align: top;
transition: width 0.25s, margin 0.25s;
}
.cta::after {
content: "↓";
}
.satisfiedBox a:hover::after,
.cta:hover::after {
margin-inline-start: 1ch;
width: 2ch;
}
.cta:hover::after {
width: 1ch;
}