mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
fix: case of vertical scrollbar overlaying content (#2013)
This commit is contained in:
parent
9675a85372
commit
1c053746c5
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ body {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
counter-reset: captions;
|
counter-reset: captions;
|
||||||
|
|
||||||
// Prevent horizontal scrollbar in case of 100vw grid applied to page with vertical scrollbar.
|
// Prevent horizontal scrollbar in case a site admin adds fixed width content without applying `max-width: 100%`.
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|
||||||
// Offset body content by fixed navbar height.
|
// Offset body content by fixed navbar height.
|
||||||
|
@ -55,7 +55,7 @@ body.no-navbar {
|
||||||
min-height: calc(100vh - 70px);
|
min-height: calc(100vh - 70px);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: auto 1fr auto;
|
grid-template-rows: auto 1fr auto;
|
||||||
grid-template-columns: 100vw;
|
grid-template-columns: auto;
|
||||||
}
|
}
|
||||||
@include media-breakpoint-down(md) {
|
@include media-breakpoint-down(md) {
|
||||||
.page-wrapper {
|
.page-wrapper {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue