asi-calculator/app/globals.css

64 lines
1.1 KiB
CSS
Raw Normal View History

2024-03-29 12:36:05 +01:00
:root {
2024-03-30 01:32:46 +01:00
--max-width: 740px;
2024-03-29 22:54:07 +01:00
--border-radius: 0.3rem;
2024-03-29 12:36:05 +01:00
2024-03-29 22:54:07 +01:00
--foreground-rgb: 20, 20, 20;
--foreground-rgb-highlight: 0, 0, 0;
2024-03-29 12:36:05 +01:00
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
2024-03-29 22:54:07 +01:00
--foreground-rgb: 220, 220, 220;
--foreground-rgb-highlight: 255, 255, 255;
2024-03-29 12:36:05 +01:00
--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;
2024-03-30 01:32:46 +01:00
font-family: var(--font-firaCode);
text-rendering: optimizeLegibility;
2024-03-29 12:36:05 +01:00
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
2024-03-29 15:06:40 +01:00
line-height: 1.5;
2024-03-29 19:54:14 +01:00
min-height: 100vh;
2024-03-30 01:32:46 +01:00
display: flex;
flex-direction: column;
padding: 2rem;
2024-03-29 12:36:05 +01:00
}
a {
color: inherit;
text-decoration: none;
}
2024-03-30 01:32:46 +01:00
ul {
list-style: none;
padding: 0;
}
2024-03-29 12:36:05 +01:00
@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}