-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsvg_editor.css.ts
More file actions
68 lines (61 loc) · 1.58 KB
/
svg_editor.css.ts
File metadata and controls
68 lines (61 loc) · 1.58 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
import { css } from '../../styling/css.ts';
export const greekLetters = {
alpha: 'α',
beta: 'β',
gamma: 'γ',
delta: 'δ',
epsilon: 'ε',
zeta: 'ζ',
eta: 'η',
theta: 'θ',
} as const;
const greekLetterNames = Object.keys(greekLetters);
const greeksFirstLine = greekLetterNames.slice(0, 6);
const greeksLastLine = greekLetterNames.slice(6);
export const primes = {
prime1: '′',
prime2: '″',
prime3: '‴',
};
const primeNames = Object.keys(primes);
export const atomLabelEditCss = css`
form.react-ocl-atom-label-edit {
--box-size: 24px;
position: absolute;
z-index: 1;
line-height: 1;
font-size: 16px;
display: grid;
grid-template-columns: repeat(4, var(--box-size));
grid-template-rows: repeat(3, var(--box-size));
grid-template-areas:
'input input input input submit cancel'
'${greeksFirstLine.join(' ')}'
'${greeksLastLine.join(' ')} . ${primeNames.join(' ')}';
place-items: stretch;
gap: 0.25em;
border: 1px solid lightgray;
background-color: white;
padding: 0.25em;
box-sizing: border-box;
}
form.react-ocl-atom-label-edit button.react-ocl {
padding: 0.25em;
background-color: #efefef;
border: none;
border-radius: 5px;
font-family: sans-serif;
width: var(--box-size);
font-size: 13.3333px;
}
form.react-ocl-atom-label-edit input.react-ocl {
padding: 0.25em;
border: solid 1px lightgrey;
border-radius: 3px;
font-family: sans-serif;
font-size: 13.3333px;
}
form.react-ocl-atom-label-edit input.react-ocl:focus {
outline: auto;
}
`;