Fix padding in room header

This commit is contained in:
Ajay Bura 2022-04-24 16:17:26 +05:30
parent ed8eca0c1d
commit 74216f75e2
4 changed files with 11 additions and 8 deletions

View file

@ -1,6 +1,5 @@
@use '../../partials/text';
@use '../../partials/dir';
@use '../../partials/screen';
.header {
@include dir.side(padding, var(--sp-normal), var(--sp-extra-tight));
@ -41,8 +40,4 @@
display: -webkit-box;
}
}
@include screen.smallerThan(mobileBreakpoint) {
@include dir.side(padding, calc(var(--sp-normal) - 10px), var(--sp-extra-tight));
}
}

View file

@ -1,4 +1,6 @@
@use '../../partials/flex';
@use '../../partials/screen';
@use '../../partials/dir';
.room-view {
@extend .cp-fx__column;
@ -18,6 +20,12 @@
box-shadow: var(--bs-popup);
}
& .header {
@include screen.smallerThan(mobileBreakpoint) {
padding: 0 var(--sp-tight);
}
}
&__content-wrapper {
@extend .cp-fx__item-one;
@extend .cp-fx__column;

View file

@ -27,14 +27,14 @@
}
}
.header .room-header__drawer-btn {
.room-header__drawer-btn {
@include screen.smallerThan(tabletBreakpoint) {
display: none;
}
}
.header .room-header__back-btn {
@include dir.side(margin, 0, 5px);
.room-header__back-btn {
@include dir.side(margin, 0, var(--sp-tight));
@include screen.biggerThan(mobileBreakpoint) {
display: none;