-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
117 lines (103 loc) · 1.95 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
108
109
110
111
112
113
114
115
116
117
:root {
--text-color: #eee;
--text-color-light: #bbb;
--accent-color: rgb(220, 86, 75);
--primary-color: rgb(247, 196, 55);
--bg-color: #111;
--max-width: 64rem;
--border-dark: 1px solid var(--primary-color);
--border-light: 1px solid rgba(247, 196, 55, 0.3);
--font-bold: 700;
--font-regular: 400;
--font-thin: 100;
--font-xl: 2rem;
--font-lg: 1.5rem;
--font-md: 1.25rem;
--font-sm: 1rem;
--font-xm: 0.8rem;
--animation-main: all 0.2s ease-in-out;
}
body {
font-family: "Roboto", sans-serif;
font-weight: 500;
color: var(--text-color);
background-color: var(--bg-color);
}
nav {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 4rem;
border-bottom: var(--border-dark);
}
nav h1 {
width: 100%;
max-width: var(--max-width);
padding: 0 1rem;
}
nav a {
color: var(--primary-color);
text-decoration: none;
font-size: var(--font-lg);
font-weight: var(--font-bold);
}
body nav a:hover {
opacity: 20%;
}
nav a:hover {
opacity: 80%;
}
main {
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 1rem;
gap: 2rem;
}
#card-wrapper {
display: grid;
max-width: var(--max-width);
width: 100%;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}
.card {
display: flex;
align-items: center;
border: var(--border-light);
border-radius: 0.5rem;
padding: 1rem;
gap: 1rem;
text-decoration: none;
color: var(--text-color);
}
.card:hover {
border: var(--border-dark);
transition: var(--animation-main);
cursor: pointer;
}
.card img {
width: 4rem;
height: 4rem;
}
.card .info-wrapper {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.card h2 {
font-size: var(--font-md);
margin-bottom: 0.2rem;
text-transform: capitalize;
}
.card p {
font-size: var(--font-sm);
font-weight: var(--font-thin);
color: var(--text-color-light);
}
@media (max-width: 48rem) {
#card-wrapper {
grid-template-columns: 1fr;
}
}