Add more indicators that tools are currently active
This commit is contained in:
parent
d55c17f42c
commit
b3f7137d85
2 changed files with 17 additions and 1 deletions
|
|
@ -240,6 +240,9 @@ function colorGrid() {
|
|||
function changeColor() {
|
||||
const buttonID = this.id;
|
||||
|
||||
buttons.forEach(btn => btn.classList.remove("is-active"));
|
||||
this.classList.add("is-active");
|
||||
|
||||
if (buttonID === "rgbColor") {
|
||||
isRgb = true;
|
||||
} else {
|
||||
|
|
|
|||
15
style.css
15
style.css
|
|
@ -57,7 +57,8 @@ button, .container, .color-input, .knob {
|
|||
border: none;
|
||||
color: #000;
|
||||
}
|
||||
button:hover, .container:hover, .color-input:hover {
|
||||
button:hover, .container:hover, .color-input:hover,
|
||||
.knob:hover, .knob:active, .is-active {
|
||||
background-color: #68ffd8;
|
||||
}
|
||||
|
||||
|
|
@ -144,6 +145,12 @@ button {
|
|||
border-radius: 6px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.range-slider:hover {
|
||||
box-shadow: 1px 2px 10px 1px #68ffd8;
|
||||
}
|
||||
.range-slider:active {
|
||||
box-shadow: 1px 2px 10px 1px #68ffd8;
|
||||
}
|
||||
|
||||
input[type="range"]::-moz-range-thumb {
|
||||
appearance: none;
|
||||
|
|
@ -217,6 +224,12 @@ input[type="range"]::-webkit-slider-runnable-track {
|
|||
transform-style: preserve-3d;
|
||||
will-change: transform;
|
||||
}
|
||||
.knob:hover {
|
||||
box-shadow: 1px 2px 10px 1px #68ffd8;
|
||||
}
|
||||
.knob:active {
|
||||
box-shadow: 1px 2px 10px 1px #68ffd8;
|
||||
}
|
||||
|
||||
.knotch {
|
||||
width: 10px;
|
||||
|
|
|
|||
Loading…
Reference in a new issue