From 79a4a23e0673cf055b6e6e4f1b291839d03b3db9 Mon Sep 17 00:00:00 2001 From: Adil Hanney Date: Thu, 16 Nov 2023 17:55:10 +0000 Subject: [PATCH] fix: improve aspect ratio of 960x540 videos --- main.css | 2 +- styles/_online.manchester.ac.uk.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.css b/main.css index d73cfbb..00b7a33 100644 --- a/main.css +++ b/main.css @@ -280,7 +280,7 @@ aspect-ratio: 1.5; } iframe[src*="https://video.manchester.ac.uk"][width="960"][height="540"] { - aspect-ratio: 1.8777777778; + aspect-ratio: 1.8177777778; } iframe[src*="https://video.manchester.ac.uk"][width="660"][height="362"] { aspect-ratio: 1.9232044199; diff --git a/styles/_online.manchester.ac.uk.scss b/styles/_online.manchester.ac.uk.scss index 90a01e3..b82441f 100644 --- a/styles/_online.manchester.ac.uk.scss +++ b/styles/_online.manchester.ac.uk.scss @@ -329,7 +329,7 @@ iframe[src*="https://video.manchester.ac.uk"] { aspect-ratio: 1.5; // more specific aspect ratios... &[width="960"][height="540"] { - aspect-ratio: calc(960 / 540 + 0.1); + aspect-ratio: calc(960 / 540 + 0.04); } &[width="660"][height="362"] { aspect-ratio: calc(660 / 362 + 0.1);