-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
125 lines (104 loc) · 2.09 KB
/
style.css
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
:root {
font-size: 12px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
--yellow: #F4D04E;
--gray-950: #111111;
--gray-500: #6B6B6B;
--white: #FFFFFF;
--gap-size: 1rem;
font-family: "FigTree", sans-serif;
}
.container {
background-color: hsl(47, 88%, 63%);
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
flex-direction: column;
}
.card {
display: flex;
flex-direction: column;
gap: calc(2 * var(--gap-size));
padding: 2em;
border: 1px solid var(--gray-950);
inline-size: 27.25rem;
border-radius: 1.6em;
box-shadow: 0.6em 0.6em var(--gray-950);
margin-inline: auto;
background-color: var(--white);
flex: 0 0 ;
}
@media (min-width: 376px) {
.card {
min-width: 32rem;
}
}
.card-image > img {
width: 100%;
border-radius: 0.83em;
}
.card-body {
display: flex;
flex-direction: column;
gap: 1em;
padding: 0;
align-items: flex-start;
}
.card-body > :first-child {
font-size: 1.16em;
font-weight: bold;
line-height: 150%;
letter-spacing: 0;
padding: 0.33em 1em;
background-color: var(--yellow);
border-radius: 0.33em;
color: var(--gray-950);
}
.card-body > :nth-child(2) {
font-size: 1.16em;
line-height: 150%;
letter-spacing: 0;
color: var(--gray-950);
}
.card-body > :nth-child(3) {
font-size: 2em;
font-weight: bold;
line-height: 150%;
letter-spacing: 0;
color: var(--gray-950);
}
.card-body > :nth-child(3) > a {
text-decoration: none;
color: var(--gray-950);
}
.card-body > :nth-child(3) > a:hover {
color: var(--yellow);
}
.card-body > :last-child {
font-size: 1.33em;
line-height: 150%;
letter-spacing: 0;
color: var(--gray-500);
}
.card-footer {
display: flex;
align-items: center;
gap: 1em;
}
.card-footer > img {
width: 2.66em;
height: 2.66em;
border-radius: 2.7em;
}
.card-footer > :last-child {
color: var(--gray-950);
font-size: 1.16em;
font-weight: bold;
line-height: 150%;
letter-spacing: 0;
}