diff --git a/components/ui/static-header.js b/components/ui/static-header.js index e6d72ada..fcd1ef82 100644 --- a/components/ui/static-header.js +++ b/components/ui/static-header.js @@ -42,16 +42,10 @@ class StaticHeader extends React.Component { return (
-
- - {/* make sure webp image is also available */} - - - - -
- {tabs ? (
diff --git a/css/components/page/_static-section.scss b/css/components/page/_static-section.scss index 0ca511db..bfb8c2a4 100644 --- a/css/components/page/_static-section.scss +++ b/css/components/page/_static-section.scss @@ -10,37 +10,38 @@ height: 80vh; max-height: 720px; } -} - -.c-static-background { - display: block; - overflow: hidden; - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - box-sizing: border-box; - margin: 0; - img { + .c-static-background { + display: block; + overflow: hidden; position: absolute; top: 0; left: 0; bottom: 0; right: 0; box-sizing: border-box; - padding: 0; - border: none; - margin: auto; - display: block; - width: 0; - height: 0; - min-width: 100%; - max-width: 100%; - min-height: 100%; - max-height: 100%; - object-fit: cover; - object-position: center; + margin: 0; + + img { + position: absolute; + top: 0; + left: 0; + bottom: 0; + right: 0; + box-sizing: border-box; + padding: 0; + border: none; + margin: auto; + display: block; + width: 0; + height: 0; + min-width: 100%; + max-width: 100%; + min-height: 100%; + max-height: 100%; + object-fit: cover; + object-position: center; + } } } +