diff options
author | Vincent Tam <sere@live.hk> | 2019-08-01 11:08:35 +0300 |
---|---|---|
committer | Vincent Tam <sere@live.hk> | 2019-08-01 11:09:41 +0300 |
commit | 8fe9cc29b9879365725acc1b86b64975763ecd8b (patch) | |
tree | d516206a3d844835c72a341cf023728fec2df80b | |
parent | 6819ff0c1ef96bb6918a3696d492a8e644140744 (diff) |
Fixed paginator labels' alignement & cat. visibility
-rw-r--r-- | assets/css/style.css | 12 | ||||
-rw-r--r-- | layouts/_default/list.html | 4 |
2 files changed, 12 insertions, 4 deletions
diff --git a/assets/css/style.css b/assets/css/style.css index 55f29bc..990ff76 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -72,11 +72,12 @@ time { } .meta .categories { text-transform: uppercase; - color: #e5bc5a + color: #14d549; + margin-right: .6rem; } .meta .tags { color: #008895; - margin-left: .6rem + margin-right: .6rem; } .tags::before { content: "#" @@ -244,6 +245,13 @@ label { margin-bottom: .5rem; font-weight: 600 } +.pager { + text-align: center; +} +.pager .pagerNum { + margin-left: auto; + margin-right: auto; +} @media only screen and (min-width:1050px) { aside { float: left; diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3ee88f0..eb03661 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -28,11 +28,11 @@ <nav class="pager"> <p> {{- if .Paginator.HasPrev -}} - <a class="prev" href="{{ .Paginator.Prev.URL }}">« {{ i18n "paginatorPrevious" }}</a> + <a class="left" href="{{ .Paginator.Prev.URL }}">« {{ i18n "paginatorPrevious" }}</a> {{- end -}} <span class="pagerNum">{{ i18n "page" }} {{ .Paginator.PageNumber }}/{{ .Paginator.TotalPages }}</span> {{- if .Paginator.HasNext -}} - <a class="next" href="{{ .Paginator.Next.URL }}">{{ i18n "paginatorNext" }} »</a> + <a class="right" href="{{ .Paginator.Next.URL }}">{{ i18n "paginatorNext" }} »</a> {{- end -}} </p> </nav> |