-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
107 lines (98 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
@import url(https://fonts.googleapis.com/css?family=Inter:100,200,300,regular,500,600,700,800,900);
:root {
--primary-dark: hsl(0, 0%, 8%);
--primary-medium: hsl(0, 0%, 12%);
--primary-light: hsl(0, 0%, 20%);
--primary-accent: hsl(75, 94%, 57%);
--primary-white: hsl(0, 0%, 100%);
--text-weight-light: 400;
--text-weight-med: 600;
--text-weight-bold: 700;
--text-size-md: 0.9rem;
--text-size-lg: 1.5rem;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Inter, sans-serif;
font-size: 14px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: var(--primary-dark);
}
.card {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: var(--primary-medium);
padding: 2.5rem;
border-radius: 10px;
height: max-content;
text-align: center;
width: min(400px, (100% - 2rem));
}
.card img {
width: 6rem;
height: 6rem;
display: block;
border-radius: 50%;
}
.card__header {
margin-block-start: 1rem;
font-size: var(--text-size-lg);
color: var(--primary-white);
font-weight: var(--text-weight-med);
}
.card__subheader {
display: block;
font-size: var(--text-size-md);
margin-block-start: 0.5rem;
font-weight: var(--text-weight-med);
color: var(--primary-accent);
}
.card__subtext {
font-size: var(--text-size-md);
color: var(--primary-white);
margin-block: 1.5rem;
}
.card__links {
width: min(400px, 100%);
list-style: none;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.card__links--item {
display: grid;
width: 100%;
}
.card__links--item > a {
width: 100%;
border-radius: 5px;
background-color: var(--primary-light);
font-size: var(--text-size-md);
font-weight: var(--text-weight-med);
color: var(--primary-white);
padding: 0.8rem;
text-decoration: none;
cursor: pointer;
transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.card__links--item >a:hover {
background-color: var(--primary-accent);
color: var(--primary-dark);
}
@media screen and (width < 400px) {
.card {
padding: 1.2rem;
}
}