Mobile nav at 736px instead of 1024px (#179)

* Mobile nav at 736px instead of 1024px

I was not totally clear on the issue here, but I assumed is that you wanted normal navigation to begin at 736px instead of 1024px. I think this does it.

Tested 735px was mobile, 736px was normal

Fixes #102

* 735 and 736 in more places
This commit is contained in:
Joel Marcey 2017-10-30 11:00:04 -07:00 committed by GitHub
parent 5263976ad3
commit 47c955c7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,7 +163,7 @@ header h2 {
.wrapper { .wrapper {
margin: 0px auto; margin: 0px auto;
max-width: 1024px; max-width: 736px;
padding: 0 20px; padding: 0 20px;
} }
@ -290,7 +290,7 @@ header h2 {
line-height: 1.7; line-height: 1.7;
max-width: 50rem; max-width: 50rem;
} }
@media (max-width: 1024px) { @media (max-width: 735px) {
.mainContainer .wrapper p, .mainContainer .wrapper p,
.blockElement p, .blockElement p,
.mainContainer .wrapper ul li, .mainContainer .wrapper ul li,
@ -464,7 +464,7 @@ header h2 {
padding-right: 40px; padding-right: 40px;
} }
} }
@media only screen and (min-width: 1024px) { @media only screen and (min-width: 736px) {
.mainContainer .wrapper .post { .mainContainer .wrapper .post {
box-sizing: border-box; box-sizing: border-box;
display: block; display: block;
@ -707,7 +707,7 @@ input#search_input_react:focus, input#search_input_react:active {
color: #fff; color: #fff;
width: 220px; width: 220px;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
.navSearchWrapper { .navSearchWrapper {
width: 50%; width: 50%;
} }
@ -756,7 +756,7 @@ pre code {
font-weight: normal; font-weight: normal;
text-decoration: none; text-decoration: none;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
a.edit-page-link.button{ a.edit-page-link.button{
display: none; display: none;
} }
@ -797,7 +797,7 @@ pre code {
flex: 0 1 500px; flex: 0 1 500px;
margin-right: 40px; margin-right: 40px;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
.imageAlignSide .blockImage { .imageAlignSide .blockImage {
display: none; display: none;
} }
@ -877,7 +877,7 @@ pre code {
.container.paddingTop { .container.paddingTop {
padding-top: 80px; padding-top: 80px;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
.container.paddingBottom { .container.paddingBottom {
padding-bottom: 40px; padding-bottom: 40px;
} }
@ -897,7 +897,7 @@ pre code {
position: absolute; position: absolute;
} }
} }
@media only screen and (min-width: 1024px) { @media only screen and (min-width: 736px) {
.gridBlock { .gridBlock {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -1069,7 +1069,7 @@ ul#languages li {
transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s; transition: opacity 0.5s, width 0.1s 0.5s, height 0.1s 0.5s;
} }
@media only screen and (min-width: 1024px) { @media only screen and (min-width: 736px) {
.navPusher { .navPusher {
padding-top: 50px; padding-top: 50px;
} }
@ -1082,7 +1082,7 @@ ul#languages li {
transition: opacity 0.5s; transition: opacity 0.5s;
z-index: 100; z-index: 100;
} }
@media only screen and (max-width: 1023px) { @media only screen and (max-width: 735px) {
.reactNavSearchWrapper::before { .reactNavSearchWrapper::before {
left: 6px; left: 6px;
} }
@ -1140,7 +1140,7 @@ ul#languages li {
flex-direction: row; flex-direction: row;
} }
} }
@media only screen and (min-width: 1024px) { @media only screen and (min-width: 736px) {
.navSearchWrapper { .navSearchWrapper {
position: relative; position: relative;
top: auto; top: auto;
@ -1204,7 +1204,7 @@ ul#languages li {
.docs-prev { .docs-prev {
float: left; float: left;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
.docs-prevnext { .docs-prevnext {
height: 40px; height: 40px;
} }
@ -1261,7 +1261,7 @@ nav.toc section {
nav.toc:last-child { nav.toc:last-child {
padding-bottom: 100px; padding-bottom: 100px;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
nav.toc { nav.toc {
width: 100%; width: 100%;
} }
@ -1432,7 +1432,7 @@ nav.toc .toggleNav .navBreadcrumb h2 {
padding: 40px 0 0; padding: 40px 0 0;
} }
} }
@media only screen and (min-width: 1024px) { @media only screen and (min-width: 736px) {
.navToggle { .navToggle {
display: none; display: none;
} }
@ -1577,7 +1577,7 @@ table tr th {
.blog-recent > a { .blog-recent > a {
float: left; float: left;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
.blog-recent { .blog-recent {
height: 40px; height: 40px;
} }
@ -1653,7 +1653,7 @@ h6:hover .header-link {
width: 110px; width: 110px;
padding: 20px; padding: 20px;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
.gridBlock .fourByGridBlock { .gridBlock .fourByGridBlock {
box-sizing: border-box; box-sizing: border-box;
flex: 1 0 26%; flex: 1 0 26%;
@ -1695,7 +1695,7 @@ h6:hover .header-link {
padding: 20px; padding: 20px;
} }
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) { @media only screen and (min-device-width: 360px) and (max-device-width: 735px) {
.showcaseSection .logos img { .showcaseSection .logos img {
max-height: 64px; max-height: 64px;
width: 64px; width: 64px;
@ -1741,7 +1741,7 @@ footer .sitemap .nav-home:hover,
footer .sitemap .nav-home:focus { footer .sitemap .nav-home:focus {
opacity: 1.0; opacity: 1.0;
} }
@media screen and (max-width: 740px) { @media screen and (max-width: 735px) {
footer .sitemap { footer .sitemap {
display: none; display: none;
} }
@ -1800,7 +1800,7 @@ footer .copyright {
display: block; display: block;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 735px) {
.entry-share { .entry-share {
display: none; display: none;
} }