slonksite/style.css

246 lines
3.8 KiB
CSS
Raw Normal View History

2024-02-29 10:55:51 +03:00
/* colors */
:root {
--base: #1e1e2e;
--text: #cdd6f4;
--crust: #11111b;
--surface0: #313244;
--subtext0: #a6adc8;
--subtext1: #bac2de;
--pink: #f5c2e7;
--rosewater: #f5e0dc;
--blue: #89b4fa;
--mauve: #cba6f7;
2024-09-30 21:18:52 +03:00
color-scheme: dark;
2024-02-29 10:55:51 +03:00
}
@media (prefers-color-scheme: light) {
:root {
--base: #eff1f5;
--text: #4c4f69;
--crust: #dce0e8;
--surface0: #ccd0da;
--subtext0: #6c6f85;
--subtext1: #5c5f77;
--pink: #ea76cb;
--rosewater: #dc8a78;
--blue: #1e66f5;
--mauve: #8839ef;
2024-09-30 21:18:52 +03:00
color-scheme: light;
2024-02-29 10:55:51 +03:00
}
}
2024-04-19 17:03:25 +03:00
:root,
code {
2024-08-17 19:07:14 +03:00
font-family: "Hack", "Hack Nerd Font", "JetBrains Mono", "JetBrainsMono Nerd Font", monospace,
sans-serif;
2024-04-19 17:03:25 +03:00
}
:root {
2024-02-29 10:55:51 +03:00
scrollbar-width: none;
background-color: var(--base);
color: var(--text);
2024-04-19 17:22:33 +03:00
accent-color: var(--pink);
2024-02-29 10:55:51 +03:00
}
body {
margin: 0;
padding: 0;
background-color: var(--base);
}
main {
padding: 1em;
background-color: var(--base);
}
body > main > h1:first-child {
margin-top: 0;
}
a {
color: var(--pink);
}
a:hover {
color: var(--rosewater);
}
a:active {
color: var(--blue);
}
a:visited {
color: var(--mauve);
}
progress {
width: 100%;
border: 2px solid;
background-color: var(--base);
color: var(--pink);
2024-04-19 17:22:33 +03:00
accent-color: var(--pink);
2024-08-17 19:07:14 +03:00
border-color: var(--text);
2024-02-29 10:55:51 +03:00
}
::-moz-progress-bar,
2024-04-19 17:22:33 +03:00
::-webkit-progress-value {
background-color: var(--pink) !important;
}
2024-02-29 10:55:51 +03:00
::-webkit-progress-bar {
2024-04-19 17:22:33 +03:00
background-color: var(--base);
width: 100%;
2024-02-29 10:55:51 +03:00
}
2024-05-18 13:04:13 +03:00
fieldset {
2024-08-17 19:07:14 +03:00
margin-bottom: 1em;
2024-05-18 13:04:13 +03:00
border-color: var(--text);
}
2024-02-29 10:55:51 +03:00
footer {
text-align: end;
font-size: small;
opacity: 50%;
}
code {
2024-04-19 17:03:25 +03:00
padding: 0.15em 0.3em;
overflow-wrap: break-word;
word-break: break-all;
white-space: pre-wrap;
2024-02-29 10:55:51 +03:00
background-color: var(--surface0);
color: var(--subtext1);
}
2024-04-19 17:03:25 +03:00
pre > code {
border: 2px solid var(--surface0);
padding: 1.25em 1.5em;
display: block;
background-color: var(--base);
color: var(--text);
}
2024-02-29 10:55:51 +03:00
legend {
font-weight: 900;
}
2024-04-19 17:03:25 +03:00
.projects-list li details[open] {
margin: 1em auto;
}
2024-02-29 10:55:51 +03:00
summary:hover,
summary:active,
details[open] > summary {
2024-04-19 17:03:25 +03:00
font-weight: bold;
2024-02-29 10:55:51 +03:00
}
summary::after {
content: " (click to expand)";
opacity: 50%;
font-size: smaller;
font-weight: lighter;
}
details[open] > summary::after {
content: " (click to collapse)";
}
2024-07-26 01:05:50 +03:00
div.buttons a {
2024-02-29 10:55:51 +03:00
font-size: 0;
2024-07-26 01:05:50 +03:00
}
div.buttons a > img {
image-rendering: crisp-edges;
image-rendering: pixelated;
object-fit: contain;
width: 88px;
height: 31px;
2024-02-29 10:55:51 +03:00
}
2024-04-19 17:03:25 +03:00
table {
word-break: break-word;
}
td:first-child {
2024-02-29 10:55:51 +03:00
font-weight: bold;
word-break: keep-all;
2024-04-19 17:03:25 +03:00
vertical-align: top;
2024-02-29 10:55:51 +03:00
}
td:nth-child(2) {
2024-08-17 19:07:14 +03:00
padding-left: 1em;
2024-02-29 10:55:51 +03:00
word-break: break-all;
}
2024-07-26 00:59:50 +03:00
.webring a {
text-decoration: none;
}
2024-08-17 19:07:14 +03:00
blockquote {
margin-left: 1em;
padding-left: 1.5em;
border-left: 0.5em solid;
border-color: var(--rosewater);
}
2024-02-29 10:55:51 +03:00
@media (min-width: 956px) {
:root {
--target-ratio: 0.7; /* 669px - 1344x */
--width: min(100% * var(--target-ratio), 1920px * var(--target-ratio));
--padding: 4em;
--padded-width: calc(var(--width) - var(--padding) * 2);
}
body {
padding: 4em 0;
2024-04-19 17:03:25 +03:00
min-height: calc(100vh - 8em);
2024-02-29 10:55:51 +03:00
background: var(--crust);
background: linear-gradient(
90deg,
var(--base) 0%,
var(--crust) calc((100% - var(--width)) / 2),
var(--crust) calc(50% + var(--width) / 2),
var(--base) 100%
);
}
body > * {
margin: auto;
padding: var(--padding);
width: var(--padded-width);
}
body > footer {
padding: initial;
width: var(--width);
}
}
2024-06-04 18:07:36 +03:00
/* WARNING: freaky mode */
:root:has(#freaky:checked)::after {
content: "";
2024-07-17 23:28:53 +03:00
z-index: 1000;
2024-06-04 18:07:36 +03:00
position: fixed;
top: 0;
left: 0;
margin: 0;
width: 100vw;
height: 100vh;
2024-07-17 23:28:53 +03:00
background: rgb(154, 65, 40);
2024-08-17 19:07:14 +03:00
background: linear-gradient(
215deg,
rgba(154, 65, 40, 1) 0%,
rgba(116, 36, 94, 1) 50%,
rgba(59, 56, 132, 1) 100%
);
2024-06-04 18:07:36 +03:00
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
opacity: 0.6;
pointer-events: none;
}