// Fonts //
@font-face {
font-family: 'spectral';
src: url('/spectralbold.woff2') format('woff2'),
url('/spectralbold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: optional;
}
@font-face {
font-family: 'spectral';
src: url('/spectralitalic.woff2') format('woff2'),
url('/spectralitalic.woff') format('woff');
font-weight: normal;
font-style: italic;
font-display: optional;
}
@font-face {
font-family: 'spectral';
src: url('/spectralregular.woff2') format('woff2'),
url('/spectralregular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}
// Variables //
$radius: 3px;
$lighter: #cddfd9;
$warner: #ccbcb1;
$activer: #b1c1cc;
:root {
--light: #0aa06e;
--warn:#df803f;
}
.lighter {
color: var(--light) !important;
}
// Setup //
*, *:before, *:after {
box-sizing: inherit;
}
body {
font-family: Spectral, serif;
font-size: 1.15rem;
min-height: 100vh;
margin: 0;
padding: 75px 20px;
background: #fffbf8;
color: #2f2235;
display: flex;
justify-content: center;
align-items: center;
overflow-wrap: break-word;
box-sizing: border-box;
& > div {
width: min(600px,100%);
}
}
// Images
img {
border-radius: $radius;
}
nav,
img {
width: 100%;
}
h1 > a > img,
h2 > a > img {
padding-left: 5px;
width: initial;
position: absolute;
bottom: 10px;
}
h1 > a > img {
bottom: 12px;
}
// Code //
code,
:not(footer) > pre {
font-size: 1rem;
background: $lighter;
border-radius: $radius;
}
:not(pre) > code {
padding: 0 3px;
}
// Links //
a {
color: inherit;
text-decoration-color: var(--light);
text-decoration-thickness: 2px;
transition: color .3s;
&[href*="//"]:not([href*="boehs.org"]) {
--light: var(--warn)
}
&:hover {
color: var(--light)
}
&:active {
color: #ff9e9e;
}
}
// Cards //
.card {
color: inherit;
text-decoration: inherit;
border-left: 2px solid var(--light);
padding: 0 1em;
display: block;
}
.contain {
display: grid;
grid-template-rows: masonry;
gap: 1em;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
list-style-type: none;
padding-inline: 0;
.card {
:first-child {
margin-top: 0;
}
:last-child {
margin-bottom: 0;
}
}
}
.h-feed > ol {
list-style-type: none;
padding-inline: 0;
}
// Structure //
// (headings)
h1,h2 {
position: relative;
}
// (lists)
ul {
list-style: georgian;
}
hr {
border: none;
text-align: center;
&::after {
content: "---";
}
}
// kv == key-value
nav > dl,.kv {
display: grid;
grid-template-columns: auto max-content;
gap: 10px;
& > dd {
border-left: none;
margin-left: auto;
}
* {
margin-block: 0;
}
ul {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 15px;
padding-inline: 0;
}
}
.h-card > :not(.p-name) {
display: none;
}
header {
> * > * {
display: block;
text-align: center;
}
a {
text-decoration: inherit;
}
i > p{
display: inline;
}
}
footer {
flex-wrap: wrap;
display: flex;
justify-content: center;
}
article, nav, header {
line-height: 1.6;
}
article > p {
margin-block: 10px;
}
// Labeling and such //
legend,
dt,
label {
font-weight: bold;
}
dd {
border-left: 6px double var(--light);
margin: 0;
padding-left: 10px;
}
sup,
sub {
font-family: monospace;
}
// Buttons //
button,
input[type=submit],
input[type=button],
input[type=reset] {
padding: 1em;
margin: 10px 0;
background: $lighter;
border-radius: $radius;
transition: .3s;
cursor: pointer;
border: none;
font-family: monospace;
}
button[type=reset],
input[type=reset] {
background: $warner;
}
button,
input[type=submit],
input[type=button],
input[type=reset],
.int {
&:hover {
background: $activer;
}
}
// Tables //
.twrap {
overflow-x: auto;
}
table {
border-spacing: 1em 0;
}
th {
white-space: nowrap;
}
// Blockquote //
figure {
blockquote {
margin-block-end: 0
}
margin-inline: 0;
figcaption {
padding-left: 17px;
}
}
blockquote {
padding: 10px 0 10px 10px;
border-left: 6px double var(--light);
margin: 1em 0;
border-radius: $radius;
}
.penpen {
--light: lightpink;
background: lavender;
p::before {
content: '🐾 ';
}
}
// Media //
@media screen and (max-width: 800px) {
footer {
pre {
display: none;
}
}
footer > nav > dl,.kv {
display: block;
dd {
padding-left: 0;
}
}
}
@media (prefers-color-scheme: dark) {
body {
background: #282828;
color: whitesmoke;
}
code,
blockquote {
background: darkslategray;
}
.penpen {
background: #483341;
}
:not(footer) > pre {
background: #fffbf8 !important;
}
}