Skip to content
Snippets Groups Projects
Commit e92ee9b6 authored by alexisben's avatar alexisben
Browse files

header height fix

parent 116024a3
No related merge requests found
......@@ -52,7 +52,7 @@ class MainMenu {
resize () {
const isMobile = window.innerWidth <= breakpoints.md;
document.documentElement.style.setProperty('--header-height', this.element.offsetHeight + 'px');
// document.documentElement.style.setProperty('--header-height', this.element.offsetHeight + 'px');
// is state changed ?
if (this.state.isMobile === isMobile) {
return null;
......
......@@ -4,7 +4,7 @@
box-sizing: border-box
\:root
--header-height: $header-nav-padding-y * 2 + $header-logo-height
--header-height: #{$header-nav-padding-y * 2 + $header-logo-height}
body
color: $body-color
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment