Skip to content

Commit

Permalink
Use min-width for mobile breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lucka-me committed Dec 21, 2020
1 parent 55b8371 commit a10f542
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 6 additions & 2 deletions src/ui/dashboard/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;

@media screen and (max-width: 620px) {
@media not all and (min-width: 620px) {
flex-flow: column nowrap;
align-items: stretch;

&.view-hide {
display: none;
}
}

> .mdc-card {
height: 200px;
margin: 4px;
flex-basis: 0%;

@media screen and (max-width: 620px) {
@media not all and (min-width: 620px) {
margin: 4px 8px;
min-width: 0;
min-height: 200px;
Expand Down
6 changes: 6 additions & 0 deletions src/ui/nomination-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
overflow-y: auto;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;

@media not all and (min-width: 620px) {
&.view-hide {
display: none;
}
}
}
5 changes: 0 additions & 5 deletions src/ui/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,4 @@ a { color: var(--mdc-theme-text-primary-on-light); }
flex: 1;
display: flex;
flex-flow: row nowrap;
}

/* Mobile View */
@media screen and (max-width: 620px) {
.view-hide { display: none !important; }
}

0 comments on commit a10f542

Please sign in to comment.