globalStyle.ts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. import { createGlobalStyle } from "styled-components";
  2. const GlobalStyle = createGlobalStyle`
  3. html, body {
  4. margin: 0;
  5. padding: 0;
  6. box-sizing: border-box;
  7. color: ${({ theme }) => theme.FULL_WHITE};
  8. font-family: 'Catamaran', sans-serif;
  9. font-weight: 400;
  10. font-size: 16px;
  11. scroll-behavior: smooth;
  12. height: 100%;
  13. background-color: #000000;
  14. opacity: 1;
  15. background-image: radial-gradient(#414141 0.5px, #000000 0.5px);
  16. background-size: 10px 10px;
  17. @media only screen and (min-width: 768px) {
  18. background-color: #000000;
  19. opacity: 1;
  20. background-image: radial-gradient(#414141 0.5px, #000000 0.5px);
  21. background-size: 15px 15px;
  22. }
  23. }
  24. .hide {
  25. display: none;
  26. }
  27. a {
  28. text-decoration: none;
  29. color: unset;
  30. }
  31. button {
  32. min-height: 32px;
  33. border: none;
  34. border-radius: 3px;
  35. outline: none;
  36. font-family: 'Catamaran', sans-serif;
  37. font-weight: 500;
  38. font-size: 14px;
  39. background-image: none;
  40. cursor: pointer;
  41. div {
  42. white-space: normal;
  43. margin: 0 auto;
  44. text-overflow: ellipsis;
  45. overflow: hidden;
  46. }
  47. &:hover {
  48. background-image: linear-gradient(rgba(0, 0, 0, 0.1) 0 0);
  49. }
  50. }
  51. #carbonads * {
  52. margin: initial;
  53. padding: initial;
  54. line-height: initial;
  55. }
  56. #carbonads {
  57. --carbon-font-size: 16px;
  58. --carbon-padding-size: 12px;
  59. border-radius: 4px;
  60. overflow: hidden;
  61. }
  62. #carbonads {
  63. z-index: 100;
  64. display: inline-block;
  65. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
  66. Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
  67. Helvetica, Arial, sans-serif;
  68. font-size: var(--carbon-font-size);
  69. }
  70. #carbonads > span {
  71. min-width: 18.75em;
  72. max-width: clamp(18.75em, 22.5em, 24.5em);
  73. min-height: 100px;
  74. background-color: ${({ theme }) => theme.BACKGROUND_SECONDARY};
  75. box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.085),
  76. 0 0 2px hsl(0deg 0% 0% / 0.085),
  77. 0 0 4px hsl(0deg 0% 0% / 0.085),
  78. 0 0 8px hsl(0deg 0% 0% / 0.085);
  79. }
  80. #carbonads a {
  81. text-decoration: none;
  82. color: ${({ theme }) => theme.INTERACTIVE_NORMAL};
  83. }
  84. #carbonads a:hover {
  85. color: ${({ theme }) => theme.INTERACTIVE_HOVER};
  86. }
  87. #carbonads span {
  88. display: block;
  89. position: relative;
  90. }
  91. #carbonads .carbon-wrap {
  92. display: flex;
  93. }
  94. #carbonads .carbon-img {
  95. height: 100px;
  96. width: 130px;
  97. }
  98. #carbonads .carbon-img img {
  99. display: block;
  100. }
  101. #carbonads .carbon-text {
  102. padding: 0.625em 1em;
  103. font-size: 0.8125em;
  104. margin-bottom: 1em;
  105. line-height: 1.4;
  106. text-align: left;
  107. }
  108. #carbonads .carbon-poweredby {
  109. display: block;
  110. padding: 6px 8px;
  111. color: ${({ theme }) => theme.TEXT_NORMAL};
  112. background: ${({ theme }) => theme.BACKGROUND_TERTIARY};
  113. text-align: center;
  114. text-transform: uppercase;
  115. letter-spacing: 0.1ch;
  116. font-weight: 600;
  117. font-size: 0.5em;
  118. line-height: 1;
  119. border-top-left-radius: 3px;
  120. position: absolute;
  121. bottom: 0;
  122. right: 0;
  123. }
  124. `;
  125. export default GlobalStyle;