Skip to content

Commit 1aae864

Browse files
committed
Fix show/hide on mobile/desktop behavior and remove ember selectors
1 parent 5f01bd1 commit 1aae864

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

common/common.scss

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
@if $display_on_desktop == "false" {
2-
.banner-box {
2+
.desktop-view .banner-box {
3+
display: none !important;
4+
}
5+
}
6+
@if $display_on_mobile == "false" {
7+
.mobile-view .banner-box {
38
display: none !important;
49
}
510
}
611

712
// Default positioning when outlet is shared
8-
#main > div.ember-view {
13+
#main > div {
914
display: flex;
1015
flex-direction: column;
1116

@@ -29,7 +34,7 @@
2934
}
3035

3136
@if $swap_default_positioning == "true" {
32-
#main > div.ember-view {
37+
#main > div {
3338
.below-site-header-outlet {
3439
order: -2;
3540
& + .below-site-header-outlet {
@@ -249,12 +254,6 @@
249254
}
250255

251256
@media screen and (max-width: 736px) {
252-
@if $display_on_mobile == "false" {
253-
.banner-box {
254-
display: none !important;
255-
}
256-
}
257-
258257
// Wrap columns
259258
.banner-box .row {
260259
display: block;
@@ -286,16 +285,8 @@
286285
}
287286
}
288287

289-
@media screen and (min-width: 736px) {
290-
@if $display_on_desktop == "false" {
291-
.banner-box {
292-
display: none !important;
293-
}
294-
}
295-
}
296-
297288
// Experimental mobile width tweaks.
298-
.mobile-view #main div.ember-view #main-outlet {
289+
.mobile-view #main > div #main-outlet {
299290
width: -webkit-fill-available;
300291
width: -moz-available;
301292
}

0 commit comments

Comments
 (0)