From d3cb21dd55e9aafd3e90f0392730d537df329eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 26 Sep 2018 22:34:44 +0200 Subject: [PATCH] Platform: fix 1:1 aspect ratio for web applications. CSS priority rules outtricked me again, ugh. --- src/Magnum/Platform/WebApplication.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Platform/WebApplication.css b/src/Magnum/Platform/WebApplication.css index ea461cd89..5ef039657 100644 --- a/src/Magnum/Platform/WebApplication.css +++ b/src/Magnum/Platform/WebApplication.css @@ -98,7 +98,7 @@ body { #container.width-800 #sizer { width: 800px; } #container.aspect-1-1 #expander { padding-bottom: 100%; } -#container.aspect-4-3 #expander, #container:not(.fullsize) #expander { +#container.aspect-4-3 #expander, #container:not(.fullsize):not([class*='aspect-']) #expander { padding-bottom: 75%; /* default */ } #container.aspect-3-4 #expander { padding-bottom: 133.3333%; }