Skip to content

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

mobile considerations

Ginger Wong33f994fcfd15
diff --git a/webroot/index.html b/webroot/index.html
index ec0025d100..240aaef10f 100644
--- a/webroot/index.html
+++ b/webroot/index.html
@@ -23,7 +23,7 @@
Maybe a header
</h1>
</header>
- <div id="main-content-container" class="flex no-chat">
+ <div id="main-content-container" class="flex nxo-chat">
<!-- LEFT CONTAINER SIDE-->
<div class="flex main-cols left-col">
@@ -40,7 +40,7 @@
<div id="info">
{{ streamStatus }} {{ viewerCount }} {{ 'viewer' | plural(viewerCount) }}.
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only fpesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
diff --git a/webroot/styles/layout.css b/webroot/styles/layout.css
index 2691d0c120..e98495923e 100644
--- a/webroot/styles/layout.css
+++ b/webroot/styles/layout.css
@@ -49,8 +49,8 @@ header h1 {
.left-col {
width: calc(100vw - 24em);
-
}
+
#video-container {
width: 100%;
height: auto;
@@ -84,4 +84,57 @@ header h1 {
}
.no-chat .right-col {
display: none;
+}
+
+@media screen and (max-width: 860px) {
+ #chat-container {
+ width: 20em;
+ }
+ .left-col {
+ width: calc(100vw - 20em);
+ }
+}
+
+@media screen and (max-width: 640px ) and (orientation: portrait) {
+ #main-content-container {
+ flex-direction: column;
+ justify-content: space-between;
+ height: calc(100vh - 3em);
+ }
+
+ .main-cols {
+ width: 100vw;
+ }
+ .left-col {
+ flex-direction: column;
+ justify-content: stretch;
+ }
+ .right-col {
+ overflow: hidden;
+ }
+
+
+ #info {
+ display: none;
+ overflow: auto;
+ height: auto;
+ }
+
+ #chat-container {
+ width: 100%;
+ height: 100%;
+ position: relative;
+ height: auto;
+ }
+
+ .no-chat .left-col {
+ height: 100%;
+ }
+ .no-chat .right-col {
+ display: none;
+ }
+ .no-chat #info {
+ display: block;
+ }
+
}
\ No newline at end of file