Skip to content

Commit

Permalink
Merge faq and sponsoring under one section, fix background clip error
Browse files Browse the repository at this point in the history
  • Loading branch information
cszach committed Oct 6, 2023
1 parent ea81882 commit d4a670b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ <h2>What is DandyHacks?</h2>
<img src="img/sticker1.png" />
</div>
</section>
<section class="faq" id="faq">
<div class="container">
<section class="faq-and-sponsoring" id="faq">
<div class="faq-container">
<h2>FAQ</h2>
<div class="buttons">
<details>
Expand Down Expand Up @@ -141,9 +141,9 @@ <h2>FAQ</h2>
</details>
</div>
</div>
</section>
<section class="sponsoring" id="sponsoring">
<div class="container">
<!-- </section>
<section class="sponsoring" id="sponsoring"> -->
<div class="sponsoring-container">
<h2>Sponsoring</h2>
<div>
<div>
Expand Down
35 changes: 17 additions & 18 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ section {
width: 100%;
display: flex;
justify-content: center;
flex-wrap: wrap;
}

section .container {
Expand Down Expand Up @@ -255,32 +256,30 @@ section .container {
font-style: italic;
}

.faq {
background: url(img/website-bg2.png);
background-position: top;
background-repeat: no-repeat;
.faq-and-sponsoring {
background-image: url(img/website-bg2.png);
background-repeat: repeat-y;
}

.faq .container {
.faq-and-sponsoring > .faq-container { /* containers */
display: flex;
flex-direction: column;
align-items: center;
padding: 100px 0;
box-sizing: border-box;
gap: 13px;

width: 100%;
}

.faq .buttons {
.faq-and-sponsoring .buttons {
display: flex;
flex-direction: column;
align-items: center;
padding: 16px 39px;
gap: 22px;
width: 100%;
}

.faq details {
.faq-and-sponsoring details {
display: flex;
flex-direction: row;
justify-content: space-between;
Expand All @@ -299,16 +298,16 @@ section .container {
transition: height .5s ease-in-out;
}

.faq details summary {
.faq-and-sponsoring details summary {
font-weight: 700;
line-height: 36px;
}

.faq details summary::marker {
.faq-and-sponsoring details summary::marker {
content: "";
}

.faq details summary::after {
.faq-and-sponsoring details summary::after {
content: "";
background: url(img/icons/plus.png);
width: 36px;
Expand All @@ -317,13 +316,13 @@ section .container {
float: right;
}

.sponsoring {
/* .sponsoring {
background: url(img/website-bg2.png);
background-position: top;
background-repeat: no-repeat;
}
} */

.sponsoring .container {
.sponsoring-container {
display: flex;
flex-direction: column;
justify-content: center;
Expand All @@ -335,7 +334,7 @@ section .container {
width: 100%;
}

.sponsoring .container >div {
.sponsoring-container >div {
display: flex;
flex-direction: row;
justify-content: center;
Expand All @@ -344,7 +343,7 @@ section .container {
width: 100%;
}

.sponsoring .container >div>div {
.sponsoring-container >div>div {
display: flex;
flex-direction: column;
align-items: flex-start;
Expand Down Expand Up @@ -435,7 +434,7 @@ footer .coc {
padding: 20px 25px;
} */

.faq summary {
.faq-and-sponsoring summary {
display: flex;
flex-direction: column;
text-align: center;
Expand Down

0 comments on commit d4a670b

Please sign in to comment.