-
Notifications
You must be signed in to change notification settings - Fork 7
/
classes.scss
85 lines (62 loc) · 1.49 KB
/
classes.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@import "sass-breakpoints/index";
@import "./mixins.scss";
@each $breakpoint, $units in $breakpoints {
@include breakpoint($breakpoint) {
$size: 'auto';
.mx\:#{$size}\@#{$breakpoint} {
@include mx($size);
}
.ml\:#{$size}\@#{$breakpoint} {
@include ml($size);
}
.mr\:#{$size}\@#{$breakpoint} {
@include mr($size);
}
@each $size, $units in $spacing-sizes {
// === Margin ===
.m\:#{$size}\@#{$breakpoint} {
@include m($size);
}
.mx\:#{$size}\@#{$breakpoint} {
@include mx($size);
}
.my\:#{$size}\@#{$breakpoint} {
@include my($size);
}
.ml\:#{$size}\@#{$breakpoint} {
@include ml($size);
}
.mt\:#{$size}\@#{$breakpoint} {
@include mt($size);
}
.mr\:#{$size}\@#{$breakpoint} {
@include mr($size);
}
.mb\:#{$size}\@#{$breakpoint} {
@include mb($size);
}
// === Padding ===
.p\:#{$size}\@#{$breakpoint} {
@include p($size);
}
.px\:#{$size}\@#{$breakpoint} {
@include px($size);
}
.py\:#{$size}\@#{$breakpoint} {
@include py($size);
}
.pl\:#{$size}\@#{$breakpoint} {
@include pl($size);
}
.pt\:#{$size}\@#{$breakpoint} {
@include pt($size);
}
.pr\:#{$size}\@#{$breakpoint} {
@include pr($size);
}
.pb\:#{$size}\@#{$breakpoint} {
@include pb($size);
}
}
}
}