Last active
October 20, 2017 11:59
-
-
Save gouvermxt/2c435fe45fa62c4da38a2662380c436a to your computer and use it in GitHub Desktop.
Basic media queries for base.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* From big tablets to 1200px (widths smaller then the 1140px row) */ | |
@media only screen and (max-width: 1200px) { | |
.row { | |
padding: 0 2%; | |
} | |
section { | |
padding-top: 2%; | |
} | |
} | |
/* Small tablets to big tablets: from 767px to 1023px (eg. ipad in landscape mode) */ | |
@media only screen and (max-width: 1023px) { | |
body { | |
font-size: 11px; | |
} | |
// h1 { | |
// font-size: 220%; | |
// } | |
.long-copy { | |
width: 80%; | |
margin-left: 10%; | |
} | |
.icon-small { | |
width: 17px; | |
margin-right: 5px; | |
} | |
.box { | |
margin-left: 0; | |
} | |
} | |
/* Small phones to small tablets: from 480px to 767px (eg. ipad 2, iphone 6) */ | |
@media only screen and (max-width: 767px) { | |
body { | |
font-size: 11px; | |
} | |
.logo { | |
height: 70px; | |
} | |
.col { | |
margin: 0 0 4%; | |
} | |
.col, | |
.row { | |
width: 100%; | |
/* grid cols are now stacked */ | |
// margin: 0 0 4%; | |
} | |
h2:after { | |
margin: 20px auto 0; | |
} | |
.long-copy { | |
width: 100%; | |
margin-left: 0; | |
} | |
.box { | |
text-align: center; | |
padding-top: 20px; | |
width: 95%; | |
margin-left: 2.5%; | |
/* half of the 90% width, to centralize */ | |
margin-bottom: 10px; | |
} | |
footer { | |
text-align: center; | |
} | |
.footer-nav, | |
.social-links { | |
float: unset; | |
} | |
.footer-nav { | |
margin-bottom: 10px; | |
} | |
} | |
/* Small phones: from 0 to 480px (eg. iphone 4 and 5) */ | |
@media only screen and (max-width: 480px) { | |
.footer-nav li, | |
.social-links li { | |
margin-right: 16px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment