small improvements

This commit is contained in:
Niklas Buschmann 2019-07-31 14:26:18 +02:00
parent 11438647d7
commit 298b62104a
2 changed files with 80 additions and 84 deletions

View File

@ -1,46 +1,42 @@
nav { nav {
margin: .5em -.8em; margin: .5em -.8em;
} }
nav a { nav a {
padding: 0 .8em; padding: 0 .8em;
}
table {
width: 100%;
} }
h1 { h1 {
font-size: 1.7em; font-size: 1.7em;
} }
body > header h1 { body > header h1 {
font-size: 1.6em; font-size: 1.6em;
} }
header h1 { header h1 {
margin: 0; margin: 0;
} }
article header { article header {
margin-bottom: 1.5em; margin-bottom: 1.5em;
} }
article header h1 { article header h1 {
margin-bottom: .2em; margin-bottom: .2em;
} }
.archive li { .archive li {
padding: .3em 0; padding: .3em 0;
} }
.archive a { .archive a {
font-size: 1.1em; font-size: 1.1em;
} }
.archive time { .archive time {
display: inline-block; display: inline-block;
font-size: 1.05em; font-size: 1.05em;
width: 6em; width: 6em;
margin: 0 .25em; margin: 0 .25em;
} }

View File

@ -1,132 +1,132 @@
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
html { html {
background: #282828; background: #282828;
color: #fff; color: #fff;
} }
} }
body { body {
font-family: -apple-system,"Helvetica Neue","Segoe UI",sans-serif; font-family: -apple-system,"Helvetica Neue","Segoe UI",sans-serif;
font-size: 16px; font-size: 16px;
font-size: calc(0.8rem + 0.25vw); font-size: calc(0.8rem + 0.25vw);
font-weight: 400; font-weight: 400;
line-height: 1.65; line-height: 1.65;
color: #282828; color: #282828;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
body, blockquote, figure { body, blockquote, figure {
margin: 0; margin: 0;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-weight: 400; font-weight: 400;
} }
b, strong, th { b, strong, th {
font-weight: 500; font-weight: 500;
} }
a { a {
color: inherit; color: inherit;
text-decoration: inherit; text-decoration: inherit;
transition: color .2s; transition: color .2s;
} }
a:hover { a:hover {
color: #949494; color: #949494;
} }
article a { article a {
color: #68f; color: #68f;
} }
article header a, article footer a { article header a, article footer a {
font-weight: inherit; font-weight: inherit;
color: inherit; color: inherit;
} }
header time { header time {
color: #949494; color: #949494;
} }
hr { hr {
border: 1px solid #9494944d; border: 1px solid #9494944d;
margin: 2em 0; margin: 2em 0;
} }
blockquote { blockquote {
background: #9494940f; background: #9494940f;
border-left: 4px solid #68f; border-left: 4px solid #68f;
padding: 1px 1.5em; padding: 1px 1.5em;
} }
img { img {
border-radius: 2px; border-radius: 2px;
max-width: 100%; max-width: 100%;
height: auto; height: auto;
margin: .5em 0; margin: .5em 0;
} }
table { table {
border-spacing: 1px; width: 100%;
box-shadow: 0px 0px 0px 1px #94949429 inset; border-collapse: collapse;
} }
tr:hover, tr:nth-child(odd) td { tr:hover, tr:nth-child(odd) td {
background: #94949414; background: #94949410;
} }
th, td { th, td {
box-shadow: 0px 0px 0px 1px #94949429; border: 1px solid #94949436;
padding: .5em 1em; padding: .5em 1em;
} }
pre { pre {
background: #94949414; background: #94949414;
border-radius: 2px; border-radius: 2px;
font-size: .8em; font-size: .8em;
margin: 1.5em 0; margin: 1.5em 0;
padding: .8em 1.2em; padding: .8em 1.2em;
white-space: pre-wrap; overflow-x: auto;
} }
p code { p code {
font-size: .9em; font-size: .9em;
background: #94949426; background: #94949426;
opacity: .75; opacity: .75;
border-radius: 2px; border-radius: 2px;
margin: 0 .1em; margin: 0 .1em;
padding: .2em .4em; padding: .2em .4em;
} }
body > header, body > footer { body > header, body > footer {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
}
body > header, article, body > footer {
padding: 1.5em calc(34% - 12rem);
}
@media (max-width: 40em) {
body > header, article, body > footer {
padding: 1.5em 1em;
}
} }
article, body > footer { article, body > footer {
border-top: 1px solid #9494941f; border-top: 1px solid #9494941f;
}
body > header, article, body > footer {
padding: 1.5em 1em;
}
@media (min-width: 40em) {
body > header, article, body > footer {
padding: 1.5em calc(34% - 12rem);
}
} }
body > header.bright { body > header.bright {
box-shadow: 0 0 1em #3c3c3c0f; box-shadow: 0 0 .6em #3c3c3c0f;
} }
body > header.dark { body > header.dark {
background: #2b2b2b; background: #2b2b2b;
color: #fff; color: #fff;
} }