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

55 lines
1016 B
TypeScript
Raw Normal View History

2022-06-07 13:30:48 +09:00
import styled, { createGlobalStyle } from '@emotion/styled';
2020-08-31 08:41:53 +09:00
import { mobile } from '../util/css';
2022-06-07 13:30:48 +09:00
import { css } from '@emotion/react';
2020-07-30 13:47:28 +09:00
2022-06-07 13:30:48 +09:00
export const globalStyle = css`
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
2020-07-30 13:47:28 +09:00
2022-06-07 13:30:48 +09:00
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-07-30 13:47:28 +09:00
}
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(#9f78ff, #1b24cc 99%);
2020-07-30 13:47:28 +09:00
${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
`;