-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_course_card.scss
56 lines (45 loc) · 834 Bytes
/
_course_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
.course-card {
width: 100%;
max-width: 80ch;
margin-right: auto;
margin-left: auto;
border-radius: 0.5rem;
box-shadow: 0 0.25rem 2rem hsla(202, 16%, 90%, 50%);
overflow: hidden;
@include media(tabletPortrait) {
display: flex;
}
&__image-wrapper {
flex-shrink: 0;
height: 20rem;
@include media(tabletPortrait) {
width: 15rem;
height: auto;
}
}
&__image {
object-fit: cover;
object-position: center;
height: 100%;
width: 100%;
}
&__content {
flex: 1;
display: flex;
flex-direction: column;
padding: 1rem;
}
&__title {
font-size: 150%;
margin-bottom: 1rem;
}
&__description {
margin-bottom: 2rem;
}
&__footer {
margin-top: auto;
@include media(tabletPortrait) {
align-self: flex-end;
}
}
}