mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-19 00:15:06 +00:00
Improve styling of showcase prev/next buttons
This commit is contained in:
1 parent
a2b2f77311
commit
5f7730c892
1 file changed
+4
-4
+4
-4
@@ -1,13 +1,13 @@
|
|||||||
{{ if or .PrevInSection .NextInSection }}
|
{{ if or .PrevInSection .NextInSection }}
|
||||||
{{/* this div holds these a tags as a unit for flex-box display */}}
|
{{/* this div holds these a tags as a unit for flex-box display */}}
|
||||||
<div date-pref>
|
<div date-pref class="white">
|
||||||
{{if .NextInSection}}
|
{{if .NextInSection}}
|
||||||
<a href="{{.NextInSection.Permalink }}" class="db f5" title="{{ .NextInSection.Title }} ">{{ partial "svg/ic_chevron_left_black_24px.svg" (dict "fill" "#0594CB" "size" "12px") }} {{.NextInSection.Title}}</a>
|
<a href="{{.NextInSection.Permalink }}" class="br2 db-l f5 ph2 pv2 bg-light-gray white" title="{{ .NextInSection.Title }} ">{{ partial "svg/ic_chevron_left_black_24px.svg" (dict "fill" "#fff" "size" "12px") }} {{.NextInSection.Title}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if .PrevInSection}}
|
{{if .PrevInSection}}
|
||||||
<a href="{{ .PrevInSection.Permalink }}" class="db f5 pr1 mt3" title="{{ .PrevInSection.Title }}">
|
<a href="{{ .PrevInSection.Permalink }}" class="br2 db-l f5 pr1 mt3 bg-light-gray ph2 pv2 white" title="{{ .PrevInSection.Title }}">
|
||||||
{{.PrevInSection.Title}} {{ partial "svg/ic_chevron_right_black_24px.svg" (dict "fill" "#0594CB" "size" "12px") }}
|
{{.PrevInSection.Title}} {{ partial "svg/ic_chevron_right_black_24px.svg" (dict "fill" "#fff" "size" "12px") }}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user