summaryrefslogtreecommitdiff
path: root/web/css
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-10-09 02:06:35 +0300
committerDevaev Maxim <[email protected]>2018-10-09 02:06:35 +0300
commit66f0eb7f3094ed05996f14e8ec256d70ce0d17c5 (patch)
tree146ebe5d4eb6e1652ddfd4b7b2e677c20dcd9d9f /web/css
parentc4e355cdb00801666bede44aa4e60d92a988e2b0 (diff)
quality slider
Diffstat (limited to 'web/css')
-rw-r--r--web/css/mobile.css13
-rw-r--r--web/css/sliders.css60
-rw-r--r--web/css/stream.css57
-rw-r--r--web/css/vars.css1
4 files changed, 77 insertions, 54 deletions
diff --git a/web/css/mobile.css b/web/css/mobile.css
index 04e548e7..1e5df8fd 100644
--- a/web/css/mobile.css
+++ b/web/css/mobile.css
@@ -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;
}
diff --git a/web/css/sliders.css b/web/css/sliders.css
new file mode 100644
index 00000000..8e60e078
--- /dev/null
+++ b/web/css/sliders.css
@@ -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);
+}
diff --git a/web/css/stream.css b/web/css/stream.css
index 2e7aa32c..d0166fa9 100644
--- a/web/css/stream.css
+++ b/web/css/stream.css
@@ -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%;
diff --git a/web/css/vars.css b/web/css/vars.css
index d6d5a604..73143366 100644
--- a/web/css/vars.css
+++ b/web/css/vars.css
@@ -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);