-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (83 loc) · 1.82 KB
/
style.css
File metadata and controls
107 lines (83 loc) · 1.82 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
/* reset */
* {
box-sizing: border-box;
margin: 0;
}
body > * {
font-family: "Outfit", serif;
}
img, picture, svg {
display: block;
max-width: 100%;
}
p, h1, h2 {
overflow-wrap: break-word;
}
/* design system */
:root {
--clr-background: #d6e2f0;
--clr-card-background:#fff;
--clr-heading: #1f3251;
--clr-text-p: #68778d;
--fw-heading: 700;
--fw-text-p: 400;
--fs-heading: 1.37rem;
--fs-text-p: 0.93rem;
--lh-heading: 1.3;
--lh-text-p: 1.5;
}
/* utilities */
.container {
background-color: var(--clr-card-background);
border-radius: 20px;
padding: 16px 16px 40px;
max-width: 320px;
margin: auto;
display: flex;
flex-direction: column;
gap: 24px;
}
.qr-details {
display: flex;
flex-direction: column;
gap: 16px;
padding-inline: 16px;
}
body {
background-color: var(--clr-background);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
/* styles */
.card-img {
border-radius: 20px;
}
.qr-heading {
font-size: var(--fs-heading);
font-weight: var(--fw-heading);
line-height: var(--lh-heading);
text-align: center;
color: var(--clr-heading);
}
.qr-text {
font-size: var(--fs-text-p);
font-weight: var(--fw-text-p);
line-height: var(--lh-text-p);
text-align: center;
color: var(--clr-text-p);
}
/* mobile */
@media (max-width: 375px) {
.container {
max-width: 90%; /* Make it more flexible */
padding: 16px; /* Adjust padding for smaller screens */
}
.qr-heading {
font-size: 1.2rem; /* Slightly smaller heading */
}
.qr-text {
font-size: 0.85rem; /* Reduce text size for readability */
}
}