UNPKG

@codematic.io/open-cdp-editor

Version:

A customizable React rich text editor component built with TailwindCSS and Ant Design, designed for seamless integration into openCDP and modern React applications.

87 lines (70 loc) 1.64 kB
@tailwind base; @tailwind components; @tailwind utilities; body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } [contenteditable] ul { list-style-type: disc; padding-left: 1.5rem; } [contenteditable] ol { list-style-type: decimal; padding-left: 1.5rem; } [contenteditable] h1 { @apply text-3xl font-bold mb-2; } [contenteditable] h2 { @apply text-2xl font-semibold mb-2; } [contenteditable] h3 { @apply text-xl font-medium mb-2; } /* Style paragraphs */ [contenteditable] p { @apply mb-2 leading-relaxed; } /* Links */ [contenteditable] a { @apply text-blue-600 underline hover:text-blue-800; } .loader { width: 50px; aspect-ratio: 1; display: grid; -webkit-mask: conic-gradient(from 15deg, #0000, #000); animation: l26 1s infinite steps(12); } .loader, .loader:before, .loader:after { background: radial-gradient(closest-side at 50% 12.5%, #2053D4 96%, #0000) 50% 0/20% 80% repeat-y, radial-gradient(closest-side at 12.5% 50%, #2053D4 96%, #0000) 0 50%/80% 20% repeat-x; } .loader:before, .loader:after { content: ""; grid-area: 1/1; transform: rotate(30deg); } .loader:after { transform: rotate(60deg); } @keyframes l26 { 100% { transform: rotate(1turn) } }