-
Notifications
You must be signed in to change notification settings - Fork 0
/
media-query.scss
43 lines (36 loc) · 838 Bytes
/
media-query.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* media aliases and breakpoints*/
$screen-sm-min: 600px;
$screen-md-min: 800px;
$screen-lg-min: 1024px;
$screen-xl-min: 1400px;
$screen-xs-max: 599px;
$screen-sm-max: 799px;
$screen-md-max: 1023px;
$screen-lg-max: 1399px;
$screen-xl-max: 5000px;
/* media devices*/
@mixin xs {
@media screen and (max-width: #{$screen-xs-max}) {
@content;
}
}
@mixin sm {
@media screen and (min-width: #{$screen-sm-min}) and (max-width: #{$screen-sm-max}) {
@content;
}
}
@mixin md {
@media screen and (min-width: #{$screen-md-min}) and (max-width: #{$screen-md-max}) {
@content;
}
}
@mixin lg {
@media screen and (min-width: #{$screen-lg-min}) and (max-width: #{$screen-lg-max}) {
@content;
}
}
@mixin xl {
@media screen and (min-width: #{$screen-xl-min}) and (max-width: #{$screen-xl-max}) {
@content;
}
}