1
0
mirror of https://github.com/danbee/danbarber.me synced 2025-03-04 08:59:10 +00:00

Small CSS refactor

This commit is contained in:
Daniel Barber 2016-07-01 14:33:28 -04:00
parent b6acd4e68b
commit 632a2a670a
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
2 changed files with 6 additions and 14 deletions

View File

@ -44,7 +44,7 @@ body {
h1 { h1 {
font-size: 2.5em; font-size: 2.5em;
line-height: 1.333em; line-height: 1.333em;
margin: 0.97em 0 0em; margin: 5rem 0 2.5rem;
} }
h2 { h2 {
@ -93,7 +93,7 @@ small {
} }
p, ul, ol, form { p, ul, ol, form {
margin: 1.5em 0 1em; margin: 1.5rem 0 1.5rem;
} }
h3 { h3 {
@ -206,7 +206,6 @@ abbr {
} }
p { p {
margin-bottom: 0;
hyphenate: auto; hyphenate: auto;
hyphenate-before: 2; hyphenate-before: 2;
hyphenate-after: 3; hyphenate-after: 3;

View File

@ -1,14 +1,7 @@
article { article {
border-bottom: 1px dashed $border-color; border-bottom: 1px dashed $border-color;
padding-bottom: 0; padding-bottom: 2.5rem;
margin-bottom: 1em;
.entry-content {
margin-bottom: 2em;
}
header { header {
position: relative;
margin-top: 2em;
padding-top: 0.6em;
.meta { .meta {
text-transform: uppercase; text-transform: uppercase;
color: $meta-text-color; color: $meta-text-color;
@ -16,9 +9,9 @@ article {
letter-spacing: 0.1em; letter-spacing: 0.1em;
width: 100%; width: 100%;
text-rendering: optimizelegibility; text-rendering: optimizelegibility;
position: absolute; }
top: 0; h1 + .meta {
margin-top: 0; margin-top: -2.5rem;
} }
} }
header a { header a {