-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
_index.scss
48 lines (41 loc) · 1.38 KB
/
_index.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
/* ==========================================================================
utilities.spacing
Utility classes to put specific spacing values onto elements.
The loop can generate us a suite of classes like:
.u-padding-inline-start--large {}
.u-margin-inline-end--small {}
.u-padding-block--base {}
/ =========================================================================== */
/**
* Forward the variables to the parent stylesheet
*/
@forward './variables';
/**
* Use the settings & tools in this sheet
*/
@use 'sass:list';
@use 'sass:meta';
@use '../../settings/defaults';
@use './variables';
@use '../../tools/responsive';
@use './tools';
/* --------------------------------------------------------------------------
Module
/ --------------------------------------------------------------------------- */
@include tools.build;
/* --------------------------------------------------------------------------
Responsive
/ --------------------------------------------------------------------------- */
@if meta.type-of(variables.$in-query) == 'list' {
@each $query in variables.$in-query {
@include responsive.mq($query) {
@include tools.build('#{defaults.$responsive-modifier}#{$query}');
}
}
} @else {
@include responsive.mq(variables.$in-query) {
@include tools.build(
'#{defaults.$responsive-modifier}#{variables.$in-query}'
);
}
}