-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
78 lines (67 loc) · 1.21 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
:root {
--clr-bg: 212, 45%, 89%;
--clr-card-bg: 0, 0%, 100%;
--clr-primary: 218, 44%, 22%;
--clr-secondary: 220, 15%, 55%;
--ff-outfit: "Outfit", sans-serif;
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
width: 100%;
min-height: 100vh;
font-family: var(--ff-outfit);
font-size: 0.9375rem; /* 15px */
padding: 1rem;
background: hsl(var(--clr-bg));
color: hsl(var(--clr-primary));
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
img {
display: block;
max-width: 100%;
}
h1,
h2,
p {
overflow-wrap: break-word;
}
.sr-only:not(:focus):not(:active) {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
.card {
background: hsl(var(--clr-card-bg));
max-width: 20rem;
padding: 1rem;
border-radius: 1.25rem;
box-shadow: 0 1.5625rem 1.5625rem hsla(0, 0%, 0%, 4.77%);
}
.img-wrapper {
border-radius: 0.625rem;
overflow: hidden;
}
.card__content {
margin-block: 1.5rem;
}
.card__title {
font-size: 1.375rem;
}
.card__description {
margin-top: 1rem;
padding-inline: 1rem;
color: hsl(var(--clr-secondary));
}