diff options
author | Thedro Neely <thedroneely@gmail.com> | 2020-05-23 16:50:58 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2020-05-23 16:50:58 -0400 |
commit | b8918bc9c278c775222fb713d3466fbc2260ed3c (patch) | |
tree | d137281880042b499a77ebbc5f5d46a63b105c54 | |
parent | ce4092185cd7e06eaa0e6e0999f797f9d276496a (diff) | |
download | thedroneely.com-b8918bc9c278c775222fb713d3466fbc2260ed3c.tar.gz thedroneely.com-b8918bc9c278c775222fb713d3466fbc2260ed3c.tar.bz2 thedroneely.com-b8918bc9c278c775222fb713d3466fbc2260ed3c.zip |
public/css/tdro: Align archive pages
-rw-r--r-- | generators/hugo/themes/tdro/layouts/_default/archive.html | 4 | ||||
-rw-r--r-- | public/css/tdro.css | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/generators/hugo/themes/tdro/layouts/_default/archive.html b/generators/hugo/themes/tdro/layouts/_default/archive.html index 152de19..feecc81 100644 --- a/generators/hugo/themes/tdro/layouts/_default/archive.html +++ b/generators/hugo/themes/tdro/layouts/_default/archive.html @@ -13,7 +13,7 @@ {{ range (where .Pages "Type" $type) }} {{ if (eq ($.Scratch.Get "count") 1) }} {{ $.Scratch.Set "count" 0 }} - <h1 class="title is-4 has-text-weight-normal has-padding-left-md has-margin-bottom-lg">{{ .Date.Format "2006" }}</h1> + <h1 class="article__list title is-4 has-text-weight-normal has-margin-bottom-lg">{{ .Date.Format "2006" }}</h1> {{ end }} {{ end }} @@ -24,7 +24,7 @@ {{ if (ne .Params.hidden true) }} <li> <a class="is-block" href="{{ .RelPermalink }}"> - <span class="has-text-grey-dark">{{ .Date.Format "02 Jan" }}</span> — {{ .Title }} + <span class="article__list__date monospace has-text-grey-dark">{{ .Date.Format "02 Jan" }}</span>{{ .Title }} </a> </li> {{ end }} diff --git a/public/css/tdro.css b/public/css/tdro.css index 9cdcc1d..b72eb6d 100644 --- a/public/css/tdro.css +++ b/public/css/tdro.css @@ -198,7 +198,8 @@ textarea, } code, -pre { +pre, +.monospace { -moz-osx-font-smoothing: auto; -webkit-font-smoothing: auto; font-family: 'Fira Code', Consolas, monaco, monospace; @@ -4309,14 +4310,16 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top, html.has-navbar-fixed-bott } .article__updated { padding: 0.5em; } -.article__list { line-height: 2.5; } +ul.article__list { line-height: 2.5; } .article__list li:hover { background-color: #f1f1f1; } .article__list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - padding-left: 1rem; } +.article__list__date { padding-right: 1rem; text-transform: uppercase; } +.article__list a, h1.article__list { padding: 0 0.5rem; } + .webring li { padding-top: 1em; } .webring ul { margin-top: 0.5em; } |