Some style fixes

This commit is contained in:
Aarni Halinen
2020-12-29 20:30:47 +02:00
parent f114e5c6e6
commit dc81147ce7
6 changed files with 21 additions and 21 deletions
+5 -5
View File
@@ -7,7 +7,7 @@ import breakpoints from "@theme/breakpoints";
import NavigationMobile from "./NavigationMobile";
import HeaderLogo from "./HeaderLogo";
const StyledHeader = styled.header<{isHidden?: boolean}>`
const StyledHeader = styled.header`
display: flex;
flex-flow: row nowrap;
@media screen and (max-width: ${breakpoints.mobile}) {
@@ -15,7 +15,7 @@ const StyledHeader = styled.header<{isHidden?: boolean}>`
}
`;
const Sticky = styled.div`
const Sticky = styled.div<{$isHidden?: boolean}>`
position: sticky;
top: 0;
z-index: 10;
@@ -24,7 +24,7 @@ const Sticky = styled.div`
background-color: ${colors.darkBlue};
transition: all 200ms ease-out;
${(p) => p.isHidden ? (`
${(p) => p.$isHidden ? (`
transition: all 200ms ease-in;
transform: translateY(-100%);
`) : null}
@@ -60,8 +60,8 @@ const Header: React.FC = () => {
return (
<Sticky>
<StyledHeader isHidden={isHidden}>
<Sticky $isHidden={isHidden}>
<StyledHeader>
<HeaderLogo />
<Navigation onMobileMenuOpen={handleMobileMenuClick} />
</StyledHeader>