123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- import localFont from "next/font/local";
- import { createGlobalStyle } from "styled-components";
- const monaSans = localFont({
- src: "../pages/Mona-Sans.woff2",
- variable: "--mona-sans",
- display: "swap",
- fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"],
- });
- const GlobalStyle = createGlobalStyle`
- html, body {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- color: ${({ theme }) => theme.FULL_WHITE};
- font-family: var(--mona-sans);
- font-weight: 400;
- font-size: 16px;
- height: 100%;
- background-color: #000000;
- 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");
- background-attachment: fixed;
- background-size: cover;
- font-family: ${monaSans.style.fontFamily};
- @media only screen and (max-width: 768px) {
- background-position: right;
- }
- }
- * {
- -webkit-tap-highlight-color: transparent;
- scroll-behavior: smooth !important;
- }
- .hide {
- display: none;
- }
- .mantine-Modal-inner {
- padding: 0;
- }
- svg {
- vertical-align: text-top;
- }
-
- a {
- text-decoration: none;
- color: unset;
- padding: 0;
- margin: 0;
- }
- button {
- border: none;
- outline: none;
- background: transparent;
- width: fit-content;
- margin: 0;
- padding: 0;
- cursor: pointer;
- }
- #carbonads * {
- margin: initial;
- padding: initial;
- line-height: initial;
- }
- #carbonads {
- --carbon-font-size: 16px;
- --carbon-padding-size: 12px;
- border-radius: 4px;
- overflow: hidden;
- }
- #carbonads {
- display: inline-block;
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
- Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue',
- Helvetica, Arial, sans-serif;
- font-size: var(--carbon-font-size);
- }
- #carbonads > span {
- min-width: 18.75em;
- max-width: clamp(18.75em, 22.5em, 24.5em);
- min-height: 100px;
- background-color: ${({ theme }) => theme.BACKGROUND_SECONDARY};
- box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.085),
- 0 0 2px hsl(0deg 0% 0% / 0.085),
- 0 0 4px hsl(0deg 0% 0% / 0.085),
- 0 0 8px hsl(0deg 0% 0% / 0.085);
- }
- #carbonads a {
- text-decoration: none;
- color: ${({ theme }) => theme.INTERACTIVE_NORMAL};
- }
- #carbonads a:hover {
- color: ${({ theme }) => theme.INTERACTIVE_HOVER};
- }
- #carbonads span {
- display: block;
- position: relative;
- }
- #carbonads .carbon-wrap {
- display: flex;
- }
- #carbonads .carbon-img {
- height: 100px;
- width: 130px;
- }
- #carbonads .carbon-img img {
- display: block;
- }
- #carbonads .carbon-text {
- padding: 0.625em 1em;
- font-size: 0.8125em;
- margin-bottom: 1em;
- line-height: 1.4;
- text-align: left;
- }
- #carbonads .carbon-poweredby {
- display: block;
- padding: 6px 8px;
- color: ${({ theme }) => theme.TEXT_NORMAL};
- background: ${({ theme }) => theme.BACKGROUND_TERTIARY};
- text-align: center;
- text-transform: uppercase;
- letter-spacing: 0.1ch;
- font-weight: 600;
- font-size: 0.5em;
- line-height: 1;
- border-top-left-radius: 3px;
- position: absolute;
- bottom: 0;
- right: 0;
- }
- `;
- export default GlobalStyle;
|