217 lines
4 KiB
CSS
217 lines
4 KiB
CSS
:root {
|
|
/*
|
|
Color schemes
|
|
*/
|
|
color-scheme: light dark;
|
|
--prickly-pear-yellow: #735f02;
|
|
--eclipse-gray: #3a3a3a;
|
|
--pumpkin-olive: #59521c;
|
|
--manhattan-steel-blue: #224553;
|
|
--pine-green: #36581d;
|
|
--brown-swiss-calf-brown: #543c21;
|
|
--ear-tag-red: #67160e;
|
|
--flaming-gorge-blue: #1b3e5a;
|
|
--hayyard-green: #355322;
|
|
--coeurdalene-purple: #1b245a;
|
|
--brown-swiss-cow-brown: #563c1f;
|
|
--buffalo-blue: #0b496a;
|
|
--saddle-blue: #104165;
|
|
--brown-swiss-gray: #eaddca;
|
|
--lavender-purple: #d9c1f6;
|
|
|
|
/*
|
|
Fonts
|
|
*/
|
|
--font-family-antique: Superclarendon, "Bookman Old Style", "URW Bookman",
|
|
"URW Bookman L", "Georgia Pro", Georgia, serif;
|
|
--font-family-slab-serif: Rockwell, "Rockwell Nova", "Roboto Slab",
|
|
"DejaVu Serif", "Sitka Small", serif;
|
|
--font-family-system-ui: system-ui, sans-serif;
|
|
}
|
|
|
|
/*
|
|
Default element styles (for small screens)
|
|
*/
|
|
|
|
html {
|
|
background-color: light-dark(var(--brown-swiss-gray), var(--eclipse-gray));
|
|
font-family: var(--font-family-slab-serif);
|
|
}
|
|
|
|
a {
|
|
color: light-dark(var(--saddle-blue), var(--lavender-purple));
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
align-items: center;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
flex-direction: row;
|
|
overflow: scroll;
|
|
padding-bottom: 1rem;
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
nav a {
|
|
color: light-dark(var(--brown-swiss-gray), var(--manhattan-steel-blue));
|
|
background-color: light-dark(
|
|
var(--manhattan-steel-blue),
|
|
var(--brown-swiss-gray)
|
|
);
|
|
border-radius: 0.05rem;
|
|
border-style: outset;
|
|
border-width: 0.2rem;
|
|
border-color: light-dark(
|
|
var(--manhattan-steel-blue),
|
|
var(--brown-swiss-gray)
|
|
);
|
|
min-width: 7.5rem;
|
|
max-width: 7.5rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 0.2rem;
|
|
text-decoration: none;
|
|
padding: 0 0.2rem;
|
|
font-family: var(--font-family-system-ui);
|
|
}
|
|
|
|
nav a:active {
|
|
border-style: inset;
|
|
}
|
|
|
|
nav a:hover {
|
|
background-color: light-dark(
|
|
var(--buffalo-blue),
|
|
color-mix(in srgb, var(--prickly-pear-yellow), var(--brown-swiss-gray) 75%)
|
|
);
|
|
}
|
|
|
|
figure {
|
|
border-color: light-dark(var(--eclipse-gray), var(--brown-swiss-gray));
|
|
border-width: 1.5pt;
|
|
border-style: inset;
|
|
padding: 1.25pt;
|
|
}
|
|
|
|
blockquote {
|
|
background: linear-gradient(
|
|
to right,
|
|
light-dark(lightgray, dimgray),
|
|
color-mix(
|
|
in srgb,
|
|
light-dark(var(--brown-swiss-gray), var(--eclipse-gray)),
|
|
white 25%
|
|
)
|
|
);
|
|
border-left: 5px solid black;
|
|
padding-left: 6px;
|
|
}
|
|
|
|
blockquote small::before {
|
|
content: "\2014 \00A0";
|
|
}
|
|
|
|
blockquote small {
|
|
font-size: 80%;
|
|
}
|
|
|
|
/*
|
|
Container-type helper classes
|
|
*/
|
|
.row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
/*
|
|
Helper classes
|
|
*/
|
|
.font-small-caps {
|
|
font-variant-caps: small-caps;
|
|
}
|
|
|
|
.img-fluid {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.float-left {
|
|
float: none;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.float-right {
|
|
float: none;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/*
|
|
Application-state helper classes
|
|
*/
|
|
@media (prefers-color-scheme: light) {
|
|
.active {
|
|
background-color: var(--coeurdalene-purple);
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.active {
|
|
color: color-mix(in srgb, var(--manhattan-steel-blue), white 75%);
|
|
background-color: color-mix(in srgb, var(--brown-swiss-gray), black 75%);
|
|
border-color: color-mix(in srgb, var(--brown-swiss-gray), black 50%);
|
|
}
|
|
}
|
|
|
|
/*
|
|
Desktop screen size adjustments
|
|
*/
|
|
@media (min-width: 768px) {
|
|
/*
|
|
Default element styles
|
|
*/
|
|
nav {
|
|
flex-direction: column;
|
|
padding-right: 1rem;
|
|
padding-bottom: 0;
|
|
|
|
/*
|
|
Workaround for Chrome always showing scrollbar even when scrolling not needed
|
|
*/
|
|
-ms-overflow-style: none;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
/*
|
|
Continued Chrome workaround
|
|
*/
|
|
nav::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/*
|
|
Container-type helper classes
|
|
*/
|
|
.row {
|
|
flex-direction: row;
|
|
}
|
|
|
|
/*
|
|
Helper classes
|
|
*/
|
|
.float-left {
|
|
float: left;
|
|
max-width: 50%;
|
|
}
|
|
|
|
.float-right {
|
|
float: right;
|
|
max-width: 50%;
|
|
}
|
|
} /* end @media */
|