Skip to content

Commit

Permalink
fix: range in border radius (#351)
Browse files Browse the repository at this point in the history
* fix(style.css): change background for border radius generator
  • Loading branch information
Dun-sin authored Nov 2, 2022
1 parent 5e718c9 commit ec3b3d8
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,6 @@ input[type='number']::-webkit-outer-spin-button {

.border-range-inputs input {
width: 100%;
cursor: pointer;
}

#border-radius-code {
Expand Down Expand Up @@ -771,22 +770,41 @@ input[type='range'] {
cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track,
input[type='range']::-webkit-slider-runnable-track {
background: var(--secondary-color);
height: 0.5rem;
border-radius: 10px;
}

input[type='range']::-moz-range-track {
background: var(--secondary-color);
height: 0.5rem;
border-radius: 10px;
}

input[type='range']::-webkit-slider-thumb,
input[type='range']::-moz-range-thumb {
.border-range-inputs input[type='range']::-webkit-slider-runnable-track {
background-color: var(--primary-color);
}

.border-range-inputs input[type='range']::-moz-range-track {
background-color: var(--primary-color);
}

input[type='range']::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
margin-top: -12px;
background-color: var(--tertiary-color);
height: 1rem;
width: 1rem;
border-radius: 10px;
}

input[type='range']::-moz-range-thumb {
border: none;
background-color: var(--tertiary-color);
height: 1rem;
width: 1rem;
border-radius: 10px;
}

Expand Down

1 comment on commit ec3b3d8

@vercel
Copy link

@vercel vercel bot commented on ec3b3d8 Nov 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.