-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_card.scss
More file actions
44 lines (41 loc) · 1.27 KB
/
_card.scss
File metadata and controls
44 lines (41 loc) · 1.27 KB
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
.card {
border-radius: $border-radius-large;
box-shadow: 0 0.46875em 2.1875em rgba(90,97,105,.05), 0 0.9375em 1.40625em rgba(90,97,105,.05), 0 0.25em 0.53125em rgba(90,97,105,.06), 0 0.125em 0.1875em rgba(90,97,105,.05);
display: block;
background: $white;
margin-bottom: 2em;
transition: .3s ease box-shadow;
//reset line-height to fix placement of images
line-height: 0;
&__img {
border-radius: 0;
width: 100%;
//images can be placed at the top or bottom of a card
&--top {
border-top-right-radius: $border-radius-large;
border-top-left-radius: $border-radius-large;
}
&--bottom {
border-bottom-right-radius: $border-radius-large;
border-bottom-left-radius: $border-radius-large;
}
}
&__body {
padding: 1.875em;
}
&__text {
line-height: 2;
}
&__subtitle {
font-weight: normal;
}
&__header {
padding: 1em 1.875em;
}
&.-clickable {
&:hover {
box-shadow: 0 0.46875em 2.1875em rgba(90,97,105,.1), 0 0.9375em 1.40625em rgba(90,97,105,.1), 0 0.25em 0.53125em rgba(90,97,105,.12), 0 0.125em 0.1875em rgba(90,97,105,.1);
}
cursor: pointer;
}
}