dat.gui/elements/number-controller.css

90 lines
2.1 KiB
CSS
Raw Normal View History

2014-08-15 02:21:45 +00:00
:host {
2014-08-15 16:32:49 +00:00
display: block;
font-size: 0;
height: 100%;
2014-08-15 22:04:51 +00:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
#track-container {
width: 100%;
height: 30px;
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
#track {
width: 100%;
height: 1px;
-webkit-border-radius: 1px;
border-radius: 1px;
display: inline-block;
position: relative;
2014-08-15 22:04:51 +00:00
background: rgba(255,255,255,0.25);
2014-08-15 02:21:45 +00:00
}
#fill {
2014-08-15 16:32:49 +00:00
height: 1px;
margin-top: 0px;
margin-left: 1px;
-webkit-border-radius: 1px;
border-radius: 1px;
position: absolute;
2014-08-15 22:04:51 +00:00
background: #25a0d8;
2014-08-15 16:32:49 +00:00
pointer-events: none;
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
#knob {
width: 6px;
height: 6px;
margin-left: -3px;
margin-top: -3px;
2014-08-15 22:04:51 +00:00
-webkit-transition: -webkit-transform 0.1s cubic-bezier(0.25, 0.25, 0, 1);
-moz-transition: -moz-transform 0.1s cubic-bezier(0.25, 0.25, 0, 1);
-o-transition: -o-transform 0.1s cubic-bezier(0.25, 0.25, 0, 1);
-ms-transition: -ms-transform 0.1s cubic-bezier(0.25, 0.25, 0, 1);
transition: transform 0.1s cubic-bezier(0.25, 0.25, 0, 1);
2014-08-15 16:32:49 +00:00
pointer-events: none;
position: absolute;
2014-08-15 22:04:51 +00:00
background-color: #25a0d8;
2014-08-15 16:32:49 +00:00
-webkit-border-radius: 100%;
border-radius: 100%;
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
#track-container:hover #knob {
2014-08-15 22:04:51 +00:00
-webkit-transform: scale(2);
-moz-transform: scale(2);
-o-transform: scale(2);
-ms-transform: scale(2);
transform: scale(2);
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
#track-container:active #knob {
2014-08-15 22:04:51 +00:00
-webkit-transform: scale(1.5);
-moz-transform: scale(1.5);
-o-transform: scale(1.5);
-ms-transform: scale(1.5);
transform: scale(1.5);
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
input {
font: 500 11px 'Roboto', sans-serif;
color: #fff;
-webkit-font-smoothing: antialiased;
height: 30px;
2014-08-15 22:04:51 +00:00
margin-left: 5px;
2014-08-15 16:32:49 +00:00
display: inline-block;
background: transparent;
border: 0;
text-align: center;
outline: none;
width: 20%;
-webkit-transition: width 0.2s cubic-bezier(0.25, 0.25, 0, 1);
-moz-transition: width 0.2s cubic-bezier(0.25, 0.25, 0, 1);
-o-transition: width 0.2s cubic-bezier(0.25, 0.25, 0, 1);
-ms-transition: width 0.2s cubic-bezier(0.25, 0.25, 0, 1);
transition: width 0.2s cubic-bezier(0.25, 0.25, 0, 1);
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
input:hover {
width: 28%;
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
input:focus {
width: 50%;
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
input::selection {
2014-08-15 22:04:51 +00:00
background-color: rgba(255,255,255,0.25);
2014-08-15 02:21:45 +00:00
}