moved margin from theming to Navbar

This commit is contained in:
Kim, Jimin 2021-08-02 10:02:09 +09:00
parent cb33dacf4a
commit 764883f3e2
2 changed files with 3 additions and 3 deletions

View file

@ -59,6 +59,7 @@ const StyledImg = styled.img`
const StyledLink = styled(Link)`
${theming.styles.navbarButtonStyle}
margin: 0 0.2rem 0 0.2rem;
`
export default class Navbar extends React.Component {

View file

@ -43,13 +43,12 @@ export default {
},
styles: {
navbarButtonStyle: css`
cursor: pointer;
font-size: 1em;
cursor: pointer; /* so it can be applies to divs too */
font-size: 1rem;
border-radius: 0.5rem;
float: left;
padding: 14px 16px;
text-decoration: none;
margin: 0.1em;
transition: transform 0.1s linear;
color: ${(props) =>
theme(props.theme.currentTheme, {