globalStyle.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. import { createGlobalStyle } from "styled-components";
  2. const GlobalStyle = createGlobalStyle`
  3. @font-face {
  4. font-family: 'Mona Sans';
  5. src:
  6. url('assets/Mona-Sans.woff2') format('woff2 supports variations'),
  7. url('assets/Mona-Sans.woff2') format('woff2-variations');
  8. font-weight: 200 900;
  9. font-stretch: 75% 125%;
  10. font-display: swap;
  11. }
  12. svg {
  13. vertical-align: top;
  14. }
  15. h1, h2, h3, h4, p {
  16. font-family: 'Mona Sans';
  17. }
  18. html, body {
  19. margin: 0;
  20. padding: 0;
  21. box-sizing: border-box;
  22. color: ${({ theme }) => theme.FULL_WHITE};
  23. font-family: 'Mona Sans';
  24. font-weight: 400;
  25. font-size: 16px;
  26. height: 100%;
  27. background-color: #000000;
  28. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 800'%3E%3Cg fill-opacity='0.3'%3E%3Ccircle fill='%23000000' cx='400' cy='400' r='600'/%3E%3Ccircle fill='%23110718' cx='400' cy='400' r='500'/%3E%3Ccircle fill='%23220e30' cx='400' cy='400' r='400'/%3E%3Ccircle fill='%23331447' cx='400' cy='400' r='300'/%3E%3Ccircle fill='%23441b5f' cx='400' cy='400' r='200'/%3E%3Ccircle fill='%23552277' cx='400' cy='400' r='100'/%3E%3C/g%3E%3C/svg%3E");
  29. background-attachment: fixed;
  30. background-size: cover;
  31. @media only screen and (max-width: 768px) {
  32. background-position: right;
  33. }
  34. }
  35. * {
  36. -webkit-tap-highlight-color: transparent;
  37. scroll-behavior: smooth;
  38. }
  39. .hide {
  40. display: none;
  41. }
  42. a {
  43. text-decoration: none;
  44. color: unset;
  45. padding: 0;
  46. margin: 0;
  47. font-family: 'Roboto', sans-serif;
  48. }
  49. button {
  50. font-family: 'Mona Sans';
  51. border: none;
  52. outline: none;
  53. background: transparent;
  54. width: fit-content;
  55. margin: 0;
  56. padding: 0;
  57. cursor: pointer;
  58. font-weight: 800;
  59. }
  60. #carbonads * {
  61. margin: initial;
  62. padding: initial;
  63. line-height: initial;
  64. }
  65. #carbonads {
  66. --carbon-font-size: 16px;
  67. --carbon-padding-size: 12px;
  68. border-radius: 4px;
  69. overflow: hidden;
  70. }
  71. #carbonads {
  72. display: inline-block;
  73. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
  74. Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
  75. Helvetica, Arial, sans-serif;
  76. font-size: var(--carbon-font-size);
  77. }
  78. #carbonads > span {
  79. min-width: 18.75em;
  80. max-width: clamp(18.75em, 22.5em, 24.5em);
  81. min-height: 100px;
  82. background-color: ${({ theme }) => theme.BACKGROUND_SECONDARY};
  83. box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.085),
  84. 0 0 2px hsl(0deg 0% 0% / 0.085),
  85. 0 0 4px hsl(0deg 0% 0% / 0.085),
  86. 0 0 8px hsl(0deg 0% 0% / 0.085);
  87. }
  88. #carbonads a {
  89. text-decoration: none;
  90. color: ${({ theme }) => theme.INTERACTIVE_NORMAL};
  91. }
  92. #carbonads a:hover {
  93. color: ${({ theme }) => theme.INTERACTIVE_HOVER};
  94. }
  95. #carbonads span {
  96. display: block;
  97. position: relative;
  98. }
  99. #carbonads .carbon-wrap {
  100. display: flex;
  101. }
  102. #carbonads .carbon-img {
  103. height: 100px;
  104. width: 130px;
  105. }
  106. #carbonads .carbon-img img {
  107. display: block;
  108. }
  109. #carbonads .carbon-text {
  110. padding: 0.625em 1em;
  111. font-size: 0.8125em;
  112. margin-bottom: 1em;
  113. line-height: 1.4;
  114. text-align: left;
  115. }
  116. #carbonads .carbon-poweredby {
  117. display: block;
  118. padding: 6px 8px;
  119. color: ${({ theme }) => theme.TEXT_NORMAL};
  120. background: ${({ theme }) => theme.BACKGROUND_TERTIARY};
  121. text-align: center;
  122. text-transform: uppercase;
  123. letter-spacing: 0.1ch;
  124. font-weight: 600;
  125. font-size: 0.5em;
  126. line-height: 1;
  127. border-top-left-radius: 3px;
  128. position: absolute;
  129. bottom: 0;
  130. right: 0;
  131. }
  132. `;
  133. export default GlobalStyle;