diff options
add responsive video code
1 files changed, 22 insertions, 0 deletions
| -rw-r--r-- | dist/spectre.css | 22 |
diff --git a/dist/spectre.css b/dist/spectre.css index db4537b..171531e 100644 --- a/dist/spectre.css +++ b/dist/spectre.css @@ -658,6 +658,28 @@ pre code { max-width: 100%; height: auto; } +.video-responsive { + position: relative; + height: 0; + padding-top: 3rem; + padding-bottom: 56.25%; + /* 16:9 */ + overflow: hidden; +} +.video-responsive iframe, +.video-responsive object, +.video-responsive embed { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.video-responsive video { + width: 100%; + max-width: 100%; + height: auto; +} .table { width: 100%; border-collapse: collapse; |