abtmtr-comms/assets/style.css

240 lines
4.3 KiB
CSS
Raw Permalink Normal View History

2024-10-06 07:20:01 +00:00
@import url("/assets/styles/fade-in.css");
@import url("/assets/styles/fader.css");
2024-10-06 07:20:01 +00:00
@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;
2024-10-06 07:20:01 +00:00
background-color: white;
color: black;
font-family: "Red Hat Text";
}
2024-10-12 14:13:24 +00:00
@keyframes move-mask {
0% {
mask-position: 0vw 100vw, 100vw 0vw;
}
100% {
mask-position: 100vw 0vw, 0vw 100vw;
}
}
2024-10-11 18:15:34 +00:00
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");
2024-10-12 14:13:24 +00:00
/* background-color: black; */
2024-10-11 18:15:34 +00:00
background-position: 50% 0;
/* background-size: 3840px 1080px; */
2024-10-12 14:13:24 +00:00
mask-image: url("/assets/imgs/stylistic/bg_dust.png"), url("/assets/imgs/stylistic/bg_dust.png");
2024-10-11 18:15:34 +00:00
mask-repeat: repeat;
mask-composite: exclude;
2024-10-12 14:13:24 +00:00
mask-size: 1920px 540px;
2024-10-11 18:15:34 +00:00
mask-position: 50% 0;
2024-10-12 14:13:24 +00:00
animation: move-mask 250s infinite linear;
2024-10-11 18:15:34 +00:00
opacity: 0.125;
z-index: -1;
pointer-events: none;
user-select: none;
}
/* body::after {
display: inline-block;
content: "";
position: absolute;
left: 0;
top: 0;
2024-10-11 18:15:34 +00:00
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),
2024-10-11 18:15:34 +00:00
url("/assets/imgs/stylistic/dot.png");
background-position: 50% 0;
2024-10-11 18:15:34 +00:00
/* 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;
2024-10-11 18:15:34 +00:00
z-index: -2;
pointer-events: none;
user-select: none;
2024-10-11 18:15:34 +00:00
} */
2024-10-06 07:20:01 +00:00
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); */
}
2024-10-11 18:15:34 +00:00
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;
}
2024-10-06 07:20:01 +00:00
@media (prefers-color-scheme: dark) {
body {
--bg: 0,0,0;
2024-10-06 07:20:01 +00:00
background-color: black;
color: white;
}
2024-10-12 14:13:24 +00:00
img:not(.screen) {
2024-10-06 07:20:01 +00:00
filter: invert(100%) hue-rotate(180deg);
}
2024-10-11 18:15:34 +00:00
html::after {
filter: invert(100%) hue-rotate(180deg);
}
2024-10-06 07:20:01 +00:00
}
.yesNoListView {
2024-10-11 18:15:34 +00:00
background-color: rgb(var(--bg));
2024-10-06 07:20:01 +00:00
border: 1px solid currentColor;
padding-top: 0;
padding-left: 1rem;
padding-right: 0;
padding-bottom: 0.5rem;
}
.yesNoListView img {
margin-top: 1rem;
}
2024-10-11 18:15:34 +00:00
input, textarea, button {
background-color: rgb(var(--bg));
}
2024-10-06 07:20:01 +00:00
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%);
2024-10-11 17:55:04 +00:00
opacity: 1;
background-color: rgb(var(--bg));
text-decoration-color: transparent;
padding: 4px;
margin: -4px 0;
}
.cta:hover {
filter: invert(100%);
2024-10-11 17:55:04 +00:00
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;
2024-10-12 14:13:24 +00:00
}
@media (prefers-reduced-motion) {
html::after {
animation: none;
mask-image: url("/assets/imgs/stylistic/bg_dust.png");
}
*,
*::after,
*::before {
transition: none !important;
animation: none !important;
}
body::before {
display: none;
}
2024-10-06 07:20:01 +00:00
}