Skip to content

Commit 30bcd57

Browse files
committed
Fix desktop nav in mobile
1 parent c7abbf4 commit 30bcd57

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
<body>
1919
<!-- Navbar -->
20-
<!-- TODO: Fix Issue, Nav Buttons Don't Work (Desktop & Mobile) -->
2120
<nav class="top">
2221
<div class="bar blue card left-align large">
2322
<a
@@ -28,7 +27,6 @@
2827
title="Toggle Navigation Menu"
2928
><i class="fa fa-bars"></i
3029
></a>
31-
<!-- TODO: Fix Issue, Desktop Nav Is Visible on Mobile -->
3230
<a
3331
id="nav-logo"
3432
class="bar-item button padding-large white"
@@ -37,13 +35,13 @@
3735
>
3836
<a
3937
id="nav-challenges"
40-
class="bar-item button padding-large hover-white"
38+
class="bar-item button padding-large hover-white hide-small"
4139
href="#challenges"
4240
>Browse Challenges</a
4341
>
4442
<a
4543
id="nav-signup"
46-
class="bar-item button padding-large hover-white"
44+
class="bar-item button padding-large hover-white hide-small"
4745
href="#signup"
4846
>Sign Up</a
4947
>

src/styles.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ form > span {
536536
.col.s12 {
537537
width: 99.99999%;
538538
}
539-
@media (min-width: 601px) {
539+
@media screen and (min-width: 601px) {
540540
.col.m1 {
541541
width: 8.33333%;
542542
}
@@ -579,7 +579,7 @@ form > span {
579579
width: 99.99999%;
580580
}
581581
}
582-
@media (min-width: 993px) {
582+
@media screen and (min-width: 993px) {
583583
.col.l1 {
584584
width: 8.33333%;
585585
}
@@ -661,7 +661,7 @@ form > span {
661661
.show-inline-block {
662662
display: inline-block !important;
663663
}
664-
@media (max-width: 1205px) {
664+
@media screen and (max-width: 1205px) {
665665
.auto {
666666
max-width: 95%;
667667
}
@@ -672,7 +672,7 @@ form > span {
672672
/* TODO: Invert banner colors using CSS */
673673
}
674674

675-
@media (max-width: 600px) {
675+
@media screen and (max-width: 600px) {
676676
.modal-content {
677677
margin: 0 10px;
678678
width: auto !important;
@@ -705,15 +705,15 @@ form > span {
705705
width: 100%;
706706
}
707707
}
708-
@media (max-width: 768px) {
708+
@media screen and (max-width: 768px) {
709709
.modal-content {
710710
width: 500px;
711711
}
712712
.modal {
713713
padding-top: 50px;
714714
}
715715
}
716-
@media (min-width: 993px) {
716+
@media screen and (min-width: 993px) {
717717
.modal-content {
718718
width: 900px;
719719
}
@@ -724,12 +724,12 @@ form > span {
724724
display: block !important;
725725
}
726726
}
727-
@media (max-width: 992px) and (min-width: 601px) {
727+
@media screen and (max-width: 992px) and (min-width: 601px) {
728728
.hide-medium {
729729
display: none !important;
730730
}
731731
}
732-
@media (max-width: 992px) {
732+
@media screen and (max-width: 992px) {
733733
.sidebar.collapse {
734734
display: none;
735735
}

0 commit comments

Comments
 (0)