feat: set max-height for hero section

This commit is contained in:
Hossein Mehrabi
2023-07-10 22:46:49 +03:30
parent a14f423cbd
commit 90870a3c03
2 changed files with 6 additions and 2 deletions
@@ -1,8 +1,11 @@
.mdx-hero {
--hero-max-height: 1080px;
position: relative;
display: flex;
flex-direction: column;
height: calc(100vh - var(--ifm-navbar-height) - 8px);
max-height: var(--hero-max-height);
}
.mdx-hero--large {
@@ -75,8 +75,9 @@ export const HeroVideo: React.FC<HeroVideoProps> = ({
{
'hero-video-scale': desktop?.scale ?? '1.70951586',
'hero-video-offset-y': desktop?.offsetY ?? '-150px',
'hero-video-height': desktop?.height ?? '120%',
'hero-video-min-height': desktop?.minHeight ?? '100vh',
'hero-video-height': desktop?.height ?? '100%',
'hero-video-min-height':
desktop?.minHeight ?? 'min(100vh, var(--hero-max-height))',
'hero-video-scale-mobile': mobile?.scale ?? '1.70951586',
'hero-video-offset-y-mobile': mobile?.offsetY ?? '-50px',
'hero-video-height-mobile': mobile?.height ?? '120%',