Fix main content negative margin for viewports in [$md, $nav-width + $content-width] (#1177)

This commit is contained in:
Dima
2023-02-24 00:07:42 +01:00
committed by GitHub
parent b20acf0edb
commit 51e1c29021
+6 -2
View File
@@ -29,9 +29,13 @@
} }
@include mq(lg) { @include mq(lg) {
margin-left: calc( // stylelint-disable function-name-case
(100% - #{$nav-width + $content-width}) / 2 + #{$nav-width} // disable for Max(), we want to use the CSS max() function
margin-left: Max(
#{$nav-width},
calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width})
); );
// stylelint-enable function-name-case
} }
} }