asi-calculator/app/globals.css

70 lines
1.2 KiB
CSS
Raw Normal View History

2024-03-29 12:36:05 +01:00
:root {
2024-03-30 21:56:36 +01:00
--max-width: 42rem;
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-30 23:10:36 +01:00
--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%
);
2024-03-29 12:36:05 +01:00
}
@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-30 23:10:36 +01:00
--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%
);
2024-03-29 12:36:05 +01:00
}
}
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
html,
body {
max-width: 100vw;
overflow-x: hidden;
2024-03-31 04:08:51 +02:00
font-family: var(--font-hanken-grotesk);
2024-03-30 01:32:46 +01:00
text-rendering: optimizeLegibility;
2024-03-29 12:36:05 +01:00
}
body {
color: rgb(var(--foreground-rgb));
2024-03-30 23:10:36 +01:00
background: var(--background-gradient) rgb(var(--background-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 18:45:12 +01:00
height: 100%;
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;
}
}