-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstyles.css
223 lines (183 loc) · 3.31 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
/* Custom colour palette */
:root {
--primary-text-color: #222;
--secondary-text-color: #185d4a;
--link-color: #3b4bbf;
--primary-bg-color: #fff;
/* --secondary-bg-color: #185D4A; */
--accent-color: #a900c0;
--light-grey: #c4c2c2;
}
/* Reset */
*,
*::before,
*::after {
box-sizing: border-box;
}
img {
max-width: 100%;
height: auto;
}
/* General typography */
body {
background-color: var(--primary-bg-color);
color: var(--primary-text-color);
font-family: 'Gabarito', Helvetica, Arial, sans-serif;
font-size: 1.2rem;
font-weight: 300;
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--secondary-text-color);
}
h1 {
font-size: 2rem;
color: var(--secondary-text-color);
@media screen and (min-width: 30rem) {
font-size: 3rem;
}
}
/* h2 {
margin: 4rem 0 1.5rem;
} */
p {
font-size: 1rem;
line-height: 130%;
@media screen and (min-width: 30rem) {
max-width: 40rem;
}
}
a {
display: inline-block;
color: var(--link-color);
/* background-color: var(--accent-color); */
/* font-weight: 600; */
text-align: center;
}
a:hover,
a:focus {
font-weight: 600;
}
a:active {
background-color: var(--link-color);
color: var(--primary-bg-color);
}
table {
width: 100%;
border-collapse: collapse;
border: 2px solid var(--accent-color);
}
th,
td {
padding: 0.6rem;
text-align: start;
}
tbody tr:nth-child(even) {
background-color: #efefef;
}
/* HEADER */
header {
margin: 0;
padding: 1rem 2rem;
border-bottom: 1px solid var(--light-grey);
}
/* Temporary styling until project name decided */
.logo {
font-size: 2rem;
width: 20ch;
color: var(--accent-color);
}
/* MAIN CONTENT */
.container {
max-width: 60rem;
margin: 0 auto;
}
.main-content {
@media screen and (min-width: 50rem) {
display: flex;
gap: 5em;
}
}
main {
padding: 1rem 2rem;
}
nav ul {
list-style: none;
margin: 0;
padding: 0;
}
nav ul li {
margin-block-end: 1rem;
}
/* NAVIGATION */
.sidebar-nav {
flex-shrink: 0;
/* Prevent shift of article content when links bold on hover */
min-width: 200px;
margin-block: 2em;
}
.sidebar-nav a {
padding: 0;
text-align: left;
text-decoration: none;
color: var(--primary-text-color);
border-bottom: 2px solid var(--primary-bg-color);
transition: all 0.2s ease-in-out;
}
.sidebar-nav a:hover,
.sidebar-nav a:focus {
text-decoration: none;
color: var(--accent-color);
border-bottom: 2px solid var(--accent-color);
}
.sidebar-nav .btn a:hover,
.sidebar-nav .btn a:focus {
text-decoration: none;
color: var(--primary-bg-color);
border-bottom: none;
transform: scale(1.03);
}
.sidebar-nav a:active {
background-color: #fff;
}
.sidebar-nav .active {
font-weight: 600;
}
nav .btn a {
text-transform: uppercase;
text-decoration: none;
background-color: var(--accent-color);
color: #ffffff;
padding: 0.75rem 1rem;
display: inline-block;
border-radius: 3px;
transition: all 0.2s ease;
cursor: pointer;
}
nav .btn a:hover {
background-color: var(--secondary-text-color);
font-weight: inherit;
}
/* ABOUT PAGE - Maker's list */
.makers-list {
list-style-type: none;
display: flex;
flex-wrap: wrap;
padding: 0;
}
.makers-list li {
margin: 0 1rem 1rem 0;
}
.maker-image {
height: 8rem;
display: flex;
align-items: flex-end;
}
.maker-image img {
max-width: 8rem;
max-height: 8rem;
}