mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Change mobile nav component grid styles
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user