mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
CSS3 hover transitions
This commit is contained in:
parent
ad26e4835a
commit
091a01bbaa
@ -100,8 +100,6 @@ var NumberController = function() {
|
||||
var dy = py - y;
|
||||
var newVal = _this.getValue() + dy*step;
|
||||
_this.updateValue(newVal);
|
||||
|
||||
console.log(newVal);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
16
gui.css
16
gui.css
@ -51,6 +51,15 @@
|
||||
background-color: #111;
|
||||
}
|
||||
|
||||
.guidat-controller,
|
||||
.guidat-controller input,
|
||||
.guidat-slider-bg,
|
||||
.guidat-slider-fg {
|
||||
-moz-transition: background-color 0.15s linear;
|
||||
-webkit-transition: background-color 0.15s linear;
|
||||
transition: background-color 0.15s linear;
|
||||
}
|
||||
|
||||
.guidat-controller.boolean:hover,
|
||||
.guidat-controller.function:hover {
|
||||
background-color: #000;
|
||||
@ -124,12 +133,13 @@ width: 53%;
|
||||
}
|
||||
|
||||
|
||||
.guidat-slider-bg:hover {
|
||||
.guidat-slider-bg:hover,
|
||||
.guidat-slider-bg.active {
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
.guidat-slider-bg:hover
|
||||
.guidat-slider-fg {
|
||||
.guidat-slider-bg:hover .guidat-slider-fg,
|
||||
.guidat-slider-bg.active .guidat-slider-fg {
|
||||
background-color: #52c8ff;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user