abtmtr-comms/assets/style.css

178 lines
3.2 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";
}
body::after {
display: inline-block;
content: "";
position: absolute;
left: 0;
top: 0;
width: 100%;
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/bg_pattern.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: -1;
pointer-events: none;
user-select: none;
}
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); */
}
main .cakeView section {
background-color: rgba(var(--bg), 1);
box-shadow: 0px 0px 4rem 4rem rgba(var(--bg), 1);
}
/* @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);
}
}
.yesNoListView {
border: 1px solid currentColor;
padding-top: 0;
padding-left: 1rem;
padding-right: 0;
padding-bottom: 0.5rem;
}
.yesNoListView img {
margin-top: 1rem;
}
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;
background-color: rgb(var(--bg));
transition: all 0.25s;
}
.satisfiedBox a:hover {
filter: invert(100%);
text-decoration-color: transparent;
padding: 4px;
margin: -4px 0;
}
.cta:hover {
filter: invert(100%);
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
}