globalStyle.ts 3.0 KB

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