Fixing ImageGrid and Lightbox

This commit is contained in:
2021-11-01 09:43:20 +01:00
parent bbcbd19ef5
commit c2678fec85
5 changed files with 174 additions and 24 deletions

View File

@@ -4,6 +4,6 @@
@import 'linkList/linkList';
@import 'footer/footer';
@import 'form/form';
//@import 'imageGrid/imageGrid';
@import 'imageGrid/imageGrid';
//@import 'osmMap/osmMap';
//@import 'userProfile/userProfile';

View File

@@ -1,11 +1,25 @@
.LP-ImageGrid{
@include RV-FlexGrid(290px, 200px);
@include RV-ElementList;
@include RV-Spacing__Inner--small;
@use "sass:math";
.LP-ImageGrid{
&__Container {
@include RV-Grid;
@include RV-Grid--fixedSize;
--fixedSize: var(--itemWidth);
--itemWidth: 290px;
--itemHeight: 200px;
list-style-type: none;
--gap: #{$-spacing-small};
}
&__Item {
position: relative;
@include RV-ContentCrop;
.LP-Image {
height: 100%;
width: 100%;
object-fit: cover;
}
&--add {
.LP-Link {
@@ -50,8 +64,8 @@
height: #{$-spacing-small * 2};
width: #{$-spacing-small * 2};
position:relative;
left: #{($-spacing-large - $-spacing-small) / 3.2};
top: #{($-spacing-large - $-spacing-small) / 3.2};
left: #{math.div($-spacing-large - $-spacing-small, 3.2)};
top: #{math.div($-spacing-large - $-spacing-small, 3.2)};
}
}
@@ -91,9 +105,10 @@
pointer-events: initial;
}
}
&__FullSizeImage {
grid-area: picture;
justify-self: center;
}
&__Previous{

View File

@@ -4,7 +4,7 @@
{{#each images}}
<li class="LP-ImageGrid__Item">
<a href="#{{this.current_id}}" class="LP-Link">
<img class="LP-Image" src="{{this}}">
<img class="LP-Image" src="{{this.url}}">
</a>
<span class="LP-ImageGrid__DeleteItem" title="Bild löschen">
<a href="#" class="LP-Link">