-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_cards.scss
58 lines (50 loc) · 1.04 KB
/
_cards.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
@mixin omega-reset($nth) {
&:nth-child(#{$nth}) { margin-right: flex-gutter($grid-columns, $gutter); }
&:nth-child(#{$nth}+1) { clear: none }
}
.cards {
@include row();
clear: both;
padding: 0 $gutter/2;
@include media($xl) {
padding: 0;
}
}
.cards .item--card {
@include span-columns(6);
@include omega(2n);
padding: 0;
margin-bottom: $gutter;
}
.xs-cards--float .item--card {
@include span-columns(12);
clear: both;
margin-bottom: $gutter;
padding: 0;
}
.xs-cards--float .item__thumb {
@include span-columns(4);
float: right;
}
@include media($md) {
.cards--four .item--card {
@include span-columns(3);
@include omega-reset(2n);
@include omega-reset(1n);
@include omega(4n);
}
.xs-cards--float .item__thumb {
@include span-columns(12);
margin: 0 0 $small-spacing;
float: none;
}
.cards--three .item--card {
@include span-columns(4);
@include omega-reset(2n);
@include omega(3n);
}
.cards--two .item--card {
@include span-columns(6);
@include omega(2n);
}
}