Skip to content

Commit

Permalink
NEW: Reset Button (#154)
Browse files Browse the repository at this point in the history
closes #154
  • Loading branch information
dwhieb committed Jul 17, 2024
1 parent 5eb826b commit 780374d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
27 changes: 23 additions & 4 deletions classes/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
--gray-saturation: 15%;

background-color: hsl(var(--gray-hue) var(--gray-saturation) 85%);
border: 1px solid #CCC;
border-radius: var(--border-radius);
box-shadow: inset 0px 0px 3px 2px hsl(var(--gray-hue) var(--gray-saturation) 95%),
box-shadow: inset 0px 0px 2px 1px hsl(var(--gray-hue) var(--gray-saturation) 95%),
1px 1px 2px #CCC;
color: black;
cursor: pointer;
Expand Down Expand Up @@ -34,8 +33,7 @@
--green-saturation: 15%;

background-color: hsl(var(--green-hue) var(--green-saturation) 45%);
border: 1px solid var(--asparagus);
box-shadow: inset 0px 0px 3px 2px hsl(var(--green-hue) var(--green-saturation) 55%),
box-shadow: inset 0px 0px 2px 1px hsl(var(--green-hue) var(--green-saturation) 55%),
1px 1px 2px #CCC;
color: white;

Expand All @@ -48,4 +46,25 @@
box-shadow: inset 0px 1px 2px #000;
}

}

.button.blue {

--blue-hue: 180;
--blue-saturation: 30%;

background-color: hsl(var(--blue-hue) var(--blue-saturation) 45%);
box-shadow: inset 0px 0px 2px 1px hsl(var(--blue-hue) var(--blue-saturation) 55%),
1px 1px 2px #CCC;
color: white;

&:hover {
background-color: hsl(var(--blue-hue) var(--blue-saturation) 35%);
}

&:active {
background-color: hsl(var(--blue-hue) var(--blue-saturation) 25%);
box-shadow: inset 0px 1px 2px #000;
}

}
8 changes: 7 additions & 1 deletion pages/Search/Search.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,13 @@ search {
}

.search-form {
max-inline-size: 30em;

max-inline-size: 35em;

& button {
inline-size: 5em;
}

}

.sort-button {
Expand Down
1 change: 1 addition & 0 deletions pages/Search/Search.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
type=search
>
<button class='button green' type=submit>Search</button>
<button class='button blue' type=reset>Reset</button>
</div>
<span class=help-text>Searches forms (in any orthography) and definitions for a match anywhere within the string. Search is not case sensitive. Leave blank and press "Search" to display all components.</span>
</form>
Expand Down

0 comments on commit 780374d

Please sign in to comment.