Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: improve aspect ratio of 960x540 videos
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Nov 16, 2023
1 parent 3c36537 commit 79a4a23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion styles/_online.manchester.ac.uk.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79a4a23

Please sign in to comment.