Refactored responsive stuff.

This commit is contained in:
Maverick
2015-06-05 20:24:09 +10:00
parent 40d026c7cd
commit 440d126579
7 changed files with 61 additions and 46 deletions

28
app/less/responsive.less Normal file
View File

@@ -0,0 +1,28 @@
// Screens less than 1024 wide
// More will be added over time to support mobile devices better
// These are designed to trickle down. So tablet styles will apply to tablet and smaller, etc
// To overwrite, put the smallest devices at the bottom
.smallPhone(@rules) {
@media only screen and (max-width: 350px) {
@rules();
}
}
.medPhone(@rules) {
@media only screen and /*(min-width: 351px) and */ (max-width: 550px) {
@rules();
}
}
.largePhone(@rules) {
@media only screen and /*(min-width: 551px) and */ (max-width: 640px) {
@rules();
}
}
.tablet(@rules) {
@media only screen and /*(min-width: 601px) and */(max-width: 1024px) {
@rules();
}
}