settings-sticky-tabs (#1)
- Add sticky positioning for tabs on the Settings panel - Also add sticky position for SpaceSettings
This commit is contained in:
parent
dcad1840c4
commit
c673ee5928
2 changed files with 23 additions and 5 deletions
|
@ -16,8 +16,17 @@
|
||||||
padding: var(--sp-loose) var(--sp-extra-loose);
|
padding: var(--sp-loose) var(--sp-extra-loose);
|
||||||
}
|
}
|
||||||
|
|
||||||
& .tabs__content {
|
& .tabs {
|
||||||
padding: 0 var(--sp-normal);
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 999;
|
||||||
|
background-color: var(--bg-surface-low);
|
||||||
|
box-shadow: 0 -4px 0 var(--bg-surface-low),
|
||||||
|
inset 0 -1px 0 var(--bg-surface-border);
|
||||||
|
|
||||||
|
&__content {
|
||||||
|
padding: 0 var(--sp-normal);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__cards-wrapper {
|
&__cards-wrapper {
|
||||||
|
|
|
@ -9,8 +9,17 @@
|
||||||
padding: var(--sp-loose) var(--sp-extra-loose);
|
padding: var(--sp-loose) var(--sp-extra-loose);
|
||||||
}
|
}
|
||||||
|
|
||||||
& .tabs__content {
|
& .tabs {
|
||||||
padding: 0 var(--sp-normal);
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 999;
|
||||||
|
background-color: var(--bg-surface-low);
|
||||||
|
box-shadow: 0 -4px 0 var(--bg-surface-low),
|
||||||
|
inset 0 -1px 0 var(--bg-surface-border);
|
||||||
|
|
||||||
|
&__content {
|
||||||
|
padding: 0 var(--sp-normal);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__cards-wrapper {
|
&__cards-wrapper {
|
||||||
|
@ -34,4 +43,4 @@
|
||||||
.space-settings .room-permissions__card,
|
.space-settings .room-permissions__card,
|
||||||
.space-settings .room-members {
|
.space-settings .room-members {
|
||||||
@extend .space-settings__card;
|
@extend .space-settings__card;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue