asi-calculator/app/globals.css

64 lines
1.1 KiB
CSS

:root {
--max-width: 680px;
--border-radius: 0.3rem;
--foreground-rgb: 20, 20, 20;
--foreground-rgb-highlight: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 220, 220, 220;
--foreground-rgb-highlight: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
* {
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: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
line-height: 1.5;
min-height: 100vh;
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;
}
}