Skip to content

Commit 36f017c

Browse files
authored
Merge pull request #294 from Evavic44/feature
Fix Moderators Section
2 parents cbd94d6 + 761aa6e commit 36f017c

File tree

3 files changed

+230
-143
lines changed

3 files changed

+230
-143
lines changed

docs/css/global.css

Lines changed: 26 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,21 @@ textarea:focus {
155156
border-radius: 60px;
156157
}
157158

159+
/* Card */
160+
.box {
161+
display: flex;
162+
justify-content: center;
163+
align-items: center;
164+
padding: 1rem;
165+
}
166+
167+
.box img {
168+
width: 170px;
169+
object-fit: cover;
170+
object-position: center;
171+
border-radius: 50%;
172+
}
173+
158174
.container {
159175
max-width: 1200px;
160176
margin: 0 auto;
@@ -184,3 +200,12 @@ textarea:focus {
184200
border-radius: 10px;
185201
box-shadow: 3px 5px 5px var(--shadow);
186202
}
203+
204+
@media(max-width: 1000px) {
205+
.box {
206+
display: flex;
207+
justify-content: space-around;
208+
border-bottom: 1px solid var(--heading);
209+
/* border-radius: 20px; */
210+
}
211+
}

docs/css/styles.css

Lines changed: 79 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -310,55 +310,106 @@ 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+
}
349+
350+
.user-profile h3 {
351+
margin-bottom: 0.2rem;
352+
font-size: 1.3rem;
353+
color: #fff;
354+
font-weight: 600;
355+
}
341356

342-
.moderator .moderator_details {
343-
color: #f4f4f4;
344-
line-height: 2rem;
357+
.user-profile p {
358+
font-size: 0.9rem;
359+
margin-bottom: 1rem;
345360
}
346361

347-
.moderator .social-profiles > a:link {
348-
display: inline-block;
362+
.user-profile ul {
363+
color: #c0baba;
364+
margin: 1.2rem 0 0.5rem;
349365
}
350366

351-
.moderator .social-profiles i {
352-
color: #f4f4f4;
353-
font-size: 24px;
367+
.user-profile li {
368+
font-size: 0.8rem;
354369
}
355370

356-
.moderator .social-profiles > *:not(:last-child) {
357-
margin-right: 1.5rem;
371+
.social-profiles a {
372+
color: #fff;
373+
margin: 0 0.3rem;
374+
}
375+
376+
.social-profiles a:hover {
377+
color: grey;
378+
}
379+
380+
#moderators .box-container {
381+
display: grid;
382+
grid-template-columns: repeat(2, 1fr);
383+
grid-gap: 3rem;
384+
margin: 2rem;
385+
}
386+
387+
/* Responsive Moderators */
388+
@media(max-width: 1000px) {
389+
#moderators .container {
390+
width: 100%;
391+
}
392+
393+
#moderators .box-container {
394+
display: grid;
395+
grid-template-columns: repeat(1, 1fr);
396+
row-gap: 1rem;
397+
column-gap: 0rem;
398+
margin: 0rem;
399+
}
400+
401+
#moderators .overlay {
402+
display: none;
403+
}
404+
405+
.user-profile h3 {
406+
font-size: 1.08rem;
407+
}
358408
}
359409

360410
/* Footer starts */
361411
.footer {
412+
display: flex;
362413
background-color: var(--footerDarkBg);
363414
}
364415

0 commit comments

Comments
 (0)