mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
remove unused rounded style from numberControlSlider
This commit is contained in:
parent
867c5bd37e
commit
f51e99beb0
@ -13,8 +13,6 @@
|
|||||||
|
|
||||||
import NumberController from './NumberController';
|
import NumberController from './NumberController';
|
||||||
import dom from '../dom/dom';
|
import dom from '../dom/dom';
|
||||||
import css from '../utils/css';
|
|
||||||
import styleSheet from '!css!sass!./NumberControllerSlider.scss';
|
|
||||||
|
|
||||||
function map(v, i1, i2, o1, o2) {
|
function map(v, i1, i2, o1, o2) {
|
||||||
return o1 + (o2 - o1) * ((v - i1) / (i2 - i1));
|
return o1 + (o2 - o1) * ((v - i1) / (i2 - i1));
|
||||||
@ -95,11 +93,4 @@ class NumberControllerSlider extends NumberController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Injects default stylesheet for slider elements.
|
|
||||||
*/
|
|
||||||
NumberControllerSlider.useDefaultStyles = function() {
|
|
||||||
css.inject(styleSheet.toString());
|
|
||||||
};
|
|
||||||
|
|
||||||
export default NumberControllerSlider;
|
export default NumberControllerSlider;
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
/**
|
|
||||||
* dat-gui JavaScript Controller Library
|
|
||||||
* http://code.google.com/p/dat-gui
|
|
||||||
*
|
|
||||||
* Copyright 2011 Data Arts Team, Google Creative Lab
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
.slider {
|
|
||||||
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
|
|
||||||
height: 1em;
|
|
||||||
border-radius: 1em 0 0 1em;
|
|
||||||
background-color: #eee;
|
|
||||||
}
|
|
||||||
|
|
||||||
.slider-fg {
|
|
||||||
background-color: #aaa;
|
|
||||||
height: 1em;
|
|
||||||
margin-left: -0.5em;
|
|
||||||
border-radius: 1em 0 0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.slider-fg:after {
|
|
||||||
display: inline-block;
|
|
||||||
border-radius: 1em;
|
|
||||||
background-color: #fff;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
content: '';
|
|
||||||
float: right;
|
|
||||||
margin-right: -0.5em;
|
|
||||||
margin-top: 3px;
|
|
||||||
height: 0.9em;
|
|
||||||
width: 0.9em;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user