1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

feat: add support for embed video files (#1558)

This commit is contained in:
Alexander Fuks
2024-02-28 00:51:33 +04:00
committed by GitHub
parent 8a1568c27a
commit 9592146ca3
5 changed files with 82 additions and 10 deletions

View File

@@ -550,17 +550,25 @@ main {
width: 100%;
height: 100%;
margin-bottom: 1rem;
aspect-ratio: 16 / 9;
@extend %rounded;
&.youtube,
&.bilibili {
aspect-ratio: 16 / 9;
}
&.twitch {
aspect-ratio: 310 / 189;
}
&.file {
display: block;
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
margin: auto;
margin-bottom: 0;
}
@extend %img-caption;
}
/* --- buttons --- */