Cleanup
This commit is contained in:
parent
1390ed51e8
commit
47cf4d8652
1 changed files with 13 additions and 23 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
/* Variables */
|
|
||||||
:root {
|
:root {
|
||||||
--color-text: oklch(20% 0 0);
|
--color-text: oklch(20% 0 0);
|
||||||
--color-background: oklch(98% 0 0);
|
--color-background: oklch(98% 0 0);
|
||||||
|
|
@ -6,18 +5,17 @@
|
||||||
--color-accent-light: oklch(95% 0.05 250);
|
--color-accent-light: oklch(95% 0.05 250);
|
||||||
--color-border: oklch(85% 0 0);
|
--color-border: oklch(85% 0 0);
|
||||||
--color-muted: oklch(50% 0 0);
|
--color-muted: oklch(50% 0 0);
|
||||||
|
|
||||||
--space-xs: 0.5rem;
|
--space-xs: 0.5rem;
|
||||||
--space-s: 1rem;
|
--space-s: 1rem;
|
||||||
--space-m: 2rem;
|
--space-m: 2rem;
|
||||||
--space-l: 4rem;
|
--space-l: 4rem;
|
||||||
|
|
||||||
--size-content: 65ch;
|
--size-content: 65ch;
|
||||||
--size-constrained: 42rem;
|
--size-constrained: 42rem;
|
||||||
--size-wide: 90rem;
|
--size-wide: 90rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Base */
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
@ -32,7 +30,7 @@ html {
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns:
|
grid-template-columns:
|
||||||
[full-start] minmax(var(--space-s), 1fr)
|
[full-start] minmax(var(--space-s), 1fr)
|
||||||
[content-start] minmax(0, var(--size-constrained))
|
[content-start] minmax(0, var(--size-constrained))
|
||||||
[content-end] minmax(var(--space-s), 1fr)
|
[content-end] minmax(var(--space-s), 1fr)
|
||||||
|
|
@ -41,7 +39,6 @@ body {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Typography */
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
margin-block: 1.5em 0.5em;
|
margin-block: 1.5em 0.5em;
|
||||||
|
|
@ -56,17 +53,15 @@ p, ul, ol, dl {
|
||||||
margin-block: 1em;
|
margin-block: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Links */
|
|
||||||
a {
|
a {
|
||||||
color: var(--color-accent);
|
color: var(--color-accent);
|
||||||
text-underline-offset: 0.2em;
|
text-underline-offset: 0.2em;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Layout */
|
|
||||||
header, main, footer {
|
header, main, footer {
|
||||||
grid-column: content;
|
grid-column: content;
|
||||||
}
|
}
|
||||||
|
|
@ -78,29 +73,29 @@ header {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: var(--space-s);
|
gap: var(--space-s);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
& nav {
|
& nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--space-s);
|
gap: var(--space-s);
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
& a {
|
& a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
&[aria-current] {
|
&[aria-current] {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& .language-switcher {
|
& .language-switcher {
|
||||||
margin-inline-start: auto;
|
margin-inline-start: auto;
|
||||||
}
|
}
|
||||||
|
|
@ -115,26 +110,24 @@ footer {
|
||||||
padding-block: var(--space-s);
|
padding-block: var(--space-s);
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
color: var(--color-muted);
|
color: var(--color-muted);
|
||||||
|
|
||||||
& nav {
|
& nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: var(--space-s);
|
gap: var(--space-s);
|
||||||
margin-block-end: var(--space-xs);
|
margin-block-end: var(--space-xs);
|
||||||
}
|
}
|
||||||
|
|
||||||
& p {
|
& p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Images */
|
|
||||||
img {
|
img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Code */
|
|
||||||
code {
|
code {
|
||||||
background: var(--color-accent-light);
|
background: var(--color-accent-light);
|
||||||
padding: 0.125em 0.25em;
|
padding: 0.125em 0.25em;
|
||||||
|
|
@ -147,14 +140,13 @@ pre {
|
||||||
padding: var(--space-s);
|
padding: var(--space-s);
|
||||||
border-radius: 0.5em;
|
border-radius: 0.5em;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
|
|
||||||
& code {
|
& code {
|
||||||
background: none;
|
background: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tables */
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
@ -171,7 +163,6 @@ th {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Blockquote */
|
|
||||||
blockquote {
|
blockquote {
|
||||||
margin-inline: 0;
|
margin-inline: 0;
|
||||||
padding-inline-start: var(--space-s);
|
padding-inline-start: var(--space-s);
|
||||||
|
|
@ -179,7 +170,6 @@ blockquote {
|
||||||
color: var(--color-muted);
|
color: var(--color-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Article metadata */
|
|
||||||
article {
|
article {
|
||||||
& time {
|
& time {
|
||||||
color: var(--color-muted);
|
color: var(--color-muted);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue