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
@media (min-width: 1200px) { | |
.makeMyStyles(940px, 15px) | |
} | |
@media (max-width: 1199px) { | |
.makeMyStyles(768px, 12px) | |
} | |
.makeMyStyles(@width, @padding) { | |
.makeHalfWidthColumn() { // just an example mixin | |
width: @width / 2l |
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
// Can and should use the variables set in variables.less for different media sizes. i.e. @gridColumnWidth and @gridColumnWidth768 etc | |
@media (min-width: 1200px) { | |
.makeResponsiveGrid(60px, 10px, 16) | |
} | |
@media (max-width: 1199px) { | |
.makeResponsiveGrid(48px, 12px, 16) | |
} | |
// Can be extended infinitely | |
.makeResponsiveGrid(@gridColumnWidth, @gridGutterWidth, @columns) { |