Change mobile nav component grid styles

This commit is contained in:
Hazem Krimi
2021-01-12 23:33:17 +01:00
parent f79c18d097
commit e53500bd82
+5 -2
View File
@@ -26,10 +26,13 @@ const Bar = styled.nav<StyledProps>`
background: ${({ theme, dark }) => (dark ? theme.colors.dark.text : theme.colors.light.text)}; background: ${({ theme, dark }) => (dark ? theme.colors.dark.text : theme.colors.light.text)};
transition: transform 250ms ease-in-out; transition: transform 250ms ease-in-out;
display: grid; display: grid;
grid-template-rows: auto; grid-template-rows: 30% repeat(4, 50px);
row-gap: 10px;
padding: 1rem 1rem 5rem 1rem; padding: 1rem 1rem 5rem 1rem;
@media (orientation: landscape) {
grid-template-rows: auto;
}
.close { .close {
justify-self: flex-end; justify-self: flex-end;
align-self: flex-start; align-self: flex-start;