Skip to content

Commit d246fd2

Browse files
committed
Questions section responsive design completed.
1 parent 7c981ba commit d246fd2

File tree

4 files changed

+115
-5
lines changed

4 files changed

+115
-5
lines changed

assets/css/main.css

+61
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/main.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/scss/main.scss

+50
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,7 @@ background-color: var(--black-050);
10791079
}
10801080
.questions-grid{
10811081
margin-top: 6rem;
1082+
padding: 0 5rem;
10821083
display: grid;
10831084
grid-template-columns:repeat(auto-fit,minmax(20rem,1fr));
10841085
grid-gap: 2.5rem;
@@ -1340,6 +1341,51 @@ display: flex;
13401341
.teams-footer{
13411342
width: 90%;
13421343
}
1344+
.questions-content .question-title{
1345+
font-size: 2.3rem;
1346+
}
1347+
.questions-body{
1348+
flex-direction: column;
1349+
justify-content: initial;
1350+
}
1351+
.questions-body-items{
1352+
display: flex;
1353+
}
1354+
.questions-body-item{
1355+
flex-basis: 33%;
1356+
flex-direction: column;
1357+
padding: 1rem;
1358+
justify-content: center;
1359+
text-align: center;
1360+
margin: 0;
1361+
}
1362+
.question-item-text{
1363+
margin-left: initial;
1364+
margin-top: 1rem;
1365+
}
1366+
.question-arrow-right,.question-arrow-left{
1367+
display: none;
1368+
}
1369+
.questions-body-item-content{
1370+
margin: 2rem 0 0;
1371+
order: 3;
1372+
}
1373+
.question-item-content-img{
1374+
padding: 0 2rem;
1375+
}
1376+
.question-item-content-text{
1377+
font-size: 1.8rem ;
1378+
padding-left: 1rem;
1379+
padding-right: 1rem;
1380+
}
1381+
.questions-grid-item{
1382+
display: flex;
1383+
flex-direction: column;
1384+
align-items: center;
1385+
justify-content: center;
1386+
margin-bottom:3rem;
1387+
text-align: center;
1388+
}
13431389
}
13441390
@media screen and (max-width: 640px) {
13451391
.nav-icon {
@@ -1390,5 +1436,9 @@ display: flex;
13901436
font-size: 1.4rem;
13911437
line-height: 2rem;
13921438
}
1439+
.questions-grid{
1440+
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
1441+
padding: 0 9rem;
1442+
}
13931443
}
13941444
/* End Media Queries */

index.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -431,17 +431,17 @@ <h4 class="question-item-content-text">
431431
<div class="questions-body-items">
432432
<div class="questions-body-item" data-id="3">
433433
<img src="https://cdn.sstatic.net/Img/home/tags.svg?v=913379eb09eb" alt="" class="question-item-icon">
434-
<div class="question-item-text">Ask a question</div>
434+
<div class="question-item-text">Tag your question</div>
435435
<div class="question-arrow-left"></div>
436436
</div>
437437
<div class="questions-body-item" data-id="4">
438438
<img src="https://cdn.sstatic.net/Img/home/accept.svg?v=27d5be078970" alt="" class="question-item-icon">
439-
<div class="question-item-text">Vote on everything</div>
439+
<div class="question-item-text">Accept a answer</div>
440440
<div class="question-arrow-left"></div>
441441
</div>
442442
<div class="questions-body-item" data-id="5">
443443
<img src="https://cdn.sstatic.net/Img/home/get-recognized.svg?v=3b339d9aa10c" alt="" class="question-item-icon">
444-
<div class="question-item-text">Answer questions</div>
444+
<div class="question-item-text">Get recognized</div>
445445
<div class="question-arrow-left"></div>
446446
</div>
447447
</div>
@@ -489,7 +489,6 @@ <h4 class="grid-item-title">Find career opportunities
489489
<a href="#">Developer Story</a>.
490490
</p>
491491
</div>
492-
493492
</div>
494493
</div>
495494
</div>

0 commit comments

Comments
 (0)