@noirmd/previewer 2.1.3 → 2.1.5

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/dist/editor.css CHANGED
@@ -258,7 +258,7 @@
258
258
  display: flex;
259
259
  flex-direction: column;
260
260
  width: min(980px, 94vw);
261
- height: min(740px, 88vh);
261
+ height: min(740px, 88dvh);
262
262
  background: var(--color-background-primary, #0f172a);
263
263
  border: 1px solid var(--color-border, #334155);
264
264
  border-radius: 14px;
@@ -315,6 +315,49 @@
315
315
  color: var(--color-text-primary, #e2e8f0);
316
316
  background: rgba(255, 255, 255, 0.06);
317
317
  }
318
+ /* Hamburger button — hidden on desktop, visible on mobile */
319
+ .nr-guide__nav-toggle {
320
+ display: none;
321
+ align-items: center;
322
+ justify-content: center;
323
+ border: none;
324
+ background: none;
325
+ color: var(--color-text-secondary, #94a3b8);
326
+ font-size: 24px;
327
+ line-height: 1;
328
+ cursor: pointer;
329
+ padding: 2px 8px;
330
+ border-radius: 6px;
331
+ }
332
+ .nr-guide__nav-toggle:hover {
333
+ color: var(--color-text-primary, #e2e8f0);
334
+ background: rgba(255, 255, 255, 0.06);
335
+ }
336
+ /* Nav drawer (mobile) — overlay */
337
+ .nr-guide__nav-overlay {
338
+ position: fixed;
339
+ inset: 0;
340
+ z-index: 210;
341
+ background: rgba(0, 0, 0, 0.5);
342
+ }
343
+ /* Nav drawer (mobile) — sliding panel */
344
+ .nr-guide__nav-drawer {
345
+ position: fixed;
346
+ left: 0;
347
+ top: 0;
348
+ bottom: 0;
349
+ width: 280px;
350
+ z-index: 211;
351
+ background: var(--color-background-primary, #0f172a);
352
+ border-right: 1px solid var(--color-border, #334155);
353
+ overflow-y: auto;
354
+ padding: 10px 8px;
355
+ transform: translateX(-100%);
356
+ transition: transform 0.25s ease;
357
+ }
358
+ .nr-guide__nav-drawer--open {
359
+ transform: translateX(0);
360
+ }
318
361
  .nr-guide__body {
319
362
  display: flex;
320
363
  flex: 1;
@@ -400,10 +443,11 @@
400
443
  padding: 20px 26px;
401
444
  }
402
445
  .nr-guide__content > div {
403
- height: 100%;
446
+ min-height: 100%;
404
447
  }
405
448
  .nr-guide__content .nr-prose {
406
449
  font-size: 14px;
450
+ min-height: inherit;
407
451
  }
408
452
  .nr-guide__content h1 {
409
453
  font-size: 1.5rem;
@@ -430,11 +474,22 @@
430
474
  @media (max-width: 560px) {
431
475
  .nr-guide__panel {
432
476
  width: 100vw;
433
- height: 100vh;
477
+ height: 100dvh;
434
478
  border-radius: 0;
435
479
  border: none;
436
480
  }
437
481
  .nr-guide__nav {
438
482
  display: none;
439
483
  }
484
+ .nr-guide__nav-toggle {
485
+ display: flex;
486
+ }
487
+ .nr-guide__head h2 {
488
+ display: none;
489
+ }
490
+ .nr-guide__search {
491
+ flex: 1;
492
+ width: auto;
493
+ min-width: 0;
494
+ }
440
495
  }
package/dist/hover3d.css CHANGED
@@ -24,7 +24,7 @@
24
24
  position: relative;
25
25
  grid-area: 1 / 1 / 4 / 4;
26
26
  overflow: hidden;
27
- border-radius: 1rem;
27
+ border-radius: var(--nr-radius-lg, 1rem);
28
28
  transform: rotate3d(var(--transform), 0, 10deg);
29
29
  transition:
30
30
  transform var(--ease) 500ms,