Compare commits
No commits in common. "8e4ae2d9be32e14b96b8e101fda16e7254396002" and "592fd4773b4f5f4bc2f853f226b61bbe9aa7fba9" have entirely different histories.
8e4ae2d9be
...
592fd4773b
@ -3,52 +3,7 @@
|
|||||||
@include RV-ElementList;
|
@include RV-ElementList;
|
||||||
@include RV-Spacing__Inner--small;
|
@include RV-Spacing__Inner--small;
|
||||||
|
|
||||||
&__Item {
|
.LP-ImageGrid__Item {
|
||||||
position: relative;
|
|
||||||
@include RV-ContentCrop;
|
@include RV-ContentCrop;
|
||||||
|
}
|
||||||
&--add {
|
|
||||||
.LP-Link {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
background: $-almost-white;
|
|
||||||
|
|
||||||
.LP-Icon {
|
|
||||||
width: $-spacing-large;
|
|
||||||
height: $-spacing-large;
|
|
||||||
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&__DeleteItem {
|
|
||||||
opacity: 0.7;
|
|
||||||
visibility: hidden;
|
|
||||||
position: absolute;
|
|
||||||
top: $-spacing-small;
|
|
||||||
right: $-spacing-small;
|
|
||||||
background-color: $-light-brown;
|
|
||||||
border-radius: 50%;
|
|
||||||
|
|
||||||
height: $-spacing-large;
|
|
||||||
width: $-spacing-large;
|
|
||||||
|
|
||||||
.LP-Link .LP-Icon{
|
|
||||||
height: #{$-spacing-small * 2};
|
|
||||||
width: #{$-spacing-small * 2};
|
|
||||||
position:relative;
|
|
||||||
left: #{($-spacing-large - $-spacing-small) / 3};
|
|
||||||
top: #{($-spacing-large - $-spacing-small) / 3};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&__Item>.LP-Link:hover + &__DeleteItem, &__DeleteItem:hover {
|
|
||||||
visibility: visible;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -3,20 +3,8 @@
|
|||||||
<ul class="LP-ImageGrid__Container">
|
<ul class="LP-ImageGrid__Container">
|
||||||
{{#each images}}
|
{{#each images}}
|
||||||
<li class="LP-ImageGrid__Item">
|
<li class="LP-ImageGrid__Item">
|
||||||
<a href="#" class="LP-Link">
|
<a href="#" class="LP-Link"><img class="LP-Image" src="{{this}}"></a>
|
||||||
<img class="LP-Image" src="{{this}}">
|
|
||||||
</a>
|
|
||||||
<span class="LP-ImageGrid__DeleteItem" title="Bild löschen">
|
|
||||||
<a href="#" class="LP-Link">
|
|
||||||
<img class="LP-Icon" src="/icons/cancel.svg"/>
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
<li class="LP-ImageGrid__Item LP-ImageGrid__Item--add" title="Bild hinzufügen">
|
|
||||||
<a class="LP-Link" href="#">
|
|
||||||
<img class="LP-Icon" src="/icons/plus.svg"/>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
@ -1588,56 +1588,23 @@ body {
|
|||||||
border: none; }
|
border: none; }
|
||||||
.LP-ImageGrid__Container {
|
.LP-ImageGrid__Container {
|
||||||
gap: 10px; }
|
gap: 10px; }
|
||||||
.LP-ImageGrid__Item {
|
.LP-ImageGrid .LP-ImageGrid__Item, .LP-ImageGrid .LP-ImageGrid__Item * {
|
||||||
position: relative; }
|
overflow: hidden;
|
||||||
.LP-ImageGrid__Item, .LP-ImageGrid__Item * {
|
word-break: break-all; }
|
||||||
overflow: hidden;
|
.LP-ImageGrid .LP-ImageGrid__Item img {
|
||||||
word-break: break-all; }
|
width: 100%;
|
||||||
.LP-ImageGrid__Item img {
|
height: 100%;
|
||||||
width: 100%;
|
object-fit: cover; }
|
||||||
height: 100%;
|
.LP-ImageGrid .LP-ImageGrid__Item--left img {
|
||||||
object-fit: cover; }
|
object-position: left; }
|
||||||
.LP-ImageGrid__Item--left img {
|
.LP-ImageGrid .LP-ImageGrid__Item--center img {
|
||||||
object-position: left; }
|
object-position: center; }
|
||||||
.LP-ImageGrid__Item--center img {
|
.LP-ImageGrid .LP-ImageGrid__Item--top img {
|
||||||
object-position: center; }
|
object-position: top; }
|
||||||
.LP-ImageGrid__Item--top img {
|
.LP-ImageGrid .LP-ImageGrid__Item--bottom img {
|
||||||
object-position: top; }
|
object-position: botom; }
|
||||||
.LP-ImageGrid__Item--bottom img {
|
.LP-ImageGrid .LP-ImageGrid__Item--center img {
|
||||||
object-position: botom; }
|
object-position: center; }
|
||||||
.LP-ImageGrid__Item--center img {
|
|
||||||
object-position: center; }
|
|
||||||
.LP-ImageGrid__Item--add .LP-Link {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
display: block;
|
|
||||||
background: #f9f9f9; }
|
|
||||||
.LP-ImageGrid__Item--add .LP-Link .LP-Icon {
|
|
||||||
width: 35px;
|
|
||||||
height: 35px;
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%); }
|
|
||||||
.LP-ImageGrid__DeleteItem {
|
|
||||||
opacity: 0.7;
|
|
||||||
visibility: hidden;
|
|
||||||
position: absolute;
|
|
||||||
top: 10px;
|
|
||||||
right: 10px;
|
|
||||||
background-color: #C09F80;
|
|
||||||
border-radius: 50%;
|
|
||||||
height: 35px;
|
|
||||||
width: 35px; }
|
|
||||||
.LP-ImageGrid__DeleteItem .LP-Link .LP-Icon {
|
|
||||||
height: 20px;
|
|
||||||
width: 20px;
|
|
||||||
position: relative;
|
|
||||||
left: 8.33333px;
|
|
||||||
top: 8.33333px; }
|
|
||||||
.LP-ImageGrid__Item > .LP-Link:hover + .LP-ImageGrid__DeleteItem, .LP-ImageGrid__DeleteItem:hover {
|
|
||||||
visibility: visible; }
|
|
||||||
|
|
||||||
.LP-MainContainer {
|
.LP-MainContainer {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
Loading…
Reference in New Issue
Block a user