Update card and carousel #153

This commit is contained in:
Prayag Prajapati committed 2023-08-27 17:03:22 +05:30
1 parent 002d92d8ad
commit 38a7369650
7 files changed
+193 -71

No files matched your search

+23 -1
View File
@@ -6,7 +6,7 @@
object-fit: cover;
transition: opacity $transition-time-fast;
position: absolute;
z-index: 1;
z-index: 0;
top: 0;
left: 0;
&-container {
@@ -32,4 +32,26 @@
}
}
}
&-overlay {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
background: rgb(0 0 0 / 0.6);
z-index: 10;
opacity: 0;
transition: opacity $transition-time-default;
display: flex;
align-items: flex-end;
justify-content: flex-end;
padding: 0.5em;
}
&-container:hover,
&-container:focus,
&-container:focus-within {
.card-overlay {
opacity: 1;
}
}
}