-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_trumps.widths.scss
47 lines (34 loc) · 1.17 KB
/
_trumps.widths.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
/*------------------------------------*\
Trumps - Widths
\*------------------------------------*/
/**
* Sourced from Inuitcss (https://github.com/inuitcss), Copyright 2014 Harry Roberts
*/
/**
* A series of width helper classes that you can use to size things like grid
* systems. Classes can take a fraction-like format (e.g. `.u-2/3`) or a spoken-
* word format (e.g. `.u-2-of-3`). Use these in your markup:
*
* <div class="u-7/12">
*/
@if ($katt-enable-module-trumps-widths == true) {
@include katt-widths($katt-widths-columns);
/*------------------------------------*\
#WIDTHS-RESPONSIVE
\*------------------------------------*/
/**
* Responsive width classes based on your responsive settings.
*/
// Loop over our breakpoints defined in _settings.responsive.scss
@each $breakpoint in $breakpoints {
// Get the name of the breakpoint.
$alias: nth($breakpoint, 1);
@include media-query($alias) {
// Loop through each of our column sizes and generate its responsive width
// classes.
@each $katt-widths-column in $katt-widths-columns-responsive {
@include katt-widths($katt-widths-column, -#{$alias});
}
}
}
}