Skip to content

Commit 2c4c354

Browse files
committed
Update dist files and bump version
1 parent fbe7cf4 commit 2c4c354

File tree

6 files changed

+19
-16
lines changed

6 files changed

+19
-16
lines changed

dist/coloris.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,24 @@
4646

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

5252
.clr-picker input[type="range"]::-webkit-slider-thumb {
53-
width: 8px;
54-
height: 8px;
53+
width: 16px;
54+
height: 16px;
5555
-webkit-appearance: none;
5656
}
5757

5858
.clr-picker input[type="range"]::-moz-range-track {
5959
width: 100%;
60-
height: 8px;
60+
height: 16px;
6161
border: 0;
6262
}
6363

6464
.clr-picker input[type="range"]::-moz-range-thumb {
65-
width: 8px;
66-
height: 8px;
65+
width: 16px;
66+
height: 16px;
6767
border: 0;
6868
}
6969

@@ -91,9 +91,9 @@
9191
.clr-hue input,
9292
.clr-alpha input {
9393
position: absolute;
94-
width: calc(100% + 16px);
94+
width: calc(100% + 32px);
9595
height: 16px;
96-
left: -8px;
96+
left: -16px;
9797
top: -4px;
9898
margin: 0;
9999
background-color: transparent;

dist/coloris.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@
316316

317317
if (settings.focusInput || settings.selectInput) {
318318
colorValue.focus({ preventScroll: true });
319+
colorValue.setSelectionRange(currentEl.selectionStart, currentEl.selectionEnd);
319320
}
320321

321322
if (settings.selectInput) {
@@ -997,9 +998,11 @@
997998
});
998999

9991000
addListener(colorValue, 'change', function (event) {
1001+
var value = colorValue.value;
1002+
10001003
if (currentEl || settings.inline) {
1001-
setColorFromStr(colorValue.value);
1002-
pickColor();
1004+
var color = value === '' ? value : setColorFromStr(value);
1005+
pickColor(color);
10031006
}
10041007
});
10051008

@@ -1013,7 +1016,7 @@
10131016
closePicker();
10141017
});
10151018

1016-
addListener(document, 'click', '.clr-format input', function (event) {
1019+
addListener(getEl('clr-format'), 'click', '.clr-format input', function (event) {
10171020
currentFormat = event.target.value;
10181021
updateColor();
10191022
pickColor();

dist/coloris.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)