import { css, createGlobalStyle } from 'styled-components'; import * as colors from './colors'; const selection = (color: string) => css` background: ${color}; color: white; `; // tslint:disable export const BaseStyle = createGlobalStyle` *, *:before, *:after { box-sizing: border-box; } ::-moz-selection { ${selection(colors.link)} } ::selection { ${selection(colors.link)} } .icon-link { display: none; } body { margin: 0; padding: 0; font-family: 'MicrosoftYaHei',-apple-system,system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; color: #737a8d; line-height: 20px; letter-spacing: 0.3px; background: white; } html, body, #root { height: 100vh; min-height: 100vh; } body.with-overlay, body.with-overlay #root { overflow: hidden; } a, a:visited, a:active { text-decoration: none; color: ${colors.link}; } a:hover { color: ${colors.link}; } input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active { transition: color 9999s ease-out, background-color 9999s ease-out; transition-delay: 9999s; } input:required, input:invalid { box-shadow: none; } button:focus { outline: none !important; } select { color: ${colors.text}; } pre, code { font-family: 'Inconsolate', monospace; } p { margin: 10px 0; } `;