diff --git a/web/static/css/player.css b/web/static/css/player.css new file mode 100644 index 0000000..720aec7 --- /dev/null +++ b/web/static/css/player.css @@ -0,0 +1,84 @@ +/* Player */ +.video-responsive { + position: relative; + padding-top: 56.25%; /* 16/9 */ +} + +.video-responsive video { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 100%; + height: 100%; + max-height: 90vh; + + /* Black borders when video is not 16/9 */ + background-color: #000; +} + +/* Controls under the player */ +.controls { + background: #0A1A28; + padding: 0.2rem 0.5rem; + color: rgb(187, 187, 187); + user-select: none; +} + +.control-quality, +.control-srt-link, +.control-viewers, +.control-indicator, +.control-chat { + white-space: nowrap; + margin-left: 0.5rem; +} + +/* Control icons */ +.control-quality::before, +.control-srt-link::before, +.control-viewers::before { + content: ""; + display: inline-block; + width: 16px; + height: 16px; + margin-right: 0.2rem; + vertical-align: middle; +} + +.control-quality::before { + background: transparent url("data:image/svg+xml;utf8,") no-repeat; +} + +.control-srt-link::before { + background: transparent url("data:image/svg+xml;utf8,") no-repeat; +} + +.control-viewers::before { + background: transparent url("data:image/svg+xml;utf8,") no-repeat; +} + +.control-indicator { + vertical-align: middle; +} + +/* Custom select */ +.control-quality select { + border: none; + color: inherit; + appearance: none; + + /* Custom caret */ + background: transparent url("data:image/svg+xml;utf8,") no-repeat right; + padding-right: 0.8rem; +} + +/* Hide chat toggler on small screen */ +.control-chat { + display: none; +} +@media(min-width:1000px){ + .control-chat { + display: inline; + } +} diff --git a/web/static/css/style.css b/web/static/css/style.css index 1c276bd..3b71324 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -1,3 +1,5 @@ +/* Commun style */ + body, html { height: 100%; margin: 0; @@ -5,13 +7,12 @@ body, html { body { background-color: #3b4b5b; - font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; + font-family: sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #bbb; text-align: justify; - user-select: none; } p { @@ -20,14 +21,10 @@ p { } code { - font-size: 87.5%; + font-family: monospace; + font-size: 10pt; word-break: break-word; - user-select: text; -} - -svg { - overflow: hidden; - vertical-align: middle; + user-select: all; } a { @@ -44,19 +41,6 @@ h1, h2, h3, h4 { color: #ddd; } -select { - border: none; - color: inherit; - appearance: none; - - /* Custom caret */ - background-color: transparent; - background-image: url("data:image/svg+xml;utf8,"); - background-repeat: no-repeat; - background-position-x: 100%; - padding-right: 1.2rem; -} - .container { height: 100%; width: 100%; @@ -76,24 +60,6 @@ select { max-width: 1200px; } -.video-responsive { - position: relative; - padding-top: 56.25%; /* 16/9 */ -} - -.video-responsive video { - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - max-height: 90vh; - - /* Black borders when video is not 16/9 */ - background-color: #000; -} - .col-chat { position: relative; width: 100%; @@ -111,23 +77,10 @@ select { border: 0; } -.ml-1 { - margin-left: 0.5rem; -} - -/* Hide chat toggler on small screen */ -#sideWidgetToggle { - display: none; -} - /* On large screen, put chat on left */ @media(min-width:1000px){ .col-chat { width: 33.33333%; flex: 0 0 33.33333%; } - - #sideWidgetToggle { - display: inline; - } } diff --git a/web/template/_base.html b/web/template/_base.html index a899a7b..70ea2d2 100644 --- a/web/template/_base.html +++ b/web/template/_base.html @@ -6,12 +6,13 @@
srt://{{.Cfg.Hostname}}:{{.Cfg.SRTServerPort}}?streamid={{.Path}}
+ 0
+
+ {{if .WidgetURL}}»{{end}}
+
-
-
-
-
- srt://{{.Cfg.Hostname}}:{{.Cfg.SRTServerPort}}?streamid={{.Path}}
-
-
- 0
-
-
-
- {{if .WidgetURL}}
- »
- {{end}}
-