From 2c318546b63820529047d559bc1009ede49d53f7 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 26 Jan 2022 13:12:22 +0100 Subject: [PATCH] docs: remove unnecessary wrapping divs. --- website/docs/how-to/VideoThing.jsx | 56 ++++++++++++++---------------- website/src/css/custom.css | 11 +++--- 2 files changed, 32 insertions(+), 35 deletions(-) diff --git a/website/docs/how-to/VideoThing.jsx b/website/docs/how-to/VideoThing.jsx index 29da9df244a..889f9e33871 100644 --- a/website/docs/how-to/VideoThing.jsx +++ b/website/docs/how-to/VideoThing.jsx @@ -3,37 +3,33 @@ import Admonition from '@theme/Admonition'; const Component = ({ videoUrls, children }) => { return ( -
-
- - {children} - Hey! Did you know that the content in this guide is also - available in video format? If that's more your speed, feel - free to check out one of these related videos πŸΏπŸ“½ - +
+ + {children} + Hey! Did you know that the content in this guide is also + available in video format? If that's more your speed, feel free + to check out one of these related videos πŸΏπŸ“½ + -
- {videoUrls ? ( - videoUrls.map((url) => ( -
- -
- )) - ) : ( - - You need to provide YouTube video URLs for this - component to work properly. - - )} -
+
+ {videoUrls ? ( + videoUrls.map((url) => ( + + )) + ) : ( + + You need to provide YouTube video URLs for this + component to work properly. + + )}
); diff --git a/website/src/css/custom.css b/website/src/css/custom.css index fcc3e394042..b3f9a9148ff 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -67,6 +67,8 @@ html[data-theme='dark'] .header-github-link:before { no-repeat; } +/* Video content container */ + .unleash-video-container { display: grid; --gap: 0.5em; @@ -86,10 +88,6 @@ html[data-theme='dark'] .header-github-link:before { gap: var(--gap); } -.video-wrapper { - display: flex; -} - .unleash-video-container > .admonition { box-shadow: none; background-color: var(--unleash-color-admonition-background); @@ -107,7 +105,10 @@ html[data-theme='dark'] .header-github-link:before { grid-template-columns: 1fr min(250px, 25%); } .unleash-video-container > .videos { - grid-template-columns: 1fr; + display: flex; + flex-direction: column; gap: var(--gap); } } + +/* end video content container */