dat.gui/elements/number-controller.css

88 lines
2.0 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;
text-select: none;
font-size: 0;
height: 100%;
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
#track-container {
height: 100%;
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;
background: rgba(0,0,0,0.1);
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;
background: #fff;
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;
-webkit-transition: -webkit-transform 0.2s cubic-bezier(0.25, 0.25, 0, 1);
-moz-transition: -moz-transform 0.2s cubic-bezier(0.25, 0.25, 0, 1);
-o-transition: -o-transform 0.2s cubic-bezier(0.25, 0.25, 0, 1);
-ms-transition: -ms-transform 0.2s cubic-bezier(0.25, 0.25, 0, 1);
transition: transform 0.2s cubic-bezier(0.25, 0.25, 0, 1);
pointer-events: none;
position: absolute;
background-color: #fff;
-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 {
-webkit-transform: scale(1.8);
-moz-transform: scale(1.8);
-o-transform: scale(1.8);
-ms-transform: scale(1.8);
transform: scale(1.8);
2014-08-15 02:21:45 +00:00
}
2014-08-15 16:32:49 +00:00
#track-container:active #knob {
-webkit-transform: scale(1.4);
-moz-transform: scale(1.4);
-o-transform: scale(1.4);
-ms-transform: scale(1.4);
transform: scale(1.4);
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;
padding-left: 5px;
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 {
background-color: rgba(0,0,0,0.1);
2014-08-15 02:21:45 +00:00
}