@dsebastien/music-notation 0.20.0 → 0.21.1

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;
@@ -1255,7 +1255,8 @@
1255
1255
  max-width: none;
1256
1256
  height: auto;
1257
1257
  margin: 0;
1258
- padding: 12px 16px 8px;
1258
+ /* Room on the sides, more on a wide screen. */
1259
+ padding: 12px max(24px, 3vw) 8px;
1259
1260
  overflow: hidden;
1260
1261
  background: Canvas;
1261
1262
  }
@@ -1275,3 +1276,51 @@
1275
1276
  flex: none;
1276
1277
  margin-top: 8px;
1277
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
+ }