mirror of
https://github.com/wavetermdev/docusaurus-og.git
synced 2026-08-05 13:46:35 -07:00
feat: set max-height for hero section
This commit is contained in:
@@ -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%',
|
||||
|
||||
Reference in New Issue
Block a user