diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-05-25 00:39:17 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-05-25 00:39:17 +0300 |
commit | a3198e30a48933b67513a6a4d7a10642721bc6ea (patch) | |
tree | e1ac6e7972822229fd9721bfb208c2d5c1e9aab3 /localwebsite/htdocs | |
parent | d454ac4a1bad26ee3bedebe8d0902ccda2ad1750 (diff) |
localwebsite: cams: better mobile layout
Diffstat (limited to 'localwebsite/htdocs')
-rw-r--r-- | localwebsite/htdocs/assets/app.css | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/localwebsite/htdocs/assets/app.css b/localwebsite/htdocs/assets/app.css index 73e0667..59c0f35 100644 --- a/localwebsite/htdocs/assets/app.css +++ b/localwebsite/htdocs/assets/app.css @@ -153,16 +153,24 @@ } /* cams page */ -.camfeeds { - display: flex; - flex-wrap: wrap; - flex-direction: row; -} -.camfeeds > video { - display: flex; - flex-basis: calc(50% - 20px); - justify-content: center; - flex-direction: column; - width: calc(50% - 10px); - margin: 5px; +@media only screen and (min-width: 640px) { + .camfeeds { + display: flex; + flex-wrap: wrap; + flex-direction: row; + } + + .camfeeds > video { + display: flex; + flex-basis: calc(50% - 20px); + justify-content: center; + flex-direction: column; + width: calc(50% - 10px); + margin: 5px; + } +} +@media only screen and (max-width: 639px) { + .camfeeds > video { + max-width: 100%; + } }
\ No newline at end of file |