Skip to content

Commit 0d095ec

Browse files
committed
Fix bug with grid rows and breakpoints
1 parent 2cbdaf8 commit 0d095ec

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

packages/libs/web-common/src/styles/default-layout.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ body.vpdb-Body {
3636
grid-template-rows: $expanded-header-height auto 1fr auto;
3737

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

4242
grid-template-columns: 100%;

packages/sites/genomics-site/webapp/wdkCustomization/js/client/components/homepage/VEuPathDBHomePage.scss

-15
Original file line numberDiff line numberDiff line change
@@ -194,18 +194,3 @@ body.vpdb-Body .ExternalContentController a[name]::before {
194194
body.vpdb-Body .wdk-RecordSidebarContainer {
195195
top: 2em;
196196
}
197-
198-
body.vpdb-Body .vpdb-RootContainer {
199-
@media screen and (max-width: $mobile-width) {
200-
grid-template-areas:
201-
'header'
202-
'subheader'
203-
'banner'
204-
'nav'
205-
'content'
206-
'side'
207-
'footer';
208-
209-
grid-template-rows: auto auto auto auto 1fr auto auto;
210-
}
211-
}

packages/sites/genomics-site/webapp/wdkCustomization/js/client/styles/home-page-layout.scss

+17
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ body.vpdb-Body .vpdb-RootContainer {
1010

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

13+
@media screen and (max-width: $hamburger-width) {
14+
grid-template-rows: auto auto auto 1fr auto;
15+
}
16+
1317
&__home {
1418
grid-template-areas:
1519
'header header header'
@@ -32,6 +36,19 @@ body.vpdb-Body .vpdb-RootContainer {
3236
'nav side side'
3337
'footer footer footer';
3438
}
39+
40+
@media screen and (max-width: $mobile-width) {
41+
grid-template-areas:
42+
'header'
43+
'subheader'
44+
'banner'
45+
'nav'
46+
'content'
47+
'side'
48+
'footer';
49+
50+
grid-template-rows: auto auto auto auto 1fr auto auto;
51+
}
3552
}
3653

3754
&__home.vpdb-RootContainer__news-expanded {

0 commit comments

Comments
 (0)