Skip to content

Commit 6cc1269

Browse files
committed
More styling changes for responsiveness
1 parent b633207 commit 6cc1269

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/components/header.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styled from 'styled-components';
33
export default styled.div`
44
background: #333;
55
color: #fff;
6-
margin-bottom: ${props => (props.fullscreen ? `0` : `3em`)};
6+
margin-bottom: 0;
77
text-align: center;
88
padding: 1em;
99
height: ${props => (props.fullscreen ? `100vh` : `inherit`)};
@@ -20,8 +20,11 @@ export default styled.div`
2020
margin-bottom: ${props => (props.fullscreen ? `.25em` : `0`)};
2121
2222
@media (max-width: 800px) {
23-
font-size: ${props => (props.fullscreen ? `3em` : `2.5em`)};
24-
margin-bottom: 0;
23+
font-size: ${props => (props.fullscreen ? `4em` : `2.5em`)};
24+
}
25+
26+
@media (max-width: 400px) {
27+
font-size: ${props => (props.fullscreen ? `4em` : `1.75em`)};
2528
}
2629
}
2730

src/components/nav-menu.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ const NavMenuStyle = styled(InlineList)`
77
display: flex;
88
justify-content: center;
99
flex-wrap: wrap;
10+
font-size: 1.3em;
11+
margin: 0;
12+
margin-top: 0.5em;
13+
14+
@media (max-width: 400px) {
15+
font-size: 1em;
16+
}
1017
`;
1118

1219
export default function NavMenu({ children }) {

0 commit comments

Comments
 (0)