mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 09:23:16 +01:00
70 lines
1.2 KiB
CSS
70 lines
1.2 KiB
CSS
:root {
|
|
--max-width: 42rem;
|
|
--border-radius: 0.3rem;
|
|
|
|
--foreground-rgb: 20, 20, 20;
|
|
--foreground-rgb-highlight: 0, 0, 0;
|
|
--background-rgb: 255, 255, 255;
|
|
--background-gradient: radial-gradient(
|
|
circle at 30% 0%,
|
|
rgb(216, 225, 242) 0%,
|
|
rgb(176, 187, 240) 30%,
|
|
rgb(255, 255, 255) 100%
|
|
);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--foreground-rgb: 220, 220, 220;
|
|
--foreground-rgb-highlight: 255, 255, 255;
|
|
--background-rgb: 0, 0, 0;
|
|
--background-gradient: radial-gradient(
|
|
circle at 30% 0%,
|
|
rgb(27, 40, 62) 0%,
|
|
rgb(15, 18, 33) 30%,
|
|
rgb(0, 0, 0) 100%
|
|
);
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
max-width: 100vw;
|
|
overflow-x: hidden;
|
|
font-family: var(--font-firaCode);
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
body {
|
|
color: rgb(var(--foreground-rgb));
|
|
background: var(--background-gradient) rgb(var(--background-rgb));
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 2rem;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
html {
|
|
color-scheme: dark;
|
|
}
|
|
}
|