Skip to content

Commit

Permalink
New changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaNwaizu committed Jan 24, 2024
1 parent 979a239 commit c030ae7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
13 changes: 9 additions & 4 deletions html quiz/html-quiz.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ h4 {
.html__options {
display: flex;
flex-direction: column;
row-gap: 1rem;
row-gap: .5rem;
}

.html__options-list {
Expand Down Expand Up @@ -326,6 +326,8 @@ h4 {
border: none;
color: var(--title-color);
border-radius: .5rem;
position: fixed;
bottom: 1.5rem;
}

.correct {
Expand All @@ -352,9 +354,9 @@ h4 {

@media screen and (max-width: 320px) {
.html__title {
font-size: var(--h1-font-size);
font-size: var(--h2-font-size);
font-weight: var(--font-weight-bold);
margin-top: 1rem;
margin-top: .5rem;
}

/**Html Progress */
Expand Down Expand Up @@ -389,7 +391,10 @@ h4 {
.html__options {
display: flex;
flex-direction: column;
row-gap: 1rem;
row-gap: .5rem;
}
.html__choice-text {
font-size: var(--smaller-font-size);
}

.html__options-list {
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>The-FE</h1>
</div>
<div class="toggle__icons container">
<i class="ri-sun-line sun"></i>
<div class="toggle__box left">
<div class="toggle__box left" id="toggle-box">
<div class="toggle__circle"></div>
</div>
<i class="ri-moon-line moon"></i>
Expand Down
13 changes: 13 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,16 @@ function handleClick() {
}

optionListItem.addEventListener('click', handleClick)

/*=============== SHOW MENU ===============*/
const showMenu = (toggleId) => {
const toggle = document.getElementById(toggleId)

toggle.addEventListener('click', () => {
// Add show-menu class to nav menu
toggle.classList.toggle('show-menu')
// Add show-icon to show and hide menu icon

})
}
showMenu('toggle-box')
8 changes: 8 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ h4 {
.toggle__box {
cursor: pointer;
}
.show-menu {
justify-content: flex-start;
}

@media screen and (max-width: 950px) {

Expand All @@ -214,6 +217,11 @@ h4 {
flex-direction: column;
row-gap: 1rem;
}
.home__container {
display: flex;
flex-direction: column;
row-gap: 1rem;
}


.option__list {
Expand Down

0 comments on commit c030ae7

Please sign in to comment.