Last active
September 2, 2016 06:26
-
-
Save Sysetup/42a17085c2a75e6b63a57f2e3fdfc521 to your computer and use it in GitHub Desktop.
Basic media quieries.
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<section> | |
;) | |
</section> | |
</body> | |
</html> |
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
/* | |
============================= | |
Sysetup's custom styles. | |
main.less | |
============================= | |
*/ | |
// Variables | |
@import "base/variables"; | |
// Pages | |
@import "base/pages"; |
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
/* Small devices (tablets, 767px and down) */ | |
@media (max-width: @sm -1) { | |
section{ | |
} | |
} | |
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: @sm) { | |
section{ | |
} | |
} | |
/* Medium devices (desktops, 992px and up) */ | |
@media (min-width: @md) { | |
section{ | |
} | |
} | |
/* Large screen / wide desktops and up */ | |
@media (min-width: @lg) { | |
section{ | |
} | |
} |
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
// | |
//Break points | |
// | |
@xs:480px; | |
// Small screen / tablet | |
@sm:768px; | |
// Medium screen / desktop | |
@md:992px; | |
// Large screen / wide desktop | |
@lg:1200px; | |
// Extra large screen | |
@xl:1600px; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment