2014-03-11 12:32:55 +01:00
|
|
|
// Media query mixins
|
|
|
|
|
2014-09-18 06:57:51 +02:00
|
|
|
.media-xs(@rules) {
|
2014-03-11 12:32:55 +01:00
|
|
|
@media (max-width: @screen-xs-max) { @rules(); }
|
|
|
|
}
|
|
|
|
|
2014-09-18 06:57:51 +02:00
|
|
|
.media-sm(@rules) {
|
2014-03-11 12:32:55 +01:00
|
|
|
@media (min-width: @screen-sm-min) { @rules(); }
|
|
|
|
}
|
|
|
|
|
2014-09-18 06:57:51 +02:00
|
|
|
.media-sm-max(@rules) {
|
2014-03-11 12:32:55 +01:00
|
|
|
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { @rules(); }
|
|
|
|
}
|
|
|
|
|
2014-09-18 06:57:51 +02:00
|
|
|
.media-md(@rules) {
|
2014-03-11 12:32:55 +01:00
|
|
|
@media (min-width: @screen-md-min) { @rules(); }
|
|
|
|
}
|
|
|
|
|
2014-09-18 06:57:51 +02:00
|
|
|
.media-md-max(@rules) {
|
2014-03-11 12:32:55 +01:00
|
|
|
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) { @rules(); }
|
|
|
|
}
|
|
|
|
|
2014-09-18 06:57:51 +02:00
|
|
|
.media-lg(@rules) {
|
2014-03-11 12:32:55 +01:00
|
|
|
@media (min-width: @screen-lg-min) { @rules(); }
|
|
|
|
}
|
|
|
|
|