Skip to content

Commit

Permalink
feat(ui): increase size for picker and range
Browse files Browse the repository at this point in the history
feat(ui): set min 0.1 for range
- cause line width cant be equal to 0
  • Loading branch information
EGRrqq committed Feb 8, 2024
1 parent 4222564 commit 60c5699
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<div class="dropdown__section-wrapper" slot="dropdown__section-el">
<input id="settings_picker" type="color" />
<input id="settings_range" type="range" />
<input id="settings_range" min="0.1" max="100" type="range" />

<!-- <div>
<label for="line-cap">line cap:</label>
Expand Down
25 changes: 25 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,28 @@ button:hover {
.menu__divider {
border: solid;
}

#settings_picker {
height: 2rem;
width: 3rem;
}

#settings_range {
appearance: none;

height: 0.4rem;
background: black;
border-radius: 0.05rem;
margin: 1rem 0;
}

#settings_range::-webkit-slider-thumb {
appearance: none;

height: 1rem;
width: 1rem;
border-radius: 50%;
background: white;
cursor: ew-resize;
outline: 0.1rem solid;
}

0 comments on commit 60c5699

Please sign in to comment.