-
Notifications
You must be signed in to change notification settings - Fork 0
/
_mixins.scss
63 lines (57 loc) · 1.37 KB
/
_mixins.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@mixin media-breakpoint($breakpoint) {
@if $breakpoint == "xs" {
@media (max-width: 575px) {
@content;
}
}
@else if $breakpoint == "sm" {
@media (max-width: 767px) {
@content;
}
}
@else if $breakpoint == "smland" {
@media (max-width: 767px) and (orientation: landscape) { //991px
@content;
}
}
@else if $breakpoint == "sm-md" {
@media (min-width: 576px) and (max-width: 767px) {
@content;
}
}
@else if $breakpoint == "md" {
@media (max-width: 1015px) { //991px
@content;
}
}
@else if $breakpoint == "mdport" {
@media (max-width: 1015px) and (orientation: portrait) { //991px
@content;
}
}
@else if $breakpoint == "md-lg" {
@media (min-width: 768px) and (max-width: 991px) {
@content;
}
}
@else if $breakpoint == "lg" {
@media (max-width: 1199px) {
@content;
}
}
@else if $breakpoint == "lg-xl" {
@media (min-width: 992px) and (max-width: 1199px) {
@content;
}
}
@else if $breakpoint == "xl" {
@media (min-width: 1200px) {
@content;
}
}
@else {
@media (max-width: $breakpoint) {
@content;
}
}
}