File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 4444
4545 <a class =" images is-preview" href =" {{ route this }} " >
4646 {{ #with images.0 }}
47- <div class =" image" >
48- {{ #if is.video }}
49- <video controls playsinline preload =" metadata" width =" 100%" poster =" /image/{{ slug }} /thumb-{{ name }} .webp" >
50- <source src =" /image/{{ slug }} /video-{{ name }} .mp4" type =" video/mp4" >
51- </video >
52- {{ else }}
53- <img alt =" {{ title }} , {{ date meta.dateTime format =' d.m.Y H:i' }} " {{ #unless first }} loading =" lazy" {{ /unless }} {{ &dataset meta }} src =" /image/{{ slug }} /thumb-{{ name }} .webp" width =" 1024" >
54- {{ /if }}
47+ <div class =" {{ #if is.video }} is-video{{ /if }} image" >
48+ <img alt =" {{ title }} , {{ date meta.dateTime format =' d.m.Y H:i' }} " {{ #unless first }} loading =" lazy" {{ /unless }} {{ &dataset meta }} src =" /image/{{ slug }} /thumb-{{ name }} .webp" width =" 1024" >
5549 </div >
5650 {{ /with }}
5751 <div class =" more" >
Original file line number Diff line number Diff line change 574574 box-shadow : .25rem .25rem 1rem rgb (0 0 0 / .2 );
575575 }
576576
577+ .is-video ::after {
578+ content : url (' /static/play.svg' );
579+ position : absolute ;
580+ inset : 0 ;
581+ margin : auto ;
582+ width : max (5% , 2rem );
583+ aspect-ratio : 1 / 1 ;
584+ filter : drop-shadow (.25rem .25rem .25rem rgb (0 0 0 / .5 ));
585+ }
586+
577587 .more {
578588 --_size : 10rem ;
579589 --_overlap : 8rem ;
You can’t perform that action at this time.
0 commit comments