-
Notifications
You must be signed in to change notification settings - Fork 90
/
core.css
122 lines (100 loc) · 2.27 KB
/
core.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
.MafsView {
display: block;
background: var(--mafs-bg);
overflow: hidden;
-webkit-user-select: none;
user-select: none;
font-family: inherit;
font-variant-numeric: tabular-nums;
touch-action: none;
outline: 0;
--mafs-bg: black;
--mafs-fg: white;
--mafs-origin-color: var(--mafs-fg);
--mafs-line-color: #555;
--mafs-line-stroke-dash-style: 4, 3;
--mafs-axis-stroke-width: 1px;
--grid-line-subdivision-color: #222;
--mafs-red: #f11d0e;
--mafs-orange: #f14e0e;
--mafs-yellow: #ffe44a;
--mafs-green: #15e272;
--mafs-blue: #58a6ff;
--mafs-indigo: #7c58ff;
--mafs-violet: #ae58ff;
--mafs-pink: #ee00ab;
}
.MafsView text {
fill: var(--mafs-fg);
cursor: default;
}
.MafsView path {
stroke: var(--mafs-fg);
}
.MafsView:focus-visible {
border-radius: 5px;
outline: 3px solid #58a6ff;
}
@supports not selector(:focus-visible) {
.MafsView:focus {
border-radius: 5px;
outline: 3px solid #58a6ff;
}
}
.mafs-shadow {
paint-order: stroke;
stroke-width: 3px;
stroke: var(--mafs-bg);
stroke-opacity: 0.75;
stroke-linejoin: round;
}
.mafs-movable-point {
cursor: grab;
touch-action: none;
}
.mafs-movable-point-dragging {
cursor: grabbing;
}
.mafs-movable-point:focus {
outline: 0;
}
.mafs-movable-point * {
fill: none;
stroke: none;
}
.mafs-movable-point-hitbox {
fill: transparent;
}
.mafs-movable-point-focus {
stroke: var(--movable-point-color);
stroke-width: 2;
stroke-opacity: 0;
fill: none;
transition: stroke-opacity 0.2s ease;
}
.mafs-movable-point-ring {
fill: var(--movable-point-color);
fill-opacity: 0.25;
stroke: none;
transition: r 0.2s ease;
}
.mafs-movable-point-point {
fill: var(--movable-point-color);
transition: r 0.2s ease;
}
/* Hover */
.mafs-movable-point:hover .mafs-movable-point-point,
.mafs-movable-point:focus-visible .mafs-movable-point-point {
r: calc(var(--movable-point-ring-size) - 2px);
}
.mafs-movable-point:hover .mafs-movable-point-ring,
.mafs-movable-point:focus-visible .mafs-movable-point-ring {
r: calc(var(--movable-point-ring-size) + 3px);
}
.mafs-movable-point.mafs-movable-point-dragging .mafs-movable-point-ring {
r: var(--movable-point-ring-size);
}
/* Focus */
.mafs-movable-point:focus-visible .mafs-movable-point-focus {
stroke-opacity: 1;
}