-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathstyles.css
More file actions
350 lines (301 loc) · 9.09 KB
/
Copy pathstyles.css
File metadata and controls
350 lines (301 loc) · 9.09 KB
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
/* @settings
name: Numerals
id: numerals-style
settings:
-
id: numerals-comment
title: In-line Comment Color
description: Color of the text in in-line comments. Default is `--code-comment`.
type: variable-themed-color
format: hex
opacity: false
default-light: '#'
default-dark: '#'
-
id: numerals-heading
title: Heading / Comment Line Color
description: Color of lines with only a comment. Default is `--code-comment`.
type: variable-themed-color
format: hex
opacity: false
default-light: '#'
default-dark: '#'
-
id: numerals-background
title: Block background color
description: Background color of the block. Default is same as code-block background.
type: variable-themed-color
format: hex
opacity: false
default-light: '#'
default-dark: '#'
-
id: numerals-alternating-row-color
title: Alternating Row Color
description: Background color for the row when alternating rows (when enabled)
type: variable-themed-color
format: hex
opacity: false
default-light: '#'
default-dark: '#'
-
id: numerals-font
title: Numerals block font
description: Font used for Numerals block. Default is same as a code-block
type: variable-text
default: ''
-
id: numerals-size
title: Numerals block font size
description: Accepts an CSS font-size value. Default is same as a code-block
type: variable-text
default: ''
-
id: numerals-emitter-input-weight
title: Annotated Result Input Font Weight
description: Font weight for input which has result annotation (`=>`) (accepts CSS font-weight value). Default is `var(--normal-weight)`.
type: variable-text
default: ''
*/
/***********************************/
/******** Non-setting specific **/
body {
--numerals-comment: var(--code-comment);
--numerals-heading: var(--code-comment);
--numerals-background: var(--code-background);
--numerals-font: var(--font-monospace);
--numerals-size: var(--code-size);
--numerals-emitter-input-weight: var(--normal-weight);
--numerals-alternating-row-color: var(--background-modifier-hover);
}
.numerals-syntax .numerals-input span {
padding: 0 2px;
}
.numerals-syntax .numerals-input {
overflow-wrap: break-word;
}
.numerals-block .numerals-input .math-parenthesis,
.numerals-block .numerals-input .math-paranthesis {
color: var(--code-punctuation);
padding-left: 0;
padding-right: 0;
}
.numerals-block .numerals-input .math-number {
color: var(--code-value);
}
.numerals-block .numerals-input .math-string {
color: var(--code-string);
}
.numerals-block .numerals-input .math-boolean {
color: var(--code-value);
}
.numerals-block .numerals-input .math-undefined {
color: var(--code-keyword);
display: none;
}
.numerals-block .numerals-input .math-function {
color: var(--code-function);
}
.numerals-block .numerals-input .math-parameter {
color: var(--code-property);
}
.numerals-block .numerals-input .math-property {
color: var(--code-property);
}
.numerals-block .numerals-input .math-symbol {
color: var(--code-property);
}
.numerals-block .numerals-input .math-operator {
color: var(--code-operator);
}
.numerals-block .numerals-input .math-separator {
color: var(--code-punctuation);
}
.numerals-block {
color: var(--code-normal);
background-color: var(--numerals-background);
font-family: var(--numerals-font);
font-size: var(--numerals-size);
padding: var(--size-4-4);
}
.numerals-block .numerals-line {
cursor: text;
}
.markdown-rendered .numerals-block .MathJax,
.markdown-source-view .numerals-block .MathJax {
text-align: left;
margin-top: .5em;
margin-bottom: .5em;
}
.numerals-input.numerals-empty {
font-weight: bold;
color: var(--numerals-heading);
}
.numerals-input .numerals-tex {
display:inline-block;
}
.numerals-input .numerals-inline-comment {
display: inline-block;
padding-left: 1em;
color: var(--numerals-comment);
}
.numerals-input .numerals-sum {
font-style: italic;
}
.numerals-alt-row-color .numerals-line:nth-child(even){
background-color: var(--numerals-alternating-row-color);
}
.numerals-alt-row-color .numerals-line .numerals-input{
padding-left: var(--size-2-2);
}
.numerals-alt-row-color .numerals-line .numerals-result {
padding-right: var(--size-2-2);
}
.numerals-error-name {
color:var(--color-red);
padding-right: var(--size-4-2);
}
/* Ensure error text remains visible even when non-emitter results are hidden */
.numerals-error-message {
color: var(--code-punctuation);
}
/**********************************/
/* ** Right-aligned Style ** */
/* TODO Switch to a diffent display layout so that result can be centered */
.numerals-answer-right .numerals-line {
line-height: var(--line-height-tight);
clear: both;
overflow: auto;
}
.numerals-answer-right .numerals-input {
float: left;
}
.numerals-answer-right .numerals-result {
float: right;
color: var(--code-punctuation);
}
/**********************************/
/* ** Two Panes Style ** */
/* this leads to filling all the way to the bottom of the container. probably bigger than desired */
.numerals-panes .numerals-line {
line-height: var(--line-height-tight);
display: flex;
}
.numerals-panes .numerals-input {
width:75%;
}
.numerals-panes .numerals-result {
color: var(--code-punctuation);
background-color: var(--background-modifier-hover);
width: 25%;
text-align: left;
padding-left: var(--size-2-2);
border-left: 1px solid var(--background-modifier-border-focus);
}
/* .numerals-panes .MathJax {
float:left;
} */
/**********************************/
/* ** Result on following line ** */
.numerals-answer-below .numerals-line {
line-height: var(--line-height-tight);
}
.numerals-answer-below .numerals-line .numerals-result,
.numerals-answer-below .numerals-line .numerals-input {
display:block;
}
.numerals-answer-below .numerals-line .numerals-result {
color: var(--code-punctuation);
padding-left: var(--size-4-4);
padding-bottom: var(--size-2-1);
}
.numerals-answer-below .numerals-line .numerals-input {
padding-top: var(--size-2-1);
}
.numerals-answer-below .numerals-input.numerals-empty {
padding-top: var(--size-4-3);
padding-bottom: var(--size-4-1);
}
.numerals-answer-below .numerals-result.numerals-empty {
display: none;
}
/* Don't show text in .numerals-result that and aren't descendents of .numerals-emitter */
.numerals-emitters-present:not(.numerals-hide-non-emitters) .numerals-result:not(.numerals-emitter .numerals-result) {
color: var(--code-comment);
}
.numerals-emitter .numerals-input {
font-weight: var(--numerals-emitter-input-weight)
}
.numerals-emitters-present.numerals-hide-non-emitters .numerals-result:not(.numerals-emitter .numerals-result) {
color: transparent;
}
/**********************************/
/* ** Inline Style ** */
/* TODO Switch to a diffent display layout so that result can be centered */
.numerals-answer-inline .numerals-line {
line-height: var(--line-height-tight);
/* clear: both; */
/* overflow: auto; */
}
.numerals-answer-inline .numerals-input {
display:inline-block;
padding-right: 20px;
/* float: left; */
}
.numerals-answer-inline .numerals-result {
/* float: right; */
color: var(--code-punctuation);
display:inline-block;
}
/***************************/
/* ** Suggestion Style ** */
/* .numerals-suggestion-icon {
--icon-size: 1em;
} */
.numerals-suggestion {
font-family: var(--numerals-font);
font-size: var(--numerals-size);
}
/***************************/
/* ** Inline Numerals ** */
/* Inline numerals styling.
* In Reading mode, this sits on a <code> element (inherits code styling).
* In Live Preview, the widget also gets cm-inline-code (inherits code styling).
* Only numerals-specific overrides below. */
/* Accent the computed value in both result-only and equation modes */
.numerals-inline .numerals-inline-value {
color: var(--text-accent);
font-weight: var(--font-semibold, 600);
}
/* Faint separator between input and result in equation mode */
.numerals-inline-equation .numerals-inline-separator {
color: var(--text-faint);
}
/* Error state: show the raw expression in error color */
.numerals-inline-error {
color: var(--text-error);
border-bottom: 1px dotted var(--text-error);
}
/* Settings: currency mapping input fields */
.numerals-settings-currency-input {
text-align: center;
}
.numerals-settings-currency-symbol {
width: 5em;
}
.numerals-settings-currency-code {
width: 6em;
}
/* Settings: currency save button states */
.numerals-settings-save-btn {
width: 4em;
}
.numerals-settings-btn-disabled {
color: var(--text-faint);
}
.numerals-settings-btn-ready {
color: var(--text-normal);
}
.numerals-settings-btn-error {
color: var(--text-error);
}