mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-18 17:12:23 -06:00
Fix main content negative margin for viewports in [$md, $nav-width + $content-width]
(#1177)
This commit is contained in:
parent
b20acf0edb
commit
51e1c29021
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user