-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
357 lines (295 loc) · 6.84 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
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
--sidebar-text-color: #6c757d;
--sidebar-bg-color: #f8f9fa;
--header-text-color: #343a40;
--header-bg-color: #e9ecef;
--border-color: #ced4da;
--highlight-color: #562a9d;
--content-padding: 3rem;
}
/* main container */
body {
background-color: var(--header-bg-color);
}
.container {
display: grid;
grid-template: auto 1fr / auto 1fr;
position: relative;
height: 100vh;
width: 100vw;
}
/* header */
.header {
display: flex;
grid-column: auto / span 2;
justify-content: start;
gap: 1.5rem;
align-items: center;
padding: 1rem;
font-weight: 700;
background-color: var(--header-bg-color);
color: var(--header-text-color);
box-shadow: 0px -1px 7px var(--sidebar-text-color);
z-index: 2;
}
.header .menu svg,
.header .bell svg{
height: 1.4em;
}
.header .logo {
font-size: 3em;
line-height: 1em;
margin-right: auto;
}
.header .logo span {
color: var(--highlight-color);
}
.header .profile-picture {
height: 3em;
border-radius: 50%;
}
/* pseudo classes for the icons in the header */
.header .menu,
.header .bell {
display: grid;
place-items: center;
outline: none;
border-radius: 50%;
height: 2.3em;
width: 2.3em;
cursor: pointer;
}
.header .menu:hover,
.header .menu:focus,
.header .bell:hover,
.header .bell:focus {
background-color: var(--border-color);
color: var(--header-text-color);
}
.header .menu {
display: none;
}
/* sidebar */
.sidebar {
display: grid;
grid-area: 2 / 1 / 3 / 2;
grid-template: 1fr repeat(5, auto) 1fr repeat(5, auto) 4fr / auto;
place-items: center start;
padding-top: 0.9rem;
font-weight: 400;
background-color: var(--sidebar-bg-color);
color: var(--sidebar-text-color);
border-right: thin solid var(--border-color);
z-index: 1;
}
.sidebar .sidebar-select {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
width: 100%;
border-left: solid 0.4rem transparent;
padding: 0.9rem 3rem 0.9rem 1rem;
gap: 1rem;
outline: none;
cursor: pointer;
}
/* pseudo classes for the icons text in the sidebar */
.sidebar .sidebar-select:active,
.sidebar .sidebar-select:focus,
.sidebar .sidebar-select:hover,
.content .card .action:focus,
.content .card .action:hover,
.content .navbar .action:focus,
.content .navbar .action:hover,
.content .navbar input:first-child:focus,
.content .navbar input:first-child:hover {
background-color: var(--border-color);
color: var(--header-text-color);
}
.sidebar .sidebar-select:active,
.sidebar .sidebar-select:focus {
border-left-color: var(--highlight-color);
}
.sidebar.toggle {
display: grid;
}
.sidebar svg {
height: 1.6em;
}
/* content cell */
.content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
grid-template-rows: 4rem;
min-width: 100%;
grid-auto-flow: dense;
gap: calc(var(--content-padding) / 3 * 2);
padding: calc(var(--content-padding) / 3 * 2);
background-color: var(--header-bg-color);
color: var(--header-text-color);
overflow: auto;
}
.content svg {
height: 1.2em;
}
/* general font styling inside the content container */
.content h2 {
margin-bottom: 1em;
}
.content h4 {
margin-bottom: 0.1em;
}
.content p {
color: var(--sidebar-text-color);
}
.content .announcement p {
font-size: 0.8em;
}
.content hr {
border-color: #adb5bd;
border-style: solid;
margin: 1em 0
}
/* navbar card */
.content .navbar {
grid-column: 1 / -2;
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.1rem;
padding: 1rem;
background-color: var(--sidebar-bg-color);
border: thin solid var(--border-color);
border-radius: 1rem;
}
.content .navbar input:first-child {
flex: 1;
appearance: none;
height: 2.3rem;
border: 0;
padding: 0 1.15rem;
border-radius: 1.15rem;
font-size: 1rem !important;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
outline: none;
background-color: var(--header-bg-color);
color: var(--sidebar-text-color);
}
/* container for the important cards */
.content .important {
display: grid;
gap: calc(var(--content-padding) / 3 * 2);
align-content: start;
grid-column: -2 / -1;
grid-row: span 3;
background-color: transparent;
}
/* announcement card */
.content .announcement {
padding: 1rem;
background-color: var(--sidebar-bg-color);
border: thin solid var(--border-color);
border-radius: 1rem;
}
/* trending card */
.content .trending {
padding: 1.2rem;
background-color: var(--sidebar-bg-color);
border: thin solid var(--border-color);
border-radius: 1.2rem;
}
.content .trending div {
display: grid;
grid-template-columns: auto 1fr;
background-color: transparent;
margin-top: 0.8em;
}
.content .trending div h4 {
align-self: end;
}
.content .trending div img {
grid-row: span 2;
border-radius: 50%;
height: 3rem;
margin-right: 1em;
}
/* project cards */
.content .card {
display: grid;
gap: 1rem;
padding: 1rem;
border-radius: 1rem;
border: thin solid var(--border-color);
border-left: 1rem solid var(--border-color);
background-color: var(--sidebar-bg-color);
}
.content .card .action-box {
display: grid;
grid-auto-flow: column;
place-content: end;
align-items: center;
gap: 1rem;
}
.content .navbar .action,
.content .card .action {
display: grid;
place-items: center;
outline: none;
border-radius: 50%;
height: 2.3rem;
width: 2.3rem;
cursor: pointer;
}
/* media querys for the sidebar dropdown and font sizing*/
@media only screen and (min-width: 2000px) {
.content {
align-content: start;
}
}
@media only screen and (max-width: 768px) {
:root {
font-size: 0.9rem;
--content-padding: 2rem;
}
.header .menu {
display: grid;
}
.header p:last-child {
display: none;
}
.sidebar {
display: none;
}
.sidebar {
grid-template: repeat(12, auto) 1fr / auto;
}
.sidebar .sidebar-select {
padding-right: 2rem;
}
.content {
grid-area: 2 / 1 / 3 / 3;
}
}
@media only screen and (max-width: 450px) {
:root {
font-size: 0.8rem;
--content-padding: 1.5rem
}
.header .logo {
font-size: 1.8em;
}
.header .menu svg,
.header .bell svg,
.header .profile-picture {
height: 1.8em;
}
.sidebar .sidebar-select {
padding-right: 1rem;
}
}