Skip to content

Commit

Permalink
Update dist files and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbassit committed Jun 30, 2023
1 parent fbe7cf4 commit 2c4c354
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
16 changes: 8 additions & 8 deletions dist/coloris.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,24 @@

.clr-picker input[type="range"]::-webkit-slider-runnable-track {
width: 100%;
height: 8px;
height: 16px;
}

.clr-picker input[type="range"]::-webkit-slider-thumb {
width: 8px;
height: 8px;
width: 16px;
height: 16px;
-webkit-appearance: none;
}

.clr-picker input[type="range"]::-moz-range-track {
width: 100%;
height: 8px;
height: 16px;
border: 0;
}

.clr-picker input[type="range"]::-moz-range-thumb {
width: 8px;
height: 8px;
width: 16px;
height: 16px;
border: 0;
}

Expand Down Expand Up @@ -91,9 +91,9 @@
.clr-hue input,
.clr-alpha input {
position: absolute;
width: calc(100% + 16px);
width: calc(100% + 32px);
height: 16px;
left: -8px;
left: -16px;
top: -4px;
margin: 0;
background-color: transparent;
Expand Down
9 changes: 6 additions & 3 deletions dist/coloris.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@

if (settings.focusInput || settings.selectInput) {
colorValue.focus({ preventScroll: true });
colorValue.setSelectionRange(currentEl.selectionStart, currentEl.selectionEnd);
}

if (settings.selectInput) {
Expand Down Expand Up @@ -997,9 +998,11 @@
});

addListener(colorValue, 'change', function (event) {
var value = colorValue.value;

if (currentEl || settings.inline) {
setColorFromStr(colorValue.value);
pickColor();
var color = value === '' ? value : setColorFromStr(value);
pickColor(color);
}
});

Expand All @@ -1013,7 +1016,7 @@
closePicker();
});

addListener(document, 'click', '.clr-format input', function (event) {
addListener(getEl('clr-format'), 'click', '.clr-format input', function (event) {
currentFormat = event.target.value;
updateColor();
pickColor();
Expand Down
2 changes: 1 addition & 1 deletion dist/coloris.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2c4c354

Please sign in to comment.