danielmochdotcom

Nikola site for www.danielmoch.com
git clone git://git.danielmoch.com/danielmochdotcom.git
Log | Files | Refs

commit f33b95b0a6e5cbd6a527e8279a8817c4b799d160
parent e7d868358a57f949d444e3db26e684d6d2e4d73b
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon, 17 Dec 2018 18:34:47 -0500

Use seriff font on headings

Diffstat:
Athemes/djmoch/assets/fonts/playfair-display-cyrillic.woff2 | 0
Athemes/djmoch/assets/fonts/playfair-display-latin-ext.woff2 | 0
Athemes/djmoch/assets/fonts/playfair-display-latin.woff2 | 0
Athemes/djmoch/assets/fonts/playfair-display-vietnamese.woff2 | 0
Athemes/djmoch/assets/playfair-display.css | 32++++++++++++++++++++++++++++++++
Mthemes/djmoch/assets/site.css | 14+++++++++++---
Mthemes/djmoch/templates/base_helper.tmpl | 1+
7 files changed, 44 insertions(+), 3 deletions(-)

diff --git a/themes/djmoch/assets/fonts/playfair-display-cyrillic.woff2 b/themes/djmoch/assets/fonts/playfair-display-cyrillic.woff2 Binary files differ. diff --git a/themes/djmoch/assets/fonts/playfair-display-latin-ext.woff2 b/themes/djmoch/assets/fonts/playfair-display-latin-ext.woff2 Binary files differ. diff --git a/themes/djmoch/assets/fonts/playfair-display-latin.woff2 b/themes/djmoch/assets/fonts/playfair-display-latin.woff2 Binary files differ. diff --git a/themes/djmoch/assets/fonts/playfair-display-vietnamese.woff2 b/themes/djmoch/assets/fonts/playfair-display-vietnamese.woff2 Binary files differ. diff --git a/themes/djmoch/assets/playfair-display.css b/themes/djmoch/assets/playfair-display.css @@ -0,0 +1,32 @@ +/* cyrillic */ +@font-face { + font-family: 'Playfair Display'; + font-style: normal; + font-weight: 400; + src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(/assets/fonts/playfair-display-cyrillic.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* vietnamese */ +@font-face { + font-family: 'Playfair Display'; + font-style: normal; + font-weight: 400; + src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(/assets/fonts/playfair-display-vietnamese.woff2) format('woff2'); + unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Playfair Display'; + font-style: normal; + font-weight: 400; + src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(/assets/fonts/playfair-display-latin-ext.woff2) format('woff2'); + unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Playfair Display'; + font-style: normal; + font-weight: 400; + src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(/assets/fonts/playfair-display-latin.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} diff --git a/themes/djmoch/assets/site.css b/themes/djmoch/assets/site.css @@ -1,13 +1,21 @@ -h1, h2, .banner-title, .banner-subtitle, .page-title, .page-subtitle, body +.banner-title, .banner-subtitle, .page-subtitle, body { - font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: "Open Sans"; +} +.page-title, h1, h2, h3 +{ + font-family: "Playfair Display"; } h1 { - font-size: 1.5em; + font-size: 2.0em; } h2 { + font-size: 1.5em; +} +h3 +{ font-size: 1.3em; } header li diff --git a/themes/djmoch/templates/base_helper.tmpl b/themes/djmoch/templates/base_helper.tmpl @@ -95,6 +95,7 @@ lang="{{ lang }}"> {% macro html_stylesheets() %} <link href="/assets/open-sans.css" rel="stylesheet" type="text/css"> + <link href="/assets/playfair-display.css" rel="stylesheet" type="text/css"> <link href="/assets/bootstrap.min.css" rel="stylesheet"> <link href="/assets/site.css" rel="stylesheet"> <link href="/assets/css/code.css" rel="stylesheet">