Update Sidemenu #179
This commit is contained in:
4 files changed
+128
-162
No files matched your search
@@ -2,36 +2,66 @@
|
||||
|
||||
.sidemenu {
|
||||
&-item {
|
||||
&-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
position: relative;
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 15%;
|
||||
bottom: 15%;
|
||||
left: 7%;
|
||||
width: 5px;
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
$clr-accent-default,
|
||||
$clr-secondary-default
|
||||
);
|
||||
opacity: 0;
|
||||
transform: translateX(-10px);
|
||||
transition: transform $transition-time-default,
|
||||
opacity $transition-time-default;
|
||||
width: 100%;
|
||||
color: rgb(255 255 255 / 0.7);
|
||||
transition: color $transition-time-fast;
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
gap: 0.2em;
|
||||
margin-bottom: 0.8em;
|
||||
|
||||
&:hover {
|
||||
color: white;
|
||||
}
|
||||
&.active::before {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
|
||||
&.active {
|
||||
color: white;
|
||||
.sidemenu-item-icon::before {
|
||||
opacity: 1;
|
||||
transform: scaleX(1);
|
||||
}
|
||||
.sidemenu-item-text {
|
||||
max-height: 1.6em;
|
||||
// transform: scaleY(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-open {
|
||||
.sidemenu-item::before {
|
||||
width: 100%;
|
||||
inset: 0;
|
||||
border-radius: 0;
|
||||
z-index: -1;
|
||||
|
||||
&-text {
|
||||
// transform: scaleY(0);
|
||||
transform-origin: top;
|
||||
transition: max-height 0.5s;
|
||||
max-height: 0;
|
||||
}
|
||||
|
||||
&-icon {
|
||||
padding: 0.15em 0.75em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
&::before {
|
||||
content: "";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
background: $clr-gradient-default;
|
||||
z-index: -1;
|
||||
transform: scaleX(0.25);
|
||||
opacity: 0;
|
||||
border-radius: 100px;
|
||||
transition: opacity $transition-time-fast,
|
||||
transform $transition-time-fast;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user