-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresponsive.less
More file actions
52 lines (41 loc) · 1.05 KB
/
responsive.less
File metadata and controls
52 lines (41 loc) · 1.05 KB
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
// =============================================
// Breakpoints
// =============================================
@bp-xsmall: 420px;
@bp-small: 599px;
@bp-medium: 764px;
@bp-large: 989px;
@bp-xlarge: 1199px;
.bp(@feature, @value, @content) {
@media only screen and (@feature: @value) {
@content;
}
}
// =============================================
// Easier Responsive Mixins
// =============================================
.breakpoint-extra-small(@content) {
.bp(max-width, @bp-xsmall, @content);
}
.breakpoint-small(@content) {
.bp(max-width, @bp-small, @content);
}
.breakpoint-medium(@content) {
.bp(max-width, @bp-medium, @content);
}
.breakpoint-large(@content) {
.bp(max-width, @bp-large, @content);
}
.breakpoint-extra-large(@content) {
.bp(max-width, @bp-xlarge, @content);
}
.breakpoint-medium-or-larger(@content) {
.bp(min-width, @bp-medium + 1, @content);
}
.breakpoint-large-or-larger(@content) {
.bp(min-width, @bp-large + 1, @content);
}
}
.breakpoint-xl-or-larger(@content) {
.bp(min-width, @bp-xlarge + 1, @content);
}