globalStyles.css 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* en */
  2. @font-face {
  3. font-family: 'Open Sans';
  4. font-style: normal;
  5. font-weight: 300;
  6. font-display: swap;
  7. src: local('Open Sans Light'), local('OpenSans-Light'), url(/static/fonts/OpenSans-Light.woff) format('woff');
  8. }
  9. @font-face {
  10. font-family: 'Open Sans';
  11. font-style: normal;
  12. font-weight: 400;
  13. font-display: swap;
  14. src: local('Open Sans Regular'), local('OpenSans-Regular'), url(/static/fonts/OpenSans-Regular.woff) format('woff');
  15. }
  16. @font-face {
  17. font-family: 'Open Sans';
  18. font-style: normal;
  19. font-weight: 700;
  20. font-display: swap;
  21. src: local('Open Sans Bold'), local('OpenSans-Bold'), url(/static/fonts/OpenSans-Bold.woff) format('woff');
  22. }
  23. /* zh-TW */
  24. @font-face {
  25. font-family: 'Noto Sans TC';
  26. font-style: normal;
  27. font-weight: 300;
  28. font-display: swap;
  29. src: local('Noto Sans TC Light'), local('NotoSansTC-Light'), url(/static/fonts/NotoSansTC-Light.woff) format('woff');
  30. }
  31. @font-face {
  32. font-family: 'Noto Sans TC';
  33. font-style: normal;
  34. font-weight: 400;
  35. font-display: swap;
  36. src: local('Noto Sans TC Regular'), local('NotoSansTC-Regular'), url(/static/fonts/NotoSansTC-Regular.woff) format('woff');
  37. }
  38. @font-face {
  39. font-family: 'Noto Sans TC';
  40. font-style: normal;
  41. font-weight: 700;
  42. font-display: swap;
  43. src: local('Noto Sans TC Bold'), local('NotoSansTC-Bold'), url(/static/fonts/NotoSansTC-Bold.woff) format('woff');
  44. }
  45. html, body {
  46. margin: 0;
  47. background-color: #c8c8c8;
  48. height: 100%;
  49. font-size: 12px;
  50. overflow: auto;
  51. -ms-overflow-style: -ms-autohiding-scrollbar;
  52. }
  53. div {
  54. box-sizing: border-box;
  55. }
  56. html:lang(en) {
  57. font-family: 'Open Sans', sans-serif;
  58. }
  59. html:lang(zh-TW) {
  60. font-family: 'Noto Sans TC', sans-serif;
  61. }