@dsebastien/music-notation 0.19.2 → 0.21.0

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.
@@ -318,7 +318,7 @@
318
318
  .mn-play input[type='range'] {
319
319
  all: unset;
320
320
  appearance: none;
321
- width: 44px;
321
+ width: 36px;
322
322
  /* As tall as the thumb, so no host or browser has to center it: the visible 3px track is a
323
323
  centered line drawn by the background. */
324
324
  height: 9px;
@@ -1240,3 +1240,87 @@
1240
1240
  align-items: center;
1241
1241
  gap: 2px 6px;
1242
1242
  }
1243
+
1244
+ /* Full screen for a tab or a score (#113): the block fills the screen (the browser's full screen,
1245
+ or the window when the browser refuses it), the score in a scroll area of its own at the
1246
+ screen's width, the bar at the bottom. The background is the page's, set by the control. */
1247
+ .mn-tab.mn-fullscreen {
1248
+ position: fixed;
1249
+ inset: 0;
1250
+ z-index: 9999;
1251
+ display: flex;
1252
+ flex-direction: column;
1253
+ box-sizing: border-box;
1254
+ width: auto;
1255
+ max-width: none;
1256
+ height: auto;
1257
+ margin: 0;
1258
+ /* Room on the sides, more on a wide screen. */
1259
+ padding: 12px max(24px, 3vw) 8px;
1260
+ overflow: hidden;
1261
+ background: Canvas;
1262
+ }
1263
+
1264
+ .mn-tab.mn-fullscreen .mn-tab-surface {
1265
+ flex: 1 1 auto;
1266
+ min-height: 0;
1267
+ overflow: auto;
1268
+ overscroll-behavior: contain;
1269
+ /* The scroll bar has its room from the start: the score is drawn once, at the width left. */
1270
+ scrollbar-gutter: stable;
1271
+ outline: none;
1272
+ }
1273
+
1274
+ .mn-tab.mn-fullscreen .mn-play.mn-play-static.mn-tab-bar {
1275
+ position: static;
1276
+ flex: none;
1277
+ margin-top: 8px;
1278
+ }
1279
+
1280
+ /* Full screen for the other blocks (#113): diagrams, charts, patterns, progressions, the circle of
1281
+ fifths. What the block holds is zoomed to the largest size that fits the screen (the control
1282
+ sets --mn-zoom), centered; a block that can't fit scrolls. The bar keeps its size, at the
1283
+ bottom. */
1284
+ .mn-block.mn-fullscreen-fit {
1285
+ position: fixed;
1286
+ inset: 0;
1287
+ z-index: 9999;
1288
+ display: flex;
1289
+ flex-direction: column;
1290
+ align-items: center;
1291
+ box-sizing: border-box;
1292
+ width: auto;
1293
+ max-width: none;
1294
+ height: auto;
1295
+ margin: 0;
1296
+ padding: 16px max(32px, 4vw) 0;
1297
+ overflow: auto;
1298
+ overscroll-behavior: contain;
1299
+ background: Canvas;
1300
+ outline: none;
1301
+ }
1302
+
1303
+ .mn-block.mn-fullscreen-fit > :not(.mn-play) {
1304
+ zoom: var(--mn-zoom, 1);
1305
+ flex: none;
1306
+ }
1307
+
1308
+ /* A row of diagrams is centered on the screen. */
1309
+ .mn-block.mn-fullscreen-fit .mn-row {
1310
+ justify-content: center;
1311
+ }
1312
+
1313
+ /* Centered while it fits; from the top when it scrolls. */
1314
+ .mn-block.mn-fullscreen-fit > :first-child {
1315
+ margin-top: auto;
1316
+ }
1317
+
1318
+ .mn-block.mn-fullscreen-fit > .mn-play {
1319
+ position: sticky;
1320
+ bottom: 0;
1321
+ flex: none;
1322
+ align-self: stretch;
1323
+ margin-top: auto;
1324
+ padding: 6px 0 8px;
1325
+ background: inherit;
1326
+ }