-
Notifications
You must be signed in to change notification settings - Fork 3
/
_module.less
48 lines (30 loc) · 986 Bytes
/
_module.less
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
43
44
45
46
47
48
// media all (styles-m.css)
& when (@media-common = true) {
}
// only mobile-small: maximum 479px
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__xs) {
}
// only mobile-all: maximum 767px
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
}
// minimum 768px
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
}
// minimum 1024px
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__l) {
}
// minimum 1440px
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__xl) {
}
// non-mobile breakpoint in media all (styles-m.css)
& when (@media-common = true) {
// custom: maximum 1023px
@media screen and (max-width: @screen__l) {
}
}
// media large (styles-l.css)
& when (@media-common = false) {
// e.g. non-standard Magento breakpoint
@media screen and (min-width: 1200px) {
}
}