about summary refs log tree commit diff
path: root/web
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-09-16 21:37:33 +0100
committerGitHub <noreply@github.com>2024-09-16 21:37:33 +0100
commit8241747fc22bb4363ff6cf48d54013cc72db7624 (patch)
treee6cd31d82100fb9c99f3443d7b2753672b55373c /web
parent38c8f01594ff515fbe49d00a777d70449e804fd4 (diff)
downloadvoidsky-8241747fc22bb4363ff6cf48d54013cc72db7624.tar.zst
[Video] Volume controls on web (#5363)
* split up VideoWebControls

* add basic slider

* logarithmic volume

* integrate mute state

* fix typo

* shared video volume

* rm log

* animate in/out

* disable for touch devices

* remove flicker on touch devices

* more detailed comment

* move into correct context provider

* add minHeight

* hack

* bettern umber

---------

Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'web')
-rw-r--r--web/index.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/web/index.html b/web/index.html
index 825d15968..8902f7b6e 100644
--- a/web/index.html
+++ b/web/index.html
@@ -262,6 +262,51 @@
       .force-no-clicks * {
         pointer-events: none !important;
       }
+
+      input[type=range][orient=vertical] {
+        writing-mode: vertical-lr;
+        direction: rtl;
+        appearance: slider-vertical;
+        width: 16px;
+        vertical-align: bottom;
+        -webkit-appearance: none;
+        appearance: none;
+        background: transparent;
+        cursor: pointer;
+      }
+
+      input[type="range"][orient=vertical]::-webkit-slider-runnable-track {
+        background: white;
+        height: 100%;
+        width: 4px;
+        border-radius: 4px;
+      }
+
+      input[type="range"][orient=vertical]::-moz-range-track {
+        background: white;
+        height: 100%;
+        width: 4px;
+        border-radius: 4px;
+      }
+
+      input[type="range"]::-webkit-slider-thumb {
+        -webkit-appearance: none;
+        appearance: none;
+        border-radius: 50%;
+        background-color: white;
+        height: 16px;
+        width: 16px;
+        margin-left: -6px;
+      }
+
+      input[type="range"][orient=vertical]::-moz-range-thumb {
+        border: none;
+        border-radius: 50%;
+        background-color: white;
+        height: 16px;
+        width: 16px;
+        margin-left: -6px;
+      }
     </style>
   </head>