Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-08-01 11:08:35 +0300
committerVincent Tam <sere@live.hk>2019-08-01 11:09:41 +0300
commit8fe9cc29b9879365725acc1b86b64975763ecd8b (patch)
treed516206a3d844835c72a341cf023728fec2df80b
parent6819ff0c1ef96bb6918a3696d492a8e644140744 (diff)
Fixed paginator labels' alignement & cat. visibility
-rw-r--r--assets/css/style.css12
-rw-r--r--layouts/_default/list.html4
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 }}">&laquo; {{ i18n "paginatorPrevious" }}</a>
+ <a class="left" href="{{ .Paginator.Prev.URL }}">&laquo; {{ 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" }} &raquo;</a>
+ <a class="right" href="{{ .Paginator.Next.URL }}">{{ i18n "paginatorNext" }} &raquo;</a>
{{- end -}}
</p>
</nav>