[FIX] odoo_theme: fix scrollTo margin/padding with new headers height
The scroll padding needed increasing with the new sub-header. Unnecessary calc() and parenthesis on the headers-height variable are removed.
This commit is contained in:
parent
26bc1cd707
commit
0b536debac
@ -103,8 +103,8 @@
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
padding-top: $o-header-height + 10px;
|
||||
margin-top: -$o-header-height - 10px;
|
||||
padding-top: calc(#{$o-headers-height} + 10px);
|
||||
margin-top: -$o-headers-height - 10px;
|
||||
}
|
||||
|
||||
|
||||
|
@ -235,10 +235,10 @@ $o-header-mobile-height: 50px;
|
||||
$o-header-height: 80px;
|
||||
$o-header-white: #ffffff;
|
||||
|
||||
$o-subheader-height: calc(#{$o-header-height}/2.5);
|
||||
$o-subheader-height: 32px;
|
||||
|
||||
$o-headers-mobile-height: calc(#{$o-header-mobile-height} + (#{$o-subheader-height}));
|
||||
$o-headers-height: calc(#{$o-header-height} + #{$o-subheader-height});
|
||||
$o-headers-mobile-height: $o-header-mobile-height + $o-subheader-height;
|
||||
$o-headers-height: $o-header-height + $o-subheader-height;
|
||||
// Navigation
|
||||
$o-side-nav-width: 350px;
|
||||
$o-on-page-width: 20%;
|
||||
|
@ -207,7 +207,7 @@ header {
|
||||
}
|
||||
.o_side_nav-inner {
|
||||
width: 90%;
|
||||
height: calc(100% - (#{$o-headers-mobile-height});
|
||||
height: calc(100% - #{$o-headers-mobile-height});
|
||||
overflow-y: auto;
|
||||
position: fixed;
|
||||
left: -100%;
|
||||
@ -220,7 +220,7 @@ header {
|
||||
font-weight: $fw_regular;
|
||||
@include media-breakpoint-up(lg) {
|
||||
width: $o-side-nav-width;
|
||||
height: calc(100vh - (#{$o-headers-height}));
|
||||
height: calc(100vh - #{$o-headers-height});
|
||||
left: 0;
|
||||
padding-top: $padding-m;
|
||||
padding-left: $padding-m;
|
||||
|
Loading…
Reference in New Issue
Block a user