UNPKG

editium

Version:

A powerful and feature-rich React rich text editor component built with Slate.js, featuring comprehensive formatting options, tables, images, find & replace, and more

352 lines (301 loc) 5.85 kB
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; background: #ffffff; min-height: 100vh; padding: 20px; color: #333; } .container { max-width: 1200px; margin: 0 auto; } header { text-align: center; margin-bottom: 30px; padding: 20px 0; } header h1 { font-size: 2.5em; margin-bottom: 0; color: #333; font-weight: 600; letter-spacing: -0.02em; } .demo-section { margin-bottom: 30px; } .demo-section h2 { margin-bottom: 10px; color: #555; font-size: 1.4em; font-weight: 500; } #editor { margin-bottom: 20px; } .installation-section { margin-top: 60px; margin-bottom: 40px; padding: 40px 30px; background-color: #fafafa; border-radius: 12px; border: 1px solid #e5e5e5; } .installation-section h2 { color: #000; font-size: 28px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; } .installation-section > p { color: #666; font-size: 16px; line-height: 1.6; margin-bottom: 30px; font-weight: 400; } /* Tab Container */ .tab-container { background-color: #ffffff; border-radius: 12px; border: 1px solid #e0e0e0; overflow: hidden; margin-bottom: 30px; } /* Tab Headers */ .tab-headers { display: flex; border-bottom: 1px solid #e0e0e0; background-color: #fafafa; } .tab-btn { padding: 10px 20px; background: transparent; color: #666; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; outline: none; } .tab-btn:hover { color: #333; } .tab-btn.active { background: #2d2d2d; color: #fff; border-bottom: 2px solid #0066ff; } /* Tab Content */ .tab-content { padding: 24px; } .tab-pane { display: none; } .tab-pane.active { display: block; } /* CDN Sub-tabs */ .cdn-subtabs { display: flex; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid #e0e0e0; padding-bottom: 8px; } .cdn-subtab-btn { padding: 6px 16px; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; color: #666; transition: all 0.2s; } .cdn-subtab-btn.active { background: #f0f0f0; border: 1px solid #d0d0d0; color: #000; } .cdn-tab-pane { display: none; } .cdn-tab-pane.active { display: block; } /* Usage Tab Headers */ .usage-tab-headers { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e0e0e0; background-color: #fafafa; padding: 0 20px; } .usage-pane { display: none; } .usage-pane.active { display: block; } .code-block { position: relative; background-color: #1e1e1e; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #333; } .code-block code { color: #d4d4d4; font-size: 14px; font-family: Monaco, "Courier New", monospace; font-weight: 400; word-break: break-all; } .copy-btn { background: #2d2d2d; border: 1px solid #444; border-radius: 6px; padding: 6px 12px; color: #d4d4d4; font-size: 12px; cursor: pointer; transition: all 0.2s; font-weight: 500; min-width: 70px; margin-left: 12px; flex-shrink: 0; } .copy-btn:hover { background: #383838; border-color: #555; } /* Usage Pre and Code */ .usage-pane pre { background-color: #1e1e1e; border-radius: 6px; padding: 16px; overflow: auto; margin: 0; } .usage-pane code { color: #d4d4d4; font-size: 13px; font-family: Monaco, "Courier New", monospace; line-height: 1.6; } footer { margin-top: 80px; padding: 50px 20px; background-color: #ffffff; border-top: 1px solid #eaeaea; } .footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; } .footer-brand { flex: 1; min-width: 200px; } .footer-brand h3 { color: #000; margin-bottom: 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; } .footer-brand p { color: #666; font-size: 14px; line-height: 1.5; font-weight: 400; margin: 0; } .footer-links h4 { color: #000; font-size: 13px; font-weight: 500; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; } .footer-links-list { display: flex; flex-direction: column; gap: 8px; } .footer-links a { color: #666; text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; } .footer-links a:hover { color: #000; } .footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 30px; border-top: 1px solid #eaeaea; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; } .footer-bottom p { color: #999; font-size: 13px; margin: 0; font-weight: 400; } .footer-bottom a { color: #666; text-decoration: none; font-weight: 400; transition: color 0.2s; } .footer-bottom a:hover { color: #000; } @media (max-width: 768px) { header h1 { font-size: 2em; } .installation-section { padding: 30px 20px; } .installation-section h2 { font-size: 24px; } .footer-content { flex-direction: column; } .footer-bottom { flex-direction: column; text-align: center; } }