diff --git a/InteractiveHtmlBom/ibom.css b/InteractiveHtmlBom/ibom.css index 02fb1ab0..e5573583 100644 --- a/InteractiveHtmlBom/ibom.css +++ b/InteractiveHtmlBom/ibom.css @@ -35,7 +35,8 @@ button { } .dark button { - background-color: #c3b7b5; /* This will be inverted */ + /* This will be inverted */ + background-color: #c3b7b5; } button.depressed { @@ -44,7 +45,8 @@ button.depressed { } .dark button.depressed { - background-color: #b3b; /* This will be inverted */ + /* This will be inverted */ + background-color: #b3b; } button:focus { @@ -336,8 +338,7 @@ mark.highlight { background-color: #eee; } -.dark .menu:hover .menubtn { -} +.dark .menu:hover .menubtn {} .menu-label { display: inline-block; @@ -390,18 +391,110 @@ mark.highlight { } ::-webkit-scrollbar { - width: 8px; + width: 8px; } ::-webkit-scrollbar-track { - background: #aaa; + background: #aaa; } ::-webkit-scrollbar-thumb { - background: #666; - border-radius: 3px; + background: #666; + border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { - background: #555; + background: #555; +} + +.slider { + -webkit-appearance: none; + width: 100%; + margin: 3px 0; + padding: 0; + outline: none; + opacity: 0.7; + -webkit-transition: .2s; + transition: opacity .2s; + border-radius: 3px; +} + +.slider:hover { + opacity: 1; +} + +.slider:focus { + outline: none; +} + +.slider::-webkit-slider-runnable-track { + -webkit-appearance: none; + width: 100%; + height: 8px; + background: #d3d3d3; + border-radius: 3px; + border: none; +} + +.slider::-webkit-slider-thumb { + -webkit-appearance: none; + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; + margin-top: -4px; +} + +.dark .slider::-webkit-slider-thumb { + background: #3d3; +} + +.slider::-moz-range-thumb { + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; +} + +.slider::-moz-range-track { + height: 8px; + background: #d3d3d3; + border-radius: 3px; +} + +.dark .slider::-moz-range-thumb { + background: #3d3; +} + +.slider::-ms-track { + width: 100%; + height: 8px; + border-width: 3px 0; + background: transparent; + border-color: transparent; + color: transparent; + transition: opacity .2s; +} + +.slider::-ms-fill-lower { + background: #d3d3d3; + border: none; + border-radius: 3px; +} + +.slider::-ms-fill-upper { + background: #d3d3d3; + border: none; + border-radius: 3px; +} + +.slider::-ms-thumb { + width: 15px; + height: 15px; + border-radius: 50%; + background: #0a0; + cursor: pointer; + margin: 0; } diff --git a/InteractiveHtmlBom/ibom.html b/InteractiveHtmlBom/ibom.html index 713ae5df..729a772d 100644 --- a/InteractiveHtmlBom/ibom.html +++ b/InteractiveHtmlBom/ibom.html @@ -51,6 +51,11 @@ Continuous redraw on drag +