1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

Remove unneeded CSS

This commit is contained in:
Rohan Kumar 2020-12-26 21:04:25 -08:00
parent 16d07c5f05
commit 3471df7ab3
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -14,16 +14,14 @@
* Everything else is browser defaults: * Everything else is browser defaults:
* default fonts, non-dark-mode colors, etc. * default fonts, non-dark-mode colors, etc.
*/ */
html {
body {
font-family: sans-serif; font-family: sans-serif;
font-size: 16px; font-size: 16px;
line-height: 1.5rem; line-height: 1.5rem;
}
body {
margin: auto; margin: auto;
max-width: 50rem; max-width: 50rem;
padding: 2rem 5%; padding: 0 5%;
} }
nav ul { nav ul {
@ -33,13 +31,12 @@ nav ul {
/* Use whitespace instead of bullets to separate nav from article. /* Use whitespace instead of bullets to separate nav from article.
Also avoid top-padding at the top of the page. */ Also avoid top-padding at the top of the page. */
list-style-type: none; list-style-type: none;
margin: 0 0 2rem;
padding: 0; padding: 0;
} }
/* nav links should be easy to tap with fat fingers */ /* nav links should be easy to tap with fat fingers */
nav li { nav li {
padding: 0.5rem 0.25rem; padding: 0 0.5rem 0.75rem 0;
} }
/* The posts list doesn't need bullets; simple spacing and repetition /* The posts list doesn't need bullets; simple spacing and repetition
@ -57,9 +54,7 @@ nav li {
/* Make the home link a bit bigger to serve as a site heading */ /* Make the home link a bit bigger to serve as a site heading */
.home { .home {
font-size: 1.5rem;
font-weight: bold; font-weight: bold;
padding: 0 0.5rem 0.75rem 0;
} }
/* single-line nav on widescreen, multi-line nav on narrow screens */ /* single-line nav on widescreen, multi-line nav on narrow screens */
@ -82,13 +77,10 @@ img {
max-width: 100%; max-width: 100%;
} }
code {
padding: 0 0.25rem;
}
pre, pre,
code { code {
border: 1px solid #bbb; border: 1px solid #bbb;
padding: 0 0.25rem;
} }
pre code { pre code {