abtmtr-v13/assets/style.css

184 lines
4.1 KiB
CSS
Raw Normal View History

2024-08-20 19:30:37 +00:00
@import url("./components/style.css");
@import url("./fonts/style.css");
:root {
--background: #fff;
--red: #f00;
2024-08-21 06:05:24 +00:00
--grey: #888;
2024-08-20 19:30:37 +00:00
--foreground: #000;
2024-08-21 06:05:24 +00:00
--inset: 2px;
--image-filter: none;
--tiles-diag-black: fixed url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAK0lEQVQIWy2KxwEAIBDCCPuvLKineVECcqugg+1OGGDKf2jumMLVQqX17A2jnQ4ME9JEhAAAAABJRU5ErkJggg==");
--tiles-diag-white: fixed url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAALUlEQVQIWzWLQQ4AIAyDiv7/yQ6nRk6UpFjKgDStXjm0m6rc8EbCBHQZR/5tA5ByF/hYTO80AAAAAElFTkSuQmCC");
--tiles-last-black: fixed url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAADElEQVQImWNgQAP/AQERAQD1y6SYAAAAAElFTkSuQmCC");
--tiles-last-white: fixed url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEElEQVQImWNgQAb/////DwAKCAP9R4CJSwAAAABJRU5ErkJggg==");
}
2024-08-27 07:58:49 +00:00
/* i never liked this */
/* @media (prefers-color-scheme: dark) {
2024-08-21 06:05:24 +00:00
:root {
--background: #000;
--red: #0ff;
--grey: #888;
--foreground: #fff;
--image-filter: invert(1);
--tiles-diag-white: fixed url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAK0lEQVQIWy2KxwEAIBDCCPuvLKineVECcqugg+1OGGDKf2jumMLVQqX17A2jnQ4ME9JEhAAAAABJRU5ErkJggg==");
--tiles-diag-black: fixed url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAALUlEQVQIWzWLQQ4AIAyDiv7/yQ6nRk6UpFjKgDStXjm0m6rc8EbCBHQZR/5tA5ByF/hYTO80AAAAAElFTkSuQmCC");
--tiles-last-white: fixed url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAADElEQVQImWNgQAP/AQERAQD1y6SYAAAAAElFTkSuQmCC");
--tiles-last-black: fixed url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEElEQVQImWNgQAb/////DwAKCAP9R4CJSwAAAABJRU5ErkJggg==");
}
2024-08-27 07:58:49 +00:00
} */
2024-08-20 19:30:37 +00:00
html {
height: 100%;
width: 100%;
}
body {
margin: 0;
2024-08-27 07:58:49 +00:00
padding: 0.5em 1em;
2024-08-20 19:30:37 +00:00
box-sizing: border-box;
min-height: 100%;
width: 100%;
2024-08-21 06:05:24 +00:00
background: var(--background) var(--tiles-last-black);
2024-08-20 19:30:37 +00:00
font-family: var(--font-text-legible);
}
2024-08-21 15:51:57 +00:00
main, div.fakemain {
2024-08-20 19:30:37 +00:00
text-align: start;
2024-08-22 17:13:32 +00:00
display: block;
2024-08-21 06:05:24 +00:00
width: 100%;
2024-08-20 19:30:37 +00:00
max-width: 768px;
box-sizing: border-box;
background-color: var(--background);
border: 1px solid currentColor;
color: var(--foreground);
2024-08-27 07:58:49 +00:00
padding: 0.5em;
margin: 1em auto;
margin-left: 4em;
2024-08-21 06:05:24 +00:00
box-shadow: 4px 4px 0 var(--foreground);
2024-08-20 19:30:37 +00:00
}
2024-08-27 07:58:49 +00:00
h1, h2, h3 {
font-size: 2em;
font-weight: normal;
}
2024-08-20 19:30:37 +00:00
section {
margin: 1em;
}
a {
2024-08-21 06:05:24 +00:00
color: var(--foreground);
}
2024-08-27 07:58:49 +00:00
a:hover {
opacity: 0.75;
}
2024-08-21 06:05:24 +00:00
img[src^="/assets"],
img[src^="/favicon.ico"] {
filter: var(--image-filter);
2024-08-20 19:30:37 +00:00
}
2024-08-21 06:05:24 +00:00
.tagline {
text-align: center;
}
hr {
border: none;
border-top: 1px solid currentColor;
color: inherit;
background-color: transparent;
}
.boxThing {
padding: 1rem;
2024-08-27 07:58:49 +00:00
margin: 1em 0.5em;
2024-08-21 06:05:24 +00:00
border: 1px solid currentColor;
background: var(--background);
box-sizing: border-box;
box-shadow: var(--inset) var(--inset) 0 var(--foreground);
h1 {
margin-bottom: 0.5em;
font-family: var(--font-text-top);
}
2024-08-27 07:58:49 +00:00
h1::before {
content: ">>";
margin-inline-end: 0.25em;
opacity: 0.5;
}
2024-08-21 06:05:24 +00:00
:first-child {
margin-top: 0;
}
:last-child {
margin-bottom: 0;
}
2024-08-21 15:51:57 +00:00
}
2024-08-27 07:58:49 +00:00
@property --hue {
syntax: '<number>';
initial-value: 0;
inherits: false;
}
@keyframes hue-shift {
0% {
--hue: 0;
}
50% {
--hue: 180;
}
100% {
--hue: 360;
}
}
2024-08-21 15:51:57 +00:00
.web-button {
position: relative;
filter: grayscale(1);
left: 0;
top: 0;
2024-08-27 07:58:49 +00:00
transition: all 0.0625s ease-out;
opacity: 1 !important;
display: inline-block;
width: 88px;
height: 31px;
line-height: 31px;
border: 1px solid black;
vertical-align: middle;
margin: 4px 0;
text-decoration: none;
/* text-overflow: ellipsis;
overflow: hidden;
padding: 0 8px;
box-sizing: border-box; */
2024-08-21 15:51:57 +00:00
}
.web-button:hover {
left: -4px;
top: -4px;
z-index: 999;
filter: grayscale(0);
2024-08-27 07:58:49 +00:00
animation: hue-shift 1s linear infinite;
--shadow: hsl(var(--hue), 50%, 75%);
box-shadow:
4px 4px 0 -1px var(--shadow),
3px 3px 0 -1px var(--shadow),
2px 2px 0 -1px var(--shadow),
1px 1px 0 -1px var(--shadow),
4px 4px 0 0px black,
3px 3px 0 0px black,
2px 2px 0 0px black,
1px 1px 0 0px black;
2024-08-21 06:05:24 +00:00
}