diff options
author | 2020-10-12 00:40:12 +0100 | |
---|---|---|
committer | 2020-10-12 00:40:12 +0100 | |
commit | 410bfd8996af861beedacc6711adce26dc5f684b (patch) | |
tree | 440d926210ae7bebb72393c838e4806aec06adbb /pydis_site/static | |
parent | Add logo to new logo timeline item (diff) |
Responsively size YouTube embeds
Diffstat (limited to 'pydis_site/static')
-rw-r--r-- | pydis_site/static/css/home/timeline.css | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pydis_site/static/css/home/timeline.css b/pydis_site/static/css/home/timeline.css index f2920686..77b2f8da 100644 --- a/pydis_site/static/css/home/timeline.css +++ b/pydis_site/static/css/home/timeline.css @@ -29,6 +29,20 @@ button, input, textarea, select { margin: 0 } +.video-container { + position: relative; + width: 100%; + height: 0; + padding-bottom: 56.25%; +} +.video { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + .btn, .form-control, .link, .reset { background-color: transparent; padding: 0; |