@textbus/xnote 0.2.5 → 0.2.6

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/bundles/index.css CHANGED
@@ -1,4 +1,4 @@
1
- .btn[vf-7d288d]{align-items:center;background:none;border:none;border-radius:4px;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font-size:inherit;height:28px;outline:none;padding:6px 5px;transition:all .2s}.btn>span[vf-7d288d]{white-space:nowrap}.btn[vf-7d288d]:hover{background:rgba(0,0,0,.1)}.btn-arrow[vf-7d288d]{position:relative;transform:rotate(0);transform-origin:50%;width:1em}.btn.active[vf-7d288d]{background:rgba(0,0,0,.1)}.btn.active .btn-arrow[vf-7d288d]{transform:rotate(180deg)}.btn.highlight[vf-7d288d]{background-color:rgba(41,110,255,.063);color:#296eff}.btn[vf-7d288d]:disabled{color:inherit;cursor:not-allowed;opacity:.3}.xnote-color-picker[vf-d552b9]{background-color:#fff;box-sizing:content-box!important;display:inline-block;font-size:12px;overflow:hidden;position:relative;text-align:left;user-select:none;width:165px}.xnote-color-picker.xnote-color-picker-show-palette[vf-d552b9]{height:306px}.xnote-color-picker.xnote-color-picker-show-palette .xnote-color-picker-menu[vf-d552b9]{top:0}.xnote-color-picker-preset>div[vf-d552b9]:first-child{margin-bottom:5px}.xnote-color-picker-recent-text[vf-d552b9]{color:#80848f;padding:2px}.xnote-color-picker-flex[vf-d552b9]{align-items:center;display:flex;justify-content:space-between}.xnote-color-picker-to-palette[vf-d552b9]{align-items:center;background:none;border:0;color:#333;cursor:pointer;display:flex;outline:none;padding-right:0}.xnote-color-picker-to-palette svg[vf-d552b9]{width:1em}.xnote-color-picker-to-palette[vf-d552b9]:hover{color:#296eff}.xnote-color-picker-to-palette:hover svg[vf-d552b9]{fill:#296eff}.xnote-color-picker-back-btn[vf-d552b9]{background:none;border:0;color:#333;cursor:pointer;line-height:20px;outline:none;padding:0}.xnote-color-picker-back-btn-wrap[vf-d552b9]{height:2em}.xnote-color-picker-back-btn svg[vf-d552b9]{height:1em;margin-top:-2px;width:1em}.xnote-color-picker-back-btn[vf-d552b9]:hover{color:#296eff}.xnote-color-picker-menu[vf-d552b9]{background-color:#fff;left:0;position:absolute;top:100%;transition:top .2s cubic-bezier(.36,.66,.04,1)}.xnote-color-picker-viewer[vf-d552b9]{height:160px}.xnote-color-picker-viewer-left[vf-d552b9]{float:left}.xnote-color-picker-palette[vf-d552b9]{cursor:pointer;height:130px;position:relative;width:130px}.xnote-color-picker-palette[vf-d552b9]:before{background:linear-gradient(180deg,transparent,#000);bottom:0;content:"";left:0;position:absolute;right:0;top:0}.xnote-color-picker-palette-empty[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px}.xnote-color-picker-palette-empty[vf-d552b9]:before{display:none}.xnote-color-picker-palette-point[vf-d552b9]{background:#fff;border:none;border-radius:50%;box-shadow:1px 1px 3px rgba(0,0,0,.2);height:1em;pointer-events:none;position:absolute;width:1em}.xnote-color-picker-viewer-alpha[vf-d552b9]{background-color:#bbbec4;background-image:linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff),linear-gradient(45deg,#fff 26%,transparent 0,transparent 74%,#fff 0,#fff);background-position:-5px -5px,0 0;background-size:10px 10px;height:10px;margin-top:10px;position:relative}.xnote-color-picker-viewer-alpha-bar[vf-d552b9]{border-radius:inherit;cursor:pointer;height:100%;position:relative;z-index:1}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]{height:100%;left:0;position:absolute;right:0;top:0}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:after,.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:before{border-style:solid;border-width:7px 4px;contain:size style layout;content:"";height:0;left:-4px;position:absolute;width:0}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:before{border-color:#495060 transparent transparent;top:-6px}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:after{border-color:transparent transparent #495060;top:2px}.xnote-color-picker-viewer-right[vf-d552b9]{float:left;margin-left:10px;width:20px}.xnote-color-picker-tools[vf-d552b9]{margin-bottom:10px}.xnote-color-picker-viewer-alpha-value[vf-d552b9]{font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:13px;line-height:1;margin-left:-7px;text-align:center;width:34px}.xnote-color-picker-value[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px;height:20px;margin-bottom:10px;width:20px}.xnote-color-picker-value-color[vf-d552b9]{height:20px;width:20px}.xnote-color-picker-hue-bar[vf-d552b9]{background:linear-gradient(red,#f90,#ff0 16.6%,#0f0 33.3%,#0ff,#00f 66.6%,#f09,red);cursor:pointer;flex:1;height:100px;position:relative;width:20px}.xnote-color-picker-hue-pointer[vf-d552b9]{bottom:0;height:0;left:0;pointer-events:none;position:absolute;top:0}.xnote-color-picker-hue-pointer[vf-d552b9]:after,.xnote-color-picker-hue-pointer[vf-d552b9]:before{border-style:solid;border-width:4px 7px;contain:size style layout;content:"";height:0;position:absolute;top:0;width:0}.xnote-color-picker-hue-pointer[vf-d552b9]:before{border-color:transparent transparent transparent #495060;right:-8px}.xnote-color-picker-hue-pointer[vf-d552b9]:after{border-color:transparent #495060 transparent transparent;left:12px}.xnote-color-picker-inputs[vf-d552b9]{color:#80848f;line-height:22px}.xnote-color-picker-inputs>div[vf-d552b9]{display:flex;padding:4px 0}.xnote-color-picker-inputs>div>div[vf-d552b9]{display:flex;flex:1;padding:0 4px}.xnote-color-picker-inputs>div>div input[vf-d552b9]{-moz-appearance:textfield;border:1px solid #e9eaec;border-radius:3px;flex:1;font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:13px;height:22px;line-height:16px;margin-left:5px;outline:0;padding:3px 5px;text-align:center;width:100%}.xnote-color-picker-inputs>div>div input[vf-d552b9]:focus{border-color:#296eff;box-shadow:0 0 0 2px rgba(41,110,255,.5);z-index:1}.xnote-color-picker-inputs>div>div input[vf-d552b9]::-webkit-inner-spin-button,.xnote-color-picker-inputs>div>div input[vf-d552b9]::-webkit-outer-spin-button{-webkit-appearance:none}.xnote-color-picker-swatches[vf-d552b9]{font-size:0;padding-top:3px}.xnote-color-picker-swatches>div[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px;border-radius:3px;box-shadow:1px 1px 1px rgba(0,0,0,.1);box-sizing:border-box;cursor:pointer;display:inline-block;height:20px;margin-bottom:3px;margin-left:3px;transition:transform .1s;width:20px}.xnote-color-picker-swatches>div.xnote-color-picker-current[vf-d552b9]{border:1px solid rgba(0,0,0,.3);box-shadow:none}.xnote-color-picker-swatches>div[data-color=""][vf-d552b9]{background:#fff;border-left:1px solid #f8f8f9;border-top:1px solid #f8f8f9;box-sizing:border-box;overflow:hidden;position:relative}.xnote-color-picker-swatches>div[data-color=""][vf-d552b9]:after{background-color:#e74f5e;content:"";height:1px;left:0;position:absolute;right:0;top:50%;transform:rotate(-45deg) scaleX(1.5)}.xnote-color-picker-swatches>div[vf-d552b9]:hover{transform:scale(1.1)}.xnote-color-picker-btn-wrap[vf-d552b9]{padding-top:5px}.xnote-color-picker-btn[vf-d552b9]{background-color:#296eff;border:1px solid #296eff;border-radius:3px;color:#fff;cursor:pointer;display:block;font-size:13px;line-height:1.428;outline:none;padding:3px 6px;width:100%}.xnote-color-picker-btn[vf-d552b9]:hover{background-color:#0556ff;border-color:#0556ff}.xnote-color-picker-btn[vf-d552b9]:focus{background-color:#004ff5;border-color:#0556ff;box-shadow:0 0 0 2px rgba(41,110,255,.5);outline:none}.xnote-color-picker-btn[vf-d552b9]:active{background-color:#0047dc;border-color:#0556ff}.component-toolbar[vf-ac7e8d]{position:relative;z-index:3}.toolbar[vf-ac7e8d]{background:#fff;border:1px solid #dee0e3;border-radius:5px;bottom:10px;box-shadow:0 4px 8px rgba(0,0,0,.08);box-sizing:border-box;display:flex;font-size:14px;height:36px;opacity:0;padding:0 6px;pointer-events:none;position:absolute;text-align:left;transform:translateY(10px)}.toolbar.active[vf-ac7e8d]{opacity:1;pointer-events:auto;transform:translateY(0);transition-duration:.2s;transition-property:all;transition-timing-function:ease}.divider[vf-ede279]{border-top:1px solid #eee;margin:6px 0}.drag-resize[vf-d91ad6]{position:relative;width:100%}.drag-resize .container[vf-d91ad6]{font-size:0;text-indent:0}.drag-resize .resize-tool[vf-d91ad6]{align-items:center;border:1px dashed #296eff;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.drag-resize .resize-tool.active[vf-d91ad6]{display:flex}.drag-resize .mask[vf-d91ad6]{background-color:rgba(0,0,0,.8);border-radius:3px;color:#fff;font-size:14px;padding:3px 8px;pointer-events:none;position:relative;text-indent:0;text-shadow:1px 2px 3px rgba(0,0,0,.7);user-select:none;white-space:nowrap;z-index:10}.drag-resize .btn-group[vf-d91ad6]{height:100%;left:0;position:absolute;top:0;width:100%}.drag-resize button[vf-d91ad6]{background:#fff;border:2px solid #296eff;border-radius:50%;box-sizing:border-box;cursor:pointer;font-size:0;height:14px;outline:none;padding:0;pointer-events:auto;position:absolute;width:14px}.drag-resize button[vf-d91ad6]:hover{background-color:#fff;box-shadow:0 0 0 3px rgba(18,150,219,.3)}.drag-resize button[vf-d91ad6]:first-child,.drag-resize button[vf-d91ad6]:nth-child(2),.drag-resize button[vf-d91ad6]:nth-child(3){margin-top:-5px;top:0}.drag-resize button[vf-d91ad6]:nth-child(3),.drag-resize button[vf-d91ad6]:nth-child(4),.drag-resize button[vf-d91ad6]:nth-child(5){margin-right:-5px;right:0}.drag-resize button[vf-d91ad6]:nth-child(5),.drag-resize button[vf-d91ad6]:nth-child(6),.drag-resize button[vf-d91ad6]:nth-child(7){bottom:0;margin-bottom:-5px}.drag-resize button[vf-d91ad6]:first-child,.drag-resize button[vf-d91ad6]:nth-child(7),.drag-resize button[vf-d91ad6]:nth-child(8){left:0;margin-left:-5px}.drag-resize button[vf-d91ad6]:nth-child(2),.drag-resize button[vf-d91ad6]:nth-child(6){left:50%;margin-left:-5px}.drag-resize button[vf-d91ad6]:nth-child(4),.drag-resize button[vf-d91ad6]:nth-child(8){margin-top:-5px;top:50%}.drag-resize button[vf-d91ad6]:first-child{cursor:nw-resize}.drag-resize button[vf-d91ad6]:nth-child(2){cursor:n-resize}.drag-resize button[vf-d91ad6]:nth-child(3){cursor:ne-resize}.drag-resize button[vf-d91ad6]:nth-child(4){cursor:e-resize}.drag-resize button[vf-d91ad6]:nth-child(5){cursor:se-resize}.drag-resize button[vf-d91ad6]:nth-child(6){cursor:s-resize}.drag-resize button[vf-d91ad6]:nth-child(7){cursor:sw-resize}.drag-resize button[vf-d91ad6]:nth-child(8){cursor:w-resize}.dropdown[vf-cd482d]{display:inline-block;position:relative}.dropdown[vf-cd482d]:hover{z-index:1}.dropdown-btn[vf-cd482d]{display:flex;width:100%}.dropdown-btn-inner[vf-cd482d]{flex:1}.dropdown-btn-inner.has-arrow[vf-cd482d] .btn{border-bottom-right-radius:0;border-top-right-radius:0}.dropdown-btn-arrow[vf-cd482d] .btn{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:1px;padding-right:1px}.dropdown-menu[vf-8a05e9]{background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:2px 3px 5px rgba(0,0,0,.1);box-sizing:content-box;height:0;left:-10px;max-height:400px;opacity:0;overflow-y:auto;position:absolute;top:100%;transition-duration:0s;transition:transform .3s,opacity .3s;user-select:none;width:200px;z-index:10}.dropdown-menu[vf-8a05e9]:hover::-webkit-scrollbar-thumb{background-color:#80848f}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar-thumb{border:0;border-radius:4px;height:50px;outline:0;outline-offset:0}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar-thumb:hover{background-color:#495060;height:50px}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar{border-radius:3px;height:6px;width:6px}.dropdown-menu-content[vf-8a05e9]{box-sizing:content-box;padding:6px}.keymap[vf-c32a7b]{align-items:center;display:inline-flex;font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:.9em;margin-left:1em;opacity:.6}.keymap[vf-c32a7b] span{margin:0 2px}.menu-heading[vf-acaa5f]{font-size:14px;opacity:.5;padding:10px}.menu-item[vf-c3b9dc]{border-radius:4px;box-sizing:content-box;cursor:pointer;display:flex;font-size:14px;height:26px;justify-content:space-between;line-height:26px;padding:2px 10px;transition:background-color .2s}.menu-item-content[vf-c3b9dc]{display:flex;flex:1;justify-content:space-between}.menu-item.disabled[vf-c3b9dc]{cursor:not-allowed;opacity:.5}.menu-item[vf-c3b9dc]:hover{background:#eee}.menu-item.active[vf-c3b9dc]{background:rgba(0,0,0,.1)}.menu-icon[vf-c3b9dc]{display:inline-block;width:1.8em}.menu-check[vf-c3b9dc]{display:none}.menu-check.checked[vf-c3b9dc]{color:#296eff;display:block}.popup[vf-a23c47]{background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:2px 3px 5px rgba(0,0,0,.1);overflow:hidden;position:absolute}.toolbar-item[vf-cd4d99]{padding:3px 2px}.heading-icon[vf-2a8a65]{font-size:1.2em;font-weight:700}.heading-icon sub[vf-2a8a65]{font-weight:400}.xnote-source-code.atom-one-dark pre code.hljs{display:block;overflow-x:auto;padding:1em}.xnote-source-code.atom-one-dark code.hljs{padding:3px 5px}.xnote-source-code.atom-one-dark .hljs{background:#282c34;color:#abb2bf}.xnote-source-code.atom-one-dark .hljs-comment,.xnote-source-code.atom-one-dark .hljs-quote{color:#5c6370;font-style:italic}.xnote-source-code.atom-one-dark .hljs-doctag,.xnote-source-code.atom-one-dark .hljs-formula,.xnote-source-code.atom-one-dark .hljs-keyword{color:#c678dd}.xnote-source-code.atom-one-dark .hljs-deletion,.xnote-source-code.atom-one-dark .hljs-name,.xnote-source-code.atom-one-dark .hljs-section,.xnote-source-code.atom-one-dark .hljs-selector-tag,.xnote-source-code.atom-one-dark .hljs-subst{color:#e06c75}.xnote-source-code.atom-one-dark .hljs-literal{color:#56b6c2}.xnote-source-code.atom-one-dark .hljs-addition,.xnote-source-code.atom-one-dark .hljs-attribute,.xnote-source-code.atom-one-dark .hljs-meta .hljs-string,.xnote-source-code.atom-one-dark .hljs-regexp,.xnote-source-code.atom-one-dark .hljs-string{color:#98c379}.xnote-source-code.atom-one-dark .hljs-attr,.xnote-source-code.atom-one-dark .hljs-number,.xnote-source-code.atom-one-dark .hljs-selector-attr,.xnote-source-code.atom-one-dark .hljs-selector-class,.xnote-source-code.atom-one-dark .hljs-selector-pseudo,.xnote-source-code.atom-one-dark .hljs-template-variable,.xnote-source-code.atom-one-dark .hljs-type,.xnote-source-code.atom-one-dark .hljs-variable{color:#d19a66}.xnote-source-code.atom-one-dark .hljs-bullet,.xnote-source-code.atom-one-dark .hljs-link,.xnote-source-code.atom-one-dark .hljs-meta,.xnote-source-code.atom-one-dark .hljs-selector-id,.xnote-source-code.atom-one-dark .hljs-symbol,.xnote-source-code.atom-one-dark .hljs-title{color:#61aeee}.xnote-source-code.atom-one-dark .hljs-built_in,.xnote-source-code.atom-one-dark .hljs-class .hljs-title,.xnote-source-code.atom-one-dark .hljs-title.class_{color:#e6c07b}.xnote-source-code.atom-one-dark .hljs-emphasis{font-style:italic}.xnote-source-code.atom-one-dark .hljs-strong{font-weight:700}.xnote-source-code.atom-one-dark .hljs-link{text-decoration:underline}.xnote-source-code.foundation pre code.hljs{display:block;overflow-x:auto;padding:1em}.xnote-source-code.foundation code.hljs{padding:3px 5px}.xnote-source-code.foundation .hljs{background:#eee;color:#000}.xnote-source-code.foundation .hljs-addition,.xnote-source-code.foundation .hljs-attribute,.xnote-source-code.foundation .hljs-emphasis,.xnote-source-code.foundation .hljs-link{color:#070}.xnote-source-code.foundation .hljs-emphasis{font-style:italic}.xnote-source-code.foundation .hljs-deletion,.xnote-source-code.foundation .hljs-string,.xnote-source-code.foundation .hljs-strong{color:#d14}.xnote-source-code.foundation .hljs-strong{font-weight:700}.xnote-source-code.foundation .hljs-comment,.xnote-source-code.foundation .hljs-quote{color:#998;font-style:italic}.xnote-source-code.foundation .hljs-section,.xnote-source-code.foundation .hljs-title{color:#900}.xnote-source-code.foundation .hljs-class .hljs-title,.xnote-source-code.foundation .hljs-title.class_,.xnote-source-code.foundation .hljs-type{color:#458}.xnote-source-code.foundation .hljs-template-variable,.xnote-source-code.foundation .hljs-variable{color:#369}.xnote-source-code.foundation .hljs-bullet{color:#970}.xnote-source-code.foundation .hljs-meta{color:#34b}.xnote-source-code.foundation .hljs-code,.xnote-source-code.foundation .hljs-keyword,.xnote-source-code.foundation .hljs-literal,.xnote-source-code.foundation .hljs-number,.xnote-source-code.foundation .hljs-selector-tag{color:#099}.xnote-source-code.foundation .hljs-regexp{background-color:#fff0ff;color:#808}.xnote-source-code.foundation .hljs-symbol{color:#990073}.xnote-source-code.foundation .hljs-name,.xnote-source-code.foundation .hljs-selector-class,.xnote-source-code.foundation .hljs-selector-id,.xnote-source-code.foundation .hljs-tag{color:#070}.xnote-source-code.github{
1
+ .btn[vf-7d288d]{align-items:center;background:none;border:none;border-radius:4px;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font-size:inherit;height:28px;outline:none;padding:6px 5px;transition:all .2s}.btn>span[vf-7d288d]{white-space:nowrap}.btn[vf-7d288d]:hover{background:rgba(0,0,0,.1)}.btn-arrow[vf-7d288d]{position:relative;transform:rotate(0);transform-origin:50%;width:1em}.btn.active[vf-7d288d]{background:rgba(0,0,0,.1)}.btn.active .btn-arrow[vf-7d288d]{transform:rotate(180deg)}.btn.highlight[vf-7d288d]{background-color:rgba(41,110,255,.063);color:#296eff}.btn[vf-7d288d]:disabled{color:inherit;cursor:not-allowed;opacity:.3}.xnote-color-picker[vf-d552b9]{background-color:#fff;box-sizing:content-box!important;display:inline-block;font-size:12px;overflow:hidden;position:relative;text-align:left;user-select:none;width:165px}.xnote-color-picker.xnote-color-picker-show-palette[vf-d552b9]{height:306px}.xnote-color-picker.xnote-color-picker-show-palette .xnote-color-picker-menu[vf-d552b9]{top:0}.xnote-color-picker-preset>div[vf-d552b9]:first-child{margin-bottom:5px}.xnote-color-picker-recent-text[vf-d552b9]{color:#80848f;padding:2px}.xnote-color-picker-flex[vf-d552b9]{align-items:center;display:flex;justify-content:space-between}.xnote-color-picker-to-palette[vf-d552b9]{align-items:center;background:none;border:0;color:#333;cursor:pointer;display:flex;outline:none;padding-right:0}.xnote-color-picker-to-palette svg[vf-d552b9]{width:1em}.xnote-color-picker-to-palette[vf-d552b9]:hover{color:#296eff}.xnote-color-picker-to-palette:hover svg[vf-d552b9]{fill:#296eff}.xnote-color-picker-back-btn[vf-d552b9]{background:none;border:0;color:#333;cursor:pointer;line-height:20px;outline:none;padding:0}.xnote-color-picker-back-btn-wrap[vf-d552b9]{height:2em}.xnote-color-picker-back-btn svg[vf-d552b9]{height:1em;margin-top:-2px;width:1em}.xnote-color-picker-back-btn[vf-d552b9]:hover{color:#296eff}.xnote-color-picker-menu[vf-d552b9]{background-color:#fff;left:0;position:absolute;top:100%;transition:top .2s cubic-bezier(.36,.66,.04,1)}.xnote-color-picker-viewer[vf-d552b9]{height:160px}.xnote-color-picker-viewer-left[vf-d552b9]{float:left}.xnote-color-picker-palette[vf-d552b9]{cursor:pointer;height:130px;position:relative;width:130px}.xnote-color-picker-palette[vf-d552b9]:before{background:linear-gradient(180deg,transparent,#000);bottom:0;content:"";left:0;position:absolute;right:0;top:0}.xnote-color-picker-palette-empty[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px}.xnote-color-picker-palette-empty[vf-d552b9]:before{display:none}.xnote-color-picker-palette-point[vf-d552b9]{background:#fff;border:none;border-radius:50%;box-shadow:1px 1px 3px rgba(0,0,0,.2);height:1em;pointer-events:none;position:absolute;width:1em}.xnote-color-picker-viewer-alpha[vf-d552b9]{background-color:#bbbec4;background-image:linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff),linear-gradient(45deg,#fff 26%,transparent 0,transparent 74%,#fff 0,#fff);background-position:-5px -5px,0 0;background-size:10px 10px;height:10px;margin-top:10px;position:relative}.xnote-color-picker-viewer-alpha-bar[vf-d552b9]{border-radius:inherit;cursor:pointer;height:100%;position:relative;z-index:1}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]{height:100%;left:0;position:absolute;right:0;top:0}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:after,.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:before{border-style:solid;border-width:7px 4px;contain:size style layout;content:"";height:0;left:-4px;position:absolute;width:0}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:before{border-color:#495060 transparent transparent;top:-6px}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:after{border-color:transparent transparent #495060;top:2px}.xnote-color-picker-viewer-right[vf-d552b9]{float:left;margin-left:10px;width:20px}.xnote-color-picker-tools[vf-d552b9]{margin-bottom:10px}.xnote-color-picker-viewer-alpha-value[vf-d552b9]{font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:13px;line-height:1;margin-left:-7px;text-align:center;width:34px}.xnote-color-picker-value[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px;height:20px;margin-bottom:10px;width:20px}.xnote-color-picker-value-color[vf-d552b9]{height:20px;width:20px}.xnote-color-picker-hue-bar[vf-d552b9]{background:linear-gradient(red,#f90,#ff0 16.6%,#0f0 33.3%,#0ff,#00f 66.6%,#f09,red);cursor:pointer;flex:1;height:100px;position:relative;width:20px}.xnote-color-picker-hue-pointer[vf-d552b9]{bottom:0;height:0;left:0;pointer-events:none;position:absolute;top:0}.xnote-color-picker-hue-pointer[vf-d552b9]:after,.xnote-color-picker-hue-pointer[vf-d552b9]:before{border-style:solid;border-width:4px 7px;contain:size style layout;content:"";height:0;position:absolute;top:0;width:0}.xnote-color-picker-hue-pointer[vf-d552b9]:before{border-color:transparent transparent transparent #495060;right:-8px}.xnote-color-picker-hue-pointer[vf-d552b9]:after{border-color:transparent #495060 transparent transparent;left:12px}.xnote-color-picker-inputs[vf-d552b9]{color:#80848f;line-height:22px}.xnote-color-picker-inputs>div[vf-d552b9]{display:flex;padding:4px 0}.xnote-color-picker-inputs>div>div[vf-d552b9]{display:flex;flex:1;padding:0 4px}.xnote-color-picker-inputs>div>div input[vf-d552b9]{-moz-appearance:textfield;border:1px solid #e9eaec;border-radius:3px;flex:1;font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:13px;height:22px;line-height:16px;margin-left:5px;outline:0;padding:3px 5px;text-align:center;width:100%}.xnote-color-picker-inputs>div>div input[vf-d552b9]:focus{border-color:#296eff;box-shadow:0 0 0 2px rgba(41,110,255,.5);z-index:1}.xnote-color-picker-inputs>div>div input[vf-d552b9]::-webkit-inner-spin-button,.xnote-color-picker-inputs>div>div input[vf-d552b9]::-webkit-outer-spin-button{-webkit-appearance:none}.xnote-color-picker-swatches[vf-d552b9]{font-size:0;padding-top:3px}.xnote-color-picker-swatches>div[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px;border-radius:3px;box-shadow:1px 1px 1px rgba(0,0,0,.1);box-sizing:border-box;cursor:pointer;display:inline-block;height:20px;margin-bottom:3px;margin-left:3px;transition:transform .1s;width:20px}.xnote-color-picker-swatches>div.xnote-color-picker-current[vf-d552b9]{border:1px solid rgba(0,0,0,.3);box-shadow:none}.xnote-color-picker-swatches>div[data-color=""][vf-d552b9]{background:#fff;border-left:1px solid #f8f8f9;border-top:1px solid #f8f8f9;box-sizing:border-box;overflow:hidden;position:relative}.xnote-color-picker-swatches>div[data-color=""][vf-d552b9]:after{background-color:#e74f5e;content:"";height:1px;left:0;position:absolute;right:0;top:50%;transform:rotate(-45deg) scaleX(1.5)}.xnote-color-picker-swatches>div[vf-d552b9]:hover{transform:scale(1.1)}.xnote-color-picker-btn-wrap[vf-d552b9]{padding-top:5px}.xnote-color-picker-btn[vf-d552b9]{background-color:#296eff;border:1px solid #296eff;border-radius:3px;color:#fff;cursor:pointer;display:block;font-size:13px;line-height:1.428;outline:none;padding:3px 6px;width:100%}.xnote-color-picker-btn[vf-d552b9]:hover{background-color:#0556ff;border-color:#0556ff}.xnote-color-picker-btn[vf-d552b9]:focus{background-color:#004ff5;border-color:#0556ff;box-shadow:0 0 0 2px rgba(41,110,255,.5);outline:none}.xnote-color-picker-btn[vf-d552b9]:active{background-color:#0047dc;border-color:#0556ff}.component-toolbar[vf-ac7e8d]{position:relative;z-index:3}.toolbar[vf-ac7e8d]{background:#fff;border:1px solid #dee0e3;border-radius:5px;bottom:10px;box-shadow:0 4px 8px rgba(0,0,0,.08);box-sizing:border-box;display:flex;font-size:14px;height:36px;opacity:0;padding:0 6px;pointer-events:none;position:absolute;text-align:left;transform:translateY(10px)}.toolbar.active[vf-ac7e8d]{opacity:1;pointer-events:auto;transform:translateY(0);transition-duration:.2s;transition-property:all;transition-timing-function:ease}.divider[vf-ede279]{border-top:1px solid #eee;margin:6px 0}.drag-resize[vf-d91ad6]{position:relative;width:100%}.drag-resize .container[vf-d91ad6]{font-size:0;text-indent:0}.drag-resize .resize-tool[vf-d91ad6]{align-items:center;border:1px dashed #296eff;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.drag-resize .resize-tool.active[vf-d91ad6]{display:flex}.drag-resize .mask[vf-d91ad6]{background-color:rgba(0,0,0,.8);border-radius:3px;color:#fff;font-size:14px;padding:3px 8px;pointer-events:none;position:relative;text-indent:0;text-shadow:1px 2px 3px rgba(0,0,0,.7);user-select:none;white-space:nowrap;z-index:10}.drag-resize .btn-group[vf-d91ad6]{height:100%;left:0;position:absolute;top:0;width:100%}.drag-resize button[vf-d91ad6]{background:#fff;border:2px solid #296eff;border-radius:50%;box-sizing:border-box;cursor:pointer;font-size:0;height:14px;outline:none;padding:0;pointer-events:auto;position:absolute;width:14px}.drag-resize button[vf-d91ad6]:hover{background-color:#fff;box-shadow:0 0 0 3px rgba(18,150,219,.3)}.drag-resize button[vf-d91ad6]:first-child,.drag-resize button[vf-d91ad6]:nth-child(2),.drag-resize button[vf-d91ad6]:nth-child(3){margin-top:-5px;top:0}.drag-resize button[vf-d91ad6]:nth-child(3),.drag-resize button[vf-d91ad6]:nth-child(4),.drag-resize button[vf-d91ad6]:nth-child(5){margin-right:-5px;right:0}.drag-resize button[vf-d91ad6]:nth-child(5),.drag-resize button[vf-d91ad6]:nth-child(6),.drag-resize button[vf-d91ad6]:nth-child(7){bottom:0;margin-bottom:-5px}.drag-resize button[vf-d91ad6]:first-child,.drag-resize button[vf-d91ad6]:nth-child(7),.drag-resize button[vf-d91ad6]:nth-child(8){left:0;margin-left:-5px}.drag-resize button[vf-d91ad6]:nth-child(2),.drag-resize button[vf-d91ad6]:nth-child(6){left:50%;margin-left:-5px}.drag-resize button[vf-d91ad6]:nth-child(4),.drag-resize button[vf-d91ad6]:nth-child(8){margin-top:-5px;top:50%}.drag-resize button[vf-d91ad6]:first-child{cursor:nw-resize}.drag-resize button[vf-d91ad6]:nth-child(2){cursor:n-resize}.drag-resize button[vf-d91ad6]:nth-child(3){cursor:ne-resize}.drag-resize button[vf-d91ad6]:nth-child(4){cursor:e-resize}.drag-resize button[vf-d91ad6]:nth-child(5){cursor:se-resize}.drag-resize button[vf-d91ad6]:nth-child(6){cursor:s-resize}.drag-resize button[vf-d91ad6]:nth-child(7){cursor:sw-resize}.drag-resize button[vf-d91ad6]:nth-child(8){cursor:w-resize}.dropdown[vf-0fd06a]{display:inline-block;position:relative}.dropdown[vf-0fd06a]:hover{z-index:1}.dropdown-btn[vf-0fd06a]{display:flex;width:100%}.dropdown-btn-inner[vf-0fd06a]{flex:1}.dropdown-btn-inner.has-arrow[vf-0fd06a] .btn{border-bottom-right-radius:0;border-top-right-radius:0;padding-right:1px}.dropdown-btn-arrow[vf-0fd06a] .btn{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:1px;padding-right:1px}.dropdown-menu[vf-8a05e9]{background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:2px 3px 5px rgba(0,0,0,.1);box-sizing:content-box;height:0;left:-10px;max-height:400px;opacity:0;overflow-y:auto;position:absolute;top:100%;transition-duration:0s;transition:transform .3s,opacity .3s;user-select:none;width:200px;z-index:10}.dropdown-menu[vf-8a05e9]:hover::-webkit-scrollbar-thumb{background-color:#80848f}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar-thumb{border:0;border-radius:4px;height:50px;outline:0;outline-offset:0}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar-thumb:hover{background-color:#495060;height:50px}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar{border-radius:3px;height:6px;width:6px}.dropdown-menu-content[vf-8a05e9]{box-sizing:content-box;padding:6px}.keymap[vf-c32a7b]{align-items:center;display:inline-flex;font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:.9em;margin-left:1em;opacity:.6}.keymap[vf-c32a7b] span{margin:0 2px}.menu-heading[vf-acaa5f]{font-size:14px;opacity:.5;padding:10px}.menu-item[vf-c3b9dc]{border-radius:4px;box-sizing:content-box;cursor:pointer;display:flex;font-size:14px;height:26px;justify-content:space-between;line-height:26px;padding:2px 10px;transition:background-color .2s}.menu-item-content[vf-c3b9dc]{display:flex;flex:1;justify-content:space-between}.menu-item.disabled[vf-c3b9dc]{cursor:not-allowed;opacity:.5}.menu-item[vf-c3b9dc]:hover{background:#eee}.menu-item.active[vf-c3b9dc]{background:rgba(0,0,0,.1)}.menu-icon[vf-c3b9dc]{display:inline-block;width:1.8em}.menu-check[vf-c3b9dc]{display:none}.menu-check.checked[vf-c3b9dc]{color:#296eff;display:block}.popup[vf-a23c47]{background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:2px 3px 5px rgba(0,0,0,.1);overflow:hidden;position:absolute}.toolbar-item[vf-b7a2c8]{padding:3px 1px}.heading-icon[vf-2a8a65]{font-size:1.2em;font-weight:700}.heading-icon sub[vf-2a8a65]{font-weight:400}.xnote-source-code.atom-one-dark pre code.hljs{display:block;overflow-x:auto;padding:1em}.xnote-source-code.atom-one-dark code.hljs{padding:3px 5px}.xnote-source-code.atom-one-dark .hljs{background:#282c34;color:#abb2bf}.xnote-source-code.atom-one-dark .hljs-comment,.xnote-source-code.atom-one-dark .hljs-quote{color:#5c6370;font-style:italic}.xnote-source-code.atom-one-dark .hljs-doctag,.xnote-source-code.atom-one-dark .hljs-formula,.xnote-source-code.atom-one-dark .hljs-keyword{color:#c678dd}.xnote-source-code.atom-one-dark .hljs-deletion,.xnote-source-code.atom-one-dark .hljs-name,.xnote-source-code.atom-one-dark .hljs-section,.xnote-source-code.atom-one-dark .hljs-selector-tag,.xnote-source-code.atom-one-dark .hljs-subst{color:#e06c75}.xnote-source-code.atom-one-dark .hljs-literal{color:#56b6c2}.xnote-source-code.atom-one-dark .hljs-addition,.xnote-source-code.atom-one-dark .hljs-attribute,.xnote-source-code.atom-one-dark .hljs-meta .hljs-string,.xnote-source-code.atom-one-dark .hljs-regexp,.xnote-source-code.atom-one-dark .hljs-string{color:#98c379}.xnote-source-code.atom-one-dark .hljs-attr,.xnote-source-code.atom-one-dark .hljs-number,.xnote-source-code.atom-one-dark .hljs-selector-attr,.xnote-source-code.atom-one-dark .hljs-selector-class,.xnote-source-code.atom-one-dark .hljs-selector-pseudo,.xnote-source-code.atom-one-dark .hljs-template-variable,.xnote-source-code.atom-one-dark .hljs-type,.xnote-source-code.atom-one-dark .hljs-variable{color:#d19a66}.xnote-source-code.atom-one-dark .hljs-bullet,.xnote-source-code.atom-one-dark .hljs-link,.xnote-source-code.atom-one-dark .hljs-meta,.xnote-source-code.atom-one-dark .hljs-selector-id,.xnote-source-code.atom-one-dark .hljs-symbol,.xnote-source-code.atom-one-dark .hljs-title{color:#61aeee}.xnote-source-code.atom-one-dark .hljs-built_in,.xnote-source-code.atom-one-dark .hljs-class .hljs-title,.xnote-source-code.atom-one-dark .hljs-title.class_{color:#e6c07b}.xnote-source-code.atom-one-dark .hljs-emphasis{font-style:italic}.xnote-source-code.atom-one-dark .hljs-strong{font-weight:700}.xnote-source-code.atom-one-dark .hljs-link{text-decoration:underline}.xnote-source-code.foundation pre code.hljs{display:block;overflow-x:auto;padding:1em}.xnote-source-code.foundation code.hljs{padding:3px 5px}.xnote-source-code.foundation .hljs{background:#eee;color:#000}.xnote-source-code.foundation .hljs-addition,.xnote-source-code.foundation .hljs-attribute,.xnote-source-code.foundation .hljs-emphasis,.xnote-source-code.foundation .hljs-link{color:#070}.xnote-source-code.foundation .hljs-emphasis{font-style:italic}.xnote-source-code.foundation .hljs-deletion,.xnote-source-code.foundation .hljs-string,.xnote-source-code.foundation .hljs-strong{color:#d14}.xnote-source-code.foundation .hljs-strong{font-weight:700}.xnote-source-code.foundation .hljs-comment,.xnote-source-code.foundation .hljs-quote{color:#998;font-style:italic}.xnote-source-code.foundation .hljs-section,.xnote-source-code.foundation .hljs-title{color:#900}.xnote-source-code.foundation .hljs-class .hljs-title,.xnote-source-code.foundation .hljs-title.class_,.xnote-source-code.foundation .hljs-type{color:#458}.xnote-source-code.foundation .hljs-template-variable,.xnote-source-code.foundation .hljs-variable{color:#369}.xnote-source-code.foundation .hljs-bullet{color:#970}.xnote-source-code.foundation .hljs-meta{color:#34b}.xnote-source-code.foundation .hljs-code,.xnote-source-code.foundation .hljs-keyword,.xnote-source-code.foundation .hljs-literal,.xnote-source-code.foundation .hljs-number,.xnote-source-code.foundation .hljs-selector-tag{color:#099}.xnote-source-code.foundation .hljs-regexp{background-color:#fff0ff;color:#808}.xnote-source-code.foundation .hljs-symbol{color:#990073}.xnote-source-code.foundation .hljs-name,.xnote-source-code.foundation .hljs-selector-class,.xnote-source-code.foundation .hljs-selector-id,.xnote-source-code.foundation .hljs-tag{color:#070}.xnote-source-code.github{
2
2
  /*!
3
3
  Theme: GitHub
4
4
  Description: Light theme as seen on github.com
@@ -1,4 +1,4 @@
1
- .btn[vf-7d288d]{align-items:center;background:none;border:none;border-radius:4px;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font-size:inherit;height:28px;outline:none;padding:6px 5px;transition:all .2s}.btn>span[vf-7d288d]{white-space:nowrap}.btn[vf-7d288d]:hover{background:rgba(0,0,0,.1)}.btn-arrow[vf-7d288d]{position:relative;transform:rotate(0);transform-origin:50%;width:1em}.btn.active[vf-7d288d]{background:rgba(0,0,0,.1)}.btn.active .btn-arrow[vf-7d288d]{transform:rotate(180deg)}.btn.highlight[vf-7d288d]{background-color:rgba(41,110,255,.063);color:#296eff}.btn[vf-7d288d]:disabled{color:inherit;cursor:not-allowed;opacity:.3}.xnote-color-picker[vf-d552b9]{background-color:#fff;box-sizing:content-box!important;display:inline-block;font-size:12px;overflow:hidden;position:relative;text-align:left;user-select:none;width:165px}.xnote-color-picker.xnote-color-picker-show-palette[vf-d552b9]{height:306px}.xnote-color-picker.xnote-color-picker-show-palette .xnote-color-picker-menu[vf-d552b9]{top:0}.xnote-color-picker-preset>div[vf-d552b9]:first-child{margin-bottom:5px}.xnote-color-picker-recent-text[vf-d552b9]{color:#80848f;padding:2px}.xnote-color-picker-flex[vf-d552b9]{align-items:center;display:flex;justify-content:space-between}.xnote-color-picker-to-palette[vf-d552b9]{align-items:center;background:none;border:0;color:#333;cursor:pointer;display:flex;outline:none;padding-right:0}.xnote-color-picker-to-palette svg[vf-d552b9]{width:1em}.xnote-color-picker-to-palette[vf-d552b9]:hover{color:#296eff}.xnote-color-picker-to-palette:hover svg[vf-d552b9]{fill:#296eff}.xnote-color-picker-back-btn[vf-d552b9]{background:none;border:0;color:#333;cursor:pointer;line-height:20px;outline:none;padding:0}.xnote-color-picker-back-btn-wrap[vf-d552b9]{height:2em}.xnote-color-picker-back-btn svg[vf-d552b9]{height:1em;margin-top:-2px;width:1em}.xnote-color-picker-back-btn[vf-d552b9]:hover{color:#296eff}.xnote-color-picker-menu[vf-d552b9]{background-color:#fff;left:0;position:absolute;top:100%;transition:top .2s cubic-bezier(.36,.66,.04,1)}.xnote-color-picker-viewer[vf-d552b9]{height:160px}.xnote-color-picker-viewer-left[vf-d552b9]{float:left}.xnote-color-picker-palette[vf-d552b9]{cursor:pointer;height:130px;position:relative;width:130px}.xnote-color-picker-palette[vf-d552b9]:before{background:linear-gradient(180deg,transparent,#000);bottom:0;content:"";left:0;position:absolute;right:0;top:0}.xnote-color-picker-palette-empty[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px}.xnote-color-picker-palette-empty[vf-d552b9]:before{display:none}.xnote-color-picker-palette-point[vf-d552b9]{background:#fff;border:none;border-radius:50%;box-shadow:1px 1px 3px rgba(0,0,0,.2);height:1em;pointer-events:none;position:absolute;width:1em}.xnote-color-picker-viewer-alpha[vf-d552b9]{background-color:#bbbec4;background-image:linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff),linear-gradient(45deg,#fff 26%,transparent 0,transparent 74%,#fff 0,#fff);background-position:-5px -5px,0 0;background-size:10px 10px;height:10px;margin-top:10px;position:relative}.xnote-color-picker-viewer-alpha-bar[vf-d552b9]{border-radius:inherit;cursor:pointer;height:100%;position:relative;z-index:1}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]{height:100%;left:0;position:absolute;right:0;top:0}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:after,.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:before{border-style:solid;border-width:7px 4px;contain:size style layout;content:"";height:0;left:-4px;position:absolute;width:0}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:before{border-color:#495060 transparent transparent;top:-6px}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:after{border-color:transparent transparent #495060;top:2px}.xnote-color-picker-viewer-right[vf-d552b9]{float:left;margin-left:10px;width:20px}.xnote-color-picker-tools[vf-d552b9]{margin-bottom:10px}.xnote-color-picker-viewer-alpha-value[vf-d552b9]{font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:13px;line-height:1;margin-left:-7px;text-align:center;width:34px}.xnote-color-picker-value[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px;height:20px;margin-bottom:10px;width:20px}.xnote-color-picker-value-color[vf-d552b9]{height:20px;width:20px}.xnote-color-picker-hue-bar[vf-d552b9]{background:linear-gradient(red,#f90,#ff0 16.6%,#0f0 33.3%,#0ff,#00f 66.6%,#f09,red);cursor:pointer;flex:1;height:100px;position:relative;width:20px}.xnote-color-picker-hue-pointer[vf-d552b9]{bottom:0;height:0;left:0;pointer-events:none;position:absolute;top:0}.xnote-color-picker-hue-pointer[vf-d552b9]:after,.xnote-color-picker-hue-pointer[vf-d552b9]:before{border-style:solid;border-width:4px 7px;contain:size style layout;content:"";height:0;position:absolute;top:0;width:0}.xnote-color-picker-hue-pointer[vf-d552b9]:before{border-color:transparent transparent transparent #495060;right:-8px}.xnote-color-picker-hue-pointer[vf-d552b9]:after{border-color:transparent #495060 transparent transparent;left:12px}.xnote-color-picker-inputs[vf-d552b9]{color:#80848f;line-height:22px}.xnote-color-picker-inputs>div[vf-d552b9]{display:flex;padding:4px 0}.xnote-color-picker-inputs>div>div[vf-d552b9]{display:flex;flex:1;padding:0 4px}.xnote-color-picker-inputs>div>div input[vf-d552b9]{-moz-appearance:textfield;border:1px solid #e9eaec;border-radius:3px;flex:1;font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:13px;height:22px;line-height:16px;margin-left:5px;outline:0;padding:3px 5px;text-align:center;width:100%}.xnote-color-picker-inputs>div>div input[vf-d552b9]:focus{border-color:#296eff;box-shadow:0 0 0 2px rgba(41,110,255,.5);z-index:1}.xnote-color-picker-inputs>div>div input[vf-d552b9]::-webkit-inner-spin-button,.xnote-color-picker-inputs>div>div input[vf-d552b9]::-webkit-outer-spin-button{-webkit-appearance:none}.xnote-color-picker-swatches[vf-d552b9]{font-size:0;padding-top:3px}.xnote-color-picker-swatches>div[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px;border-radius:3px;box-shadow:1px 1px 1px rgba(0,0,0,.1);box-sizing:border-box;cursor:pointer;display:inline-block;height:20px;margin-bottom:3px;margin-left:3px;transition:transform .1s;width:20px}.xnote-color-picker-swatches>div.xnote-color-picker-current[vf-d552b9]{border:1px solid rgba(0,0,0,.3);box-shadow:none}.xnote-color-picker-swatches>div[data-color=""][vf-d552b9]{background:#fff;border-left:1px solid #f8f8f9;border-top:1px solid #f8f8f9;box-sizing:border-box;overflow:hidden;position:relative}.xnote-color-picker-swatches>div[data-color=""][vf-d552b9]:after{background-color:#e74f5e;content:"";height:1px;left:0;position:absolute;right:0;top:50%;transform:rotate(-45deg) scaleX(1.5)}.xnote-color-picker-swatches>div[vf-d552b9]:hover{transform:scale(1.1)}.xnote-color-picker-btn-wrap[vf-d552b9]{padding-top:5px}.xnote-color-picker-btn[vf-d552b9]{background-color:#296eff;border:1px solid #296eff;border-radius:3px;color:#fff;cursor:pointer;display:block;font-size:13px;line-height:1.428;outline:none;padding:3px 6px;width:100%}.xnote-color-picker-btn[vf-d552b9]:hover{background-color:#0556ff;border-color:#0556ff}.xnote-color-picker-btn[vf-d552b9]:focus{background-color:#004ff5;border-color:#0556ff;box-shadow:0 0 0 2px rgba(41,110,255,.5);outline:none}.xnote-color-picker-btn[vf-d552b9]:active{background-color:#0047dc;border-color:#0556ff}.component-toolbar[vf-ac7e8d]{position:relative;z-index:3}.toolbar[vf-ac7e8d]{background:#fff;border:1px solid #dee0e3;border-radius:5px;bottom:10px;box-shadow:0 4px 8px rgba(0,0,0,.08);box-sizing:border-box;display:flex;font-size:14px;height:36px;opacity:0;padding:0 6px;pointer-events:none;position:absolute;text-align:left;transform:translateY(10px)}.toolbar.active[vf-ac7e8d]{opacity:1;pointer-events:auto;transform:translateY(0);transition-duration:.2s;transition-property:all;transition-timing-function:ease}.divider[vf-ede279]{border-top:1px solid #eee;margin:6px 0}.drag-resize[vf-d91ad6]{position:relative;width:100%}.drag-resize .container[vf-d91ad6]{font-size:0;text-indent:0}.drag-resize .resize-tool[vf-d91ad6]{align-items:center;border:1px dashed #296eff;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.drag-resize .resize-tool.active[vf-d91ad6]{display:flex}.drag-resize .mask[vf-d91ad6]{background-color:rgba(0,0,0,.8);border-radius:3px;color:#fff;font-size:14px;padding:3px 8px;pointer-events:none;position:relative;text-indent:0;text-shadow:1px 2px 3px rgba(0,0,0,.7);user-select:none;white-space:nowrap;z-index:10}.drag-resize .btn-group[vf-d91ad6]{height:100%;left:0;position:absolute;top:0;width:100%}.drag-resize button[vf-d91ad6]{background:#fff;border:2px solid #296eff;border-radius:50%;box-sizing:border-box;cursor:pointer;font-size:0;height:14px;outline:none;padding:0;pointer-events:auto;position:absolute;width:14px}.drag-resize button[vf-d91ad6]:hover{background-color:#fff;box-shadow:0 0 0 3px rgba(18,150,219,.3)}.drag-resize button[vf-d91ad6]:first-child,.drag-resize button[vf-d91ad6]:nth-child(2),.drag-resize button[vf-d91ad6]:nth-child(3){margin-top:-5px;top:0}.drag-resize button[vf-d91ad6]:nth-child(3),.drag-resize button[vf-d91ad6]:nth-child(4),.drag-resize button[vf-d91ad6]:nth-child(5){margin-right:-5px;right:0}.drag-resize button[vf-d91ad6]:nth-child(5),.drag-resize button[vf-d91ad6]:nth-child(6),.drag-resize button[vf-d91ad6]:nth-child(7){bottom:0;margin-bottom:-5px}.drag-resize button[vf-d91ad6]:first-child,.drag-resize button[vf-d91ad6]:nth-child(7),.drag-resize button[vf-d91ad6]:nth-child(8){left:0;margin-left:-5px}.drag-resize button[vf-d91ad6]:nth-child(2),.drag-resize button[vf-d91ad6]:nth-child(6){left:50%;margin-left:-5px}.drag-resize button[vf-d91ad6]:nth-child(4),.drag-resize button[vf-d91ad6]:nth-child(8){margin-top:-5px;top:50%}.drag-resize button[vf-d91ad6]:first-child{cursor:nw-resize}.drag-resize button[vf-d91ad6]:nth-child(2){cursor:n-resize}.drag-resize button[vf-d91ad6]:nth-child(3){cursor:ne-resize}.drag-resize button[vf-d91ad6]:nth-child(4){cursor:e-resize}.drag-resize button[vf-d91ad6]:nth-child(5){cursor:se-resize}.drag-resize button[vf-d91ad6]:nth-child(6){cursor:s-resize}.drag-resize button[vf-d91ad6]:nth-child(7){cursor:sw-resize}.drag-resize button[vf-d91ad6]:nth-child(8){cursor:w-resize}.dropdown[vf-cd482d]{display:inline-block;position:relative}.dropdown[vf-cd482d]:hover{z-index:1}.dropdown-btn[vf-cd482d]{display:flex;width:100%}.dropdown-btn-inner[vf-cd482d]{flex:1}.dropdown-btn-inner.has-arrow[vf-cd482d] .btn{border-bottom-right-radius:0;border-top-right-radius:0}.dropdown-btn-arrow[vf-cd482d] .btn{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:1px;padding-right:1px}.dropdown-menu[vf-8a05e9]{background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:2px 3px 5px rgba(0,0,0,.1);box-sizing:content-box;height:0;left:-10px;max-height:400px;opacity:0;overflow-y:auto;position:absolute;top:100%;transition-duration:0s;transition:transform .3s,opacity .3s;user-select:none;width:200px;z-index:10}.dropdown-menu[vf-8a05e9]:hover::-webkit-scrollbar-thumb{background-color:#80848f}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar-thumb{border:0;border-radius:4px;height:50px;outline:0;outline-offset:0}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar-thumb:hover{background-color:#495060;height:50px}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar{border-radius:3px;height:6px;width:6px}.dropdown-menu-content[vf-8a05e9]{box-sizing:content-box;padding:6px}.keymap[vf-c32a7b]{align-items:center;display:inline-flex;font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:.9em;margin-left:1em;opacity:.6}.keymap[vf-c32a7b] span{margin:0 2px}.menu-heading[vf-acaa5f]{font-size:14px;opacity:.5;padding:10px}.menu-item[vf-c3b9dc]{border-radius:4px;box-sizing:content-box;cursor:pointer;display:flex;font-size:14px;height:26px;justify-content:space-between;line-height:26px;padding:2px 10px;transition:background-color .2s}.menu-item-content[vf-c3b9dc]{display:flex;flex:1;justify-content:space-between}.menu-item.disabled[vf-c3b9dc]{cursor:not-allowed;opacity:.5}.menu-item[vf-c3b9dc]:hover{background:#eee}.menu-item.active[vf-c3b9dc]{background:rgba(0,0,0,.1)}.menu-icon[vf-c3b9dc]{display:inline-block;width:1.8em}.menu-check[vf-c3b9dc]{display:none}.menu-check.checked[vf-c3b9dc]{color:#296eff;display:block}.popup[vf-a23c47]{background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:2px 3px 5px rgba(0,0,0,.1);overflow:hidden;position:absolute}.toolbar-item[vf-cd4d99]{padding:3px 2px}.heading-icon[vf-2a8a65]{font-size:1.2em;font-weight:700}.heading-icon sub[vf-2a8a65]{font-weight:400}.xnote-source-code.atom-one-dark pre code.hljs{display:block;overflow-x:auto;padding:1em}.xnote-source-code.atom-one-dark code.hljs{padding:3px 5px}.xnote-source-code.atom-one-dark .hljs{background:#282c34;color:#abb2bf}.xnote-source-code.atom-one-dark .hljs-comment,.xnote-source-code.atom-one-dark .hljs-quote{color:#5c6370;font-style:italic}.xnote-source-code.atom-one-dark .hljs-doctag,.xnote-source-code.atom-one-dark .hljs-formula,.xnote-source-code.atom-one-dark .hljs-keyword{color:#c678dd}.xnote-source-code.atom-one-dark .hljs-deletion,.xnote-source-code.atom-one-dark .hljs-name,.xnote-source-code.atom-one-dark .hljs-section,.xnote-source-code.atom-one-dark .hljs-selector-tag,.xnote-source-code.atom-one-dark .hljs-subst{color:#e06c75}.xnote-source-code.atom-one-dark .hljs-literal{color:#56b6c2}.xnote-source-code.atom-one-dark .hljs-addition,.xnote-source-code.atom-one-dark .hljs-attribute,.xnote-source-code.atom-one-dark .hljs-meta .hljs-string,.xnote-source-code.atom-one-dark .hljs-regexp,.xnote-source-code.atom-one-dark .hljs-string{color:#98c379}.xnote-source-code.atom-one-dark .hljs-attr,.xnote-source-code.atom-one-dark .hljs-number,.xnote-source-code.atom-one-dark .hljs-selector-attr,.xnote-source-code.atom-one-dark .hljs-selector-class,.xnote-source-code.atom-one-dark .hljs-selector-pseudo,.xnote-source-code.atom-one-dark .hljs-template-variable,.xnote-source-code.atom-one-dark .hljs-type,.xnote-source-code.atom-one-dark .hljs-variable{color:#d19a66}.xnote-source-code.atom-one-dark .hljs-bullet,.xnote-source-code.atom-one-dark .hljs-link,.xnote-source-code.atom-one-dark .hljs-meta,.xnote-source-code.atom-one-dark .hljs-selector-id,.xnote-source-code.atom-one-dark .hljs-symbol,.xnote-source-code.atom-one-dark .hljs-title{color:#61aeee}.xnote-source-code.atom-one-dark .hljs-built_in,.xnote-source-code.atom-one-dark .hljs-class .hljs-title,.xnote-source-code.atom-one-dark .hljs-title.class_{color:#e6c07b}.xnote-source-code.atom-one-dark .hljs-emphasis{font-style:italic}.xnote-source-code.atom-one-dark .hljs-strong{font-weight:700}.xnote-source-code.atom-one-dark .hljs-link{text-decoration:underline}.xnote-source-code.foundation pre code.hljs{display:block;overflow-x:auto;padding:1em}.xnote-source-code.foundation code.hljs{padding:3px 5px}.xnote-source-code.foundation .hljs{background:#eee;color:#000}.xnote-source-code.foundation .hljs-addition,.xnote-source-code.foundation .hljs-attribute,.xnote-source-code.foundation .hljs-emphasis,.xnote-source-code.foundation .hljs-link{color:#070}.xnote-source-code.foundation .hljs-emphasis{font-style:italic}.xnote-source-code.foundation .hljs-deletion,.xnote-source-code.foundation .hljs-string,.xnote-source-code.foundation .hljs-strong{color:#d14}.xnote-source-code.foundation .hljs-strong{font-weight:700}.xnote-source-code.foundation .hljs-comment,.xnote-source-code.foundation .hljs-quote{color:#998;font-style:italic}.xnote-source-code.foundation .hljs-section,.xnote-source-code.foundation .hljs-title{color:#900}.xnote-source-code.foundation .hljs-class .hljs-title,.xnote-source-code.foundation .hljs-title.class_,.xnote-source-code.foundation .hljs-type{color:#458}.xnote-source-code.foundation .hljs-template-variable,.xnote-source-code.foundation .hljs-variable{color:#369}.xnote-source-code.foundation .hljs-bullet{color:#970}.xnote-source-code.foundation .hljs-meta{color:#34b}.xnote-source-code.foundation .hljs-code,.xnote-source-code.foundation .hljs-keyword,.xnote-source-code.foundation .hljs-literal,.xnote-source-code.foundation .hljs-number,.xnote-source-code.foundation .hljs-selector-tag{color:#099}.xnote-source-code.foundation .hljs-regexp{background-color:#fff0ff;color:#808}.xnote-source-code.foundation .hljs-symbol{color:#990073}.xnote-source-code.foundation .hljs-name,.xnote-source-code.foundation .hljs-selector-class,.xnote-source-code.foundation .hljs-selector-id,.xnote-source-code.foundation .hljs-tag{color:#070}.xnote-source-code.github{
1
+ .btn[vf-7d288d]{align-items:center;background:none;border:none;border-radius:4px;box-sizing:border-box;color:inherit;cursor:pointer;display:inline-flex;font-size:inherit;height:28px;outline:none;padding:6px 5px;transition:all .2s}.btn>span[vf-7d288d]{white-space:nowrap}.btn[vf-7d288d]:hover{background:rgba(0,0,0,.1)}.btn-arrow[vf-7d288d]{position:relative;transform:rotate(0);transform-origin:50%;width:1em}.btn.active[vf-7d288d]{background:rgba(0,0,0,.1)}.btn.active .btn-arrow[vf-7d288d]{transform:rotate(180deg)}.btn.highlight[vf-7d288d]{background-color:rgba(41,110,255,.063);color:#296eff}.btn[vf-7d288d]:disabled{color:inherit;cursor:not-allowed;opacity:.3}.xnote-color-picker[vf-d552b9]{background-color:#fff;box-sizing:content-box!important;display:inline-block;font-size:12px;overflow:hidden;position:relative;text-align:left;user-select:none;width:165px}.xnote-color-picker.xnote-color-picker-show-palette[vf-d552b9]{height:306px}.xnote-color-picker.xnote-color-picker-show-palette .xnote-color-picker-menu[vf-d552b9]{top:0}.xnote-color-picker-preset>div[vf-d552b9]:first-child{margin-bottom:5px}.xnote-color-picker-recent-text[vf-d552b9]{color:#80848f;padding:2px}.xnote-color-picker-flex[vf-d552b9]{align-items:center;display:flex;justify-content:space-between}.xnote-color-picker-to-palette[vf-d552b9]{align-items:center;background:none;border:0;color:#333;cursor:pointer;display:flex;outline:none;padding-right:0}.xnote-color-picker-to-palette svg[vf-d552b9]{width:1em}.xnote-color-picker-to-palette[vf-d552b9]:hover{color:#296eff}.xnote-color-picker-to-palette:hover svg[vf-d552b9]{fill:#296eff}.xnote-color-picker-back-btn[vf-d552b9]{background:none;border:0;color:#333;cursor:pointer;line-height:20px;outline:none;padding:0}.xnote-color-picker-back-btn-wrap[vf-d552b9]{height:2em}.xnote-color-picker-back-btn svg[vf-d552b9]{height:1em;margin-top:-2px;width:1em}.xnote-color-picker-back-btn[vf-d552b9]:hover{color:#296eff}.xnote-color-picker-menu[vf-d552b9]{background-color:#fff;left:0;position:absolute;top:100%;transition:top .2s cubic-bezier(.36,.66,.04,1)}.xnote-color-picker-viewer[vf-d552b9]{height:160px}.xnote-color-picker-viewer-left[vf-d552b9]{float:left}.xnote-color-picker-palette[vf-d552b9]{cursor:pointer;height:130px;position:relative;width:130px}.xnote-color-picker-palette[vf-d552b9]:before{background:linear-gradient(180deg,transparent,#000);bottom:0;content:"";left:0;position:absolute;right:0;top:0}.xnote-color-picker-palette-empty[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px}.xnote-color-picker-palette-empty[vf-d552b9]:before{display:none}.xnote-color-picker-palette-point[vf-d552b9]{background:#fff;border:none;border-radius:50%;box-shadow:1px 1px 3px rgba(0,0,0,.2);height:1em;pointer-events:none;position:absolute;width:1em}.xnote-color-picker-viewer-alpha[vf-d552b9]{background-color:#bbbec4;background-image:linear-gradient(45deg,#fff 25%,transparent 0,transparent 75%,#fff 0,#fff),linear-gradient(45deg,#fff 26%,transparent 0,transparent 74%,#fff 0,#fff);background-position:-5px -5px,0 0;background-size:10px 10px;height:10px;margin-top:10px;position:relative}.xnote-color-picker-viewer-alpha-bar[vf-d552b9]{border-radius:inherit;cursor:pointer;height:100%;position:relative;z-index:1}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]{height:100%;left:0;position:absolute;right:0;top:0}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:after,.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:before{border-style:solid;border-width:7px 4px;contain:size style layout;content:"";height:0;left:-4px;position:absolute;width:0}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:before{border-color:#495060 transparent transparent;top:-6px}.xnote-color-picker-viewer-alpha-pointer[vf-d552b9]:after{border-color:transparent transparent #495060;top:2px}.xnote-color-picker-viewer-right[vf-d552b9]{float:left;margin-left:10px;width:20px}.xnote-color-picker-tools[vf-d552b9]{margin-bottom:10px}.xnote-color-picker-viewer-alpha-value[vf-d552b9]{font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:13px;line-height:1;margin-left:-7px;text-align:center;width:34px}.xnote-color-picker-value[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px;height:20px;margin-bottom:10px;width:20px}.xnote-color-picker-value-color[vf-d552b9]{height:20px;width:20px}.xnote-color-picker-hue-bar[vf-d552b9]{background:linear-gradient(red,#f90,#ff0 16.6%,#0f0 33.3%,#0ff,#00f 66.6%,#f09,red);cursor:pointer;flex:1;height:100px;position:relative;width:20px}.xnote-color-picker-hue-pointer[vf-d552b9]{bottom:0;height:0;left:0;pointer-events:none;position:absolute;top:0}.xnote-color-picker-hue-pointer[vf-d552b9]:after,.xnote-color-picker-hue-pointer[vf-d552b9]:before{border-style:solid;border-width:4px 7px;contain:size style layout;content:"";height:0;position:absolute;top:0;width:0}.xnote-color-picker-hue-pointer[vf-d552b9]:before{border-color:transparent transparent transparent #495060;right:-8px}.xnote-color-picker-hue-pointer[vf-d552b9]:after{border-color:transparent #495060 transparent transparent;left:12px}.xnote-color-picker-inputs[vf-d552b9]{color:#80848f;line-height:22px}.xnote-color-picker-inputs>div[vf-d552b9]{display:flex;padding:4px 0}.xnote-color-picker-inputs>div>div[vf-d552b9]{display:flex;flex:1;padding:0 4px}.xnote-color-picker-inputs>div>div input[vf-d552b9]{-moz-appearance:textfield;border:1px solid #e9eaec;border-radius:3px;flex:1;font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:13px;height:22px;line-height:16px;margin-left:5px;outline:0;padding:3px 5px;text-align:center;width:100%}.xnote-color-picker-inputs>div>div input[vf-d552b9]:focus{border-color:#296eff;box-shadow:0 0 0 2px rgba(41,110,255,.5);z-index:1}.xnote-color-picker-inputs>div>div input[vf-d552b9]::-webkit-inner-spin-button,.xnote-color-picker-inputs>div>div input[vf-d552b9]::-webkit-outer-spin-button{-webkit-appearance:none}.xnote-color-picker-swatches[vf-d552b9]{font-size:0;padding-top:3px}.xnote-color-picker-swatches>div[vf-d552b9]{background-color:#fff;background-image:linear-gradient(45deg,#bbbec4 25%,transparent 0,transparent 75%,#bbbec4 0,#bbbec4),linear-gradient(45deg,#bbbec4 26%,transparent 0,transparent 74%,#bbbec4 0,#bbbec4);background-position:0 0,5px 5px;background-size:10px 10px;border-radius:3px;box-shadow:1px 1px 1px rgba(0,0,0,.1);box-sizing:border-box;cursor:pointer;display:inline-block;height:20px;margin-bottom:3px;margin-left:3px;transition:transform .1s;width:20px}.xnote-color-picker-swatches>div.xnote-color-picker-current[vf-d552b9]{border:1px solid rgba(0,0,0,.3);box-shadow:none}.xnote-color-picker-swatches>div[data-color=""][vf-d552b9]{background:#fff;border-left:1px solid #f8f8f9;border-top:1px solid #f8f8f9;box-sizing:border-box;overflow:hidden;position:relative}.xnote-color-picker-swatches>div[data-color=""][vf-d552b9]:after{background-color:#e74f5e;content:"";height:1px;left:0;position:absolute;right:0;top:50%;transform:rotate(-45deg) scaleX(1.5)}.xnote-color-picker-swatches>div[vf-d552b9]:hover{transform:scale(1.1)}.xnote-color-picker-btn-wrap[vf-d552b9]{padding-top:5px}.xnote-color-picker-btn[vf-d552b9]{background-color:#296eff;border:1px solid #296eff;border-radius:3px;color:#fff;cursor:pointer;display:block;font-size:13px;line-height:1.428;outline:none;padding:3px 6px;width:100%}.xnote-color-picker-btn[vf-d552b9]:hover{background-color:#0556ff;border-color:#0556ff}.xnote-color-picker-btn[vf-d552b9]:focus{background-color:#004ff5;border-color:#0556ff;box-shadow:0 0 0 2px rgba(41,110,255,.5);outline:none}.xnote-color-picker-btn[vf-d552b9]:active{background-color:#0047dc;border-color:#0556ff}.component-toolbar[vf-ac7e8d]{position:relative;z-index:3}.toolbar[vf-ac7e8d]{background:#fff;border:1px solid #dee0e3;border-radius:5px;bottom:10px;box-shadow:0 4px 8px rgba(0,0,0,.08);box-sizing:border-box;display:flex;font-size:14px;height:36px;opacity:0;padding:0 6px;pointer-events:none;position:absolute;text-align:left;transform:translateY(10px)}.toolbar.active[vf-ac7e8d]{opacity:1;pointer-events:auto;transform:translateY(0);transition-duration:.2s;transition-property:all;transition-timing-function:ease}.divider[vf-ede279]{border-top:1px solid #eee;margin:6px 0}.drag-resize[vf-d91ad6]{position:relative;width:100%}.drag-resize .container[vf-d91ad6]{font-size:0;text-indent:0}.drag-resize .resize-tool[vf-d91ad6]{align-items:center;border:1px dashed #296eff;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.drag-resize .resize-tool.active[vf-d91ad6]{display:flex}.drag-resize .mask[vf-d91ad6]{background-color:rgba(0,0,0,.8);border-radius:3px;color:#fff;font-size:14px;padding:3px 8px;pointer-events:none;position:relative;text-indent:0;text-shadow:1px 2px 3px rgba(0,0,0,.7);user-select:none;white-space:nowrap;z-index:10}.drag-resize .btn-group[vf-d91ad6]{height:100%;left:0;position:absolute;top:0;width:100%}.drag-resize button[vf-d91ad6]{background:#fff;border:2px solid #296eff;border-radius:50%;box-sizing:border-box;cursor:pointer;font-size:0;height:14px;outline:none;padding:0;pointer-events:auto;position:absolute;width:14px}.drag-resize button[vf-d91ad6]:hover{background-color:#fff;box-shadow:0 0 0 3px rgba(18,150,219,.3)}.drag-resize button[vf-d91ad6]:first-child,.drag-resize button[vf-d91ad6]:nth-child(2),.drag-resize button[vf-d91ad6]:nth-child(3){margin-top:-5px;top:0}.drag-resize button[vf-d91ad6]:nth-child(3),.drag-resize button[vf-d91ad6]:nth-child(4),.drag-resize button[vf-d91ad6]:nth-child(5){margin-right:-5px;right:0}.drag-resize button[vf-d91ad6]:nth-child(5),.drag-resize button[vf-d91ad6]:nth-child(6),.drag-resize button[vf-d91ad6]:nth-child(7){bottom:0;margin-bottom:-5px}.drag-resize button[vf-d91ad6]:first-child,.drag-resize button[vf-d91ad6]:nth-child(7),.drag-resize button[vf-d91ad6]:nth-child(8){left:0;margin-left:-5px}.drag-resize button[vf-d91ad6]:nth-child(2),.drag-resize button[vf-d91ad6]:nth-child(6){left:50%;margin-left:-5px}.drag-resize button[vf-d91ad6]:nth-child(4),.drag-resize button[vf-d91ad6]:nth-child(8){margin-top:-5px;top:50%}.drag-resize button[vf-d91ad6]:first-child{cursor:nw-resize}.drag-resize button[vf-d91ad6]:nth-child(2){cursor:n-resize}.drag-resize button[vf-d91ad6]:nth-child(3){cursor:ne-resize}.drag-resize button[vf-d91ad6]:nth-child(4){cursor:e-resize}.drag-resize button[vf-d91ad6]:nth-child(5){cursor:se-resize}.drag-resize button[vf-d91ad6]:nth-child(6){cursor:s-resize}.drag-resize button[vf-d91ad6]:nth-child(7){cursor:sw-resize}.drag-resize button[vf-d91ad6]:nth-child(8){cursor:w-resize}.dropdown[vf-0fd06a]{display:inline-block;position:relative}.dropdown[vf-0fd06a]:hover{z-index:1}.dropdown-btn[vf-0fd06a]{display:flex;width:100%}.dropdown-btn-inner[vf-0fd06a]{flex:1}.dropdown-btn-inner.has-arrow[vf-0fd06a] .btn{border-bottom-right-radius:0;border-top-right-radius:0;padding-right:1px}.dropdown-btn-arrow[vf-0fd06a] .btn{border-bottom-left-radius:0;border-top-left-radius:0;padding-left:1px;padding-right:1px}.dropdown-menu[vf-8a05e9]{background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:2px 3px 5px rgba(0,0,0,.1);box-sizing:content-box;height:0;left:-10px;max-height:400px;opacity:0;overflow-y:auto;position:absolute;top:100%;transition-duration:0s;transition:transform .3s,opacity .3s;user-select:none;width:200px;z-index:10}.dropdown-menu[vf-8a05e9]:hover::-webkit-scrollbar-thumb{background-color:#80848f}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar-thumb{border:0;border-radius:4px;height:50px;outline:0;outline-offset:0}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar-thumb:hover{background-color:#495060;height:50px}.dropdown-menu[vf-8a05e9]::-webkit-scrollbar{border-radius:3px;height:6px;width:6px}.dropdown-menu-content[vf-8a05e9]{box-sizing:content-box;padding:6px}.keymap[vf-c32a7b]{align-items:center;display:inline-flex;font-family:Microsoft YaHei Mono,Menlo,Monaco,Consolas,Courier New,monospace;font-size:.9em;margin-left:1em;opacity:.6}.keymap[vf-c32a7b] span{margin:0 2px}.menu-heading[vf-acaa5f]{font-size:14px;opacity:.5;padding:10px}.menu-item[vf-c3b9dc]{border-radius:4px;box-sizing:content-box;cursor:pointer;display:flex;font-size:14px;height:26px;justify-content:space-between;line-height:26px;padding:2px 10px;transition:background-color .2s}.menu-item-content[vf-c3b9dc]{display:flex;flex:1;justify-content:space-between}.menu-item.disabled[vf-c3b9dc]{cursor:not-allowed;opacity:.5}.menu-item[vf-c3b9dc]:hover{background:#eee}.menu-item.active[vf-c3b9dc]{background:rgba(0,0,0,.1)}.menu-icon[vf-c3b9dc]{display:inline-block;width:1.8em}.menu-check[vf-c3b9dc]{display:none}.menu-check.checked[vf-c3b9dc]{color:#296eff;display:block}.popup[vf-a23c47]{background:#fff;border:1px solid #ddd;border-radius:5px;box-shadow:2px 3px 5px rgba(0,0,0,.1);overflow:hidden;position:absolute}.toolbar-item[vf-b7a2c8]{padding:3px 1px}.heading-icon[vf-2a8a65]{font-size:1.2em;font-weight:700}.heading-icon sub[vf-2a8a65]{font-weight:400}.xnote-source-code.atom-one-dark pre code.hljs{display:block;overflow-x:auto;padding:1em}.xnote-source-code.atom-one-dark code.hljs{padding:3px 5px}.xnote-source-code.atom-one-dark .hljs{background:#282c34;color:#abb2bf}.xnote-source-code.atom-one-dark .hljs-comment,.xnote-source-code.atom-one-dark .hljs-quote{color:#5c6370;font-style:italic}.xnote-source-code.atom-one-dark .hljs-doctag,.xnote-source-code.atom-one-dark .hljs-formula,.xnote-source-code.atom-one-dark .hljs-keyword{color:#c678dd}.xnote-source-code.atom-one-dark .hljs-deletion,.xnote-source-code.atom-one-dark .hljs-name,.xnote-source-code.atom-one-dark .hljs-section,.xnote-source-code.atom-one-dark .hljs-selector-tag,.xnote-source-code.atom-one-dark .hljs-subst{color:#e06c75}.xnote-source-code.atom-one-dark .hljs-literal{color:#56b6c2}.xnote-source-code.atom-one-dark .hljs-addition,.xnote-source-code.atom-one-dark .hljs-attribute,.xnote-source-code.atom-one-dark .hljs-meta .hljs-string,.xnote-source-code.atom-one-dark .hljs-regexp,.xnote-source-code.atom-one-dark .hljs-string{color:#98c379}.xnote-source-code.atom-one-dark .hljs-attr,.xnote-source-code.atom-one-dark .hljs-number,.xnote-source-code.atom-one-dark .hljs-selector-attr,.xnote-source-code.atom-one-dark .hljs-selector-class,.xnote-source-code.atom-one-dark .hljs-selector-pseudo,.xnote-source-code.atom-one-dark .hljs-template-variable,.xnote-source-code.atom-one-dark .hljs-type,.xnote-source-code.atom-one-dark .hljs-variable{color:#d19a66}.xnote-source-code.atom-one-dark .hljs-bullet,.xnote-source-code.atom-one-dark .hljs-link,.xnote-source-code.atom-one-dark .hljs-meta,.xnote-source-code.atom-one-dark .hljs-selector-id,.xnote-source-code.atom-one-dark .hljs-symbol,.xnote-source-code.atom-one-dark .hljs-title{color:#61aeee}.xnote-source-code.atom-one-dark .hljs-built_in,.xnote-source-code.atom-one-dark .hljs-class .hljs-title,.xnote-source-code.atom-one-dark .hljs-title.class_{color:#e6c07b}.xnote-source-code.atom-one-dark .hljs-emphasis{font-style:italic}.xnote-source-code.atom-one-dark .hljs-strong{font-weight:700}.xnote-source-code.atom-one-dark .hljs-link{text-decoration:underline}.xnote-source-code.foundation pre code.hljs{display:block;overflow-x:auto;padding:1em}.xnote-source-code.foundation code.hljs{padding:3px 5px}.xnote-source-code.foundation .hljs{background:#eee;color:#000}.xnote-source-code.foundation .hljs-addition,.xnote-source-code.foundation .hljs-attribute,.xnote-source-code.foundation .hljs-emphasis,.xnote-source-code.foundation .hljs-link{color:#070}.xnote-source-code.foundation .hljs-emphasis{font-style:italic}.xnote-source-code.foundation .hljs-deletion,.xnote-source-code.foundation .hljs-string,.xnote-source-code.foundation .hljs-strong{color:#d14}.xnote-source-code.foundation .hljs-strong{font-weight:700}.xnote-source-code.foundation .hljs-comment,.xnote-source-code.foundation .hljs-quote{color:#998;font-style:italic}.xnote-source-code.foundation .hljs-section,.xnote-source-code.foundation .hljs-title{color:#900}.xnote-source-code.foundation .hljs-class .hljs-title,.xnote-source-code.foundation .hljs-title.class_,.xnote-source-code.foundation .hljs-type{color:#458}.xnote-source-code.foundation .hljs-template-variable,.xnote-source-code.foundation .hljs-variable{color:#369}.xnote-source-code.foundation .hljs-bullet{color:#970}.xnote-source-code.foundation .hljs-meta{color:#34b}.xnote-source-code.foundation .hljs-code,.xnote-source-code.foundation .hljs-keyword,.xnote-source-code.foundation .hljs-literal,.xnote-source-code.foundation .hljs-number,.xnote-source-code.foundation .hljs-selector-tag{color:#099}.xnote-source-code.foundation .hljs-regexp{background-color:#fff0ff;color:#808}.xnote-source-code.foundation .hljs-symbol{color:#990073}.xnote-source-code.foundation .hljs-name,.xnote-source-code.foundation .hljs-selector-class,.xnote-source-code.foundation .hljs-selector-id,.xnote-source-code.foundation .hljs-tag{color:#070}.xnote-source-code.github{
2
2
  /*!
3
3
  Theme: GitHub
4
4
  Description: Light theme as seen on github.com
@@ -634,7 +634,7 @@ function DragResize(props) {
634
634
  });
635
635
  }
636
636
 
637
- var scopedId$l = "vf-cd482d";
637
+ var scopedId$l = "vf-0fd06a";
638
638
 
639
639
  var scopedId$k = "vf-8a05e9";
640
640
 
@@ -928,7 +928,7 @@ function Popup(props) {
928
928
  }), host);
929
929
  }
930
930
 
931
- var scopedId$f = "vf-cd4d99";
931
+ var scopedId$f = "vf-b7a2c8";
932
932
 
933
933
  function ToolbarItem(props) {
934
934
  return withScopedCSS(scopedId$f, () => {
@@ -5220,7 +5220,7 @@ function CellBackgroundTool() {
5220
5220
  return () => {
5221
5221
  const vm = viewModel();
5222
5222
  const d = vm.disabled || commonState().readonly || commonState().inSourceCode;
5223
- return (jsx(Dropdown, { width: '177px', disabled: d, menu: jsx(ColorPicker, { recentColors: defaultColors, onSelected: setColor }), trigger: 'hover', children: jsx(Button, { disabled: d, children: jsx("span", { class: "xnote-icon-palette" }) }) }));
5223
+ return (jsx(Dropdown, { width: '177px', disabled: d, menu: jsx(ColorPicker, { recentColors: defaultColors, onSelected: setColor }), trigger: 'hover', children: jsx(Button, { disabled: d, arrow: true, children: jsx("span", { class: "xnote-icon-palette" }) }) }));
5224
5224
  };
5225
5225
  }
5226
5226
 
@@ -6392,6 +6392,15 @@ let TableService = class TableService {
6392
6392
  TableService = __decorate([
6393
6393
  Injectable()
6394
6394
  ], TableService);
6395
+ function isShowMask(component) {
6396
+ const selection = component.tableSelection();
6397
+ const selectedSlots = component.getSelectedNormalizedSlots();
6398
+ const slotCount = selectedSlots ? selectedSlots.map(i => i.cells.filter(i => i.visible)).flat().length : 0;
6399
+ return selection &&
6400
+ (selection.endColumn - selection.startColumn > 1 ||
6401
+ selection.endRow - selection.startRow > 1 ||
6402
+ slotCount > 1);
6403
+ }
6395
6404
 
6396
6405
  function ResizeColumn(props) {
6397
6406
  const dragLineRef = createRef();
@@ -6816,10 +6825,8 @@ function SelectionMask(props) {
6816
6825
  watch(props.component.tableSelection, update);
6817
6826
  function update() {
6818
6827
  const selection = props.component.tableSelection();
6819
- const selectedSlots = props.component.getSelectedNormalizedSlots();
6820
- const slotCount = selectedSlots ? selectedSlots.map(i => i.cells.filter(i => i.visible)).flat().length : 0;
6821
6828
  const state = props.component.state;
6822
- if (selection && slotCount > 1) {
6829
+ if (isShowMask(props.component)) {
6823
6830
  let topCompensation = 0.5;
6824
6831
  let heightCompensation = -1;
6825
6832
  if (selection.startRow === 0) {
@@ -7019,12 +7026,11 @@ const TableComponentView = withAnnotation({
7019
7026
  }) }, rowMapping.get(row.row)));
7020
7027
  }) })] }) }) }) }));
7021
7028
  }
7022
- const selectedSlots = props.component.getSelectedNormalizedSlots();
7023
- const slotCount = selectedSlots ? selectedSlots.map(i => i.cells.filter(i => i.visible)).flat().length : 0;
7029
+ const showMask = isShowMask(props.component);
7024
7030
  return (jsx("div", { class: "xnote-table", "data-component": props.component.name, "data-layout-width": `[${state.columnsConfig.join(',')}]`, children: jsxs("div", { class: "xnote-table-inner", ref: props.rootRef, children: [jsx(TopBar, { isFocus: isFocus, layoutWidth: layoutWidth, component: props.component }), jsx(LeftBar, { tableRef: tableRef, isFocus: isFocus, component: props.component }), jsx(Scroll, { isFocus: isFocus, children: jsxs("div", { class: "xnote-table-container", children: [jsxs("table", { ref: tableRef, class: [
7025
7031
  'xnote-table-content',
7026
7032
  {
7027
- 'hide-selection': props.component.tableSelection() && slotCount > 1
7033
+ 'hide-selection': showMask
7028
7034
  }
7029
7035
  ], children: [jsx("colgroup", { children: layoutWidth().map(w => {
7030
7036
  return jsx("col", { style: { width: w + 'px', minWidth: w + 'px' } });
package/bundles/index.js CHANGED
@@ -636,7 +636,7 @@ function DragResize(props) {
636
636
  });
637
637
  }
638
638
 
639
- var scopedId$l = "vf-cd482d";
639
+ var scopedId$l = "vf-0fd06a";
640
640
 
641
641
  var scopedId$k = "vf-8a05e9";
642
642
 
@@ -930,7 +930,7 @@ function Popup(props) {
930
930
  }), host);
931
931
  }
932
932
 
933
- var scopedId$f = "vf-cd4d99";
933
+ var scopedId$f = "vf-b7a2c8";
934
934
 
935
935
  function ToolbarItem(props) {
936
936
  return scopedCss.withScopedCSS(scopedId$f, () => {
@@ -5222,7 +5222,7 @@ function CellBackgroundTool() {
5222
5222
  return () => {
5223
5223
  const vm = viewModel();
5224
5224
  const d = vm.disabled || commonState().readonly || commonState().inSourceCode;
5225
- return (jsxRuntime.jsx(Dropdown, { width: '177px', disabled: d, menu: jsxRuntime.jsx(ColorPicker, { recentColors: defaultColors, onSelected: setColor }), trigger: 'hover', children: jsxRuntime.jsx(Button, { disabled: d, children: jsxRuntime.jsx("span", { class: "xnote-icon-palette" }) }) }));
5225
+ return (jsxRuntime.jsx(Dropdown, { width: '177px', disabled: d, menu: jsxRuntime.jsx(ColorPicker, { recentColors: defaultColors, onSelected: setColor }), trigger: 'hover', children: jsxRuntime.jsx(Button, { disabled: d, arrow: true, children: jsxRuntime.jsx("span", { class: "xnote-icon-palette" }) }) }));
5226
5226
  };
5227
5227
  }
5228
5228
 
@@ -6394,6 +6394,15 @@ let TableService = class TableService {
6394
6394
  TableService = __decorate([
6395
6395
  core.Injectable()
6396
6396
  ], TableService);
6397
+ function isShowMask(component) {
6398
+ const selection = component.tableSelection();
6399
+ const selectedSlots = component.getSelectedNormalizedSlots();
6400
+ const slotCount = selectedSlots ? selectedSlots.map(i => i.cells.filter(i => i.visible)).flat().length : 0;
6401
+ return selection &&
6402
+ (selection.endColumn - selection.startColumn > 1 ||
6403
+ selection.endRow - selection.startRow > 1 ||
6404
+ slotCount > 1);
6405
+ }
6397
6406
 
6398
6407
  function ResizeColumn(props) {
6399
6408
  const dragLineRef = core.createRef();
@@ -6818,10 +6827,8 @@ function SelectionMask(props) {
6818
6827
  core.watch(props.component.tableSelection, update);
6819
6828
  function update() {
6820
6829
  const selection = props.component.tableSelection();
6821
- const selectedSlots = props.component.getSelectedNormalizedSlots();
6822
- const slotCount = selectedSlots ? selectedSlots.map(i => i.cells.filter(i => i.visible)).flat().length : 0;
6823
6830
  const state = props.component.state;
6824
- if (selection && slotCount > 1) {
6831
+ if (isShowMask(props.component)) {
6825
6832
  let topCompensation = 0.5;
6826
6833
  let heightCompensation = -1;
6827
6834
  if (selection.startRow === 0) {
@@ -7021,12 +7028,11 @@ const TableComponentView = core.withAnnotation({
7021
7028
  }) }, rowMapping.get(row.row)));
7022
7029
  }) })] }) }) }) }));
7023
7030
  }
7024
- const selectedSlots = props.component.getSelectedNormalizedSlots();
7025
- const slotCount = selectedSlots ? selectedSlots.map(i => i.cells.filter(i => i.visible)).flat().length : 0;
7031
+ const showMask = isShowMask(props.component);
7026
7032
  return (jsxRuntime.jsx("div", { class: "xnote-table", "data-component": props.component.name, "data-layout-width": `[${state.columnsConfig.join(',')}]`, children: jsxRuntime.jsxs("div", { class: "xnote-table-inner", ref: props.rootRef, children: [jsxRuntime.jsx(TopBar, { isFocus: isFocus, layoutWidth: layoutWidth, component: props.component }), jsxRuntime.jsx(LeftBar, { tableRef: tableRef, isFocus: isFocus, component: props.component }), jsxRuntime.jsx(Scroll, { isFocus: isFocus, children: jsxRuntime.jsxs("div", { class: "xnote-table-container", children: [jsxRuntime.jsxs("table", { ref: tableRef, class: [
7027
7033
  'xnote-table-content',
7028
7034
  {
7029
- 'hide-selection': props.component.tableSelection() && slotCount > 1
7035
+ 'hide-selection': showMask
7030
7036
  }
7031
7037
  ], children: [jsxRuntime.jsx("colgroup", { children: layoutWidth().map(w => {
7032
7038
  return jsxRuntime.jsx("col", { style: { width: w + 'px', minWidth: w + 'px' } });
@@ -1,6 +1,8 @@
1
1
  import { Subject } from '@textbus/core';
2
+ import { TableComponent } from './table.component';
2
3
  export declare class TableService {
3
4
  onInsertRowBefore: Subject<number | null>;
4
5
  onInsertColumnBefore: Subject<number | null>;
5
6
  onScroll: Subject<number>;
6
7
  }
8
+ export declare function isShowMask(component: TableComponent): boolean | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/xnote",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "A high-performance rich text editor that supports multiplayer online collaboration.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",