autumnnote 1.0.5 → 1.0.7
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/README.md +2 -2
- package/dist/autumnnote.css +1769 -1
- package/dist/autumnnote.es.js +11885 -6463
- package/dist/autumnnote.es.js.map +1 -1
- package/dist/autumnnote.umd.js +11579 -84
- package/dist/autumnnote.umd.js.map +1 -1
- package/package.json +16 -8
- package/src/js/Context.js +8 -6
- package/src/js/core/sanitise.js +20 -2
- package/src/js/editing/Style.js +120 -7
- package/src/js/editing/Typing.js +28 -3
- package/src/js/module/Buttons.js +5 -4
- package/src/js/module/Clipboard.js +25 -20
- package/src/js/module/CodeTooltip.js +10 -6
- package/src/js/module/ContextMenu.js +146 -8
- package/src/js/module/Editor.js +61 -0
- package/src/js/module/FindReplace.js +21 -7
- package/src/js/module/ImageCropOverlay.js +2 -2
- package/src/js/module/ImageDialog.js +17 -2
- package/src/js/module/ImageResizer.js +3 -1
- package/src/js/module/ImageTooltip.js +12 -1
- package/src/js/module/LinkTooltip.js +4 -0
- package/src/js/module/Placeholder.js +2 -1
- package/src/js/module/TableTooltip.js +62 -25
- package/src/js/module/Toolbar.js +129 -100
- package/src/js/module/VideoDialog.js +5 -5
- package/src/js/module/VideoResizer.js +11 -0
- package/src/js/module/VideoTooltip.js +1 -0
- package/src/js/renderer.js +3 -0
- package/src/styles/autumnnote.scss +146 -9
package/dist/autumnnote.css
CHANGED
|
@@ -1 +1,1769 @@
|
|
|
1
|
-
@charset "UTF-8";.an-container{display:flex;flex-direction:column;position:relative;border:1px solid #d1d5db;border-radius:6px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:14px;box-sizing:border-box;background:#fff;contain:layout}.an-container *,.an-container *:before,.an-container *:after{box-sizing:border-box}.an-container.an-focused{border-color:var(--an-focus-color, #3b82f6);box-shadow:0 0 0 3px color-mix(in srgb,var(--an-focus-color, #3b82f6) 18%,transparent)}.an-container.an-disabled .an-toolbar{display:none}.an-container.an-disabled .an-editable{cursor:text;-webkit-user-select:text;user-select:text;background:#fafafa}.an-container.an-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9990;border-radius:0;border:none}.an-container.an-fullscreen .an-editable{flex:1;max-height:none!important}.an-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:6px 8px;background:#f9fafb;border-bottom:1px solid #d1d5db;-webkit-user-select:none;user-select:none}.an-btn-group{display:flex;align-items:center;gap:2px}.an-btn-group+.an-btn-group{position:relative;padding-left:8px}.an-btn-group+.an-btn-group:before{content:"";position:absolute;left:0;top:15%;height:70%;width:1px;background:#d1d5db}.an-select{height:30px;padding:0 24px 0 8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 7px center;background-size:8px 5px;border:1px solid #d1d5db;border-radius:4px;font-family:inherit;font-size:12px;color:#111827;cursor:pointer;-moz-appearance:none;appearance:none;-webkit-appearance:none;min-width:110px;max-width:160px;transition:border-color .15s ease,box-shadow .15s ease}.an-select:hover{border-color:#3b82f6}.an-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.an-select option{font-size:13px}.an-select-narrow{min-width:76px;max-width:90px;padding-right:20px}.an-select-style{min-width:80px;max-width:92px;padding-right:20px}.an-table-picker-wrap{position:relative;display:inline-flex}.an-table-picker-popup{display:none;position:absolute;top:calc(100% + 4px);left:0;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:8px;box-shadow:0 4px 16px #0000001f;z-index:1100;-webkit-user-select:none;user-select:none}.an-table-grid{display:grid;grid-template-columns:repeat(10,18px);gap:2px}.an-table-cell{width:18px;height:18px;border:1px solid #d1d5db;border-radius:2px;cursor:pointer;background:#fff;transition:background .15s ease,border-color .15s ease}.an-table-cell.active{background:#3b82f626;border-color:#3b82f6}.an-table-label{margin-top:6px;text-align:center;font-size:12px;color:#6b7280;min-height:16px}.an-context-table-grid-panel{padding:6px 8px 8px;border-top:1px solid #d1d5db}.an-color-picker-wrap{position:relative;display:inline-flex;align-items:stretch}.an-color-btn{flex-direction:column!important;gap:2px!important;padding:4px 6px 3px!important;height:auto!important;min-height:30px}.an-color-btn .an-color-strip{display:block;width:100%;min-width:14px;height:3px;border-radius:1px;flex-shrink:0}.an-color-arrow{padding:0 3px!important;min-width:unset!important;border-left:1px solid transparent}.an-color-arrow:hover{border-left-color:#d1d5db}.an-color-popup{position:fixed;z-index:1100;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:8px;box-shadow:0 4px 16px #0000001f;min-width:184px;-webkit-user-select:none;user-select:none}.an-color-swatches{display:grid;grid-template-columns:repeat(8,18px);gap:3px;margin-bottom:8px}.an-color-swatch{width:18px;height:18px;border-radius:2px;cursor:pointer;border:1px solid rgba(0,0,0,.12);transition:transform .1s ease;position:relative}.an-color-swatch:hover{transform:scale(1.25);z-index:1;outline:2px solid #3b82f6;outline-offset:1px}.an-color-custom{display:flex;align-items:center;gap:8px;padding-top:6px;border-top:1px solid #d1d5db}.an-color-custom input[type=color]{width:28px;height:22px;padding:1px 2px;border:1px solid #d1d5db;border-radius:3px;cursor:pointer;background:none;flex-shrink:0;-moz-appearance:none;appearance:none;-webkit-appearance:none}.an-color-custom input[type=color]::-webkit-color-swatch-wrapper{padding:0}.an-color-custom input[type=color]::-webkit-color-swatch{border:none;border-radius:2px}.an-color-custom input[type=color]:hover{border-color:#3b82f6}.an-color-custom span{font-size:11px;color:#6b7280;flex:1}.an-btn{display:inline-flex;align-items:center;justify-content:center;height:30px;min-width:30px;padding:0 8px;background:transparent;border:1px solid transparent;border-radius:4px;color:#111827;font-family:inherit;font-size:13px;line-height:1;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease;white-space:nowrap;text-decoration:none}.an-btn svg{display:block;flex-shrink:0;pointer-events:none}.an-btn:hover{background:#f3f4f6;border-color:#d1d5db;color:#3b82f6}.an-btn:hover svg{stroke:#3b82f6}.an-btn:focus-visible{outline:2px solid #3b82f6;outline-offset:1px}.an-btn.active{background:#dbeafe;border-color:#3b82f6;color:#2563eb}.an-btn.active svg{stroke:#2563eb}.an-btn.an-btn-primary{background:#3b82f6;border-color:#3b82f6;color:#fff}.an-btn.an-btn-primary svg{stroke:#fff}.an-btn.an-btn-primary:hover{background:#2563eb;border-color:#2563eb}.an-editable{flex:1;padding:12px 14px;min-height:0;outline:none;line-height:1.6;color:#111827;overflow-y:auto;word-break:break-word}.an-editable.an-placeholder:not(:focus):before{content:attr(data-placeholder);color:#6b7280;pointer-events:none;float:left}.an-editable p{margin:0 0 .75em}.an-editable h1,.an-editable h2,.an-editable h3,.an-editable h4,.an-editable h5,.an-editable h6{margin:.5em 0;line-height:1.3}.an-editable ul,.an-editable ol{margin:0 0 .75em 1.5em;padding:0}.an-editable li{margin-bottom:.25em}.an-editable blockquote{margin:.5em 0 .5em 1em;padding:.5em 1em;border-left:4px solid #d1d5db;color:#6b7280}.an-editable pre,.an-editable code{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.9em;background:#f9fafb;border-radius:4px}.an-editable pre{padding:.75em 1em;overflow-x:auto}.an-editable code{padding:.1em .3em}.an-editable pre[class*=language-]{background:#2d2d2d;color:#ccc;border-radius:4px}.an-editable pre[class*=language-]>code[class*=language-]{background:transparent;color:inherit;padding:0}.an-editable a{color:#3b82f6}.an-editable hr{border:none;border-top:2px solid #d1d5db;margin:1em 0}.an-editable img.an-image{max-width:100%;height:auto;display:inline-block}.an-editable .an-video-wrapper{position:relative;display:block;max-width:100%;margin:4px 0}.an-editable .an-video-wrapper iframe,.an-editable .an-video-wrapper video{display:block;max-width:100%}.an-editable .an-video-wrapper .an-video-shield{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;cursor:default}.an-editable table,.an-editable .an-table{border-collapse:collapse;table-layout:fixed;width:100%;margin:.75em 0}.an-editable table td,.an-editable table th,.an-editable .an-table td,.an-editable .an-table th{border:1px solid #d1d5db;padding:6px 10px;min-width:40px;vertical-align:top;overflow-wrap:break-word;word-break:break-word}.an-editable table th,.an-editable .an-table th{background:#f9fafb;font-weight:600}.an-link-tooltip{position:fixed;z-index:1300;display:flex;align-items:center;gap:2px;height:30px;padding:0 6px;background:#fff;border:1px solid #d1d5db;border-radius:4px;box-shadow:0 2px 10px #0000001f;white-space:nowrap;pointer-events:all}.an-link-tooltip .an-link-tooltip-url{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#3b82f6;cursor:default;padding:0 4px}.an-link-tooltip .an-link-tooltip-sep{width:1px;height:18px;background:#d1d5db;flex-shrink:0;margin:0 2px}.an-link-tooltip-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:4px;background:transparent;color:#6b7280;cursor:pointer;flex-shrink:0}.an-link-tooltip-btn svg{stroke:currentColor;display:block}.an-link-tooltip-btn:hover{background:#f3f4f6;color:#111827}.an-link-tooltip-btn:active,.an-link-tooltip-btn.an-link-tooltip-btn--copied{background:#dbeafe;color:#3b82f6}.an-link-tooltip-btn.an-link-tooltip-btn--danger{color:#ef4444}.an-link-tooltip-btn.an-link-tooltip-btn--danger svg{stroke:#ef4444}.an-link-tooltip-btn.an-link-tooltip-btn--danger:hover{background:#ef444414;color:#dc2626}.an-link-tooltip-btn.an-link-tooltip-btn--danger:hover svg{stroke:#dc2626}.an-image-tooltip .an-link-tooltip-url{color:#111827;font-weight:500}.an-video-tooltip .an-link-tooltip-url{color:#7c3aed;font-weight:500}.an-table-tooltip .an-link-tooltip-url{color:#0369a1;font-weight:500}.an-code-tooltip .an-link-tooltip-url{color:#059669;font-weight:500;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:11px;letter-spacing:.02em}.an-size-popover{position:fixed;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:12px 14px;box-shadow:0 4px 20px #00000026;z-index:1200;min-width:200px}.an-size-popover .an-size-popover-title{font-size:12px;font-weight:600;color:#111827;margin-bottom:10px}.an-size-popover .an-size-popover-body{display:flex;align-items:center;gap:6px;margin-bottom:12px}.an-size-popover .an-size-input{width:80px;height:28px;padding:0 8px;border:1px solid #d1d5db;border-radius:4px;font-size:13px;font-family:inherit;color:#111827;outline:none}.an-size-popover .an-size-input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.an-size-popover .an-size-unit{font-size:12px;color:#6b7280}.an-size-popover .an-size-popover-actions{display:flex;justify-content:flex-end;gap:6px}.an-codeview{flex:1;width:100%;min-height:200px;padding:12px 14px;border:none;outline:none;resize:vertical;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:13px;line-height:1.5;background:#1e1e2e;color:#cdd6f4}.an-statusbar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;height:24px;padding:0 8px;background:#f9fafb;border-top:1px solid #d1d5db;font-size:11px;color:#6b7280;-webkit-user-select:none;user-select:none}.an-status-info{display:flex;gap:12px}.an-resize-handle{width:14px;height:14px;cursor:ns-resize;background:repeating-linear-gradient(-45deg,#d1d5db,#d1d5db 1px,transparent 1px,transparent 3px);border-radius:2px;flex-shrink:0}.an-resize-handle:hover{opacity:.7}.an-dialog-overlay{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#00000073;align-items:center;justify-content:center}.an-dialog-box{background:#fff;border-radius:8px;padding:24px;width:min(420px,95vw);box-shadow:0 20px 60px #0000004d;display:flex;flex-direction:column;gap:10px}.an-dialog-title{margin:0 0 4px;font-size:16px;font-weight:600;color:#111827}.an-dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:6px}.an-dialog-hint{margin:-4px 0 0;font-size:12px;color:#6b7280;min-height:16px}.an-align-row{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:10px}.an-align-row input[type=radio]{accent-color:#3b82f6;cursor:pointer}.an-align-row .an-align-label{font-size:13px;cursor:pointer;-webkit-user-select:none;user-select:none}.an-label{display:block;font-size:13px;font-weight:500;color:#111827;margin-bottom:2px}.an-label.an-label-inline{display:flex;align-items:center;gap:6px;font-weight:400;cursor:pointer}.an-input{width:100%;padding:7px 10px;border:1px solid #d1d5db;border-radius:4px;font-family:inherit;font-size:14px;color:#111827;background:#fff;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.an-input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.an-contextmenu{position:fixed;z-index:10050;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 8px 28px #00000024;min-width:180px;padding:5px 4px;display:none;-webkit-user-select:none;user-select:none}.an-context-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:7px 14px;background:transparent;border:none;border-radius:5px;font-size:13px;color:#111827;cursor:pointer;transition:background .12s,color .12s;line-height:1.4}.an-context-item:hover{background:#3b82f6;color:#fff}.an-context-item:hover .an-context-icon svg{stroke:#fff}.an-context-item:hover .an-context-chevron svg{stroke:#fff}.an-context-item:disabled{opacity:.38;cursor:default;pointer-events:none}.an-context-submenu .an-context-chevron{display:flex;align-items:center;margin-left:auto;color:#6b7280;flex-shrink:0}.an-context-submenu .an-context-chevron svg{display:block}.an-context-back{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:6px 14px 8px;background:transparent;border:none;border-bottom:1px solid #d1d5db;border-radius:5px 5px 0 0;font-size:12px;font-weight:600;color:#6b7280;cursor:pointer;margin-bottom:3px;transition:background .12s,color .12s}.an-context-back .an-context-icon svg{stroke:#6b7280}.an-context-back:hover{background:#f3f4f6;color:#111827}.an-context-back:hover .an-context-icon svg{stroke:#111827}.an-context-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:16px;color:#6b7280;transition:color .12s}.an-context-icon svg{display:block;stroke:currentColor}.an-context-label{flex:1}.an-context-sep{height:1px;margin:5px 10px;background:#d1d5db}.an-image-resizer{position:absolute;z-index:10000;box-sizing:border-box;border:2px solid #3b82f6;pointer-events:none}.an-image-resizer .an-resize-handle{position:absolute;width:8px;height:8px;background:#3b82f6;border:1px solid #fff;border-radius:1px;box-sizing:border-box;pointer-events:all}.an-image-resizer .an-resize-nw{top:-4px;left:-4px;cursor:nw-resize}.an-image-resizer .an-resize-ne{top:-4px;right:-4px;cursor:ne-resize}.an-image-resizer .an-resize-se{bottom:-4px;right:-4px;cursor:se-resize}.an-image-resizer .an-resize-sw{bottom:-4px;left:-4px;cursor:sw-resize}.an-image-resizer .an-resize-n{top:-4px;left:calc(50% - 4px);cursor:n-resize}.an-image-resizer .an-resize-e{top:calc(50% - 4px);right:-4px;cursor:e-resize}.an-image-resizer .an-resize-s{bottom:-4px;left:calc(50% - 4px);cursor:s-resize}.an-image-resizer .an-resize-w{top:calc(50% - 4px);left:-4px;cursor:w-resize}.an-crop-scrim{transition:clip-path 0s}.an-crop-box{outline:none!important;box-shadow:0 0 0 9999px #00000073,inset 0 0 0 1px #ffffff40}.an-crop-handle:hover,.an-crop-handle:active{background:#74affa!important}.an-crop-toolbar{animation:an-crop-toolbar-in .12s ease}@keyframes an-crop-toolbar-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media print{.an-crop-scrim,.an-crop-box,.an-crop-toolbar{display:none!important}}.an-video-resizer{position:absolute;z-index:10000;box-sizing:border-box;border:2px solid #8b5cf6;pointer-events:none}.an-video-resizer .an-resize-handle{position:absolute;width:8px;height:8px;background:#8b5cf6;border:1px solid #fff;border-radius:1px;box-sizing:border-box;pointer-events:all}.an-video-resizer .an-resize-nw{top:-4px;left:-4px;cursor:nw-resize}.an-video-resizer .an-resize-ne{top:-4px;right:-4px;cursor:ne-resize}.an-video-resizer .an-resize-se{bottom:-4px;right:-4px;cursor:se-resize}.an-video-resizer .an-resize-sw{bottom:-4px;left:-4px;cursor:sw-resize}.an-video-resizer .an-resize-n{top:-4px;left:calc(50% - 4px);cursor:n-resize}.an-video-resizer .an-resize-e{top:calc(50% - 4px);right:-4px;cursor:e-resize}.an-video-resizer .an-resize-s{bottom:-4px;left:calc(50% - 4px);cursor:s-resize}.an-video-resizer .an-resize-w{top:calc(50% - 4px);left:-4px;cursor:w-resize}.an-icon-box{width:min(596px,95vw);gap:0;padding:20px}.an-icon-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.an-icon-title-row .an-dialog-title{margin:0}.an-icon-close{display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;font-size:18px;line-height:1;background:none;border:none;border-radius:4px;cursor:pointer;color:#6b7280;flex-shrink:0}.an-icon-close:hover{background:#f3f4f6;color:#111827}.an-icon-search{width:100%;margin-bottom:10px;box-sizing:border-box}.an-icon-cats{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:10px}.an-icon-cat{height:26px;padding:0 10px;font-size:12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:none;border:1px solid #d1d5db;border-radius:13px;cursor:pointer;color:#6b7280;white-space:nowrap;transition:background .15s ease,color .15s ease,border-color .15s ease}.an-icon-cat:hover{background:#f3f4f6;color:#111827}.an-icon-cat.active{background:#3b82f6;border-color:#3b82f6;color:#fff}.an-icon-grid{display:grid;grid-template-columns:repeat(auto-fill,56px);gap:3px;height:256px;overflow-y:auto;margin-bottom:10px;padding:4px;border:1px solid #d1d5db;border-radius:6px;background:#fff;scrollbar-width:thin;scrollbar-color:#d1d5db transparent}.an-icon-grid::-webkit-scrollbar{width:6px}.an-icon-grid::-webkit-scrollbar-track{background:transparent}.an-icon-grid::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.an-icon-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:56px;height:52px;padding:0;border:1px solid transparent;border-radius:4px;background:none;cursor:pointer;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:10px;color:#6b7280;transition:background .15s ease,border-color .15s ease;overflow:hidden;box-sizing:border-box}.an-icon-cell i{font-size:17px;color:#111827;line-height:1;pointer-events:none}.an-icon-cell span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:52px;pointer-events:none}.an-icon-cell:hover{background:#f3f4f6;border-color:#d1d5db}.an-icon-cell.active{background:#3b82f61a;border-color:#3b82f6;color:#3b82f6}.an-icon-cell.active i{color:#3b82f6}.an-icon-empty{grid-column:1/-1;padding:24px 0;text-align:center;color:#6b7280;font-size:13px}.an-icon-options{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-bottom:10px}.an-icon-options .an-label{margin:0;font-size:12px;white-space:nowrap}.an-icon-option-select{height:30px;padding:0 6px;font-size:12px;width:auto}.an-icon-color{width:32px;height:30px;padding:2px;border:1px solid #d1d5db;border-radius:4px;cursor:pointer;background:none}.an-icon-use-color{display:flex;align-items:center;gap:4px;font-size:12px;margin:0;cursor:pointer}.an-icon-use-color input[type=checkbox]{cursor:pointer}.an-icon-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:72px;margin-bottom:14px;padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;background:#f9fafb}.an-icon-preview i{line-height:1}.an-icon-preview .an-icon-preview-hint{font-size:12px;color:#6b7280}.an-icon-preview-name{font-size:12px;color:#6b7280;font-family:monospace}.an-emoji-box{width:min(520px,95vw);gap:0;padding:20px}.an-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,42px);gap:2px;height:288px;overflow-y:auto;margin-bottom:10px;padding:4px;border:1px solid #d1d5db;border-radius:6px;scrollbar-width:thin;scrollbar-color:#d1d5db transparent}.an-emoji-grid::-webkit-scrollbar{width:6px}.an-emoji-grid::-webkit-scrollbar-track{background:transparent}.an-emoji-grid::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.an-emoji-cell{width:42px;height:42px;padding:0;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;border:1px solid transparent;border-radius:4px;background:none;cursor:pointer;transition:background .15s ease,border-color .15s ease}.an-emoji-cell:hover{background:#f3f4f6;border-color:#d1d5db}.an-emoji-cell:active{background:#dbeafe}.an-sticky-toolbar{overflow:visible}.an-sticky-toolbar .an-toolbar{position:sticky;top:var(--an-sticky-top, 0px);z-index:100;border-radius:6px 6px 0 0;box-shadow:0 2px 8px #0000001a}.an-editable figure.an-figure{display:inline-block;max-width:100%;margin:.75em 0;text-align:center}.an-editable figure.an-figure img{display:block;max-width:100%}.an-editable figcaption.an-figcaption{font-size:.85em;font-style:italic;color:#6b7280;padding:4px 0 2px;text-align:center;line-height:1.4;min-width:60px;outline:none}.an-editable figcaption.an-figcaption:focus{background:#3b82f60f;border-radius:2px}.an-shortcuts-box{width:min(480px,95vw);max-height:80vh;overflow-y:auto}.an-shortcuts-cat{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;padding:8px 0 4px;border-bottom:1px solid #d1d5db;margin-bottom:2px}.an-shortcuts-cat+.an-shortcuts-table+.an-shortcuts-cat{margin-top:10px}.an-shortcuts-table{display:flex;flex-direction:column}.an-shortcuts-row{display:flex;align-items:center;justify-content:space-between;padding:5px 4px;border-radius:4px}.an-shortcuts-row:hover{background:#f3f4f6}.an-shortcuts-key{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:12px;color:#111827;background:#f9fafb;border:1px solid #d1d5db;border-bottom-width:2px;border-radius:4px;padding:2px 8px;white-space:nowrap;flex-shrink:0}.an-shortcuts-action{font-size:13px;color:#111827;flex:1;padding-left:14px}.an-code-lang-select{height:22px;padding:0 20px 0 6px;border:1px solid #d1d5db;border-radius:4px;font-family:inherit;font-size:11px;color:#111827;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 5px center;background-size:6px 4px;-moz-appearance:none;appearance:none;-webkit-appearance:none;cursor:pointer}.an-code-lang-select:focus{outline:none;border-color:#3b82f6}.an-code-lang-select:hover{border-color:#3b82f6}.an-theme-dark{border-color:#3f3f5f;background:#1e1e2e;color:#cdd6f4}.an-theme-dark.an-focused{border-color:#89b4fa;box-shadow:0 0 0 3px #89b4fa33}.an-theme-dark .an-toolbar{background:#181825;border-color:#3f3f5f}.an-theme-dark .an-btn{color:#cdd6f4}.an-theme-dark .an-btn:hover{background:#2a2a3e;border-color:#3f3f5f;color:#cdd6f4}.an-theme-dark .an-btn:hover svg{stroke:#cdd6f4}.an-theme-dark .an-btn.active{background:#1a3a5c;border-color:#89b4fa;color:#89b4fa}.an-theme-dark .an-btn.active svg{stroke:#89b4fa}.an-theme-dark .an-btn.an-btn-primary{background:#3b5bdb;border-color:#3b5bdb;color:#fff}.an-theme-dark .an-select{background-color:#1e1e2e;border-color:#3f3f5f;color:#cdd6f4}.an-theme-dark .an-select:hover,.an-theme-dark .an-select:focus{border-color:#89b4fa}.an-theme-dark .an-editable{background:#1e1e2e;color:#cdd6f4}.an-theme-dark .an-editable a{color:#89b4fa}.an-theme-dark .an-editable blockquote{border-color:#3f3f5f;color:#a6adc8}.an-theme-dark .an-editable pre:not([class*=language-]),.an-theme-dark .an-editable code:not([class*=language-]){background:#313244;color:#cdd6f4}.an-theme-dark .an-editable hr,.an-theme-dark .an-editable table td,.an-theme-dark .an-editable table th,.an-theme-dark .an-editable .an-table td,.an-theme-dark .an-editable .an-table th{border-color:#3f3f5f}.an-theme-dark .an-editable table th,.an-theme-dark .an-editable .an-table th{background:#313244}.an-theme-dark .an-editable.an-placeholder:before{color:#6c7086}.an-theme-dark .an-editable figcaption.an-figcaption{color:#6c7086}.an-theme-dark .an-statusbar{background:#181825;border-color:#3f3f5f;color:#6c7086}.an-theme-dark .an-link-tooltip,.an-theme-dark .an-contextmenu{background:#24273a;border-color:#3f3f5f;color:#cdd6f4}.an-theme-dark .an-link-tooltip-url{color:#89b4fa}.an-theme-dark .an-link-tooltip-btn{color:#a6adc8}.an-theme-dark .an-link-tooltip-btn:hover{background:#2a2a3e;color:#cdd6f4}.an-theme-dark .an-dialog-overlay{background:#000000a6}.an-theme-dark .an-dialog-box{background:#24273a;color:#cdd6f4;border:1px solid #3f3f5f}.an-theme-dark .an-dialog-title,.an-theme-dark .an-label{color:#cdd6f4}.an-theme-dark .an-input{background:#313244;border-color:#3f3f5f;color:#cdd6f4}.an-theme-dark .an-input:focus{border-color:#89b4fa;box-shadow:0 0 0 3px #89b4fa26}.an-theme-dark .an-shortcuts-key{background:#313244;border-color:#3f3f5f;color:#cdd6f4}.an-theme-dark .an-shortcuts-action{color:#cdd6f4}.an-theme-dark .an-shortcuts-row:hover{background:#2a2a3e}.an-theme-dark .an-shortcuts-cat{border-color:#3f3f5f;color:#a6adc8}.an-theme-dark .an-code-lang-select{background-color:#24273a;border-color:#3f3f5f;color:#cdd6f4}.an-theme-dark .an-color-popup,.an-theme-dark .an-table-picker-popup,.an-theme-dark .an-size-popover{background:#24273a;border-color:#3f3f5f;color:#cdd6f4}.an-theme-dark .an-table-cell{background:#24273a;border-color:#3f3f5f}.an-theme-dark .an-table-cell.active{background:#6366f14d;border-color:#6366f1}.an-theme-dark .an-context-item{color:#cdd6f4}.an-theme-dark .an-context-sep{background:#3f3f5f}.an-theme-dark .an-icon-cat{border-color:#3f3f5f;color:#a6adc8}.an-theme-dark .an-icon-cat.active{background:#3b5bdb;border-color:#3b5bdb;color:#fff}.an-theme-dark .an-icon-search{border-color:#3f3f5f;background:#313244;color:#cdd6f4}.an-theme-dark .an-icon-cell{color:#cdd6f4}.an-theme-dark .an-icon-cell:hover{background:#2a2a3e}.an-theme-dark .an-icon-close{color:#a6adc8}.an-theme-dark .an-icon-close:hover{background:#2a2a3e;color:#cdd6f4}.an-toolbar-overflow-scroll .an-toolbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.an-toolbar-overflow-scroll .an-toolbar::-webkit-scrollbar{height:4px}.an-toolbar-overflow-scroll .an-toolbar::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:2px}.an-dir-rtl .an-toolbar{direction:rtl}.an-editable[dir=rtl]{text-align:right}.an-count-warn{color:#f59e0b;font-weight:600}.an-count-exceeded{color:#ef4444;font-weight:700}.an-editable ul.an-checklist{list-style:none;padding-left:0;margin:.5em 0}.an-editable ul.an-checklist li{position:relative;padding-left:22px;padding-top:1px;padding-bottom:1px;min-height:1.4em;line-height:inherit;font-size:inherit;font-family:inherit}.an-editable ul.an-checklist li input[type=checkbox]{position:absolute;left:0;top:.25em;width:14px;height:14px;margin:0;cursor:pointer;accent-color:#3b82f6}.an-editable ul.an-checklist li:has(input[type=checkbox]:checked){color:#6b7280;text-decoration:line-through}.an-theme-dark .an-editable ul.an-checklist li:has(input[type=checkbox]:checked){color:#6c7086}@media print{.an-container{border:none;box-shadow:none;contain:none}.an-toolbar,.an-statusbar{display:none!important}.an-editable{overflow:visible;height:auto!important;max-height:none!important;padding:0;color:#000;background:#fff}.an-video-wrapper .an-video-shield{display:none}.an-image-resizer,.an-video-resizer{display:none!important}}
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/**
|
|
3
|
+
* autumnnote.scss — Main stylesheet for the AutumnNote editor
|
|
4
|
+
* Inspired by Summernote — rewritten with cleaner, modern CSS
|
|
5
|
+
*/
|
|
6
|
+
.an-container {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
position: relative;
|
|
10
|
+
border: 1px solid #d1d5db;
|
|
11
|
+
border-radius: 6px;
|
|
12
|
+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
13
|
+
font-size: 14px;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
background: #ffffff;
|
|
16
|
+
contain: layout;
|
|
17
|
+
}
|
|
18
|
+
.an-container *,
|
|
19
|
+
.an-container *::before,
|
|
20
|
+
.an-container *::after {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
.an-container.an-focused {
|
|
24
|
+
border-color: var(--an-focus-color, #3b82f6);
|
|
25
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--an-focus-color, #3b82f6) 18%, transparent);
|
|
26
|
+
}
|
|
27
|
+
.an-container.an-disabled .an-toolbar {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
.an-container.an-disabled .an-editable {
|
|
31
|
+
cursor: text;
|
|
32
|
+
user-select: text;
|
|
33
|
+
background: #fafafa;
|
|
34
|
+
}
|
|
35
|
+
.an-container.an-disabled .an-editable ul.an-checklist input[type=checkbox] {
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
cursor: default;
|
|
38
|
+
}
|
|
39
|
+
.an-container.an-disabled .an-editable img,
|
|
40
|
+
.an-container.an-disabled .an-editable .an-video-wrapper {
|
|
41
|
+
-webkit-user-drag: none;
|
|
42
|
+
user-drag: none;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
}
|
|
45
|
+
.an-container.an-fullscreen {
|
|
46
|
+
position: fixed;
|
|
47
|
+
inset: 0;
|
|
48
|
+
z-index: 9990;
|
|
49
|
+
border-radius: 0;
|
|
50
|
+
border: none;
|
|
51
|
+
}
|
|
52
|
+
.an-container.an-fullscreen .an-editable {
|
|
53
|
+
flex: 1;
|
|
54
|
+
max-height: none !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.an-toolbar {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 4px;
|
|
62
|
+
padding: 6px 8px;
|
|
63
|
+
background: #f9fafb;
|
|
64
|
+
border-bottom: 1px solid #d1d5db;
|
|
65
|
+
user-select: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.an-btn-group {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 2px;
|
|
72
|
+
}
|
|
73
|
+
.an-btn-group > .an-btn {
|
|
74
|
+
padding: 0;
|
|
75
|
+
}
|
|
76
|
+
.an-btn-group + .an-btn-group {
|
|
77
|
+
position: relative;
|
|
78
|
+
padding-left: 8px;
|
|
79
|
+
}
|
|
80
|
+
.an-btn-group + .an-btn-group::before {
|
|
81
|
+
content: "";
|
|
82
|
+
position: absolute;
|
|
83
|
+
left: 0;
|
|
84
|
+
top: 15%;
|
|
85
|
+
height: 70%;
|
|
86
|
+
width: 1px;
|
|
87
|
+
background: #d1d5db;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.an-select {
|
|
91
|
+
height: 30px;
|
|
92
|
+
padding: 0 24px 0 8px;
|
|
93
|
+
background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 7px center;
|
|
94
|
+
background-size: 8px 5px;
|
|
95
|
+
border: 1px solid #d1d5db;
|
|
96
|
+
border-radius: 4px;
|
|
97
|
+
font-family: inherit;
|
|
98
|
+
font-size: 12px;
|
|
99
|
+
color: #111827;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
appearance: none;
|
|
102
|
+
-webkit-appearance: none;
|
|
103
|
+
min-width: 110px;
|
|
104
|
+
max-width: 160px;
|
|
105
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
106
|
+
}
|
|
107
|
+
.an-select:hover {
|
|
108
|
+
border-color: #3b82f6;
|
|
109
|
+
}
|
|
110
|
+
.an-select:focus {
|
|
111
|
+
outline: none;
|
|
112
|
+
border-color: #3b82f6;
|
|
113
|
+
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
|
|
114
|
+
}
|
|
115
|
+
.an-select option {
|
|
116
|
+
font-size: 13px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.an-select-narrow {
|
|
120
|
+
min-width: 76px;
|
|
121
|
+
max-width: 90px;
|
|
122
|
+
padding-right: 20px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.an-select-style {
|
|
126
|
+
min-width: 80px;
|
|
127
|
+
max-width: 92px;
|
|
128
|
+
padding-right: 20px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.an-table-picker-wrap {
|
|
132
|
+
position: relative;
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.an-table-picker-popup {
|
|
137
|
+
display: none;
|
|
138
|
+
position: absolute;
|
|
139
|
+
top: calc(100% + 4px);
|
|
140
|
+
left: 0;
|
|
141
|
+
background: #ffffff;
|
|
142
|
+
border: 1px solid #d1d5db;
|
|
143
|
+
border-radius: 6px;
|
|
144
|
+
padding: 8px;
|
|
145
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
146
|
+
z-index: 1100;
|
|
147
|
+
user-select: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.an-table-grid {
|
|
151
|
+
display: grid;
|
|
152
|
+
grid-template-columns: repeat(10, 18px);
|
|
153
|
+
gap: 2px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.an-table-cell {
|
|
157
|
+
width: 18px;
|
|
158
|
+
height: 18px;
|
|
159
|
+
border: 1px solid #d1d5db;
|
|
160
|
+
border-radius: 2px;
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
background: #ffffff;
|
|
163
|
+
transition: background 0.15s ease, border-color 0.15s ease;
|
|
164
|
+
}
|
|
165
|
+
.an-table-cell.active {
|
|
166
|
+
background: rgba(59, 130, 246, 0.15);
|
|
167
|
+
border-color: #3b82f6;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.an-table-label {
|
|
171
|
+
margin-top: 6px;
|
|
172
|
+
text-align: center;
|
|
173
|
+
font-size: 12px;
|
|
174
|
+
color: #6b7280;
|
|
175
|
+
min-height: 16px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.an-context-table-grid-panel {
|
|
179
|
+
padding: 6px 8px 8px;
|
|
180
|
+
border-top: 1px solid #d1d5db;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.an-color-picker-wrap {
|
|
184
|
+
position: relative;
|
|
185
|
+
display: inline-flex;
|
|
186
|
+
align-items: stretch;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.an-color-btn {
|
|
190
|
+
flex-direction: column !important;
|
|
191
|
+
gap: 2px !important;
|
|
192
|
+
padding: 4px 6px 3px !important;
|
|
193
|
+
height: auto !important;
|
|
194
|
+
min-height: 30px;
|
|
195
|
+
}
|
|
196
|
+
.an-color-btn .an-color-strip {
|
|
197
|
+
display: block;
|
|
198
|
+
width: 100%;
|
|
199
|
+
min-width: 14px;
|
|
200
|
+
height: 3px;
|
|
201
|
+
border-radius: 1px;
|
|
202
|
+
flex-shrink: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.an-color-arrow {
|
|
206
|
+
padding: 0 3px !important;
|
|
207
|
+
min-width: unset !important;
|
|
208
|
+
border-left: 1px solid transparent;
|
|
209
|
+
}
|
|
210
|
+
.an-color-arrow:hover {
|
|
211
|
+
border-left-color: #d1d5db;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.an-color-popup {
|
|
215
|
+
position: fixed;
|
|
216
|
+
z-index: 1100;
|
|
217
|
+
background: #ffffff;
|
|
218
|
+
border: 1px solid #d1d5db;
|
|
219
|
+
border-radius: 6px;
|
|
220
|
+
padding: 8px;
|
|
221
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
|
222
|
+
min-width: 184px;
|
|
223
|
+
user-select: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.an-color-swatches {
|
|
227
|
+
display: grid;
|
|
228
|
+
grid-template-columns: repeat(8, 18px);
|
|
229
|
+
gap: 3px;
|
|
230
|
+
margin-bottom: 8px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.an-color-swatch {
|
|
234
|
+
width: 18px;
|
|
235
|
+
height: 18px;
|
|
236
|
+
border-radius: 2px;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
239
|
+
transition: transform 0.1s ease;
|
|
240
|
+
position: relative;
|
|
241
|
+
}
|
|
242
|
+
.an-color-swatch:hover {
|
|
243
|
+
transform: scale(1.25);
|
|
244
|
+
z-index: 1;
|
|
245
|
+
outline: 2px solid #3b82f6;
|
|
246
|
+
outline-offset: 1px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.an-color-custom {
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: 8px;
|
|
253
|
+
padding-top: 6px;
|
|
254
|
+
border-top: 1px solid #d1d5db;
|
|
255
|
+
}
|
|
256
|
+
.an-color-custom input[type=color] {
|
|
257
|
+
width: 28px;
|
|
258
|
+
height: 22px;
|
|
259
|
+
padding: 1px 2px;
|
|
260
|
+
border: 1px solid #d1d5db;
|
|
261
|
+
border-radius: 3px;
|
|
262
|
+
cursor: pointer;
|
|
263
|
+
background: none;
|
|
264
|
+
flex-shrink: 0;
|
|
265
|
+
appearance: none;
|
|
266
|
+
-webkit-appearance: none;
|
|
267
|
+
}
|
|
268
|
+
.an-color-custom input[type=color]::-webkit-color-swatch-wrapper {
|
|
269
|
+
padding: 0;
|
|
270
|
+
}
|
|
271
|
+
.an-color-custom input[type=color]::-webkit-color-swatch {
|
|
272
|
+
border: none;
|
|
273
|
+
border-radius: 2px;
|
|
274
|
+
}
|
|
275
|
+
.an-color-custom input[type=color]:hover {
|
|
276
|
+
border-color: #3b82f6;
|
|
277
|
+
}
|
|
278
|
+
.an-color-custom span {
|
|
279
|
+
font-size: 11px;
|
|
280
|
+
color: #6b7280;
|
|
281
|
+
flex: 1;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.an-btn {
|
|
285
|
+
display: inline-flex;
|
|
286
|
+
align-items: center;
|
|
287
|
+
justify-content: center;
|
|
288
|
+
height: 30px;
|
|
289
|
+
min-width: 30px;
|
|
290
|
+
padding: 0 8px;
|
|
291
|
+
background: transparent;
|
|
292
|
+
border: 1px solid transparent;
|
|
293
|
+
border-radius: 4px;
|
|
294
|
+
color: #111827;
|
|
295
|
+
font-family: inherit;
|
|
296
|
+
font-size: 13px;
|
|
297
|
+
line-height: 1;
|
|
298
|
+
cursor: pointer;
|
|
299
|
+
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
|
|
300
|
+
white-space: nowrap;
|
|
301
|
+
text-decoration: none;
|
|
302
|
+
}
|
|
303
|
+
.an-btn svg {
|
|
304
|
+
display: block;
|
|
305
|
+
flex-shrink: 0;
|
|
306
|
+
pointer-events: none;
|
|
307
|
+
}
|
|
308
|
+
.an-btn:hover {
|
|
309
|
+
background: #f3f4f6;
|
|
310
|
+
border-color: #d1d5db;
|
|
311
|
+
color: #3b82f6;
|
|
312
|
+
}
|
|
313
|
+
.an-btn:hover svg {
|
|
314
|
+
stroke: #3b82f6;
|
|
315
|
+
}
|
|
316
|
+
.an-btn:focus-visible {
|
|
317
|
+
outline: 2px solid #3b82f6;
|
|
318
|
+
outline-offset: 1px;
|
|
319
|
+
}
|
|
320
|
+
.an-btn.active {
|
|
321
|
+
background: #dbeafe;
|
|
322
|
+
border-color: #3b82f6;
|
|
323
|
+
color: #2563eb;
|
|
324
|
+
}
|
|
325
|
+
.an-btn.active svg {
|
|
326
|
+
stroke: #2563eb;
|
|
327
|
+
}
|
|
328
|
+
.an-btn.an-btn-primary {
|
|
329
|
+
background: #3b82f6;
|
|
330
|
+
border-color: #3b82f6;
|
|
331
|
+
color: #fff;
|
|
332
|
+
}
|
|
333
|
+
.an-btn.an-btn-primary svg {
|
|
334
|
+
stroke: #fff;
|
|
335
|
+
}
|
|
336
|
+
.an-btn.an-btn-primary:hover {
|
|
337
|
+
background: #2563eb;
|
|
338
|
+
border-color: #2563eb;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.an-editable {
|
|
342
|
+
position: relative;
|
|
343
|
+
flex: 1;
|
|
344
|
+
padding: 12px 14px;
|
|
345
|
+
min-height: 0;
|
|
346
|
+
outline: none;
|
|
347
|
+
line-height: 1.6;
|
|
348
|
+
color: #111827;
|
|
349
|
+
overflow-y: auto;
|
|
350
|
+
word-break: break-word;
|
|
351
|
+
}
|
|
352
|
+
.an-editable.an-placeholder:not(:focus)::before {
|
|
353
|
+
content: attr(data-placeholder);
|
|
354
|
+
color: #6b7280;
|
|
355
|
+
pointer-events: none;
|
|
356
|
+
position: absolute;
|
|
357
|
+
top: 12px;
|
|
358
|
+
left: 14px;
|
|
359
|
+
right: 14px;
|
|
360
|
+
}
|
|
361
|
+
.an-editable p {
|
|
362
|
+
margin: 0 0 0.75em;
|
|
363
|
+
}
|
|
364
|
+
.an-editable h1, .an-editable h2, .an-editable h3, .an-editable h4, .an-editable h5, .an-editable h6 {
|
|
365
|
+
margin: 0.5em 0;
|
|
366
|
+
line-height: 1.3;
|
|
367
|
+
}
|
|
368
|
+
.an-editable ul, .an-editable ol {
|
|
369
|
+
margin: 0 0 0.75em 1.5em;
|
|
370
|
+
padding: 0;
|
|
371
|
+
}
|
|
372
|
+
.an-editable li {
|
|
373
|
+
margin-bottom: 0.25em;
|
|
374
|
+
}
|
|
375
|
+
.an-editable blockquote {
|
|
376
|
+
margin: 0.5em 0 0.5em 1em;
|
|
377
|
+
padding: 0.5em 1em;
|
|
378
|
+
border-left: 4px solid #d1d5db;
|
|
379
|
+
color: #6b7280;
|
|
380
|
+
}
|
|
381
|
+
.an-editable pre, .an-editable code {
|
|
382
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
383
|
+
font-size: 0.9em;
|
|
384
|
+
background: #f9fafb;
|
|
385
|
+
border-radius: 4px;
|
|
386
|
+
}
|
|
387
|
+
.an-editable pre {
|
|
388
|
+
padding: 0.75em 1em;
|
|
389
|
+
overflow-x: auto;
|
|
390
|
+
}
|
|
391
|
+
.an-editable code {
|
|
392
|
+
padding: 0.1em 0.3em;
|
|
393
|
+
}
|
|
394
|
+
.an-editable pre[class*=language-] {
|
|
395
|
+
background: #2d2d2d;
|
|
396
|
+
color: #ccc;
|
|
397
|
+
border-radius: 4px;
|
|
398
|
+
}
|
|
399
|
+
.an-editable pre[class*=language-] > code[class*=language-] {
|
|
400
|
+
background: transparent;
|
|
401
|
+
color: inherit;
|
|
402
|
+
padding: 0;
|
|
403
|
+
}
|
|
404
|
+
.an-editable a {
|
|
405
|
+
color: #3b82f6;
|
|
406
|
+
}
|
|
407
|
+
.an-editable hr {
|
|
408
|
+
border: none;
|
|
409
|
+
border-top: 2px solid #d1d5db;
|
|
410
|
+
margin: 1em 0;
|
|
411
|
+
}
|
|
412
|
+
.an-editable img.an-image {
|
|
413
|
+
max-width: 100%;
|
|
414
|
+
height: auto;
|
|
415
|
+
display: inline-block;
|
|
416
|
+
}
|
|
417
|
+
.an-editable .an-video-wrapper {
|
|
418
|
+
position: relative;
|
|
419
|
+
display: block;
|
|
420
|
+
max-width: 100%;
|
|
421
|
+
margin: 4px 0;
|
|
422
|
+
}
|
|
423
|
+
.an-editable .an-video-wrapper iframe,
|
|
424
|
+
.an-editable .an-video-wrapper video {
|
|
425
|
+
display: block;
|
|
426
|
+
max-width: 100%;
|
|
427
|
+
}
|
|
428
|
+
.an-editable .an-video-wrapper .an-video-shield {
|
|
429
|
+
position: absolute;
|
|
430
|
+
inset: 0;
|
|
431
|
+
z-index: 2;
|
|
432
|
+
cursor: default;
|
|
433
|
+
pointer-events: all;
|
|
434
|
+
}
|
|
435
|
+
.an-video-wrapper .an-video-shield {
|
|
436
|
+
position: absolute;
|
|
437
|
+
inset: 0;
|
|
438
|
+
z-index: 2;
|
|
439
|
+
cursor: default;
|
|
440
|
+
pointer-events: all;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.an-editable table, .an-editable .an-table {
|
|
444
|
+
border-collapse: collapse;
|
|
445
|
+
table-layout: fixed;
|
|
446
|
+
width: 100%;
|
|
447
|
+
margin: 0.75em 0;
|
|
448
|
+
}
|
|
449
|
+
.an-editable table td, .an-editable table th, .an-editable .an-table td, .an-editable .an-table th {
|
|
450
|
+
border: 1px solid #d1d5db;
|
|
451
|
+
padding: 6px 10px;
|
|
452
|
+
min-width: 40px;
|
|
453
|
+
vertical-align: top;
|
|
454
|
+
overflow-wrap: break-word;
|
|
455
|
+
word-break: break-word;
|
|
456
|
+
}
|
|
457
|
+
.an-editable table th, .an-editable .an-table th {
|
|
458
|
+
background: #f9fafb;
|
|
459
|
+
font-weight: 600;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.an-link-tooltip {
|
|
463
|
+
position: fixed;
|
|
464
|
+
z-index: 1300;
|
|
465
|
+
display: flex;
|
|
466
|
+
align-items: center;
|
|
467
|
+
gap: 2px;
|
|
468
|
+
height: 30px;
|
|
469
|
+
padding: 0 6px;
|
|
470
|
+
background: #ffffff;
|
|
471
|
+
border: 1px solid #d1d5db;
|
|
472
|
+
border-radius: 4px;
|
|
473
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
|
|
474
|
+
white-space: nowrap;
|
|
475
|
+
pointer-events: all;
|
|
476
|
+
}
|
|
477
|
+
.an-link-tooltip .an-link-tooltip-url {
|
|
478
|
+
max-width: 200px;
|
|
479
|
+
overflow: hidden;
|
|
480
|
+
text-overflow: ellipsis;
|
|
481
|
+
white-space: nowrap;
|
|
482
|
+
font-size: 12px;
|
|
483
|
+
color: #3b82f6;
|
|
484
|
+
cursor: default;
|
|
485
|
+
padding: 0 4px;
|
|
486
|
+
}
|
|
487
|
+
.an-link-tooltip .an-link-tooltip-sep {
|
|
488
|
+
width: 1px;
|
|
489
|
+
height: 18px;
|
|
490
|
+
background: #d1d5db;
|
|
491
|
+
flex-shrink: 0;
|
|
492
|
+
margin: 0 2px;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.an-link-tooltip-btn {
|
|
496
|
+
display: flex;
|
|
497
|
+
align-items: center;
|
|
498
|
+
justify-content: center;
|
|
499
|
+
width: 24px;
|
|
500
|
+
height: 24px;
|
|
501
|
+
padding: 0;
|
|
502
|
+
border: none;
|
|
503
|
+
border-radius: 4px;
|
|
504
|
+
background: transparent;
|
|
505
|
+
color: #6b7280;
|
|
506
|
+
cursor: pointer;
|
|
507
|
+
flex-shrink: 0;
|
|
508
|
+
}
|
|
509
|
+
.an-link-tooltip-btn svg {
|
|
510
|
+
stroke: currentColor;
|
|
511
|
+
display: block;
|
|
512
|
+
}
|
|
513
|
+
.an-link-tooltip-btn:hover {
|
|
514
|
+
background: #f3f4f6;
|
|
515
|
+
color: #111827;
|
|
516
|
+
}
|
|
517
|
+
.an-link-tooltip-btn:active, .an-link-tooltip-btn.an-link-tooltip-btn--copied {
|
|
518
|
+
background: #dbeafe;
|
|
519
|
+
color: #3b82f6;
|
|
520
|
+
}
|
|
521
|
+
.an-link-tooltip-btn.an-link-tooltip-btn--danger {
|
|
522
|
+
color: #ef4444;
|
|
523
|
+
}
|
|
524
|
+
.an-link-tooltip-btn.an-link-tooltip-btn--danger svg {
|
|
525
|
+
stroke: #ef4444;
|
|
526
|
+
}
|
|
527
|
+
.an-link-tooltip-btn.an-link-tooltip-btn--danger:hover {
|
|
528
|
+
background: rgba(239, 68, 68, 0.08);
|
|
529
|
+
color: #dc2626;
|
|
530
|
+
}
|
|
531
|
+
.an-link-tooltip-btn.an-link-tooltip-btn--danger:hover svg {
|
|
532
|
+
stroke: #dc2626;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.an-image-tooltip .an-link-tooltip-url {
|
|
536
|
+
color: #111827;
|
|
537
|
+
font-weight: 500;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.an-video-tooltip .an-link-tooltip-url {
|
|
541
|
+
color: #7c3aed;
|
|
542
|
+
font-weight: 500;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.an-table-tooltip .an-link-tooltip-url {
|
|
546
|
+
color: #0369a1;
|
|
547
|
+
font-weight: 500;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.an-code-tooltip .an-link-tooltip-url {
|
|
551
|
+
color: #059669;
|
|
552
|
+
font-weight: 500;
|
|
553
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
554
|
+
font-size: 11px;
|
|
555
|
+
letter-spacing: 0.02em;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.an-size-popover {
|
|
559
|
+
position: fixed;
|
|
560
|
+
background: #ffffff;
|
|
561
|
+
border: 1px solid #d1d5db;
|
|
562
|
+
border-radius: 8px;
|
|
563
|
+
padding: 12px 14px;
|
|
564
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
565
|
+
z-index: 1200;
|
|
566
|
+
min-width: 200px;
|
|
567
|
+
}
|
|
568
|
+
.an-size-popover .an-size-popover-title {
|
|
569
|
+
font-size: 12px;
|
|
570
|
+
font-weight: 600;
|
|
571
|
+
color: #111827;
|
|
572
|
+
margin-bottom: 10px;
|
|
573
|
+
}
|
|
574
|
+
.an-size-popover .an-size-popover-body {
|
|
575
|
+
display: flex;
|
|
576
|
+
align-items: center;
|
|
577
|
+
gap: 6px;
|
|
578
|
+
margin-bottom: 12px;
|
|
579
|
+
}
|
|
580
|
+
.an-size-popover .an-size-input {
|
|
581
|
+
width: 80px;
|
|
582
|
+
height: 28px;
|
|
583
|
+
padding: 0 8px;
|
|
584
|
+
border: 1px solid #d1d5db;
|
|
585
|
+
border-radius: 4px;
|
|
586
|
+
font-size: 13px;
|
|
587
|
+
font-family: inherit;
|
|
588
|
+
color: #111827;
|
|
589
|
+
outline: none;
|
|
590
|
+
}
|
|
591
|
+
.an-size-popover .an-size-input:focus {
|
|
592
|
+
border-color: #3b82f6;
|
|
593
|
+
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
|
|
594
|
+
}
|
|
595
|
+
.an-size-popover .an-size-unit {
|
|
596
|
+
font-size: 12px;
|
|
597
|
+
color: #6b7280;
|
|
598
|
+
}
|
|
599
|
+
.an-size-popover .an-size-popover-actions {
|
|
600
|
+
display: flex;
|
|
601
|
+
justify-content: flex-end;
|
|
602
|
+
gap: 6px;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.an-codeview {
|
|
606
|
+
flex: 1;
|
|
607
|
+
width: 100%;
|
|
608
|
+
min-height: 200px;
|
|
609
|
+
padding: 12px 14px;
|
|
610
|
+
border: none;
|
|
611
|
+
outline: none;
|
|
612
|
+
resize: vertical;
|
|
613
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
614
|
+
font-size: 13px;
|
|
615
|
+
line-height: 1.5;
|
|
616
|
+
background: #1e1e2e;
|
|
617
|
+
color: #cdd6f4;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.an-statusbar {
|
|
621
|
+
display: flex;
|
|
622
|
+
align-items: center;
|
|
623
|
+
justify-content: space-between;
|
|
624
|
+
flex-shrink: 0;
|
|
625
|
+
height: 24px;
|
|
626
|
+
padding: 0 8px;
|
|
627
|
+
background: #f9fafb;
|
|
628
|
+
border-top: 1px solid #d1d5db;
|
|
629
|
+
font-size: 11px;
|
|
630
|
+
color: #6b7280;
|
|
631
|
+
user-select: none;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.an-status-info {
|
|
635
|
+
display: flex;
|
|
636
|
+
gap: 12px;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.an-resize-handle {
|
|
640
|
+
width: 14px;
|
|
641
|
+
height: 14px;
|
|
642
|
+
cursor: ns-resize;
|
|
643
|
+
background: repeating-linear-gradient(-45deg, #d1d5db, #d1d5db 1px, transparent 1px, transparent 3px);
|
|
644
|
+
border-radius: 2px;
|
|
645
|
+
flex-shrink: 0;
|
|
646
|
+
}
|
|
647
|
+
.an-resize-handle:hover {
|
|
648
|
+
opacity: 0.7;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.an-dialog-overlay {
|
|
652
|
+
display: none;
|
|
653
|
+
position: fixed;
|
|
654
|
+
inset: 0;
|
|
655
|
+
z-index: 9999;
|
|
656
|
+
background: rgba(0, 0, 0, 0.45);
|
|
657
|
+
align-items: center;
|
|
658
|
+
justify-content: center;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.an-dialog-box {
|
|
662
|
+
background: #ffffff;
|
|
663
|
+
border-radius: 8px;
|
|
664
|
+
padding: 24px;
|
|
665
|
+
width: min(420px, 95vw);
|
|
666
|
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
|
667
|
+
display: flex;
|
|
668
|
+
flex-direction: column;
|
|
669
|
+
gap: 10px;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.an-dialog-title {
|
|
673
|
+
margin: 0 0 4px;
|
|
674
|
+
font-size: 16px;
|
|
675
|
+
font-weight: 600;
|
|
676
|
+
color: #111827;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
.an-dialog-actions {
|
|
680
|
+
display: flex;
|
|
681
|
+
gap: 8px;
|
|
682
|
+
justify-content: flex-end;
|
|
683
|
+
margin-top: 6px;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.an-dialog-hint {
|
|
687
|
+
margin: -4px 0 0;
|
|
688
|
+
font-size: 12px;
|
|
689
|
+
color: #6b7280;
|
|
690
|
+
min-height: 16px;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.an-align-row {
|
|
694
|
+
display: flex;
|
|
695
|
+
flex-wrap: wrap;
|
|
696
|
+
gap: 12px;
|
|
697
|
+
margin-bottom: 10px;
|
|
698
|
+
}
|
|
699
|
+
.an-align-row input[type=radio] {
|
|
700
|
+
accent-color: #3b82f6;
|
|
701
|
+
cursor: pointer;
|
|
702
|
+
}
|
|
703
|
+
.an-align-row .an-align-label {
|
|
704
|
+
font-size: 13px;
|
|
705
|
+
cursor: pointer;
|
|
706
|
+
user-select: none;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.an-label {
|
|
710
|
+
display: block;
|
|
711
|
+
font-size: 13px;
|
|
712
|
+
font-weight: 500;
|
|
713
|
+
color: #111827;
|
|
714
|
+
margin-bottom: 2px;
|
|
715
|
+
}
|
|
716
|
+
.an-label.an-label-inline {
|
|
717
|
+
display: flex;
|
|
718
|
+
align-items: center;
|
|
719
|
+
gap: 6px;
|
|
720
|
+
font-weight: normal;
|
|
721
|
+
cursor: pointer;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
.an-input {
|
|
725
|
+
width: 100%;
|
|
726
|
+
padding: 7px 10px;
|
|
727
|
+
border: 1px solid #d1d5db;
|
|
728
|
+
border-radius: 4px;
|
|
729
|
+
font-family: inherit;
|
|
730
|
+
font-size: 14px;
|
|
731
|
+
color: #111827;
|
|
732
|
+
background: #ffffff;
|
|
733
|
+
outline: none;
|
|
734
|
+
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
735
|
+
}
|
|
736
|
+
.an-input:focus {
|
|
737
|
+
border-color: #3b82f6;
|
|
738
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.an-contextmenu {
|
|
742
|
+
position: fixed;
|
|
743
|
+
z-index: 10050;
|
|
744
|
+
background: #ffffff;
|
|
745
|
+
border: 1px solid #d1d5db;
|
|
746
|
+
border-radius: 8px;
|
|
747
|
+
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
|
|
748
|
+
min-width: 180px;
|
|
749
|
+
padding: 5px 4px;
|
|
750
|
+
display: none;
|
|
751
|
+
user-select: none;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
.an-context-item {
|
|
755
|
+
display: flex;
|
|
756
|
+
align-items: center;
|
|
757
|
+
gap: 10px;
|
|
758
|
+
width: 100%;
|
|
759
|
+
text-align: left;
|
|
760
|
+
padding: 7px 14px;
|
|
761
|
+
background: transparent;
|
|
762
|
+
border: none;
|
|
763
|
+
border-radius: 5px;
|
|
764
|
+
font-size: 13px;
|
|
765
|
+
color: #111827;
|
|
766
|
+
cursor: pointer;
|
|
767
|
+
transition: background 0.12s, color 0.12s;
|
|
768
|
+
line-height: 1.4;
|
|
769
|
+
}
|
|
770
|
+
.an-context-item:hover {
|
|
771
|
+
background: #3b82f6;
|
|
772
|
+
color: #fff;
|
|
773
|
+
}
|
|
774
|
+
.an-context-item:hover .an-context-icon svg {
|
|
775
|
+
stroke: #fff;
|
|
776
|
+
}
|
|
777
|
+
.an-context-item:hover .an-context-chevron svg {
|
|
778
|
+
stroke: #fff;
|
|
779
|
+
}
|
|
780
|
+
.an-context-item:disabled {
|
|
781
|
+
opacity: 0.38;
|
|
782
|
+
cursor: default;
|
|
783
|
+
pointer-events: none;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.an-context-submenu .an-context-chevron {
|
|
787
|
+
display: flex;
|
|
788
|
+
align-items: center;
|
|
789
|
+
margin-left: auto;
|
|
790
|
+
color: #6b7280;
|
|
791
|
+
flex-shrink: 0;
|
|
792
|
+
}
|
|
793
|
+
.an-context-submenu .an-context-chevron svg {
|
|
794
|
+
display: block;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.an-context-back {
|
|
798
|
+
display: flex;
|
|
799
|
+
align-items: center;
|
|
800
|
+
gap: 8px;
|
|
801
|
+
width: 100%;
|
|
802
|
+
text-align: left;
|
|
803
|
+
padding: 6px 14px 8px;
|
|
804
|
+
background: transparent;
|
|
805
|
+
border: none;
|
|
806
|
+
border-bottom: 1px solid #d1d5db;
|
|
807
|
+
border-radius: 5px 5px 0 0;
|
|
808
|
+
font-size: 12px;
|
|
809
|
+
font-weight: 600;
|
|
810
|
+
color: #6b7280;
|
|
811
|
+
cursor: pointer;
|
|
812
|
+
margin-bottom: 3px;
|
|
813
|
+
transition: background 0.12s, color 0.12s;
|
|
814
|
+
}
|
|
815
|
+
.an-context-back .an-context-icon svg {
|
|
816
|
+
stroke: #6b7280;
|
|
817
|
+
}
|
|
818
|
+
.an-context-back:hover {
|
|
819
|
+
background: #f3f4f6;
|
|
820
|
+
color: #111827;
|
|
821
|
+
}
|
|
822
|
+
.an-context-back:hover .an-context-icon svg {
|
|
823
|
+
stroke: #111827;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.an-context-icon {
|
|
827
|
+
display: flex;
|
|
828
|
+
align-items: center;
|
|
829
|
+
justify-content: center;
|
|
830
|
+
flex-shrink: 0;
|
|
831
|
+
width: 16px;
|
|
832
|
+
color: #6b7280;
|
|
833
|
+
transition: color 0.12s;
|
|
834
|
+
}
|
|
835
|
+
.an-context-icon svg {
|
|
836
|
+
display: block;
|
|
837
|
+
stroke: currentColor;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.an-context-label {
|
|
841
|
+
flex: 1;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.an-context-sep {
|
|
845
|
+
height: 1px;
|
|
846
|
+
margin: 5px 10px;
|
|
847
|
+
background: #d1d5db;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
.an-context-icon--color {
|
|
851
|
+
flex-direction: column;
|
|
852
|
+
gap: 2px;
|
|
853
|
+
width: 16px;
|
|
854
|
+
align-items: center;
|
|
855
|
+
}
|
|
856
|
+
.an-context-icon--color .an-context-icon-svg {
|
|
857
|
+
display: flex;
|
|
858
|
+
align-items: center;
|
|
859
|
+
justify-content: center;
|
|
860
|
+
line-height: 0;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.an-context-color-strip {
|
|
864
|
+
display: block;
|
|
865
|
+
width: 100%;
|
|
866
|
+
height: 3px;
|
|
867
|
+
border-radius: 1px;
|
|
868
|
+
flex-shrink: 0;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.an-context-color-palette {
|
|
872
|
+
display: flex;
|
|
873
|
+
flex-wrap: wrap;
|
|
874
|
+
gap: 3px;
|
|
875
|
+
padding: 6px 12px 2px;
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
.an-context-color-swatch {
|
|
879
|
+
width: 15px;
|
|
880
|
+
height: 15px;
|
|
881
|
+
border-radius: 3px;
|
|
882
|
+
border: 1px solid rgba(0, 0, 0, 0.12);
|
|
883
|
+
cursor: pointer;
|
|
884
|
+
flex-shrink: 0;
|
|
885
|
+
position: relative;
|
|
886
|
+
transition: transform 0.1s;
|
|
887
|
+
}
|
|
888
|
+
.an-context-color-swatch:hover {
|
|
889
|
+
transform: scale(1.28);
|
|
890
|
+
z-index: 1;
|
|
891
|
+
border-color: rgba(0, 0, 0, 0.4);
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.an-context-color-none {
|
|
895
|
+
display: flex;
|
|
896
|
+
align-items: center;
|
|
897
|
+
justify-content: center;
|
|
898
|
+
background: #fff !important;
|
|
899
|
+
color: #999;
|
|
900
|
+
}
|
|
901
|
+
.an-context-color-none svg {
|
|
902
|
+
display: block;
|
|
903
|
+
}
|
|
904
|
+
.an-context-color-none:hover {
|
|
905
|
+
color: #333;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.an-context-color-custom {
|
|
909
|
+
display: flex;
|
|
910
|
+
align-items: center;
|
|
911
|
+
gap: 8px;
|
|
912
|
+
padding: 4px 12px 8px;
|
|
913
|
+
font-size: 12px;
|
|
914
|
+
color: #6b7280;
|
|
915
|
+
cursor: pointer;
|
|
916
|
+
}
|
|
917
|
+
.an-context-color-custom input[type=color] {
|
|
918
|
+
width: 18px;
|
|
919
|
+
height: 18px;
|
|
920
|
+
padding: 0;
|
|
921
|
+
border: 1px solid #d1d5db;
|
|
922
|
+
border-radius: 3px;
|
|
923
|
+
cursor: pointer;
|
|
924
|
+
background: transparent;
|
|
925
|
+
-webkit-appearance: none;
|
|
926
|
+
appearance: none;
|
|
927
|
+
}
|
|
928
|
+
.an-context-color-custom span {
|
|
929
|
+
flex: 1;
|
|
930
|
+
}
|
|
931
|
+
.an-context-color-custom:hover span {
|
|
932
|
+
color: #111827;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
.an-image-resizer {
|
|
936
|
+
position: absolute;
|
|
937
|
+
z-index: 10000;
|
|
938
|
+
box-sizing: border-box;
|
|
939
|
+
border: 2px solid #3b82f6;
|
|
940
|
+
pointer-events: none;
|
|
941
|
+
}
|
|
942
|
+
.an-image-resizer .an-resize-handle {
|
|
943
|
+
position: absolute;
|
|
944
|
+
width: 8px;
|
|
945
|
+
height: 8px;
|
|
946
|
+
background: #3b82f6;
|
|
947
|
+
border: 1px solid #fff;
|
|
948
|
+
border-radius: 1px;
|
|
949
|
+
box-sizing: border-box;
|
|
950
|
+
pointer-events: all;
|
|
951
|
+
}
|
|
952
|
+
.an-image-resizer .an-resize-nw {
|
|
953
|
+
top: -4px;
|
|
954
|
+
left: -4px;
|
|
955
|
+
cursor: nw-resize;
|
|
956
|
+
}
|
|
957
|
+
.an-image-resizer .an-resize-ne {
|
|
958
|
+
top: -4px;
|
|
959
|
+
right: -4px;
|
|
960
|
+
cursor: ne-resize;
|
|
961
|
+
}
|
|
962
|
+
.an-image-resizer .an-resize-se {
|
|
963
|
+
bottom: -4px;
|
|
964
|
+
right: -4px;
|
|
965
|
+
cursor: se-resize;
|
|
966
|
+
}
|
|
967
|
+
.an-image-resizer .an-resize-sw {
|
|
968
|
+
bottom: -4px;
|
|
969
|
+
left: -4px;
|
|
970
|
+
cursor: sw-resize;
|
|
971
|
+
}
|
|
972
|
+
.an-image-resizer .an-resize-n {
|
|
973
|
+
top: -4px;
|
|
974
|
+
left: calc(50% - 4px);
|
|
975
|
+
cursor: n-resize;
|
|
976
|
+
}
|
|
977
|
+
.an-image-resizer .an-resize-e {
|
|
978
|
+
top: calc(50% - 4px);
|
|
979
|
+
right: -4px;
|
|
980
|
+
cursor: e-resize;
|
|
981
|
+
}
|
|
982
|
+
.an-image-resizer .an-resize-s {
|
|
983
|
+
bottom: -4px;
|
|
984
|
+
left: calc(50% - 4px);
|
|
985
|
+
cursor: s-resize;
|
|
986
|
+
}
|
|
987
|
+
.an-image-resizer .an-resize-w {
|
|
988
|
+
top: calc(50% - 4px);
|
|
989
|
+
left: -4px;
|
|
990
|
+
cursor: w-resize;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
.an-crop-scrim {
|
|
994
|
+
transition: clip-path 0s;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
.an-crop-box {
|
|
998
|
+
outline: none !important;
|
|
999
|
+
box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
.an-crop-handle:hover, .an-crop-handle:active {
|
|
1003
|
+
background: #74affa !important;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
.an-crop-toolbar {
|
|
1007
|
+
animation: an-crop-toolbar-in 0.12s ease;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
@keyframes an-crop-toolbar-in {
|
|
1011
|
+
from {
|
|
1012
|
+
opacity: 0;
|
|
1013
|
+
transform: translateY(4px);
|
|
1014
|
+
}
|
|
1015
|
+
to {
|
|
1016
|
+
opacity: 1;
|
|
1017
|
+
transform: translateY(0);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
@media print {
|
|
1021
|
+
.an-crop-scrim,
|
|
1022
|
+
.an-crop-box,
|
|
1023
|
+
.an-crop-toolbar {
|
|
1024
|
+
display: none !important;
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
.an-video-resizer {
|
|
1028
|
+
position: absolute;
|
|
1029
|
+
z-index: 10000;
|
|
1030
|
+
box-sizing: border-box;
|
|
1031
|
+
border: 2px solid #8b5cf6;
|
|
1032
|
+
pointer-events: none;
|
|
1033
|
+
}
|
|
1034
|
+
.an-video-resizer .an-resize-handle {
|
|
1035
|
+
position: absolute;
|
|
1036
|
+
width: 8px;
|
|
1037
|
+
height: 8px;
|
|
1038
|
+
background: #8b5cf6;
|
|
1039
|
+
border: 1px solid #fff;
|
|
1040
|
+
border-radius: 1px;
|
|
1041
|
+
box-sizing: border-box;
|
|
1042
|
+
pointer-events: all;
|
|
1043
|
+
}
|
|
1044
|
+
.an-video-resizer .an-resize-nw {
|
|
1045
|
+
top: -4px;
|
|
1046
|
+
left: -4px;
|
|
1047
|
+
cursor: nw-resize;
|
|
1048
|
+
}
|
|
1049
|
+
.an-video-resizer .an-resize-ne {
|
|
1050
|
+
top: -4px;
|
|
1051
|
+
right: -4px;
|
|
1052
|
+
cursor: ne-resize;
|
|
1053
|
+
}
|
|
1054
|
+
.an-video-resizer .an-resize-se {
|
|
1055
|
+
bottom: -4px;
|
|
1056
|
+
right: -4px;
|
|
1057
|
+
cursor: se-resize;
|
|
1058
|
+
}
|
|
1059
|
+
.an-video-resizer .an-resize-sw {
|
|
1060
|
+
bottom: -4px;
|
|
1061
|
+
left: -4px;
|
|
1062
|
+
cursor: sw-resize;
|
|
1063
|
+
}
|
|
1064
|
+
.an-video-resizer .an-resize-n {
|
|
1065
|
+
top: -4px;
|
|
1066
|
+
left: calc(50% - 4px);
|
|
1067
|
+
cursor: n-resize;
|
|
1068
|
+
}
|
|
1069
|
+
.an-video-resizer .an-resize-e {
|
|
1070
|
+
top: calc(50% - 4px);
|
|
1071
|
+
right: -4px;
|
|
1072
|
+
cursor: e-resize;
|
|
1073
|
+
}
|
|
1074
|
+
.an-video-resizer .an-resize-s {
|
|
1075
|
+
bottom: -4px;
|
|
1076
|
+
left: calc(50% - 4px);
|
|
1077
|
+
cursor: s-resize;
|
|
1078
|
+
}
|
|
1079
|
+
.an-video-resizer .an-resize-w {
|
|
1080
|
+
top: calc(50% - 4px);
|
|
1081
|
+
left: -4px;
|
|
1082
|
+
cursor: w-resize;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
.an-icon-box {
|
|
1086
|
+
width: min(596px, 95vw);
|
|
1087
|
+
gap: 0;
|
|
1088
|
+
padding: 20px;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
.an-icon-title-row {
|
|
1092
|
+
display: flex;
|
|
1093
|
+
align-items: center;
|
|
1094
|
+
justify-content: space-between;
|
|
1095
|
+
margin-bottom: 14px;
|
|
1096
|
+
}
|
|
1097
|
+
.an-icon-title-row .an-dialog-title {
|
|
1098
|
+
margin: 0;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
.an-icon-close {
|
|
1102
|
+
display: flex;
|
|
1103
|
+
align-items: center;
|
|
1104
|
+
justify-content: center;
|
|
1105
|
+
width: 26px;
|
|
1106
|
+
height: 26px;
|
|
1107
|
+
padding: 0;
|
|
1108
|
+
font-size: 18px;
|
|
1109
|
+
line-height: 1;
|
|
1110
|
+
background: none;
|
|
1111
|
+
border: none;
|
|
1112
|
+
border-radius: 4px;
|
|
1113
|
+
cursor: pointer;
|
|
1114
|
+
color: #6b7280;
|
|
1115
|
+
flex-shrink: 0;
|
|
1116
|
+
}
|
|
1117
|
+
.an-icon-close:hover {
|
|
1118
|
+
background: #f3f4f6;
|
|
1119
|
+
color: #111827;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.an-icon-search {
|
|
1123
|
+
width: 100%;
|
|
1124
|
+
margin-bottom: 10px;
|
|
1125
|
+
box-sizing: border-box;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.an-icon-cats {
|
|
1129
|
+
display: flex;
|
|
1130
|
+
flex-wrap: wrap;
|
|
1131
|
+
gap: 4px;
|
|
1132
|
+
margin-bottom: 10px;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.an-icon-cat {
|
|
1136
|
+
height: 26px;
|
|
1137
|
+
padding: 0 10px;
|
|
1138
|
+
font-size: 12px;
|
|
1139
|
+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
1140
|
+
background: none;
|
|
1141
|
+
border: 1px solid #d1d5db;
|
|
1142
|
+
border-radius: 13px;
|
|
1143
|
+
cursor: pointer;
|
|
1144
|
+
color: #6b7280;
|
|
1145
|
+
white-space: nowrap;
|
|
1146
|
+
transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
|
|
1147
|
+
}
|
|
1148
|
+
.an-icon-cat:hover {
|
|
1149
|
+
background: #f3f4f6;
|
|
1150
|
+
color: #111827;
|
|
1151
|
+
}
|
|
1152
|
+
.an-icon-cat.active {
|
|
1153
|
+
background: #3b82f6;
|
|
1154
|
+
border-color: #3b82f6;
|
|
1155
|
+
color: #fff;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.an-icon-grid {
|
|
1159
|
+
display: grid;
|
|
1160
|
+
grid-template-columns: repeat(auto-fill, 56px);
|
|
1161
|
+
gap: 3px;
|
|
1162
|
+
height: 256px;
|
|
1163
|
+
overflow-y: auto;
|
|
1164
|
+
margin-bottom: 10px;
|
|
1165
|
+
padding: 4px;
|
|
1166
|
+
border: 1px solid #d1d5db;
|
|
1167
|
+
border-radius: 6px;
|
|
1168
|
+
background: #ffffff;
|
|
1169
|
+
scrollbar-width: thin;
|
|
1170
|
+
scrollbar-color: #d1d5db transparent;
|
|
1171
|
+
}
|
|
1172
|
+
.an-icon-grid::-webkit-scrollbar {
|
|
1173
|
+
width: 6px;
|
|
1174
|
+
}
|
|
1175
|
+
.an-icon-grid::-webkit-scrollbar-track {
|
|
1176
|
+
background: transparent;
|
|
1177
|
+
}
|
|
1178
|
+
.an-icon-grid::-webkit-scrollbar-thumb {
|
|
1179
|
+
background: #d1d5db;
|
|
1180
|
+
border-radius: 3px;
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.an-icon-cell {
|
|
1184
|
+
display: flex;
|
|
1185
|
+
flex-direction: column;
|
|
1186
|
+
align-items: center;
|
|
1187
|
+
justify-content: center;
|
|
1188
|
+
gap: 3px;
|
|
1189
|
+
width: 56px;
|
|
1190
|
+
height: 52px;
|
|
1191
|
+
padding: 0;
|
|
1192
|
+
border: 1px solid transparent;
|
|
1193
|
+
border-radius: 4px;
|
|
1194
|
+
background: none;
|
|
1195
|
+
cursor: pointer;
|
|
1196
|
+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
|
1197
|
+
font-size: 10px;
|
|
1198
|
+
color: #6b7280;
|
|
1199
|
+
transition: background 0.15s ease, border-color 0.15s ease;
|
|
1200
|
+
overflow: hidden;
|
|
1201
|
+
box-sizing: border-box;
|
|
1202
|
+
}
|
|
1203
|
+
.an-icon-cell i {
|
|
1204
|
+
font-size: 17px;
|
|
1205
|
+
color: #111827;
|
|
1206
|
+
line-height: 1;
|
|
1207
|
+
pointer-events: none;
|
|
1208
|
+
}
|
|
1209
|
+
.an-icon-cell span {
|
|
1210
|
+
overflow: hidden;
|
|
1211
|
+
text-overflow: ellipsis;
|
|
1212
|
+
white-space: nowrap;
|
|
1213
|
+
max-width: 52px;
|
|
1214
|
+
pointer-events: none;
|
|
1215
|
+
}
|
|
1216
|
+
.an-icon-cell:hover {
|
|
1217
|
+
background: #f3f4f6;
|
|
1218
|
+
border-color: #d1d5db;
|
|
1219
|
+
}
|
|
1220
|
+
.an-icon-cell.active {
|
|
1221
|
+
background: rgba(59, 130, 246, 0.1);
|
|
1222
|
+
border-color: #3b82f6;
|
|
1223
|
+
color: #3b82f6;
|
|
1224
|
+
}
|
|
1225
|
+
.an-icon-cell.active i {
|
|
1226
|
+
color: #3b82f6;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
.an-icon-empty {
|
|
1230
|
+
grid-column: 1/-1;
|
|
1231
|
+
padding: 24px 0;
|
|
1232
|
+
text-align: center;
|
|
1233
|
+
color: #6b7280;
|
|
1234
|
+
font-size: 13px;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
.an-icon-options {
|
|
1238
|
+
display: flex;
|
|
1239
|
+
align-items: center;
|
|
1240
|
+
flex-wrap: wrap;
|
|
1241
|
+
gap: 6px 10px;
|
|
1242
|
+
margin-bottom: 10px;
|
|
1243
|
+
}
|
|
1244
|
+
.an-icon-options .an-label {
|
|
1245
|
+
margin: 0;
|
|
1246
|
+
font-size: 12px;
|
|
1247
|
+
white-space: nowrap;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
.an-icon-option-select {
|
|
1251
|
+
height: 30px;
|
|
1252
|
+
padding: 0 6px;
|
|
1253
|
+
font-size: 12px;
|
|
1254
|
+
width: auto;
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
.an-icon-color {
|
|
1258
|
+
width: 32px;
|
|
1259
|
+
height: 30px;
|
|
1260
|
+
padding: 2px;
|
|
1261
|
+
border: 1px solid #d1d5db;
|
|
1262
|
+
border-radius: 4px;
|
|
1263
|
+
cursor: pointer;
|
|
1264
|
+
background: none;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
.an-icon-use-color {
|
|
1268
|
+
display: flex;
|
|
1269
|
+
align-items: center;
|
|
1270
|
+
gap: 4px;
|
|
1271
|
+
font-size: 12px;
|
|
1272
|
+
margin: 0;
|
|
1273
|
+
cursor: pointer;
|
|
1274
|
+
}
|
|
1275
|
+
.an-icon-use-color input[type=checkbox] {
|
|
1276
|
+
cursor: pointer;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
.an-icon-preview {
|
|
1280
|
+
display: flex;
|
|
1281
|
+
flex-direction: column;
|
|
1282
|
+
align-items: center;
|
|
1283
|
+
justify-content: center;
|
|
1284
|
+
gap: 6px;
|
|
1285
|
+
min-height: 72px;
|
|
1286
|
+
margin-bottom: 14px;
|
|
1287
|
+
padding: 10px 12px;
|
|
1288
|
+
border: 1px solid #d1d5db;
|
|
1289
|
+
border-radius: 6px;
|
|
1290
|
+
background: #f9fafb;
|
|
1291
|
+
}
|
|
1292
|
+
.an-icon-preview i {
|
|
1293
|
+
line-height: 1;
|
|
1294
|
+
}
|
|
1295
|
+
.an-icon-preview .an-icon-preview-hint {
|
|
1296
|
+
font-size: 12px;
|
|
1297
|
+
color: #6b7280;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.an-icon-preview-name {
|
|
1301
|
+
font-size: 12px;
|
|
1302
|
+
color: #6b7280;
|
|
1303
|
+
font-family: monospace;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
.an-emoji-box {
|
|
1307
|
+
width: min(520px, 95vw);
|
|
1308
|
+
gap: 0;
|
|
1309
|
+
padding: 20px;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.an-emoji-grid {
|
|
1313
|
+
display: grid;
|
|
1314
|
+
grid-template-columns: repeat(auto-fill, 42px);
|
|
1315
|
+
gap: 2px;
|
|
1316
|
+
height: 288px;
|
|
1317
|
+
overflow-y: auto;
|
|
1318
|
+
margin-bottom: 10px;
|
|
1319
|
+
padding: 4px;
|
|
1320
|
+
border: 1px solid #d1d5db;
|
|
1321
|
+
border-radius: 6px;
|
|
1322
|
+
scrollbar-width: thin;
|
|
1323
|
+
scrollbar-color: #d1d5db transparent;
|
|
1324
|
+
}
|
|
1325
|
+
.an-emoji-grid::-webkit-scrollbar {
|
|
1326
|
+
width: 6px;
|
|
1327
|
+
}
|
|
1328
|
+
.an-emoji-grid::-webkit-scrollbar-track {
|
|
1329
|
+
background: transparent;
|
|
1330
|
+
}
|
|
1331
|
+
.an-emoji-grid::-webkit-scrollbar-thumb {
|
|
1332
|
+
background: #d1d5db;
|
|
1333
|
+
border-radius: 3px;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
.an-emoji-cell {
|
|
1337
|
+
width: 42px;
|
|
1338
|
+
height: 42px;
|
|
1339
|
+
padding: 0;
|
|
1340
|
+
display: flex;
|
|
1341
|
+
align-items: center;
|
|
1342
|
+
justify-content: center;
|
|
1343
|
+
font-size: 22px;
|
|
1344
|
+
line-height: 1;
|
|
1345
|
+
border: 1px solid transparent;
|
|
1346
|
+
border-radius: 4px;
|
|
1347
|
+
background: none;
|
|
1348
|
+
cursor: pointer;
|
|
1349
|
+
transition: background 0.15s ease, border-color 0.15s ease;
|
|
1350
|
+
}
|
|
1351
|
+
.an-emoji-cell:hover {
|
|
1352
|
+
background: #f3f4f6;
|
|
1353
|
+
border-color: #d1d5db;
|
|
1354
|
+
}
|
|
1355
|
+
.an-emoji-cell:active {
|
|
1356
|
+
background: #dbeafe;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
.an-sticky-toolbar {
|
|
1360
|
+
overflow: visible;
|
|
1361
|
+
}
|
|
1362
|
+
.an-sticky-toolbar .an-toolbar {
|
|
1363
|
+
position: sticky;
|
|
1364
|
+
top: var(--an-sticky-top, 0px);
|
|
1365
|
+
z-index: 100;
|
|
1366
|
+
border-radius: 6px 6px 0 0;
|
|
1367
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
.an-editable figure.an-figure {
|
|
1371
|
+
display: inline-block;
|
|
1372
|
+
max-width: 100%;
|
|
1373
|
+
margin: 0.75em 0;
|
|
1374
|
+
text-align: center;
|
|
1375
|
+
}
|
|
1376
|
+
.an-editable figure.an-figure img {
|
|
1377
|
+
display: block;
|
|
1378
|
+
max-width: 100%;
|
|
1379
|
+
margin: 0 auto;
|
|
1380
|
+
}
|
|
1381
|
+
.an-editable figcaption.an-figcaption {
|
|
1382
|
+
font-size: 0.85em;
|
|
1383
|
+
font-style: italic;
|
|
1384
|
+
color: #6b7280;
|
|
1385
|
+
padding: 4px 0 2px;
|
|
1386
|
+
text-align: center;
|
|
1387
|
+
line-height: 1.4;
|
|
1388
|
+
min-width: 60px;
|
|
1389
|
+
outline: none;
|
|
1390
|
+
}
|
|
1391
|
+
.an-editable figcaption.an-figcaption:focus {
|
|
1392
|
+
background: rgba(59, 130, 246, 0.06);
|
|
1393
|
+
border-radius: 2px;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
.an-shortcuts-box {
|
|
1397
|
+
width: min(480px, 95vw);
|
|
1398
|
+
max-height: 80vh;
|
|
1399
|
+
overflow-y: auto;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
.an-shortcuts-cat {
|
|
1403
|
+
font-size: 11px;
|
|
1404
|
+
font-weight: 600;
|
|
1405
|
+
text-transform: uppercase;
|
|
1406
|
+
letter-spacing: 0.06em;
|
|
1407
|
+
color: #6b7280;
|
|
1408
|
+
padding: 8px 0 4px;
|
|
1409
|
+
border-bottom: 1px solid #d1d5db;
|
|
1410
|
+
margin-bottom: 2px;
|
|
1411
|
+
}
|
|
1412
|
+
.an-shortcuts-cat + .an-shortcuts-table + .an-shortcuts-cat {
|
|
1413
|
+
margin-top: 10px;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
.an-shortcuts-table {
|
|
1417
|
+
display: flex;
|
|
1418
|
+
flex-direction: column;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
.an-shortcuts-row {
|
|
1422
|
+
display: flex;
|
|
1423
|
+
align-items: center;
|
|
1424
|
+
justify-content: space-between;
|
|
1425
|
+
padding: 5px 4px;
|
|
1426
|
+
border-radius: 4px;
|
|
1427
|
+
}
|
|
1428
|
+
.an-shortcuts-row:hover {
|
|
1429
|
+
background: #f3f4f6;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
.an-shortcuts-key {
|
|
1433
|
+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
|
|
1434
|
+
font-size: 12px;
|
|
1435
|
+
color: #111827;
|
|
1436
|
+
background: #f9fafb;
|
|
1437
|
+
border: 1px solid #d1d5db;
|
|
1438
|
+
border-bottom-width: 2px;
|
|
1439
|
+
border-radius: 4px;
|
|
1440
|
+
padding: 2px 8px;
|
|
1441
|
+
white-space: nowrap;
|
|
1442
|
+
flex-shrink: 0;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
.an-shortcuts-action {
|
|
1446
|
+
font-size: 13px;
|
|
1447
|
+
color: #111827;
|
|
1448
|
+
flex: 1;
|
|
1449
|
+
padding-left: 14px;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
.an-code-lang-select {
|
|
1453
|
+
height: 22px;
|
|
1454
|
+
padding: 0 20px 0 6px;
|
|
1455
|
+
border: 1px solid #d1d5db;
|
|
1456
|
+
border-radius: 4px;
|
|
1457
|
+
font-family: inherit;
|
|
1458
|
+
font-size: 11px;
|
|
1459
|
+
color: #111827;
|
|
1460
|
+
background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E") no-repeat right 5px center;
|
|
1461
|
+
background-size: 6px 4px;
|
|
1462
|
+
appearance: none;
|
|
1463
|
+
-webkit-appearance: none;
|
|
1464
|
+
cursor: pointer;
|
|
1465
|
+
}
|
|
1466
|
+
.an-code-lang-select:focus {
|
|
1467
|
+
outline: none;
|
|
1468
|
+
border-color: #3b82f6;
|
|
1469
|
+
}
|
|
1470
|
+
.an-code-lang-select:hover {
|
|
1471
|
+
border-color: #3b82f6;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
.an-theme-dark {
|
|
1475
|
+
border-color: #3f3f5f;
|
|
1476
|
+
background: #1e1e2e;
|
|
1477
|
+
color: #cdd6f4;
|
|
1478
|
+
}
|
|
1479
|
+
.an-theme-dark.an-focused {
|
|
1480
|
+
border-color: #89b4fa;
|
|
1481
|
+
box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.2);
|
|
1482
|
+
}
|
|
1483
|
+
.an-theme-dark .an-toolbar {
|
|
1484
|
+
background: #181825;
|
|
1485
|
+
border-color: #3f3f5f;
|
|
1486
|
+
}
|
|
1487
|
+
.an-theme-dark .an-btn {
|
|
1488
|
+
color: #cdd6f4;
|
|
1489
|
+
}
|
|
1490
|
+
.an-theme-dark .an-btn:hover {
|
|
1491
|
+
background: #2a2a3e;
|
|
1492
|
+
border-color: #3f3f5f;
|
|
1493
|
+
color: #cdd6f4;
|
|
1494
|
+
}
|
|
1495
|
+
.an-theme-dark .an-btn:hover svg {
|
|
1496
|
+
stroke: #cdd6f4;
|
|
1497
|
+
}
|
|
1498
|
+
.an-theme-dark .an-btn.active {
|
|
1499
|
+
background: #1a3a5c;
|
|
1500
|
+
border-color: #89b4fa;
|
|
1501
|
+
color: #89b4fa;
|
|
1502
|
+
}
|
|
1503
|
+
.an-theme-dark .an-btn.active svg {
|
|
1504
|
+
stroke: #89b4fa;
|
|
1505
|
+
}
|
|
1506
|
+
.an-theme-dark .an-btn.an-btn-primary {
|
|
1507
|
+
background: #3b5bdb;
|
|
1508
|
+
border-color: #3b5bdb;
|
|
1509
|
+
color: #fff;
|
|
1510
|
+
}
|
|
1511
|
+
.an-theme-dark .an-select {
|
|
1512
|
+
background-color: #1e1e2e;
|
|
1513
|
+
border-color: #3f3f5f;
|
|
1514
|
+
color: #cdd6f4;
|
|
1515
|
+
}
|
|
1516
|
+
.an-theme-dark .an-select:hover, .an-theme-dark .an-select:focus {
|
|
1517
|
+
border-color: #89b4fa;
|
|
1518
|
+
}
|
|
1519
|
+
.an-theme-dark .an-editable {
|
|
1520
|
+
background: #1e1e2e;
|
|
1521
|
+
color: #cdd6f4;
|
|
1522
|
+
}
|
|
1523
|
+
.an-theme-dark .an-editable a {
|
|
1524
|
+
color: #89b4fa;
|
|
1525
|
+
}
|
|
1526
|
+
.an-theme-dark .an-editable blockquote {
|
|
1527
|
+
border-color: #3f3f5f;
|
|
1528
|
+
color: #a6adc8;
|
|
1529
|
+
}
|
|
1530
|
+
.an-theme-dark .an-editable pre:not([class*=language-]),
|
|
1531
|
+
.an-theme-dark .an-editable code:not([class*=language-]) {
|
|
1532
|
+
background: #313244;
|
|
1533
|
+
color: #cdd6f4;
|
|
1534
|
+
}
|
|
1535
|
+
.an-theme-dark .an-editable hr {
|
|
1536
|
+
border-color: #3f3f5f;
|
|
1537
|
+
}
|
|
1538
|
+
.an-theme-dark .an-editable table td, .an-theme-dark .an-editable table th, .an-theme-dark .an-editable .an-table td, .an-theme-dark .an-editable .an-table th {
|
|
1539
|
+
border-color: #3f3f5f;
|
|
1540
|
+
}
|
|
1541
|
+
.an-theme-dark .an-editable table th, .an-theme-dark .an-editable .an-table th {
|
|
1542
|
+
background: #313244;
|
|
1543
|
+
}
|
|
1544
|
+
.an-theme-dark .an-editable.an-placeholder::before {
|
|
1545
|
+
color: #6c7086;
|
|
1546
|
+
}
|
|
1547
|
+
.an-theme-dark .an-editable figcaption.an-figcaption {
|
|
1548
|
+
color: #6c7086;
|
|
1549
|
+
}
|
|
1550
|
+
.an-theme-dark .an-statusbar {
|
|
1551
|
+
background: #181825;
|
|
1552
|
+
border-color: #3f3f5f;
|
|
1553
|
+
color: #6c7086;
|
|
1554
|
+
}
|
|
1555
|
+
.an-theme-dark .an-link-tooltip,
|
|
1556
|
+
.an-theme-dark .an-contextmenu {
|
|
1557
|
+
background: #24273a;
|
|
1558
|
+
border-color: #3f3f5f;
|
|
1559
|
+
color: #cdd6f4;
|
|
1560
|
+
}
|
|
1561
|
+
.an-theme-dark .an-link-tooltip-url {
|
|
1562
|
+
color: #89b4fa;
|
|
1563
|
+
}
|
|
1564
|
+
.an-theme-dark .an-link-tooltip-btn {
|
|
1565
|
+
color: #a6adc8;
|
|
1566
|
+
}
|
|
1567
|
+
.an-theme-dark .an-link-tooltip-btn:hover {
|
|
1568
|
+
background: #2a2a3e;
|
|
1569
|
+
color: #cdd6f4;
|
|
1570
|
+
}
|
|
1571
|
+
.an-theme-dark .an-dialog-overlay {
|
|
1572
|
+
background: rgba(0, 0, 0, 0.65);
|
|
1573
|
+
}
|
|
1574
|
+
.an-theme-dark .an-dialog-box {
|
|
1575
|
+
background: #24273a;
|
|
1576
|
+
color: #cdd6f4;
|
|
1577
|
+
border: 1px solid #3f3f5f;
|
|
1578
|
+
}
|
|
1579
|
+
.an-theme-dark .an-dialog-title {
|
|
1580
|
+
color: #cdd6f4;
|
|
1581
|
+
}
|
|
1582
|
+
.an-theme-dark .an-label {
|
|
1583
|
+
color: #cdd6f4;
|
|
1584
|
+
}
|
|
1585
|
+
.an-theme-dark .an-input {
|
|
1586
|
+
background: #313244;
|
|
1587
|
+
border-color: #3f3f5f;
|
|
1588
|
+
color: #cdd6f4;
|
|
1589
|
+
}
|
|
1590
|
+
.an-theme-dark .an-input:focus {
|
|
1591
|
+
border-color: #89b4fa;
|
|
1592
|
+
box-shadow: 0 0 0 3px rgba(137, 180, 250, 0.15);
|
|
1593
|
+
}
|
|
1594
|
+
.an-theme-dark .an-shortcuts-key {
|
|
1595
|
+
background: #313244;
|
|
1596
|
+
border-color: #3f3f5f;
|
|
1597
|
+
color: #cdd6f4;
|
|
1598
|
+
}
|
|
1599
|
+
.an-theme-dark .an-shortcuts-action {
|
|
1600
|
+
color: #cdd6f4;
|
|
1601
|
+
}
|
|
1602
|
+
.an-theme-dark .an-shortcuts-row:hover {
|
|
1603
|
+
background: #2a2a3e;
|
|
1604
|
+
}
|
|
1605
|
+
.an-theme-dark .an-shortcuts-cat {
|
|
1606
|
+
border-color: #3f3f5f;
|
|
1607
|
+
color: #a6adc8;
|
|
1608
|
+
}
|
|
1609
|
+
.an-theme-dark .an-code-lang-select {
|
|
1610
|
+
background-color: #24273a;
|
|
1611
|
+
border-color: #3f3f5f;
|
|
1612
|
+
color: #cdd6f4;
|
|
1613
|
+
}
|
|
1614
|
+
.an-theme-dark .an-color-popup,
|
|
1615
|
+
.an-theme-dark .an-table-picker-popup,
|
|
1616
|
+
.an-theme-dark .an-size-popover {
|
|
1617
|
+
background: #24273a;
|
|
1618
|
+
border-color: #3f3f5f;
|
|
1619
|
+
color: #cdd6f4;
|
|
1620
|
+
}
|
|
1621
|
+
.an-theme-dark .an-table-cell {
|
|
1622
|
+
background: #24273a;
|
|
1623
|
+
border-color: #3f3f5f;
|
|
1624
|
+
}
|
|
1625
|
+
.an-theme-dark .an-table-cell.active {
|
|
1626
|
+
background: rgba(99, 102, 241, 0.3);
|
|
1627
|
+
border-color: #6366f1;
|
|
1628
|
+
}
|
|
1629
|
+
.an-theme-dark .an-context-item {
|
|
1630
|
+
color: #cdd6f4;
|
|
1631
|
+
}
|
|
1632
|
+
.an-theme-dark .an-context-sep {
|
|
1633
|
+
background: #3f3f5f;
|
|
1634
|
+
}
|
|
1635
|
+
.an-theme-dark .an-context-color-swatch {
|
|
1636
|
+
border-color: rgba(255, 255, 255, 0.15);
|
|
1637
|
+
}
|
|
1638
|
+
.an-theme-dark .an-context-color-swatch:hover {
|
|
1639
|
+
border-color: rgba(255, 255, 255, 0.5);
|
|
1640
|
+
}
|
|
1641
|
+
.an-theme-dark .an-context-color-none {
|
|
1642
|
+
background: #1e1e2e !important;
|
|
1643
|
+
color: #888;
|
|
1644
|
+
}
|
|
1645
|
+
.an-theme-dark .an-context-color-none:hover {
|
|
1646
|
+
color: #ccc;
|
|
1647
|
+
}
|
|
1648
|
+
.an-theme-dark .an-context-color-custom input[type=color] {
|
|
1649
|
+
border-color: #3f3f5f;
|
|
1650
|
+
}
|
|
1651
|
+
.an-theme-dark .an-icon-cat {
|
|
1652
|
+
border-color: #3f3f5f;
|
|
1653
|
+
color: #a6adc8;
|
|
1654
|
+
}
|
|
1655
|
+
.an-theme-dark .an-icon-cat.active {
|
|
1656
|
+
background: #3b5bdb;
|
|
1657
|
+
border-color: #3b5bdb;
|
|
1658
|
+
color: #fff;
|
|
1659
|
+
}
|
|
1660
|
+
.an-theme-dark .an-icon-search {
|
|
1661
|
+
border-color: #3f3f5f;
|
|
1662
|
+
background: #313244;
|
|
1663
|
+
color: #cdd6f4;
|
|
1664
|
+
}
|
|
1665
|
+
.an-theme-dark .an-icon-cell {
|
|
1666
|
+
color: #cdd6f4;
|
|
1667
|
+
}
|
|
1668
|
+
.an-theme-dark .an-icon-cell:hover {
|
|
1669
|
+
background: #2a2a3e;
|
|
1670
|
+
}
|
|
1671
|
+
.an-theme-dark .an-icon-close {
|
|
1672
|
+
color: #a6adc8;
|
|
1673
|
+
}
|
|
1674
|
+
.an-theme-dark .an-icon-close:hover {
|
|
1675
|
+
background: #2a2a3e;
|
|
1676
|
+
color: #cdd6f4;
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
.an-toolbar-overflow-scroll .an-toolbar {
|
|
1680
|
+
flex-wrap: nowrap;
|
|
1681
|
+
overflow-x: auto;
|
|
1682
|
+
scrollbar-width: thin;
|
|
1683
|
+
}
|
|
1684
|
+
.an-toolbar-overflow-scroll .an-toolbar::-webkit-scrollbar {
|
|
1685
|
+
height: 4px;
|
|
1686
|
+
}
|
|
1687
|
+
.an-toolbar-overflow-scroll .an-toolbar::-webkit-scrollbar-thumb {
|
|
1688
|
+
background: #d1d5db;
|
|
1689
|
+
border-radius: 2px;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
.an-dir-rtl .an-toolbar {
|
|
1693
|
+
direction: rtl;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
.an-editable[dir=rtl] {
|
|
1697
|
+
text-align: right;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
.an-count-warn {
|
|
1701
|
+
color: #f59e0b;
|
|
1702
|
+
font-weight: 600;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
.an-count-exceeded {
|
|
1706
|
+
color: #ef4444;
|
|
1707
|
+
font-weight: 700;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.an-editable ul.an-checklist {
|
|
1711
|
+
list-style: none;
|
|
1712
|
+
padding-left: 0;
|
|
1713
|
+
margin: 0.5em 0;
|
|
1714
|
+
}
|
|
1715
|
+
.an-editable ul.an-checklist li {
|
|
1716
|
+
position: relative;
|
|
1717
|
+
padding-left: 22px;
|
|
1718
|
+
padding-top: 1px;
|
|
1719
|
+
padding-bottom: 1px;
|
|
1720
|
+
min-height: 1.4em;
|
|
1721
|
+
line-height: inherit;
|
|
1722
|
+
font-size: inherit;
|
|
1723
|
+
font-family: inherit;
|
|
1724
|
+
}
|
|
1725
|
+
.an-editable ul.an-checklist li input[type=checkbox] {
|
|
1726
|
+
position: absolute;
|
|
1727
|
+
left: 0;
|
|
1728
|
+
top: 0.25em;
|
|
1729
|
+
width: 14px;
|
|
1730
|
+
height: 14px;
|
|
1731
|
+
margin: 0;
|
|
1732
|
+
cursor: pointer;
|
|
1733
|
+
accent-color: #3b82f6;
|
|
1734
|
+
}
|
|
1735
|
+
.an-editable ul.an-checklist li:has(input[type=checkbox]:checked) {
|
|
1736
|
+
color: #6b7280;
|
|
1737
|
+
text-decoration: line-through;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
.an-theme-dark .an-editable ul.an-checklist li:has(input[type=checkbox]:checked) {
|
|
1741
|
+
color: #6c7086;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
@media print {
|
|
1745
|
+
.an-container {
|
|
1746
|
+
border: none;
|
|
1747
|
+
box-shadow: none;
|
|
1748
|
+
contain: none;
|
|
1749
|
+
}
|
|
1750
|
+
.an-toolbar,
|
|
1751
|
+
.an-statusbar {
|
|
1752
|
+
display: none !important;
|
|
1753
|
+
}
|
|
1754
|
+
.an-editable {
|
|
1755
|
+
overflow: visible;
|
|
1756
|
+
height: auto !important;
|
|
1757
|
+
max-height: none !important;
|
|
1758
|
+
padding: 0;
|
|
1759
|
+
color: #000;
|
|
1760
|
+
background: #fff;
|
|
1761
|
+
}
|
|
1762
|
+
.an-video-wrapper .an-video-shield {
|
|
1763
|
+
display: none;
|
|
1764
|
+
}
|
|
1765
|
+
.an-image-resizer,
|
|
1766
|
+
.an-video-resizer {
|
|
1767
|
+
display: none !important;
|
|
1768
|
+
}
|
|
1769
|
+
}/*$vite$:1*/
|