Skip to content

Commit

Permalink
Reduce some styling even further
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillbobyrev committed Dec 5, 2023
1 parent 7bbdba5 commit c6534a4
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
--tag-background: #e8f0fe;
--background: #fff;
--muted: #BDBDBD;
--code-background: #f5f5f6;
--muted-background: #f5f5f6;

/* Typography */
--line-height: 1.2;
--font-size: 105%;
}

/* Base styles */
Expand All @@ -32,13 +33,20 @@ body {
line-height: var(--line-height);
background-color: var(--background);
color: var(--text-color);
font-size: 105%;
font-size: var(--font-size);
}

img {
max-width: 100%;
}

/* Image captions (if applicable) */
figcaption {
text-align: center;
font-style: italic;
margin-top: 0.5rem;
}

/* Typography */

a {
Expand Down Expand Up @@ -69,17 +77,11 @@ hr {
color: var(--muted);
}

pre:has(code),
p>code {
pre:has(code), p>code {
border: thin solid var(--muted);
background-color: var(--code-background) !important;
}

pre:has(code) {
/* TODO: Add slightly more padding */
padding: .5rem;
overflow-x: auto;
border-radius: 0.5rem;
overflow-x: auto;
}

p>code {
Expand Down Expand Up @@ -184,5 +186,5 @@ td, th {
}

th {
background-color: var(--code-background);
background-color: var(--muted-background);
}

0 comments on commit c6534a4

Please sign in to comment.