quality slider

This commit is contained in:
Devaev Maxim
2018-10-09 02:06:35 +03:00
parent c4e355cdb0
commit 66f0eb7f30
6 changed files with 126 additions and 99 deletions

View File

@@ -54,7 +54,7 @@
}
div#stream-window {
padding-top: 9px !important;
padding-top: 3px !important;
border-top: 0 !important;
border-radius: 0 0 8px 8px !important;
top: 50px !important;
@@ -65,6 +65,14 @@
div#stream-window-header {
display: none !important;
}
div#stream-info {
display: block !important;
margin: 0;
padding: 0;
padding-bottom: 3px;
font-size: 0.8em;
color: var(--fg-color-dark);
}
div#stream-mouse-buttons {
display: block !important;
}
@@ -80,9 +88,10 @@
}
@supports (-webkit-appearance:none) {
div#stream-size-slider-box input[type=range] {
input[type=range].slider {
margin: 20px 0 20px 0 !important;
}
table#stream-auto-resize-box {
margin: 20px 0 20px 0 !important;
}

60
web/css/sliders.css Normal file
View File

@@ -0,0 +1,60 @@
@supports (-webkit-appearance:none) {
input[type=range].slider {
cursor: pointer;
outline: none;
width: 100%;
box-shadow: none;
background: transparent;
margin: 8px 0 8px 0;
-webkit-appearance: none;
-webkit-tap-highlight-color: transparent;
}
}
@supports not (-webkit-appearance:none) {
input[type=range].slider {
cursor: pointer;
outline: none;
width: 100%;
box-shadow: none;
margin-left: 0;
margin-right: 0;
}
}
input[type=range].slider::-webkit-slider-runnable-track {
height: 5px;
background: var(--bg-color-light);
border-radius: 3px;
}
input[type=range].slider::-webkit-slider-thumb {
border: var(--intensive-border);
height: 18px;
width: 18px;
border-radius: 25px;
background: var(--bg-color-intensive);
-webkit-appearance: none;
margin-top: -7px;
}
input[type=range].slider:disabled::-webkit-slider-thumb {
border: var(--inactive-border);
background: var(--bg-color-normal);
}
input[type=range].slider::-moz-range-track {
height: 5px;
background: var(--bg-color-light);
border-radius: 3px;
}
input[type=range].slider::-moz-range-thumb {
border: var(--intensive-border);
height: 18px;
width: 18px;
border-radius: 25px;
background: var(--bg-color-intensive);
}
input[type=range].slider:disabled::-moz-range-thumb {
border: var(--inactive-border);
background: var(--bg-color-normal);
}

View File

@@ -1,3 +1,7 @@
div#stream-info {
display: none;
}
img#stream-image {
width: 640px;
height: 480px;
@@ -35,61 +39,10 @@ div.stream-box-mouse-enabled {
cursor: url("../svg/stream-mouse-cursor.svg"), pointer;
}
select#stream-quality-select {
margin: 8px 0 8px 0;
}
div#stream-size-slider-box {
div.stream-slider-box {
margin-top: 5px;
display: flex;
}
@supports (-webkit-appearance:none) {
div#stream-size-slider-box input[type=range] {
cursor: pointer;
outline: none;
width: 100%;
box-shadow: none;
background: transparent;
margin: 8px 0 8px 0;
-webkit-appearance: none;
}
}
@supports not (-webkit-appearance:none) {
div#stream-size-slider-box input[type=range] {
cursor: pointer;
outline: none;
width: 100%;
box-shadow: none;
margin-left: 0;
margin-right: 0;
}
}
div#stream-size-slider-box input[type=range]::-webkit-slider-runnable-track {
height: 5px;
background: var(--bg-color-light);
border-radius: 3px;
}
div#stream-size-slider-box input[type=range]::-webkit-slider-thumb {
border: var(--intensive-border);
height: 18px;
width: 18px;
border-radius: 25px;
background: var(--bg-color-intensive);
-webkit-appearance: none;
margin-top: -7px;
}
div#stream-size-slider-box input[type=range]::-moz-range-track {
height: 5px;
background: var(--bg-color-light);
border-radius: 3px;
}
div#stream-size-slider-box input[type=range]::-moz-range-thumb {
border: var(--intensive-border);
height: 18px;
width: 18px;
border-radius: 25px;
background: var(--bg-color-intensive);
}
table#stream-auto-resize-box {
width: 100%;

View File

@@ -26,6 +26,7 @@
--grey-border: thin solid var(--border-color-grey);
--normal-border: thin solid var(--border-color-normal);
--black-border: thin solid black;
--inactive-border: 2px solid var(--border-color-normal);
--intensive-border: 2px solid var(--border-color-intensive);
--thin-intensive-border: thin solid var(--border-color-intensive);