From 4662ddd304f70f1044222bb1e8f88e7f009002fc Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Wed, 2 Oct 2019 15:39:31 -0700 Subject: [PATCH] move shared post css into core.less also changes less function article-title to have a bottom margin of 0.5em as it was being reset on both post views. this also brings anonymous posts into a consistent style with the rest. --- less/core.less | 8 ++++++++ less/post-temp.less | 2 +- templates/chorus-collection-post.tmpl | 22 +--------------------- templates/collection-post.tmpl | 18 +----------------- 4 files changed, 11 insertions(+), 39 deletions(-) diff --git a/less/core.less b/less/core.less index f4332a9..23262ec 100644 --- a/less/core.less +++ b/less/core.less @@ -86,6 +86,7 @@ body { } header { + padding: 1em 1rem; nav { span, a { &.pinned { @@ -102,6 +103,13 @@ body { .owner-visible { display: none; } + time.dt-published { + display: block; + &.subtle { + color: #666; + margin-bottom: 0.5em; + } + } } &#post, &#collection, &#subpage { diff --git a/less/post-temp.less b/less/post-temp.less index 3ec682d..a1ee308 100644 --- a/less/post-temp.less +++ b/less/post-temp.less @@ -59,7 +59,7 @@ body#post article, pre, .hljs { font-size: 1.5em; display: block; margin-top: 0; - margin-bottom: 1em; + margin-bottom: 0.5em; } .hljs { diff --git a/templates/chorus-collection-post.tmpl b/templates/chorus-collection-post.tmpl index 84f4350..f740615 100644 --- a/templates/chorus-collection-post.tmpl +++ b/templates/chorus-collection-post.tmpl @@ -30,26 +30,6 @@ {{range .Images}}{{else}}{{end}} {{if .Collection.StyleSheet}}{{end}} - - {{if .Collection.RenderMathJax}} {{template "mathjax" . }} @@ -68,7 +48,7 @@ body#post article h2#title{
{{if .IsScheduled}}

Scheduled

{{end}} {{if .Title.String}}

{{.FormattedDisplayTitle}}

{{end}} - {{if .ShowDates}}{{end}} + {{if .ShowDates}}{{end}}
{{.HTMLContent}}
{{ if .Collection.ShowFooterBranding }} diff --git a/templates/collection-post.tmpl b/templates/collection-post.tmpl index ae0add1..920b275 100644 --- a/templates/collection-post.tmpl +++ b/templates/collection-post.tmpl @@ -32,22 +32,6 @@ {{ end }} {{if .Collection.StyleSheet}}{{end}} - {{/*below css duplicated in part in chorus-collection-post.tmpl*/}} - {{if .Collection.RenderMathJax}} {{template "mathjax" . }} @@ -77,7 +61,7 @@ body#post article h2#title{
{{if .IsScheduled}}

Scheduled

{{end}} {{if .Title.String}}

{{.FormattedDisplayTitle}}

{{end}} - {{if .ShowDates}}{{end}} + {{if .ShowDates}}{{end}}
{{.HTMLContent}}