Files
beall-greenhouses/assets/styles/main.css

162 lines
2.6 KiB
CSS
Raw Normal View History

2025-11-17 13:06:20 -08:00
:root {
color-scheme: light dark;
2026-01-06 12:39:25 -08:00
--color-concrete: #e5e0c7;
--color-concrete-alt: #d1cbab;
--color-green: #142b15;
--color-green-alt: #1a3b1b;
--color-teal-light: #4ba19e;
--color-teal-dark: #0c6a74;
2025-12-27 21:12:10 -08:00
2026-01-06 12:39:25 -08:00
--color-bg: light-dark(var(--color-concrete), var(--color-green));
--color-text: light-dark(var(--color-green), var(--color-concrete));
--color-bg-alt: light-dark(var(--color-concrete-alt), var(--color-green-alt));
--color-text-alt: light-dark(var(--color-green-alt), var(--color-concrete-alt));
--color-accent: light-dark(var(--color-teal-dark), var(--color-teal-light));
--color-accent-flipped: light-dark(var(--color-teal-light), var(--color-teal-dark));
2025-11-17 13:06:20 -08:00
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
2025-12-27 21:12:10 -08:00
background-color: var(--color-text);
color: var(--color-bg);
2025-11-18 08:23:24 -08:00
display: flex;
flex-direction: column;
font-family: sans-serif;
min-height: 100vh;
}
#content {
2025-12-27 21:12:10 -08:00
background-color: var(--color-bg);
color: var(--color-text);
2025-11-18 08:23:24 -08:00
width: 100%;
flex-grow: 1;
border-radius: 0 0 2rem 2rem;
padding: 1rem 0 2rem;
2025-11-18 08:23:24 -08:00
}
2026-01-02 07:42:15 -08:00
@media (prefers-color-scheme: light) {
.dark-mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.light-mode {
display: none;
}
}
2025-11-18 08:23:24 -08:00
header,
main {
width: 65%;
2026-01-02 16:32:21 -08:00
margin: 0 auto 1rem;
2025-11-18 08:23:24 -08:00
}
@media (max-width: 750px) {
2025-11-18 08:23:24 -08:00
header,
main {
2026-01-06 15:15:37 -08:00
width: 92%;
2025-11-18 08:23:24 -08:00
}
}
@media (min-width: 2000px) {
header,
main {
width: 45%;
}
}
img {
2025-11-18 08:23:24 -08:00
display: block;
max-width: 100%;
2025-11-17 13:45:58 -08:00
}
2026-01-02 07:42:15 -08:00
h1, h2, h3, h4, h5, h6 {
color: var(--color-text-alt);
}
2026-01-06 09:23:46 -08:00
h1,
h2 {
font-family: 'Bellota', sans-serif;
}
2025-11-18 08:23:24 -08:00
h1 {
text-align: center;
margin: 2rem 0;
2026-01-06 09:23:46 -08:00
font-size: 2.2rem;
2025-11-18 08:23:24 -08:00
}
h2 {
2025-11-18 12:07:53 -08:00
margin: 2rem 0 0;
2026-01-06 09:23:46 -08:00
font-size: 1.65rem;
}
h2,
h3 {
2025-12-27 21:12:10 -08:00
border-bottom: .25rem solid var(--color-accent);
2025-11-18 08:23:24 -08:00
}
a {
2025-12-27 21:12:10 -08:00
color: var(--color-text);
2025-11-18 08:23:24 -08:00
font-weight: bold;
text-decoration: underline;
text-decoration-style: solid;
text-decoration-thickness: .25rem;
2025-12-27 21:12:10 -08:00
text-decoration-color: var(--color-accent);
transition: text-decoration-thickness .5s;
margin: 0 .25rem;
border-radius: .1rem;
2025-12-27 22:08:02 -08:00
outline-offset: .1rem;
}
a:hover,
a:active {
text-decoration-thickness: .5rem;
}
2025-12-27 21:31:27 -08:00
a:focus-visible {
text-decoration: none;
2025-12-27 21:12:10 -08:00
outline: solid .25rem var(--color-accent);
2025-11-18 08:23:24 -08:00
}
2026-01-02 16:32:21 -08:00
main p,
2025-12-29 09:29:40 -08:00
main ul {
2026-01-02 08:13:51 -08:00
padding: .8rem;
2026-01-02 16:32:21 -08:00
line-height: 1.5rem;
2025-12-29 08:55:49 -08:00
}
main li {
margin-left: 1rem;
}
main li:not(:last-child) {
padding: 0 0 .5rem;
}
/* styles for sets of <p>s under an h2/3/etc vs alone */
.under-header,
.no-header {
background-color: var(--color-bg-alt);
}
.under-header {
border-radius: 0 0 1rem 1rem;
margin-left: 2.5rem;
}
@media (max-width: 750px) {
.under-header {
2025-11-18 08:23:24 -08:00
margin-left: 1.25rem;
}
2025-11-17 13:06:20 -08:00
}
2026-01-02 16:32:21 -08:00
.no-header {
border-radius: 1rem;
2026-01-02 16:35:43 -08:00
}