trillo sidebar done
This commit is contained in:
1 parent
2b1e91befa
commit
a0e1f31987
4 files changed
+170
-4
No files matched your search
@@ -67,7 +67,7 @@
|
||||
.user-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
align-self: stretch; //make it cover the entire height
|
||||
align-self: stretch; //NOTE: make it cover the entire height
|
||||
|
||||
& > * {
|
||||
height: 100%;
|
||||
@@ -114,3 +114,74 @@
|
||||
margin-right: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
// Side navigation
|
||||
.side-nav {
|
||||
font-size: 1.4rem;
|
||||
list-style: none;
|
||||
margin-top: 3.5rem;
|
||||
|
||||
&__item {
|
||||
position: relative;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
&__item::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 3px;
|
||||
background-color: var(--color-primary);
|
||||
transform: scaleY(0);
|
||||
|
||||
transform-origin: center; //NOTE: cool
|
||||
transition:
|
||||
transform 0.2s,
|
||||
width 0.4s cubic-bezier(1, 0, 0, 1) 0.2s,
|
||||
//NOTE: duration timing delay
|
||||
background-color 0.1s;
|
||||
}
|
||||
|
||||
&__item:hover::before,
|
||||
&__item--active::before {
|
||||
transform: scaleY(1);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
&__item:active::before {
|
||||
background-color: var(--color-primary-light);
|
||||
}
|
||||
|
||||
&__link:link,
|
||||
&__link:visited {
|
||||
color: var(--color-grey-light-1);
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 1.5rem 3rem;
|
||||
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
margin-right: 2rem;
|
||||
fill: currentColor; //NOTE: color of current or parent element
|
||||
}
|
||||
}
|
||||
|
||||
// Legal
|
||||
.legal {
|
||||
font-size: 1.2rem;
|
||||
color: var(--color-grey-light-4);
|
||||
text-align: center;
|
||||
padding: 2.5rem;
|
||||
}
|
||||
Reference in new issue
Block a user