chore(style): improve lightgallery style code

This commit is contained in:
Dillon 2020-04-29 23:54:27 +08:00
parent 9e54504360
commit 286bf7003c
5 changed files with 5 additions and 7 deletions

View file

@ -51,7 +51,3 @@ body {
a {
text-decoration: none;
}
.lg-toolbar .lg-icon::after {
color: #999;
}

View file

@ -57,6 +57,8 @@
{{- dict "source" $source "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}
{{- $lightGalleryConfig := dict "selector" ".lightgallery" "speed" 400 "hideBarsDelay" 2000 "thumbnail" true "exThumbImage" "data-thumbnail" "thumbWidth" 80 "thumbContHeight" 80 "actualSize" false -}}
{{- $config = dict "lightGallery" $lightGalleryConfig | merge $config -}}
{{- $styleArr := (.Scratch.Get "this").styleArr | default slice -}}
{{- $styleArr | append ".lg-toolbar .lg-icon::after { color: #999; }" | .Scratch.SetInMap "this" "styleArr" -}}
{{- end -}}
{{- $code := $params.code | default dict -}}