mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
images: apply image effects to lightbox images #631
This commit is contained in:
parent
937af7214c
commit
82d3a9aabf
2 changed files with 7 additions and 6 deletions
|
@ -71,5 +71,5 @@
|
||||||
<img src="{{ $url | safeURL }}" alt="{{ $alt }}"{{ with $title }} title="{{ . }}"{{ end }} class="figure-image {{ delimit $classes " " }}" style="height: {{ $height }}; width: {{ $width }};" loading="lazy">
|
<img src="{{ $url | safeURL }}" alt="{{ $alt }}"{{ with $title }} title="{{ . }}"{{ end }} class="figure-image {{ delimit $classes " " }}" style="height: {{ $height }}; width: {{ $width }};" loading="lazy">
|
||||||
{{- if $effects.lightbox -}}
|
{{- if $effects.lightbox -}}
|
||||||
</a>
|
</a>
|
||||||
<a href="javascript:history.back();" class="lightbox-back" id="image-{{ $id }}"><img src="{{ $url | safeURL }}" alt="{{ $alt }}"{{ with $title }} title="{{ . }}"{{ end }} class="lightbox-image" loading="lazy"></a>
|
<a href="javascript:history.back();" class="lightbox-back" id="image-{{ $id }}"><img src="{{ $url | safeURL }}" alt="{{ $alt }}"{{ with $title }} title="{{ . }}"{{ end }} class="lightbox-image {{ delimit $classes " " }}" loading="lazy"></a>
|
||||||
{{- end }}
|
{{- end }}
|
|
@ -330,25 +330,26 @@ dd {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#body img.left {
|
#body img:not(.lightbox-image).left {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#body img.right {
|
#body img:not(.lightbox-image).right {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#body img.border,
|
#body img:not(.lightbox-image).border,
|
||||||
#body .video-container.border {
|
#body .video-container.border {
|
||||||
|
background-clip: padding-box;
|
||||||
border: 1px solid rgba( 134, 134, 134, .333 );
|
border: 1px solid rgba( 134, 134, 134, .333 );
|
||||||
}
|
}
|
||||||
|
|
||||||
#body img.shadow,
|
#body img:not(.lightbox-image).shadow,
|
||||||
#body .video-container.shadow {
|
#body .video-container.shadow {
|
||||||
box-shadow: 0 10px 30px rgba( 176, 176, 176, .666 );
|
box-shadow: 0 10px 30px rgba( 176, 176, 176, .666 );
|
||||||
}
|
}
|
||||||
|
|
||||||
#body img.inline {
|
#body img:not(.lightbox-image).inline {
|
||||||
display: inline !important;
|
display: inline !important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
|
Loading…
Reference in a new issue