2020-04-10 04:40:22 +02:00
|
|
|
import { createGlobalStyle } from 'styled-components';
|
|
|
|
|
|
|
|
import { color, font, mixin } from 'shared/utils/styles';
|
|
|
|
|
|
|
|
export default createGlobalStyle`
|
|
|
|
html, body, #root {
|
|
|
|
height: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
min-width: 768px;
|
2020-04-20 05:02:55 +02:00
|
|
|
background: #262c49;
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
color: ${color.textDarkest};
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
line-height: 1.2;
|
|
|
|
${font.size(16)}
|
|
|
|
${font.regular}
|
|
|
|
}
|
|
|
|
|
|
|
|
#root {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
optgroup,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
${font.regular}
|
|
|
|
}
|
|
|
|
|
|
|
|
*, *:after, *:before, input[type="search"] {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: inherit;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
list-style: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul, li, ol, dd, h1, h2, h3, h4, h5, h6, p {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6, strong {
|
|
|
|
${font.bold}
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Workaround for IE11 focus highlighting for select elements */
|
|
|
|
select::-ms-value {
|
|
|
|
background: none;
|
|
|
|
color: #42413d;
|
|
|
|
}
|
|
|
|
|
|
|
|
[role="button"], button, input, select, textarea {
|
|
|
|
outline: none;
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
&:disabled {
|
2020-06-15 02:50:35 +02:00
|
|
|
opacity: 0.5;
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
[role="button"], button, input, textarea {
|
|
|
|
appearance: none;
|
|
|
|
}
|
|
|
|
select:-moz-focusring {
|
|
|
|
color: transparent;
|
|
|
|
text-shadow: 0 0 0 #000;
|
|
|
|
}
|
|
|
|
select::-ms-expand {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
select option {
|
|
|
|
color: ${color.textDarkest};
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
line-height: 1.4285;
|
|
|
|
a {
|
|
|
|
${mixin.link()}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
line-height: 1.4285;
|
|
|
|
}
|
|
|
|
|
|
|
|
body, select {
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
touch-action: manipulation;
|
|
|
|
}
|
|
|
|
|
2020-04-13 00:45:51 +02:00
|
|
|
textarea {
|
|
|
|
resize: none;
|
|
|
|
}
|
|
|
|
|
2020-06-16 00:36:59 +02:00
|
|
|
::-webkit-scrollbar {
|
2020-06-19 01:12:15 +02:00
|
|
|
width: 10px;
|
2020-06-16 00:36:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-track {
|
|
|
|
background: #262c49;
|
|
|
|
border-radius: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
|
|
background: #7367f0;
|
|
|
|
border-radius: 20px;
|
|
|
|
}
|
|
|
|
|
2020-04-10 04:40:22 +02:00
|
|
|
${mixin.placeholderColor(color.textLight)}
|
|
|
|
`;
|