styled.js 519 B

1234567891011121314151617181920212223242526
  1. /* eslint-disable consistent-return */
  2. import { createGlobalStyle } from 'styled-components';
  3. export const GlobalStyle = createGlobalStyle`
  4. html, body {
  5. margin: 0;
  6. background-color: #c8c8c8;
  7. height: 100%;
  8. font-size: 14px;
  9. overflow: auto;
  10. -ms-overflow-style: -ms-autohiding-scrollbar;
  11. }
  12. div {
  13. box-sizing: border-box;
  14. }
  15. &:lang(en) {
  16. font-family: 'Open Sans', sans-serif;
  17. }
  18. &:lang(zh_tw) {
  19. font-family: 'Noto Sans TC', sans-serif;
  20. }
  21. `;
  22. export default GlobalStyle;