style: update hero-carousel styling

This commit is contained in:
Prayag Prajapati committed 2024-06-08 17:52:05 +05:30
1 parent badc2b622f
commit 326b093210
27 files changed
+750 -382

No files matched your search

+28 -27
View File
@@ -7,10 +7,9 @@
position: relative;
height: 100%;
width: 100%;
border-radius: 10px !important;
overflow: hidden;
overflow: visible;
margin: 0 auto;
border: 1.2px solid rgb(255 255 255 / 0.15);
border: none;
// box-shadow: 0 0 30px black !important;
}
&-background {
@@ -24,32 +23,31 @@
&-container {
position: absolute;
z-index: 0;
top: 0;
top: -4.4em;
left: 0;
right: 0;
bottom: 0;
height: 90vh;
filter: brightness(0.8);
mask-image: linear-gradient(to left, black 50%, transparent), linear-gradient(to bottom, black 60%, transparent);
-webkit-mask-image: linear-gradient(to left,
black 50%,
transparent), linear-gradient(to bottom, black 40%, transparent);
mask-composite: intersect;
}
&-image {
position: absolute;
background-size: cover;
z-index: 1;
top: 0;
right: 0;
top: 0;
bottom: 0;
background-position: center;
object-fit: cover;
width: 80%;
height: 100%;
width: 100%;
height: 90vh;
transition: opacity 0.5s;
mask-image: linear-gradient(to left, black 50%, transparent);
-webkit-mask-image: linear-gradient(
to left,
black 50%,
transparent
);
}
&-icon-container {
position: absolute;
// background: $clr-gradient-dark;
@@ -60,6 +58,7 @@
right: 0;
bottom: 0;
background-blend-mode: overlay;
height: 9%;
.material-symbols-rounded {
position: absolute;
font-size: 15em !important;
@@ -67,7 +66,7 @@
top: 50%;
transform: translate(-50%, -50%);
font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 50,
"opsz" 60;
"opsz" 60;
}
}
}
@@ -89,16 +88,17 @@
display: flex;
height: 100%;
width: 80%;
padding: 2.5em;
padding: $page-margin;
padding-bottom: 0;
flex-direction: column;
justify-content: center;
justify-content: flex-end;
align-items: flex-start;
}
}
.backdropContainer {
background: linear-gradient(
45deg,
45deg,
$clr-background-default,
$clr-background-light
);
@@ -113,13 +113,14 @@
width: 100%;
}
&-text {
-webkit-line-clamp: 2 !important;
&-logo {
max-width: 7em;
max-height: 2em;
object-fit: contain;
object-position: bottom;
}
}
-webkit-line-clamp: 2 !important;
&-logo {
max-width: 7em;
max-height: 2em;
object-fit: contain;
object-position: bottom;
}
}
}
}