\r
&.fit {\r
display: block;\r
- margin: 0 0 _size(element-margin) 0;\r
- width: 100%;\r
+ margin: 0 auto _size(element-margin);\r
+ width: 90%;\r
\r
img {\r
width: 100%;\r
}\r
+ div.picture {\r
+ max-width: 100%;\r
+ height: auto;\r
+ }\r
}\r
\r
&.main {\r
\r
img {\r
width: 100%;\r
+ max-width: 100%;\r
+ }\r
+ div.picture {\r
+ max-width: 100%;\r
+ height: auto;\r
}\r
\r
@include breakpoint('<=small') {\r
overflow: hidden;\r
}\r
}\r
+ }\r
+\r
+ div.picture {\r
+ display: inline-block;\r
}
\ No newline at end of file
for that, and then fade in for the LQIP effect.
Feel free to adjust your CSS/SCSS as desired.
*/}}
-{{- $imgClass := "w-full h-auto animate-fade" -}}
+{{- $imgClass := "animate-fade" -}}
{{- $dataSzes := "(min-width: 1024px) 100vw, 50vw" -}}
{{/*
Now we'll create the 20-pixel-wide LQIP
/>
<img class="{{ $imgClass }}"
src="{{ $actualImg.RelPermalink }}"
- width="640"
+ width="{{ $source.Width }}"
+ height="{{ $source.Height }}"
alt="{{ $alt }}"
loading="lazy"
/>