cinny/src/app/organisms/navigation/SideBar.scss

60 lines
1 KiB
SCSS
Raw Normal View History

@use '../../partials/flex';
@use '../../partials/dir';
2021-07-28 13:15:52 +00:00
.sidebar {
@extend .cp-fx__column;
2021-07-28 13:15:52 +00:00
width: var(--navigation-sidebar-width);
height: 100%;
background-color: var(--bg-surface-extra-low);
@include dir.side(border,
none,
1px solid var(--bg-surface-border),
);
2021-07-28 13:15:52 +00:00
&__scrollable,
&__sticky {
width: 100%;
}
&__scrollable {
@extend .cp-fx__item-one;
2021-07-28 13:15:52 +00:00
}
}
.scrollable-content {
&::after {
content: "";
display: block;
width: 100%;
height: 8px;
background: transparent;
2021-09-03 12:28:01 +00:00
background-image: linear-gradient(
to top,
var(--bg-surface-extra-low),
var(--bg-surface-extra-low-transparent));
2021-07-28 13:15:52 +00:00
position: sticky;
2021-09-05 13:26:34 +00:00
bottom: -1px;
2021-07-28 13:15:52 +00:00
left: 0;
}
}
.featured-container,
.space-container,
.sticky-container {
@extend .cp-fx__column--c-c;
2021-07-28 13:15:52 +00:00
padding: var(--sp-ultra-tight) 0;
& > .sidebar-avatar,
& > .avatar-container {
margin: calc(var(--sp-tight) / 2) 0;
}
}
.sidebar-divider {
margin: auto;
width: 24px;
height: 1px;
background-color: var(--bg-surface-border);
}