Fix photo CSS and hover

This commit is contained in:
2020-03-01 12:17:04 +01:00
parent 8a4faa616e
commit 97256639c4

View File

@@ -66,6 +66,12 @@
border-radius: 8px; border-radius: 8px;
} }
a {
display: block;
width: 100%;
text-decoration: none;
}
img { img {
display: block; display: block;
width: 100%; width: 100%;
@@ -74,36 +80,29 @@
// Overlay // Overlay
&:after { &:after {
opacity: 0;
content: ""; content: "";
position: absolute; position: absolute;
z-index: 2; z-index: 3;
opacity: 0; display: block;
pointer-events: none;
top: 0; top: 0;
left: 0; left: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
background-color: $color-primary; background-color: $color-primary;
display: block; pointer-events: none;
z-index: 3;
transition: opacity 150ms $ease-inout; transition: opacity 150ms $ease-inout;
} }
a {
display: block;
width: 100%;
text-decoration: none;
// Hover // Hover
&:hover { &:hover {
cursor: url(#{$dir-img}/icons/zoom.svg) 6 8, pointer; cursor: url(#{$dir-img}/icons/zoom.svg) 6 8, pointer;
.photo__image--img:after { &:after {
opacity: 0.6; opacity: 0.6;
} }
} }
} }
}
// Date (on the side) // Date (on the side)
&__date { &__date {