Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Merge branch '0615-layoutrefactor'

Ginger Wong195fe5d9e327
diff --cc webroot/styles/layout.css
index cef96ce2f0,0066599f49..fa16572a09
--- a/webroot/styles/layout.css
+++ b/webroot/styles/layout.css
@@@ -117,27 -140,14 +140,13 @@@ header h1
/* ************************************************8 */
- #main-content-container {
- width: 100%;
- flex-direction: row;
- position: relative;
- margin-top: var(--header-height);
- }
-
- .main-cols {
- flex-direction: column;
- justify-content: flex-start;
- position: relative;
- }
- .left-col {
- width: calc(100vw - var(--right-col-width));
+ #video-container {
- /* height: var(--video-container-height); */
+ height: calc(var(--video-container-height) - var(--header-height));
+ width: 100%;
}
- /* ************************************************8 */
-
.owncast-video-container {
- width: 100%;
height: auto;
display: flex;
flex-direction: column;
@@@ -165,23 -173,25 +172,28 @@@
margin-left: -1.5em;
margin-top: -0.75em;
}
++.vjs-airplay .vjs-icon-placeholder::before {
++ content: 'AP';
++}
+
+
+
+
/* ************************************************8 */
- #stream-info {
- padding: .5em 2em;
- text-align: center;
- font-size: .7em;
- flex-direction: row;
- justify-content: space-between;
-
+ .no-chat #chat-container-wrap {
+ display: none;
}
-
- #user-content {
- padding: 2em;
+ .chat #chat-container-wrap {
+ display: block;
}
- /* ************************************************8 */
+ .chat #video-container,
+ .chat #stream-info,
+ .chat #user-content {
+ width: calc(100% - var(--right-col-width));
+ }
#chat-container {
@@@ -248,13 -257,13 +259,7 @@@
/* ************************************************8 */
-/*
-.no-chat .left-col {
- width: 100vw;
-}
-.no-chat .right-col {
- display: none;
-} */
+
- .no-chat .left-col {
- width: 100vw;
- }
- .no-chat .right-col {
- display: none;
- }
.no-chat #chat-toggle {
opacity: .75;
@@@ -276,86 -285,56 +281,57 @@@
#chat-container {
width: var(--right-col-width);
}
- .left-col {
- /* .left-col {
-- width: calc(100vw - var(--right-col-width));
- }
- }
-
- /* ************************************************8 */
- } */
+
+ }
@media screen and (max-width: 640px ) {
- #main-content-container {
- flex-direction: column;
- justify-content: space-between;
- height: calc((var(--vh, 1vh) * 100) - var(--header-height));
++ .desktop {
++ --video-container-height: 50vh;
+ }
-
- .main-cols {
- width: 100vw;
- }
- .left-col {
- flex-direction: column;
- justify-content: stretch;
- z-index: 100;
- height: 55%;
- min-height: 300px;
- }
- .right-col {
- overflow: hidden;
- height: 45%;
- }
-
- #user-info {
- width: 9em;
- }
- #user-content {
- display: none;
- }
- #chat-container {
- width: 100%;
- height: 100%;
- position: relative;
+ .desktop #chat-container {
height: auto;
+ position: relative;
+ right: unset;
+ top: unset;
+ width: 100%;
+ z-index: 1;
}
-
- .owncast-video-container {
- height: 100%;
- }
- .no-chat .left-col {
- height: 100%;
- }
- .no-chat .owncast-video-container {
- min-height: 50vh;
+ .desktop.chat #video-container,
+ .desktop.chat #stream-info,
+ .desktop.chat #user-content {
+ width: 100%;
}
- .no-chat .right-col {
+ .desktop.chat #user-content{
display: none;
}
- .no-chat #stream-info {
- display: flex;
- }
- .no-chat #user-content {
- display: block;
- }
- }
+ }
- .message-input-focus #main-content-container {
- flex-direction: column;
- justify-content: space-between;
- height: calc((var(--vh, 1vh) * 100) - var(--header-height));
+ /* ************************************************8 */
+ /* ************************************************8 */
+ .touch-screen header {
+ position: relative;
+ }
+ .touch-screen #top-content {
+ position: fixed;
+ left: 0;
+ top: 0;
+ width: 100%;
+ z-index: 10;
}
- .message-input-focus .main-cols {
- width: 100vw;
+
+
+ .touch-screen #user-content {
+ display: none;
}
- .message-input-focus .left-col {
- flex-direction: column;
- justify-content: stretch;
- z-index: 100;
+ .touch-screen #user-content-touch {
+ display: block;
}
- .message-input-focus .right-col {
+
+ .touch-screen #stream-info {
+ height: 2.5em;
overflow: hidden;
}