From 33f994fcfd159d398736102e687f785a745580d8 Mon Sep 17 00:00:00 2001 From: Ginger Wong Date: Thu, 4 Jun 2020 02:31:41 -0700 Subject: [PATCH] mobile considerations --- webroot/index.html | 4 +-- webroot/styles/layout.css | 55 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 56 insertions(+), 3 deletions(-) diff --git a/webroot/index.html b/webroot/index.html index ec0025d10..240aaef10 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -23,7 +23,7 @@ Maybe a header -
+
@@ -40,7 +40,7 @@
{{ 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.
diff --git a/webroot/styles/layout.css b/webroot/styles/layout.css index 2691d0c12..e98495923 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