-
Notifications
You must be signed in to change notification settings - Fork 222
/
Copy path_spacing.scss
45 lines (39 loc) · 953 Bytes
/
_spacing.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
/* VUE DESIGN SYSTEM SPACING HELPERS
--------------------------------------------- */
$spacing-ratio: 1.7;
/*
INSET-SPACE: For interface containers.
INSET-SQUISH-SPACE: For buttons, form elements, cells.
STACK-SPACE: For vertically stacked content.
INLINE-SPACE: For things displayed inline.
*/
// Create inset-space
//
// @param {Number} inset-space to set
@mixin inset-space($value) {
padding: $value;
}
// Create inset-squish-space
//
// @param {Number} inset-squish-space to set
@mixin inset-squish-space($value) {
padding: round($value / $spacing-ratio - 1px) $value round($value / $spacing-ratio);
}
// Create stack-space
//
// @param {Number} stack-space to set
@mixin stack-space($value) {
margin-bottom: $value;
&:last-child {
margin-bottom: 0;
}
}
// Create inline-space
//
// @param {Number} inline-space to set
@mixin inline-space($value) {
margin-right: $value;
&:last-child {
margin-right: 0;
}
}