-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
112 lines (103 loc) · 1.76 KB
/
styles.css
File metadata and controls
112 lines (103 loc) · 1.76 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
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
/*
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
input,
button,
textarea,
select {
font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/* Base Styles */
@font-face {
font-family: "Outfit";
font-weight: 400;
font-display: swap;
src: url("./fonts/Outfit-Regular-subset.woff2") format("woff2"),
url("./fonts/Outfit-Regular-subset.woff") format("woff");
}
@font-face {
font-family: "Outfit";
font-weight: 700;
font-display: swap;
src: url("./fonts/Outfit-Bold-subset.woff2") format("woff2"),
url("./fonts/Outfit-Bold-subset.woff") format("woff");
}
body {
font-family: "Outfit", sans-serif;
/* 0.9375rem = 0.9375 * 16px = 15px */
font-size: 0.9375rem;
color: hsl(220, 15%, 55%);
background-color: hsl(212, 45%, 89%);
min-height: 100svh;
display: flex;
flex-direction: column;
padding: 16px;
}
main {
flex-grow: 1;
display: flex;
justify-content: center;
align-items: center;
padding-bottom: 16px;
}
/* QR Code Component Card */
.card-qr-code {
background-color: hsl(0, 0%, 100%);
max-width: 20rem;
padding: 1rem;
text-align: center;
border-radius: 20px;
}
.card-qr-code img {
aspect-ratio: 1;
border-radius: 10px;
}
.card-qr-code h2 {
/* 1.375rem = 1.375 * 16px = 22px */
font-size: 1.375rem;
font-weight: 700;
color: hsl(218, 44%, 22%);
margin: 1rem;
}
.card-qr-code p {
margin: 1rem;
}
/* Footer */
footer {
/* 0.6875rem = 0.6875 * 16px = 11px */
font-size: 0.6875rem;
text-align: center;
}
footer a {
color: hsl(228, 45%, 44%);
}