diff --git a/docs/docs/assets/stylesheets/extra.css b/docs/docs/assets/stylesheets/extra.css index cb16c7868b..7a9ae77462 100644 --- a/docs/docs/assets/stylesheets/extra.css +++ b/docs/docs/assets/stylesheets/extra.css @@ -2781,3 +2781,41 @@ a.ak-stat:hover { .md-typeset details.knobs-callout > *:last-child { padding-bottom: 1rem; } + +/* ---- Embedded video clips ---------------------------------------------- + Used by help pages that end with a "Watch the Video" section. + 16:9 box that shrinks with the column, so the player never overflows on a + phone. The caption carries a plain link, so the video stays reachable if + the iframe is blocked. */ +.md-typeset .video-clip { + margin: 1.25rem 0 1.5rem; + max-width: 800px; +} +.md-typeset .video-clip__frame { + position: relative; + aspect-ratio: 16 / 9; + overflow: hidden; + border: 1px solid var(--md-default-fg-color--lightest); + border-radius: 4px; + background: #000; +} +/* Older browsers drop aspect-ratio. The padding keeps the 16:9 height there. */ +@supports not (aspect-ratio: 16 / 9) { + .md-typeset .video-clip__frame { padding-top: 56.25%; } +} +.md-typeset .video-clip__frame iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + border: 0; +} +.md-typeset .video-clip figcaption { + margin-top: 0.5rem; + font-size: 0.8rem; + color: var(--md-default-fg-color--light); +} +@media print { + .md-typeset .video-clip__frame { display: none; } +}