-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathglobal-style.ts
125 lines (104 loc) · 2.53 KB
/
global-style.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import { createGlobalStyle } from "styled-components";
export const GlobalStyle = createGlobalStyle`
:root {
--toastify-color-info: ${({ theme }) => theme.primaryBlue};
--toastify-color-success: ${({ theme }) => theme.success};
--toastify-color-warning: ${({ theme }) => theme.warning};
--toastify-color-error: ${({ theme }) => theme.error};
}
.react-loading-skeleton {
z-index: 0;
--base-color: ${({ theme }) => theme.skeletonBackground};
--highlight-color: ${({ theme }) => theme.skeletonHighlight};
}
body {
font-family: "Open Sans", sans-serif;
margin: 0px;
background-color: ${({ theme }) => theme.lightBlue};
}
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
*:focus {
outline: none;
}
.ReactModal__Overlay {
background-color: #1b003fcc !important;
}
h1 {
margin: 0 0 16px 0;
font-weight: 600;
font-size: 24px;
line-height: 32px;
color: ${({ theme }) => theme.primaryText};
}
h2 {
margin: 0 0 16px 0;
font-weight: 400;
font-size: 24px;
line-height: 32px;
color: ${({ theme }) => theme.primaryText};
}
h3 {
margin: 0 0 16px 0;
font-weight: 600;
font-size: 16px;
line-height: 24px;
color: ${({ theme }) => theme.primaryText};
}
p {
font-weight: 400;
font-size: 16px;
line-height: 24px;
color: ${({ theme }) => theme.primaryText};
}
textarea {
font-family: "Open Sans";
font-size: 14px;
}
small {
font-weight: 600;
font-size: 14px;
line-height: 18px;
color: ${({ theme }) => theme.primaryText};
}
label {
font-weight: 400;
font-size: 14px;
line-height: 18px;
color: ${({ theme }) => theme.secondaryText};
}
a {
font-weight: 400;
font-size: 14px;
text-decoration: none;
color: ${({ theme }) => theme.primaryBlue};
transition: color 0.1s;
}
hr {
opacity: 1;
border: 1px solid ${({ theme }) => theme.stroke};
}
svg, img {
display: inline-block;
vertical-align: middle;
visibility: visible;
}
ul, ol {
li {
color: ${({ theme }) => theme.primaryText};
}
}
.os-theme-dark {
--os-handle-bg: ${({ theme }) => theme.violetPurple};
--os-handle-bg-hover: ${({ theme }) => theme.secondaryPurple};
--os-handle-bg-active: ${({ theme }) => theme.lavenderPurple};
}
// @cyntler/react-doc-viewer injects a canvas to load pdf, this is alters the height of body tag, so set to hidden
.hiddenCanvasElement{
display: none;
}
`;