abtmtr-comms/assets/style.css

213 lines
3.9 KiB
CSS
Raw 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-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");
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;
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;
}
img:not(.screen),
body::after {
2024-10-06 07:20:01 +00:00
filter: invert(100%) hue-rotate(180deg);
}
2024-10-11 18:15:34 +00:00
html::after {
opacity: 0.2;
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-06 07:20:01 +00:00
}