summaryrefslogtreecommitdiffhomepage
path: root/common/main.css
diff options
context:
space:
mode:
authorRay <[email protected]>2024-09-08 21:10:13 +0200
committerRay <[email protected]>2024-09-08 21:10:13 +0200
commit725fa0e9c4c14194470a7a8d5007e09b5b114dca (patch)
treeb536b98293e30fa448091518068315c420a0e94a /common/main.css
parent42f8a824eb61812eefb584c81a0078643ef47da1 (diff)
downloadraylib.com-725fa0e9c4c14194470a7a8d5007e09b5b114dca.tar.gz
raylib.com-725fa0e9c4c14194470a7a8d5007e09b5b114dca.zip
Fixed video size to be responsive
Diffstat (limited to 'common/main.css')
-rw-r--r--common/main.css11
1 files changed, 10 insertions, 1 deletions
diff --git a/common/main.css b/common/main.css
index 2b47196..9edc349 100644
--- a/common/main.css
+++ b/common/main.css
@@ -629,6 +629,16 @@ a#game-template:hover {
filter: contrast(180%);
}
+.video-container {
+ width: 100%;
+ aspect-ratio: 16 / 9;
+}
+
+.video {
+ width: 100%;
+ height: 100%;
+}
+
@media only screen and (max-width: 600px) {
/* general layout changes for mobile */
@@ -677,5 +687,4 @@ a#game-template:hover {
}
-
} \ No newline at end of file