pxt-core 13.1.6 → 13.1.7

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.
@@ -5,6 +5,10 @@
5
5
  --note-event-border: 2px solid darken(#03adfc, 20%);
6
6
  --note-event-text-color: darken(#03adfc, 30%);
7
7
 
8
+ --selected-note-event-color: #03fca9;
9
+ --selected-note-event-border: 2px solid darken(#03fca9, 20%);
10
+ --selected-note-event-text-color: darken(#03fca9, 30%);
11
+
8
12
  --note-event-text-color-hover: #ffffff;
9
13
  --note-event-border-hover: 2px solid #ffffff;
10
14
 
@@ -38,7 +42,7 @@
38
42
  --octave-height: calc(var(--white-key-height) * 7);
39
43
 
40
44
  --grid-cell-height: calc(var(--octave-height) / 12);
41
- --grid-cell-width: calc(var(--octave-width) / 16);
45
+ --tick-width: 30px;
42
46
 
43
47
  --header-height: 2.5rem;
44
48
  --timeline-height: 1.5rem;
@@ -80,6 +84,7 @@
80
84
 
81
85
  .music-playback-controls {
82
86
  padding: 0;
87
+
83
88
  .common-button {
84
89
  height: calc(var(--header-height) - 0.3rem)
85
90
  }
@@ -94,6 +99,16 @@
94
99
  }
95
100
  }
96
101
  }
102
+
103
+ &>.common-dropdown {
104
+ .common-button {
105
+ min-width: 4.75rem;
106
+ }
107
+
108
+ .common-menu-dropdown-pane {
109
+ bottom: 2.25rem
110
+ }
111
+ }
97
112
  }
98
113
 
99
114
  .piano-roll .header {
@@ -109,9 +124,55 @@
109
124
  max-width: 2rem;
110
125
  }
111
126
  }
127
+
128
+ &>.common-dropdown #snap-select {
129
+ min-width: 4.75rem;
130
+ }
131
+ }
132
+
133
+ .scrollbar.horizontal {
134
+ height: 0.75rem;
135
+ width: 100%;
136
+ position: absolute;
137
+ bottom: var(--header-height);
138
+ left: var(--sidebar-width);
139
+ right: 0;
140
+
141
+ .scrollbar-thumb {
142
+ height: 100%;
143
+ }
144
+ }
145
+
146
+ .scrollbar.vertical {
147
+ width: 0.75rem;
148
+ height: 100%;
149
+ position: absolute;
150
+ top: var(--timeline-height);
151
+ bottom: 0;
152
+ right: 0;
153
+
154
+ .scrollbar-thumb {
155
+ width: 100%;
156
+ }
157
+ }
158
+
159
+ .piano-roll.show-header .scrollbar.vertical {
160
+ top: calc(var(--header-height) + var(--timeline-height));
161
+ }
162
+
163
+ .scrollbar .scrollbar-thumb {
164
+ position: absolute;
165
+ background-color: black;
166
+ border-radius: 0.375rem;
167
+ opacity: 0.5;
168
+
169
+ &:hover {
170
+ opacity: 0.75;
171
+ }
112
172
  }
113
173
 
114
174
  .measure-header {
175
+ position: relative;
115
176
  height: var(--timeline-height);
116
177
  display: flex;
117
178
  flex-direction: row;
@@ -130,13 +191,21 @@
130
191
  }
131
192
 
132
193
  .measure {
133
- width: var(--octave-width);
134
194
  flex-shrink: 0;
135
195
  padding-left: 0.25rem;
136
196
  user-select: none;
137
197
  }
138
198
  }
139
199
 
200
+ .selection {
201
+ position: absolute;
202
+ top: 0;
203
+ height: 100%;
204
+ background-color: var(--selected-note-event-color);
205
+ opacity: 0.25;
206
+ pointer-events: none;
207
+ }
208
+
140
209
  .piano-roll .sidebar-container {
141
210
  width: var(--sidebar-width);
142
211
  position: relative;
@@ -201,36 +270,54 @@
201
270
 
202
271
  .piano-roll .workspace-container {
203
272
  flex: 1;
204
- overflow-x: hidden;
273
+ overflow-x: auto;
205
274
  overflow-y: hidden;
206
275
  touch-action: none;
276
+ scrollbar-width: none;
207
277
  }
208
278
 
209
279
  .piano-roll .workspace {
210
- background-size: var(--octave-width) var(--octave-height);
211
280
  background-repeat: repeat;
212
281
  position: relative;
213
282
  }
214
283
 
215
- .piano-roll .workspace .note-event {
216
- height: calc(var(--grid-cell-height) + 1px);
217
- position: absolute;
218
- display: flex;
219
- align-items: center;
220
- user-select: none;
284
+ .piano-roll .workspace {
221
285
 
222
- padding-left: 0.25rem;
286
+ .note-event,
287
+ .cursor {
288
+ height: calc(var(--grid-cell-height) + 1px);
289
+ position: absolute;
290
+ display: flex;
291
+ align-items: center;
292
+ user-select: none;
223
293
 
224
- font-size: calc(var(--grid-cell-height) * 0.6);
225
- background-color: var(--note-event-color);
226
- border: var(--note-event-border);
227
- color: var(--note-event-text-color);
294
+ padding-left: 0.25rem;
228
295
 
229
- cursor: pointer;
296
+ font-size: calc(var(--grid-cell-height) * 0.6);
297
+ cursor: pointer;
298
+ }
299
+
300
+ .note-event {
301
+ border: var(--note-event-border);
302
+ background-color: var(--note-event-color);
303
+ color: var(--note-event-text-color);
304
+ }
305
+
306
+ .note-event.selected, .note-event.floating {
307
+ border: var(--selected-note-event-border);
308
+ background-color: var(--selected-note-event-color);
309
+ color: var(--selected-note-event-text-color);
310
+ }
311
+
312
+ .cursor {
313
+ border: var(--note-event-border-hover);
314
+ }
230
315
  }
231
316
 
232
317
  .piano-roll .workspace {
233
- .note-event:hover, .note-event.highlighted {
318
+
319
+ .note-event:hover,
320
+ .note-event.highlighted {
234
321
  border: var(--note-event-border-hover);
235
322
  color: var(--note-event-text-color-hover);
236
323
  }
@@ -240,6 +327,7 @@
240
327
  max-height: 100%;
241
328
  width: 100%;
242
329
  overflow-y: auto;
330
+ scrollbar-width: none;
243
331
  flex-grow: 1;
244
332
  }
245
333
 
@@ -283,14 +371,14 @@
283
371
 
284
372
  .velocity-slider {
285
373
  height: var(--velocity-editor-height);
286
- width: var(--grid-cell-width);
374
+ width: var(--tick-width);
287
375
  position: absolute;
288
376
  cursor: grab;
289
377
 
290
378
  .velocity-slider-inner {
291
379
  position: relative;
292
380
  height: var(--velocity-editor-height);
293
- width: var(--grid-cell-width);
381
+ width: var(--tick-width);
294
382
  }
295
383
 
296
384
  input[type="range"] {
@@ -315,7 +403,9 @@
315
403
  background-color: var(--note-event-color);
316
404
  }
317
405
 
318
- &:focus-within, &:hover, &.highlighted {
406
+ &:focus-within,
407
+ &:hover,
408
+ &.highlighted {
319
409
  .velocity-slider-view {
320
410
  border: var(--note-event-border-hover);
321
411
  }