create-mercato-app 0.6.5-develop.5048.1.fd82f4ae17 → 0.6.5-develop.5099.1.85c0aff78c
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/package.json +1 -1
- package/template/src/app/globals.css +82 -0
package/package.json
CHANGED
|
@@ -650,3 +650,85 @@ body[data-ai-chat-open="true"] .om-demo-feedback-floating {
|
|
|
650
650
|
*::-webkit-scrollbar-corner {
|
|
651
651
|
background: transparent;
|
|
652
652
|
}
|
|
653
|
+
|
|
654
|
+
/* MDXEditor (@mdxeditor/editor) — WYSIWYG Markdown editor used by CrudForm. The outer box
|
|
655
|
+
(border/radius/background) comes from the host wrapper (DS tokens). These rules give the
|
|
656
|
+
toolbar a divider and the content a minimum editable height + comfortable padding so the
|
|
657
|
+
field reads as a distinct, clearly bounded input and content never bleeds into the next field. */
|
|
658
|
+
/* MDXEditor themes its chrome (toolbar, selects, popovers, tooltips) via a Radix-style base and
|
|
659
|
+
accent scale. Map it to DS tokens so the whole editor follows light/dark uniformly. The doubled
|
|
660
|
+
class out-specifies MDXEditor's own single-class theme regardless of stylesheet order. */
|
|
661
|
+
.om-mdx-editor.om-mdx-editor {
|
|
662
|
+
--baseBase: var(--background);
|
|
663
|
+
--basePageBg: var(--background);
|
|
664
|
+
--baseBgSubtle: var(--muted);
|
|
665
|
+
--baseBg: var(--background);
|
|
666
|
+
--baseBgHover: var(--muted);
|
|
667
|
+
--baseBgActive: var(--muted);
|
|
668
|
+
--baseLine: var(--border);
|
|
669
|
+
--baseBorder: var(--border);
|
|
670
|
+
--baseBorderHover: var(--input);
|
|
671
|
+
--baseSolid: var(--muted-foreground);
|
|
672
|
+
--baseSolidHover: var(--foreground);
|
|
673
|
+
--baseText: var(--foreground);
|
|
674
|
+
--baseTextContrast: var(--foreground);
|
|
675
|
+
--accentBase: var(--background);
|
|
676
|
+
--accentBgSubtle: var(--muted);
|
|
677
|
+
--accentBg: var(--muted);
|
|
678
|
+
--accentBgHover: var(--muted);
|
|
679
|
+
--accentBgActive: var(--muted);
|
|
680
|
+
--accentLine: var(--border);
|
|
681
|
+
--accentBorder: var(--border);
|
|
682
|
+
--accentBorderHover: var(--input);
|
|
683
|
+
--accentSolid: var(--primary);
|
|
684
|
+
--accentSolidHover: var(--primary);
|
|
685
|
+
--accentText: var(--primary);
|
|
686
|
+
--accentTextContrast: var(--primary);
|
|
687
|
+
}
|
|
688
|
+
.om-mdx-editor [role="toolbar"] {
|
|
689
|
+
border-bottom: 1px solid var(--border);
|
|
690
|
+
}
|
|
691
|
+
.om-mdx-prose {
|
|
692
|
+
min-height: 9rem;
|
|
693
|
+
padding: 0.625rem 0.875rem;
|
|
694
|
+
}
|
|
695
|
+
/* Tailwind Preflight strips heading + list styling globally; MDXEditor relies on browser
|
|
696
|
+
defaults, so restore them inside the editor content only (scoped to .om-mdx-prose). */
|
|
697
|
+
.om-mdx-prose h1 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; margin: 0.5rem 0; }
|
|
698
|
+
.om-mdx-prose h2 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0.5rem 0; }
|
|
699
|
+
.om-mdx-prose h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin: 0.4rem 0; }
|
|
700
|
+
.om-mdx-prose h4,
|
|
701
|
+
.om-mdx-prose h5,
|
|
702
|
+
.om-mdx-prose h6 { font-size: 1rem; font-weight: 600; margin: 0.4rem 0; }
|
|
703
|
+
.om-mdx-prose ul { list-style: disc outside; padding-left: 1.5rem; }
|
|
704
|
+
.om-mdx-prose ol { list-style: decimal outside; padding-left: 1.5rem; }
|
|
705
|
+
.om-mdx-prose ul ul { list-style: circle outside; }
|
|
706
|
+
.om-mdx-prose li[class*="listItemChecked"],
|
|
707
|
+
.om-mdx-prose li[class*="listItemUnchecked"] { list-style: none; }
|
|
708
|
+
/* Source mode runs on CodeMirror, which ships its own light theme; map it to DS tokens so the
|
|
709
|
+
raw-markdown view follows light/dark like the rest of the editor (fixes white box in dark mode). */
|
|
710
|
+
.om-mdx-editor .cm-editor,
|
|
711
|
+
.om-mdx-editor .cm-editor .cm-scroller,
|
|
712
|
+
.om-mdx-editor .cm-gutters {
|
|
713
|
+
background-color: var(--background);
|
|
714
|
+
color: var(--foreground);
|
|
715
|
+
}
|
|
716
|
+
.om-mdx-editor .cm-gutters {
|
|
717
|
+
border-right: 1px solid var(--border);
|
|
718
|
+
color: var(--muted-foreground);
|
|
719
|
+
}
|
|
720
|
+
.om-mdx-editor .cm-activeLine,
|
|
721
|
+
.om-mdx-editor .cm-activeLineGutter {
|
|
722
|
+
background-color: var(--muted);
|
|
723
|
+
}
|
|
724
|
+
.om-mdx-editor .cm-content {
|
|
725
|
+
caret-color: var(--foreground);
|
|
726
|
+
color: var(--foreground);
|
|
727
|
+
}
|
|
728
|
+
.om-mdx-editor .cm-line span {
|
|
729
|
+
color: inherit !important;
|
|
730
|
+
}
|
|
731
|
+
.om-mdx-editor .cm-cursor,
|
|
732
|
+
.om-mdx-editor .cm-dropCursor {
|
|
733
|
+
border-left-color: var(--foreground);
|
|
734
|
+
}
|