diff --git a/_includes/embed/twitch.html b/_includes/embed/twitch.html new file mode 100644 index 0000000..ab0419a --- /dev/null +++ b/_includes/embed/twitch.html @@ -0,0 +1,4 @@ + diff --git a/_includes/embed/youtube.html b/_includes/embed/youtube.html new file mode 100644 index 0000000..715063c --- /dev/null +++ b/_includes/embed/youtube.html @@ -0,0 +1,6 @@ + diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index 6ea733d..e4e3850 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -576,6 +576,21 @@ i { /* fontawesome icons */ } } +.embed-video { + width: 100%; + height: 100%; + border-radius: 4px; + margin-bottom: 1rem; + + &.youtube { + aspect-ratio: 16 / 9; + } + + &.twitch { + aspect-ratio: 310 / 189; + } +} + /* --- buttons --- */ .btn-lang { border: 1px solid !important;