diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-03-23 21:47:50 +0000 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-03-23 21:53:50 +0000 |
commit | bcd6a4ed6b38d516588f07317cc5f6fa7505e464 (patch) | |
tree | c060fefa8331f517b7cfb2d581c3859625fc2685 | |
parent | 237b6d5cd5bd289982a2588607556ef1a1874acf (diff) | |
download | website-bcd6a4ed6b38d516588f07317cc5f6fa7505e464.tar.xz |
style: Fix dropcaps for Fontin
-rw-r--r-- | src/style.css | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/style.css b/src/style.css index 55f7d45..7675757 100644 --- a/src/style.css +++ b/src/style.css @@ -84,20 +84,28 @@ header h1 { .entry > p:first-of-type:first-letter { float: left; color: #903; - font-size: 2.8rem; + font-size: 42px; line-height: 2rem; - padding-top: 0.4rem; - padding-right: 0.4rem; - padding-left: 0.1rem; - font-family: 'Georgia'; + padding-top: 0.22rem; + padding-right: 0.2rem; + padding-bottom: 0; + font-family: 'Fontin'; } @media (max-width: 767px) { .entry > p:first-of-type:first-letter { - padding-top: 0.3rem; + padding-top: 0.2rem; padding-right: 0.2rem; - font-size: 2.7rem; + font-size: 2.5rem; } } +/* Firefox-specific hack to make spacing work properly */ +@media all and (min--moz-device-pixel-ratio:0) and (min-resolution: 3e1dpcm) { + .entry > p:first-of-type:first-letter { + font-size: 44px; + padding-top: 0.3rem; + } +} + blockquote { position:relative; |