astro/examples/starter/public/style/home.css

54 lines
912 B
CSS
Raw Normal View History

2021-04-27 19:21:33 +00:00
:root {
2021-07-20 04:07:49 +00:00
--font-mono: Consolas, 'Andale Mono WT', 'Andale Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Liberation Mono',
'Nimbus Mono L', Monaco, 'Courier New', Courier, monospace;
--color-light: #f3f4f6;
2021-04-27 19:21:33 +00:00
}
@media (prefers-color-scheme: dark) {
2021-07-20 04:07:49 +00:00
:root {
--color-light: #1f2937;
}
2021-04-27 19:21:33 +00:00
}
a {
2021-07-20 04:07:49 +00:00
color: inherit;
2021-04-27 19:21:33 +00:00
}
header > div {
2021-07-20 04:07:49 +00:00
font-size: clamp(2rem, -0.4742rem + 6.1856vw, 2.75rem);
2021-04-27 19:21:33 +00:00
}
header > div {
2021-07-20 04:07:49 +00:00
display: flex;
flex-direction: column;
align-items: center;
2021-04-27 19:21:33 +00:00
}
header h1 {
2021-07-20 04:07:49 +00:00
font-size: 1em;
font-weight: 500;
2021-04-27 19:21:33 +00:00
}
header img {
2021-07-20 04:07:49 +00:00
width: 2em;
height: 2.667em;
2021-04-27 19:21:33 +00:00
}
h2 {
2021-07-20 04:07:49 +00:00
font-weight: 500;
font-size: clamp(1.5rem, 1rem + 1.25vw, 2rem);
2021-04-27 19:21:33 +00:00
}
.counter {
display: grid;
grid-auto-flow: column;
gap: 1em;
font-size: 2rem;
justify-content: center;
padding: 2rem 1rem;
}
.counter > pre {
text-align: center;
min-width: 3ch;
}