mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-25 00:40:24 +00:00
Add partial for media query mixins.
This commit is contained in:
parent
92e81718a3
commit
c6a69e09fe
1 changed files with 26 additions and 0 deletions
26
less/mixins/media-queries.less
Normal file
26
less/mixins/media-queries.less
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// Media query mixins
|
||||
|
||||
.screen-xs(@rules) {
|
||||
@media (max-width: @screen-xs-max) { @rules(); }
|
||||
}
|
||||
|
||||
.screen-sm(@rules) {
|
||||
@media (min-width: @screen-sm-min) { @rules(); }
|
||||
}
|
||||
|
||||
.screen-sm-max(@rules) {
|
||||
@media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) { @rules(); }
|
||||
}
|
||||
|
||||
.screen-md(@rules) {
|
||||
@media (min-width: @screen-md-min) { @rules(); }
|
||||
}
|
||||
|
||||
.screen-md-max(@rules) {
|
||||
@media (min-width: @screen-md-min) and (max-width: @screen-md-max) { @rules(); }
|
||||
}
|
||||
|
||||
.screen-lg(@rules) {
|
||||
@media (min-width: @screen-lg-min) { @rules(); }
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue