diff options
Diffstat (limited to 'web/css')
-rw-r--r-- | web/css/mobile.css | 3 | ||||
-rw-r--r-- | web/css/stream.css | 7 | ||||
-rw-r--r-- | web/css/switches.css | 76 |
3 files changed, 84 insertions, 2 deletions
diff --git a/web/css/mobile.css b/web/css/mobile.css index fdec7fc3..04e548e7 100644 --- a/web/css/mobile.css +++ b/web/css/mobile.css @@ -83,5 +83,8 @@ div#stream-size-slider-box input[type=range] { margin: 20px 0 20px 0 !important; } + table#stream-auto-resize-box { + margin: 20px 0 20px 0 !important; + } } } diff --git a/web/css/stream.css b/web/css/stream.css index 0ddcf780..2e7aa32c 100644 --- a/web/css/stream.css +++ b/web/css/stream.css @@ -39,8 +39,6 @@ select#stream-quality-select { margin: 8px 0 8px 0; } -span#stream-size-value { -} div#stream-size-slider-box { margin-top: 5px; display: flex; @@ -93,6 +91,11 @@ div#stream-size-slider-box input[type=range]::-moz-range-thumb { background: var(--bg-color-intensive); } +table#stream-auto-resize-box { + width: 100%; + border-collapse: collapse; +} + div#stream-mouse-buttons { display: none; margin: 0; diff --git a/web/css/switches.css b/web/css/switches.css new file mode 100644 index 00000000..3a97b072 --- /dev/null +++ b/web/css/switches.css @@ -0,0 +1,76 @@ +div.switch-box { + display: inline-block; + vertical-align: middle; + position: relative; + width: 50px; + -webkit-user-select: none; + -moz-user-select: none; +} + +div.switch-box input[type=checkbox].switch-checkbox { + display: none; +} + +div.switch-box label.switch-label { + display: block; + overflow: hidden; + cursor: pointer; + border: none; + border-radius: 15px; +} + +div.switch-box span.switch-inner { + display: block; + width: 200%; + margin-left: -100%; +} + +div.switch-box span.switch-inner:before, span.switch-inner:after { + display: block; + float: left; + width: 50%; + height: 20px; + padding: 0; + line-height: 22px; + font-size: 10px; + font-family: sans-serif !important; + font-weight: bold; + box-sizing: border-box; +} + +div.switch-box span.switch-inner:before { + content: "ON"; + padding-left: 5px; + background-color: var(--bg-color-gray); + color: var(--fg-color-normal); + text-align: left; +} + +div.switch-box span.switch-inner:after { + content: "OFF"; + padding-right: 5px; + background-color: var(--bg-color-gray); + color: var(--fg-color-inactive); + text-align: right; +} + +div.switch-box span.switch { + display: block; + width: 15px; + margin: 0px; + background: var(--bg-color-intensive); + position: absolute; + top: 0; + bottom: 0; + right: 31px; + border: var(--intensive-border); + border-radius: 15px; +} + +div.switch-box input[type=checkbox].switch-checkbox:checked + label.switch-label span.switch-inner { + margin-left: 0; +} + +div.switch-box input[type=checkbox].switch-checkbox:checked + label.switch-label span.switch { + right: 0px; +} |