blob: 304d8d1c942051dcbf3f60f415b7d5d2055e97f1 (
plain) (
blame)
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
|
@import "../../functions";
@import "../../variables";
@import "../../variables-dark";
@import "../../maps";
@import "../../mixins";
$utilities: ();
@include describe("utilities/api") {
@include it("generates utilities for each breakpoints") {
$utilities: (
margin: (
property: margin,
values: auto
),
padding: (
property: padding,
responsive: true,
values: 1rem
),
font-size: (
property: font-size,
values: (large: 1.25rem),
print: true
)
) !global;
$grid-breakpoints: (
xs: 0,
sm: 333px,
md: 666px
) !global;
@include assert() {
@include output() {
@import "../../utilities/api";
}
@include expect() {
// margin is not set to responsive
.margin-auto {
margin: auto !important;
}
// padding is, though
.padding-1rem {
padding: 1rem !important;
}
.font-size-large {
font-size: 1.25rem !important;
}
@media (min-width: 333px) {
.padding-sm-1rem {
padding: 1rem !important;
}
}
@media (min-width: 666px) {
.padding-md-1rem {
padding: 1rem !important;
}
}
@media print {
.font-size-print-large {
font-size: 1.25rem !important;
}
}
}
}
}
}
|