-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbasic.css
167 lines (146 loc) · 3.83 KB
/
basic.css
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
* {
box-sizing: border-box;
}
*:after, *:before {
box-sizing: inherit;
}
html, body, #app {
margin: 0;
height: 100%;
}
body {
--color-bg: #060a11;
--color-title: #fff;
--color-emphasis: #fff;
--color-main: #ffc107;
--color-rgb: 255, 255, 255;
--color-border-focus: #57596B;
--color-text: rgba(var(--color-rgb), .7);
--color-link-active: rgba(var(--color-rgb), .2);
--color-shape-bg: rgba(var(--color-rgb), .07);
--color-shape: rgba(var(--color-rgb), .85);
--color-button-border: rgba(var(--color-rgb), .2);
--color-button-bg: transparent;
--color-editor-bg: rgba(var(--color-rgb), .07);
--color-graph-border: rgba(var(--color-rgb), .1);
--graph-bg: transparent;
--color-toggle-bg: rgba(var(--color-rgb), .1);
--color-toggle-bg-active: rgba(var(--color-rgb), .15);
--editor-shadow: none;
}
@media (prefers-color-scheme: light) {
body {
--color-bg: #f1f3f4;
--color-title: #000;
--color-emphasis: #000;
--color-main: #ff5722;
--color-rgb: 0, 0, 0;
--color-border-focus: rgba(255, 255, 255, 0);
--color-button-bg: #fff;
--color-link-active: rgba(255, 87, 34, .08);
--color-toggle-bg-active: rgba(255, 87, 34, .08);
--color-toggle-bg: rgba(var(--color-rgb), .1);
--color-shape-bg: #ffffff;
--color-shape: rgba(var(--color-rgb), .8);
--color-editor-bg: #ffffff;
--color-graph-border: rgba(var(--color-rgb), .03);
--editor-shadow: 0 5px 10px rgba(0, 0, 0, .05);
--graph-bg: radial-gradient(#fff 80%, #f1f2f3);
}
.CodeMirror-code,
.CodeMirror-cursors {
filter: invert(1);
}
.CodeMirror-selected {
opacity: .1;
}
}
body[theme="dark"] {
--color-bg: #060a11;
--color-title: #fff;
--color-emphasis: #fff;
--color-main: #ffc107;
--color-rgb: 255, 255, 255;
--color-border-focus: #57596B;
--color-text: rgba(var(--color-rgb), .7);
--color-link-active: rgba(var(--color-rgb), .2);
--color-shape-bg: rgba(var(--color-rgb), .07);
--color-shape: rgba(var(--color-rgb), .85);
--color-button-border: rgba(var(--color-rgb), .2);
--color-button-bg: transparent;
--color-editor-bg: rgba(var(--color-rgb), .07);
--color-graph-border: rgba(var(--color-rgb), .08);
--graph-bg: transparent;
--color-toggle-bg: rgba(var(--color-rgb), .1);
--color-toggle-bg-active: rgba(var(--color-rgb), .15);
--editor-shadow: none;
}
body[theme="dark"] .CodeMirror-code,
body[theme="dark"] .CodeMirror-cursors {
filter: none;
}
body[theme="dark"] .CodeMirror-selected {
opacity: 1;
}
body[theme="light"] {
--color-bg: #f1f3f4;
--color-title: #000;
--color-emphasis: #000;
--color-main: #ff5722;
--color-rgb: 0, 0, 0;
--color-border-focus: rgba(255, 255, 255, 0);
--color-button-bg: #fff;
--color-link-active: rgba(255, 87, 34, .08);
--color-toggle-bg-active: rgba(255, 87, 34, .08);
--color-toggle-bg: rgba(var(--color-rgb), .04);
--color-shape-bg: #ffffff;
--color-shape: rgba(var(--color-rgb), .8);
--color-editor-bg: #ffffff;
--color-graph-border: transparent;
--editor-shadow: 0 5px 10px rgba(0, 0, 0, .05);
--graph-bg: radial-gradient(#fff 80%, #f1f2f3);
}
body[theme="light"] .CodeMirror-code,
body[theme="light"] .CodeMirror-cursors {
filter: invert(1);
}
body[theme="light"] .CodeMirror-selected {
opacity: .1;
}
body {
background: var(--color-bg);
color: var(--color-text);
-webkit-font-smoothing: antialiased;
}
body, button {
font-family: system-ui;
}
.ready {
transition: .2s ease;
}
a {
transition: background .2s ease;
}
a:link, a:visited {
color: var(--color-main);
}
a:hover, a:active {
background: var(--color-link-active);
}
h1, h2 {
color: var(--color-title);
}
button[reset] {
background: none;
border: 0;
border-radius: 0;
padding: 0;
margin: 0;
cursor: pointer;
line-height: 1;
-webkit-touch-callout: none;
touch-action: none;
}
button:focus:not(:focus-visible) {
outline: 0;
}