Skip to content

Commit

Permalink
Merge pull request #830 from VEuPathDB/style/fix-grid-layout-bug
Browse files Browse the repository at this point in the history
Fix bug with grid rows and breakpoints
  • Loading branch information
jernestmyers authored Feb 9, 2024
2 parents 9734e43 + 0aa5163 commit 5c36a85
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packages/libs/web-common/src/styles/default-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ body.vpdb-Body {
grid-template-rows: $expanded-header-height auto 1fr auto;

@media screen and (max-width: $hamburger-width) {
grid-template-rows: auto auto 1fr auto !important;
grid-template-rows: auto auto 1fr auto;
}

grid-template-columns: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,3 @@ body.vpdb-Body .ExternalContentController a[name]::before {
body.vpdb-Body .wdk-RecordSidebarContainer {
top: 2em;
}

body.vpdb-Body .vpdb-RootContainer {
@media screen and (max-width: $mobile-width) {
grid-template-areas:
'header'
'subheader'
'banner'
'nav'
'content'
'side'
'footer';

grid-template-rows: auto auto auto auto 1fr auto auto;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ body.vpdb-Body .vpdb-RootContainer {

grid-template-rows: 11em auto auto 1fr auto;

@media screen and (max-width: $hamburger-width) {
grid-template-rows: auto auto auto 1fr auto;
}

&__home {
grid-template-areas:
'header header header'
Expand All @@ -32,6 +36,19 @@ body.vpdb-Body .vpdb-RootContainer {
'nav side side'
'footer footer footer';
}

@media screen and (max-width: $mobile-width) {
grid-template-areas:
'header'
'subheader'
'banner'
'nav'
'content'
'side'
'footer';

grid-template-rows: auto auto auto auto 1fr auto auto;
}
}

&__home.vpdb-RootContainer__news-expanded {
Expand Down

0 comments on commit 5c36a85

Please sign in to comment.