Skip to content

Commit de5d86f

Browse files
committed
Fix moderators section
1 parent cbd94d6 commit de5d86f

File tree

3 files changed

+199
-143
lines changed

3 files changed

+199
-143
lines changed

docs/css/global.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ h6 {
6666
}
6767

6868
ul {
69+
margin: 0;
70+
padding: 0;
6971
list-style: none;
7072
}
7173

@@ -75,7 +77,6 @@ a {
7577
}
7678

7779
img {
78-
max-width: 100%;
7980
display: block;
8081
}
8182

@@ -155,6 +156,22 @@ textarea:focus {
155156
border-radius: 60px;
156157
}
157158

159+
/* Card */
160+
.box {
161+
display: flex;
162+
justify-content: center;
163+
align-items: center;
164+
border-radius: 20px;
165+
padding: 1rem;
166+
}
167+
168+
.box img {
169+
width: 150px;
170+
object-fit: cover;
171+
object-position: center;
172+
/* border-radius: 50%; */
173+
}
174+
158175
.container {
159176
max-width: 1200px;
160177
margin: 0 auto;

docs/css/styles.css

Lines changed: 56 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -310,55 +310,83 @@ nav ul li a:focus {
310310

311311
/* Moderators section */
312312
#moderators {
313-
background-color: var(--darkBackground);
313+
padding: 2rem 1rem 1rem;
314+
margin-top: 2rem;
315+
background: var(--darkBackground);
316+
color: #fff;
317+
position: relative;
314318
}
315319

316-
#moderators .heading {
317-
color: #F4F4F480;
320+
#moderators .text-center {
321+
font-weight: 700;
322+
font-size: 1.5rem;
323+
margin-bottom: 3rem;
324+
color: grey;
318325
}
319326

320-
.moderator {
321-
height: 100%;
327+
#moderators .text-center a {
328+
font-size: 1.2rem;
329+
color: grey;
322330
}
323331

324-
.moderator .moderator-img {
325-
display: block;
326-
border-radius: 100px;
327-
float: left;
328-
shape-outside: circle(50%);
329-
width: 200px;
330-
height: 200px;
331-
margin-right: 2rem;
332+
#moderators .text-center a:hover {
333+
text-decoration: underline;
332334
}
333335

334-
.moderator .moderator_name {
335-
color: inherit;
336+
.overlay {
337+
position: absolute;
338+
top: 140px;
339+
left: 50%;
340+
width: 1px;
341+
height: 700px;
342+
background: var(--heading);
336343
}
337344

338-
/* .moderator .moderator_content {
339-
list-style: disc;
340-
} */
345+
.user-profile {
346+
padding: 1rem 0.5rem;
347+
margin-left: 1rem;
348+
}
341349

342-
.moderator .moderator_details {
343-
color: #f4f4f4;
344-
line-height: 2rem;
350+
.user-profile h3 {
351+
margin-bottom: 0.2rem;
352+
font-size: 1.3rem;
353+
color: #fff;
354+
font-weight: 600;
345355
}
346356

347-
.moderator .social-profiles > a:link {
348-
display: inline-block;
357+
.user-profile p {
358+
font-size: 0.9rem;
359+
margin-bottom: 1rem;
349360
}
350361

351-
.moderator .social-profiles i {
352-
color: #f4f4f4;
353-
font-size: 24px;
362+
.user-profile ul {
363+
color: #c0baba;
364+
margin: 1.2rem 0 0.5rem;
354365
}
355366

356-
.moderator .social-profiles > *:not(:last-child) {
357-
margin-right: 1.5rem;
367+
.user-profile li {
368+
font-size: 0.8rem;
369+
}
370+
371+
.social-profiles a {
372+
color: #fff;
373+
margin: 0 0.3rem;
374+
}
375+
376+
.social-profiles a:hover {
377+
color: var(--heading);
378+
}
379+
380+
#moderators .box-container {
381+
display: grid;
382+
grid-template-columns: repeat(2, 1fr);
383+
grid-gap: 3rem;
384+
margin: 2rem;
358385
}
359386

360387
/* Footer starts */
361388
.footer {
389+
display: flex;
362390
background-color: var(--footerDarkBg);
363391
}
364392

0 commit comments

Comments
 (0)