enhance: scrollbar no longer limits to the main content

also, a sticky right topbar
This commit is contained in:
Tienson Qin
2021-04-17 23:12:54 +08:00
parent 252cc1bc80
commit 8f6505d04b
8 changed files with 66 additions and 45 deletions

View File

@@ -1,12 +1,18 @@
.cp__header {
@apply shadow z-10 h-12 pr-4;
@apply shadow z-10 h-12;
padding-right: 1rem;
display: flex;
align-items: center;
flex: 0 0 auto;
background-color: var(--ls-primary-background-color, #fff);
position: sticky;
position: -webkit-sticky;
top: 0;
left: 0;
right: 0;
user-select: none;
transition: width 0.3s;
.it svg {
transform: scale(0.8);