Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion assets/styles/large_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,23 @@ p {
flex: 1 2 10%;
}

.switch-field {
input[type="radio"] {
display: none;
}
label {
margin: 4px;
display: inline-block;
background-color: white;
cursor: pointer;
}
input[type="radio"]:checked + label {
background-color: black;
color: white;
border-color: white;
}
}

.content {
width: 30%;
margin-left: auto;
Expand Down Expand Up @@ -248,4 +265,4 @@ a {

#end-game-btn {
border-radius: 50px;
}
}
19 changes: 18 additions & 1 deletion assets/styles/mobile_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,23 @@ p {
flex: 1 2 auto;
}

.switch-field {
input[type="radio"] {
display: none;
}
label {
margin: 3px;
display: inline-block;
background-color: white;
cursor: pointer;
}
input[type="radio"]:checked + label {
background-color: black;
color: white;
border-color: white;
}
}

.content {
width: 95%;
margin-left: auto;
Expand Down Expand Up @@ -246,4 +263,4 @@ a {
flex-direction: row;
gap: 20px;
margin: 15pt 0 15pt 0;
}
}
8 changes: 4 additions & 4 deletions mode_select.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ <h2 class="boxed-black">practice mode</h2>
<p><i>set word difficulty</i></p>
<div class="switch-field">
<input type="radio" name="difficulty-switch" id="easy"/>
<label>easy</label>
<label class="btn boxed" for="easy">easy</label>
<input type="radio" name="difficulty-switch" id="medium"checked/>
<label>medium</label>
<label class="btn boxed" for="medium">medium</label>
<input type="radio" name="difficulty-switch"id="hard"/>
<label>hard</label>
<label class="btn boxed" for="hard">hard</label>
</div>
<br>

Expand Down Expand Up @@ -74,4 +74,4 @@ <h2 class="boxed-black">practice mode</h2>
});
});
</script>
</html>
</html>