1
0
mirror of https://github.com/uetchy/namae.git synced 2025-07-07 00:16:00 +09:00
namae/src/theme/index.tsx

54 lines
965 B
TypeScript
Raw Normal View History

2020-08-31 08:41:53 +09:00
import styled, { createGlobalStyle } from 'styled-components';
import { mobile } from '../util/css';
2020-07-30 13:47:28 +09:00
export const GlobalStyle = createGlobalStyle`
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 100%;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
line-height: 1.625em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: #ffffff;
${mobile} {
background: #f5f5f5;
}
}
2020-08-31 08:41:53 +09:00
`;
2020-07-30 13:47:28 +09:00
export const Content = styled.div`
padding-top: 100px;
${mobile} {
padding-top: 60px;
}
2020-08-31 08:41:53 +09:00
`;
2020-07-30 13:47:28 +09:00
export const Header = styled.header`
padding: 0 40px;
background-image: linear-gradient(180deg, #bda2ff 0%, #1b24cc 99%);
${mobile} {
padding: 0 20px;
}
2020-08-31 08:41:53 +09:00
`;
2020-07-30 13:47:28 +09:00
export const Section = styled.div`
padding: 100px 20vw;
${mobile} {
padding: 60px 40px;
}
2020-08-31 08:41:53 +09:00
`;