diff options
author | Baron Schwartz <xaprb@users.noreply.github.com> | 2018-09-23 04:01:17 +0300 |
---|---|---|
committer | Baron Schwartz <xaprb@users.noreply.github.com> | 2018-09-23 04:01:17 +0300 |
commit | e9f82572953a58deb7904a76a3f3d22a5c700b39 (patch) | |
tree | a506fbc07461d353c090907369b7eb7750cb6f5a /layouts | |
parent | 495d9063c158b0cc94d07405fbaa37ec8ce52f74 (diff) |
Add 'depth' to the content area/article:
- Add -feature-depth CSS class
- Update images.md to document this
- Add page-kind-X CSS class to <body>
- Fix some <article> class inconsistencies
- Remove article header drop-shadows in print mode
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/talks/single.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index f6a188e..0c0d311 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -47,7 +47,7 @@ <script src="{{ "js/story.js" | absURL }}"></script> </head> - <body class="ma0 bg-white {{ with .Section }}section-{{ . }}{{ end }} page-kind-{{ .Kind }} {{ with .Site.Params.classes }}{{ range . }} {{ . }}{{ end }}{{ end }}{{ with .Params.classes }}{{ range . }} {{ . }}{{ end }}{{ end }}"> + <body class="ma0 bg-white {{ with .Section }}section-{{ . }}{{ end }} page-kind-{{ .Kind }} is-page-{{ .IsPage }} {{ with .Site.Params.classes }}{{ range . }} {{ . }}{{ end }}{{ end }}{{ with .Params.classes }}{{ range . }} {{ . }}{{ end }}{{ end }}"> {{ block "header" . }} <!-- You can set the title and header image in the "title/image" parameters of diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 10bccfc..ae4baae 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,7 @@ {{ define "title" }}{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify) }}{{ end }} {{ define "main" }} -<article class="center ph3 nested-copy-line-height lh-copy f4 nested-links mw-100 measure-wide"> +<article class="center bg-white br-3 pv1 ph4 nested-copy-line-height lh-copy f4 nested-links mw-100 measure-wide"> {{ .Content }} </article> {{ end }} diff --git a/layouts/talks/single.html b/layouts/talks/single.html index 5741a20..39f94b9 100644 --- a/layouts/talks/single.html +++ b/layouts/talks/single.html @@ -1,6 +1,6 @@ {{ define "title" }}{{ cond (eq .Site.Params.titlecase true) (.Title | title | markdownify) (.Title | markdownify) }} • {{ .Params.event }}{{ end }} {{ define "main" }} -<article class="center ph3 nested-copy-line-height lh-copy f4 nested-links mw-100 measure-wide"> +<article class="center bg-white br-3 pv1 ph4 nested-copy-line-height lh-copy f4 nested-links mw-100 measure-wide"> {{ .Content }} <p><a class="mb3 pv2 ph3 ba bw1 black br-pill dib" href="{{ .Params.slides | absURL }}">Slides</a> {{ with .Params.video }} |