-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
106 lines (83 loc) · 1.79 KB
/
styles.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
:root {
/* design system custom properties */
--color-slate-900: rgb(31, 49, 79);
--color-slate-500: rgb(104, 119, 141);
--color-slate-300: rgb(213, 225, 239);
--color-white: rgb(255, 255, 255);
--spacing-500: 2.5rem;
--spacing-300: 1.5rem;
--spacing-200: 1rem;
--card-shadow: 0px 25px 25px 0px rgba(0, 0, 0, 0.05);
/* additional custom properties */
--border-radius-400: 1.25rem;
--card-width: 20rem;
}
/* reset */
* {
margin: 0;
padding: 0;
border: 0;
font-size: inherit;
box-sizing: border-box;
}
/* element styles */
html {
height: 100%;
}
body {
height: 100%;
background-color: var(--color-slate-300);
font-family: 'Outfit', sans-serif;
color: var(--color-slate-900)
}
footer {
padding-block: 1rem;
}
/* design system text styles */
.text-heading {
font-weight: 700;
font-size: 1.375rem;
line-height: 120%;
}
.text-body {
font-weight: 400;
font-size: 0.9375rem;
line-height: 140%;
letter-spacing: 0.2px;
}
/* general classes */
.container {
display: grid;
height: 100%;
grid-template-rows: 1fr min-content;
align-items: center;
justify-content: center;
}
.card {
display: flex;
flex-direction: column;
gap: var(--spacing-300);
background: var(--color-white);
box-shadow: var(--card-shadow);
padding-inline: var(--spacing-200) var(--spacing-200);
padding-block: var(--spacing-200) var(--spacing-500);
border-radius: var(--border-radius-400);
width: min(var(--card-width), calc(100vw - 2rem));
margin-inline: auto;
}
.card img {
border-radius: calc(var(--border-radius-400)/2);
}
.card-content {
display: flex;
flex-direction: column;
gap: var(--spacing-200);
padding-inline: var(--spacing-200);
}
/* utility classes */
.text-center {
text-align: center;
}
.text-faded {
color: var(--color-slate-500)
}