-
Notifications
You must be signed in to change notification settings - Fork 234
/
Copy pathcard.scss
64 lines (63 loc) · 1.49 KB
/
card.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
59
60
61
62
63
64
@use "../../public/styles/global";
@use "../../public/styles/variables/colors";
.card {
&--component {
@extend %default--card;
}
&-header {
display: flex;
justify-content: center;
flex-flow: column nowrap;
&-img {
display: block;
margin: 0 auto;
padding: 0 10px;
max-width: 80%;
max-height: 50px;
}
}
&-body {
flex-grow: 1;
> *:not(:last-child) {
padding-bottom: 10px;
}
&-headline {
@extend %card-heading;
}
&-copy {
@extend %card-copy;
}
}
&-footer {
padding: 0 20px;
&[data-layout="3-up"] {
display: grid;
grid-template-columns: repeat(3, 36.156%);
grid-auto-rows: 1fr;
> * {
padding: 0 10px;
}
}
&[data-layout="2-up"] {
display: grid;
grid-template-columns: repeat(2, 50%);
grid-auto-rows: 1fr;
> * {
padding: 0 10px;
}
}
[data-layout="3-up"] &-content:last-child {
border-left: 2px solid colors.$iron;
}
[data-layout="3-up"] &-content:nth-child(2) {
border-left: 2px solid colors.$iron;
}
&-link {
@extend %subtle-link;
}
&-icon {
@extend %link-icon;
display: inline;
}
}
}