Skip to content

Commit 3177a2d

Browse files
authored
Merge pull request #24 from 10gen/kk-fix-navbar-on-small-screens
Fix the navbar from wrapping on small screens
2 parents 06eae58 + 2c2ae21 commit 3177a2d

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

themes/mongodb-tutorials/src/styles/bem-components/navbar-download.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
.navbar-download {
44
align-items: center;
55
display: inline-flex;
6-
margin-right: 40px;
76

87
&__text {
98
color: $green-primary;

themes/mongodb-tutorials/src/styles/bem-components/navbar-links.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
.navbar-links {
44
display: inline-block;
55
margin: 0 40px;
6-
overflow: hidden;
76

87
&__item {
98
color: $black-primary;

themes/mongodb-tutorials/src/styles/navbar.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,10 @@
6161
width: 100%;
6262
}
6363
}
64+
65+
// hide the links on small screens
66+
@media (max-width: 1200px) {
67+
.navbar-links, .navbar-download, #gsearch {
68+
display: none;
69+
}
70+
}

themes/mongodb-tutorials/static/css/app.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/mongodb-tutorials/static/css/navbar.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)