@dsebastien/music-notation 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -15
- package/dist/index.js +92 -24
- package/dist/index.js.map +8 -8
- package/dist/music-notation.css +30 -9
- package/dist/music-notation.publish.min.js +47 -26
- package/dist/music-notation.tab.min.js +34 -13
- package/dist/playback/controls.d.ts +3 -2
- package/dist/publish/index.js +62 -15
- package/dist/publish/index.js.map +8 -8
- package/dist/tab/index.js +17 -3
- package/dist/tab/index.js.map +4 -4
- package/dist/theory/scales.d.ts +14 -0
- package/package.json +1 -1
package/dist/music-notation.css
CHANGED
|
@@ -120,6 +120,13 @@
|
|
|
120
120
|
cursor: pointer;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
/* The opened list is a native popup on the page's background, not the bar's: its options take
|
|
124
|
+
the page's colors, not the bar's inherited text color (light text on white in dark themes). */
|
|
125
|
+
.mn-play select option {
|
|
126
|
+
color: var(--text-normal, #222);
|
|
127
|
+
background: var(--background-primary, #fff);
|
|
128
|
+
}
|
|
129
|
+
|
|
123
130
|
.mn-play button:hover,
|
|
124
131
|
.mn-play select:hover,
|
|
125
132
|
.mn-play button:focus-visible,
|
|
@@ -161,16 +168,16 @@
|
|
|
161
168
|
all: unset;
|
|
162
169
|
appearance: none;
|
|
163
170
|
width: 44px;
|
|
164
|
-
/*
|
|
165
|
-
|
|
171
|
+
/* As tall as the thumb, so no host or browser has to center it: the visible 3px track is a
|
|
172
|
+
centered line drawn by the background. */
|
|
173
|
+
height: 9px;
|
|
166
174
|
margin: 0;
|
|
167
|
-
|
|
168
|
-
background: var(--mn-faint);
|
|
175
|
+
background: linear-gradient(var(--mn-faint), var(--mn-faint)) center / 100% 3px no-repeat;
|
|
169
176
|
cursor: pointer;
|
|
170
177
|
}
|
|
171
178
|
|
|
172
179
|
.mn-play input[type='range']::-webkit-slider-runnable-track {
|
|
173
|
-
height:
|
|
180
|
+
height: 9px;
|
|
174
181
|
border: none;
|
|
175
182
|
background: transparent;
|
|
176
183
|
}
|
|
@@ -179,23 +186,31 @@
|
|
|
179
186
|
appearance: none;
|
|
180
187
|
width: 9px;
|
|
181
188
|
height: 9px;
|
|
182
|
-
|
|
189
|
+
/* Hosts may move thumbs (Obsidian: relative, top -6px): the thumb fills the track instead. */
|
|
190
|
+
position: static;
|
|
191
|
+
top: 0;
|
|
192
|
+
margin: 0;
|
|
183
193
|
border: none;
|
|
184
194
|
border-radius: 50%;
|
|
185
195
|
background: var(--mn-accent);
|
|
186
196
|
box-shadow: none;
|
|
187
197
|
}
|
|
188
198
|
|
|
199
|
+
/* Hosts ring a focused thumb (Obsidian): only for keyboard focus here, not after a click. */
|
|
200
|
+
.mn-play input[type='range']:focus:not(:focus-visible)::-webkit-slider-thumb {
|
|
201
|
+
box-shadow: none;
|
|
202
|
+
}
|
|
203
|
+
|
|
189
204
|
.mn-play input[type='range']::-moz-range-track {
|
|
190
|
-
height:
|
|
205
|
+
height: 9px;
|
|
191
206
|
border: none;
|
|
192
|
-
|
|
193
|
-
background: var(--mn-faint);
|
|
207
|
+
background: transparent;
|
|
194
208
|
}
|
|
195
209
|
|
|
196
210
|
.mn-play input[type='range']::-moz-range-thumb {
|
|
197
211
|
width: 9px;
|
|
198
212
|
height: 9px;
|
|
213
|
+
margin: 0;
|
|
199
214
|
border: none;
|
|
200
215
|
border-radius: 50%;
|
|
201
216
|
background: var(--mn-accent);
|
|
@@ -364,6 +379,12 @@
|
|
|
364
379
|
font-weight: 600;
|
|
365
380
|
}
|
|
366
381
|
|
|
382
|
+
.mn-svg .mn-key-finger {
|
|
383
|
+
font-size: 10px;
|
|
384
|
+
fill: var(--mn-fg);
|
|
385
|
+
font-weight: 600;
|
|
386
|
+
}
|
|
387
|
+
|
|
367
388
|
/* Several diagrams in one block: a row that wraps, or a grid of at most `columns` columns that
|
|
368
389
|
also wraps on narrow screens rather than shrinking diagrams to nothing. */
|
|
369
390
|
.mn-block .mn-row {
|