@drghaliasri/butex 6.1.5 → 7.0.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/dist/document.mjs CHANGED
@@ -2534,14 +2534,20 @@ var BUTEX_EDITOR_CSS = `
2534
2534
  ${BUTEX_FONT_FACE_CSS}
2535
2535
 
2536
2536
  .surface {
2537
+ background: var(--butex-surface-bg, linear-gradient(180deg, #ffffff 0%, #fafbfc 100%));
2537
2538
  border: 1px solid var(--butex-border, #e2e8f0);
2538
2539
  border-radius: 12px;
2539
- min-height: 100px;
2540
- padding: 8px 10px;
2541
- background: var(--butex-surface-bg, linear-gradient(180deg, #ffffff 0%, #fafbfc 100%));
2542
2540
  color: var(--butex-surface-fg, #0f172a);
2543
- outline: none;
2544
2541
  cursor: text;
2542
+ max-width: 100%;
2543
+ min-height: 100px;
2544
+ min-width: 0;
2545
+ outline: none;
2546
+ overflow-x: auto;
2547
+ overflow-y: hidden;
2548
+ overscroll-behavior-inline: contain;
2549
+ padding: 8px 10px;
2550
+ touch-action: pan-x pan-y;
2545
2551
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
2546
2552
  }
2547
2553
 
@@ -2606,6 +2612,17 @@ ${CHARACTER_FONT_CSS}
2606
2612
  50% { opacity: 0; }
2607
2613
  }
2608
2614
 
2615
+ @media (prefers-reduced-motion: reduce) {
2616
+ .surface {
2617
+ scroll-behavior: auto;
2618
+ transition: none;
2619
+ }
2620
+
2621
+ .caret {
2622
+ animation: none;
2623
+ }
2624
+ }
2625
+
2609
2626
  .node {
2610
2627
  display: inline-flex;
2611
2628
  align-items: stretch;