leksy-editor 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leksy-editor",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Leksy Editor is an alternative to traditional WYSIWYG editors, designed primarily for creating mail templates, blogs, and documents without any content manipulation.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./index.d.ts",
package/dist/index.css DELETED
@@ -1,2 +0,0 @@
1
- .leksy-editor-container *,*:before,*:after{box-sizing:border-box}.leksy-editor-container body,.leksy-editor-container p,.leksy-editor-container ul,.leksy-editor-container ol,.leksy-editor-container li{margin:0;padding:0;color:#000;font-weight:400}.leksy-editor-container button{appearance:auto;text-rendering:auto;color:unset;letter-spacing:normal;word-spacing:normal;line-height:normal;text-transform:none;text-indent:0px;text-shadow:none;display:inline-block;text-align:center;align-items:center;cursor:pointer;box-sizing:border-box;background-color:unset;padding-block:unset;border-width:0px;border-style:outset;border-color:unset;border-image:initial}.leksy-editor-container{width:100%;min-height:400px;border:1px solid black;border-radius:6px;display:flex;flex-direction:column;position:relative}.leksy-editor-container.fullscreen{position:fixed;top:0;left:0;height:100vh;background-color:#fff;z-index:1000;border-radius:0}.leksy-editor-toolbar{padding:6px;border-bottom:1px solid black;background-color:#f8f8ff;flex:0 1 auto;display:flex;flex-wrap:wrap;border-radius:6px 6px 0 0;align-items:center}.leksy-editor-toolbar-items{outline:1px solid gray;display:flex;border-radius:4px;margin:2px}.leksy-editor-toolbar-items span{font-size:14px;white-space:nowrap}.leksy-editor-toolbar-item{margin:1px;padding:6px 0;height:34px;width:34px;background:transparent;border-radius:4px;position:relative;user-select:none;vertical-align:top;font-size:1rem;cursor:pointer;outline:0px;text-align:center;transition:.3s}.leksy-editor-toolbar-item.active{color:#4592ff;fill:#4592ff}.leksy-editor-toolbar-item.disabled{cursor:not-allowed;color:#bdbdbd;fill:#bdbdbd}.leksy-editor-toolbar-item svg{width:14px;height:14px}.leksy-editor-toolbar-item.select{padding:0 8px;width:unset}.leksy-editor-toolbar-item.button-select{border-radius:4px 0 0 4px;margin-right:0}.leksy-editor-toolbar-item.select.button-select{padding:0;border-radius:0 4px 4px 0;margin-left:0;margin-right:1px}.leksy-editor-toolbar-item.select.button-select svg{width:18px;height:18px}.leksy-editor-toolbar-item.reset-color,.leksy-editor-toolbar-item.color{width:unset;padding:4px 8px}.leksy-editor-toolbar-item.color input{border:none;width:25px;height:25px;background:none}.leksy-editor-toolbar-item.color div{display:inline}.leksy-editor-toolbar-item:hover{background-color:#d3d3d3;border:pink}.leksy-editor-toolbar-item:hover:after{opacity:1;visibility:visible}.leksy-editor-toolbar-item:after{content:attr(data-title);position:fixed;top:var(--leksy-editor-top, 0);left:var(--leksy-editor-left, 0);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;background-color:gray;box-shadow:0 0 24px #0003;color:#000;padding:5px 10px;border-radius:5px;transform:translate(-50%);white-space:nowrap;z-index:1;pointer-events:none;font-size:.875rem}.leksy-editor-toolbar-table{display:grid;grid-template-columns:repeat(10,20px);grid-template-rows:repeat(10,20px)}.leksy-editor-toolbar-table .cell{width:16px;height:16px;border:1px solid gray;background-color:#d3d3d3}.leksy-editor-toolbar-table .cell.selected{background-color:#0c8}.leksy-editor-placeholder{user-select:none;opacity:.5;padding:4px;position:absolute}.leksy-editor-resize-items{margin-top:4px;width:235px}.leksy-editor-resize-item{margin:1px;padding:6px;height:34px;background:transparent;border-radius:4px;position:relative;user-select:none;vertical-align:top;font-size:1rem;cursor:pointer;outline:0px;text-align:center}.leksy-editor-resize-item svg{width:15px}.leksy-editor-resize-item:hover{background-color:#d3d3d3;border:pink}.leksy-editor-resize-item:hover:after{opacity:1;visibility:visible}.leksy-editor-resize-item:not([data-title]):after,.leksy-editor-resize-item[data-title=""]:after{display:none}.leksy-editor-resize-item:after{content:attr(data-title);position:absolute;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;background-color:gray;box-shadow:0 0 24px #0003;color:#000;padding:5px 10px;border-radius:5px;bottom:-90%;left:60%;transform:translate(-50%);white-space:nowrap;z-index:1;pointer-events:none;font-size:.875rem}.leksy-editor-dropdown-content{display:none;position:absolute;min-width:160px;box-shadow:0 4px 12px #00000026;border-radius:6px;overflow:hidden;padding:4px;z-index:2000;background-color:#fff}.leksy-editor-dropdown-content>button{display:block;width:100%;margin:0;text-align:left;padding:8px 16px;cursor:pointer;white-space:nowrap;transition:.3s;border-radius:6px}.leksy-editor-dropdown-content>button svg{width:10px;margin-right:2px}.leksy-editor-dropdown-content>button:hover{background-color:#28a745;color:#fff}.leksy-editor-dropdown-content.gallery{width:266px;height:350px;padding:0;overflow-y:auto}.leksy-editor-dropdown-content.gallery img{width:100%}.leksy-editor-dropdown-content.gallery input{width:100%;line-height:1.5rem;padding:2px 8px;border:1px solid #ccc;border-radius:6px;transition:all .3s ease-in-out;box-shadow:0 2px 4px #0000001a;font-size:14px;position:sticky;top:0}.leksy-editor-dropdown-content.gallery input:focus{border-color:#4592ff;box-shadow:0 4px 8px #4592ff4d;outline:none}.leksy-editor-dropdown-content.category{width:300px;height:350px;padding:6px;overflow-y:auto;user-select:none}.leksy-editor-dropdown-content.category div{font-weight:700;margin-top:8px;margin-bottom:4px}.leksy-editor-dropdown-content.category span{padding:4px;cursor:pointer}.leksy-editor-dropdown-content.mention{width:250px;height:350px;padding:6px;overflow-y:auto;user-select:none}.leksy-editor-dropdown-content.mention input{width:100%;line-height:1.5rem;margin:4px 0}.leksy-editor-dropdown-content.mention button{display:block;width:100%;margin:0;text-align:left;padding:8px 16px;cursor:pointer;white-space:nowrap}.leksy-editor-dropdown-content.mention button:hover{background-color:green}.leksy-editor-popover-content{display:none;position:absolute;min-width:160px;box-shadow:0 0 10px gray;border-radius:6px;padding:4px;z-index:2000;background-color:#fff}.leksy-editor-popover-tabs{display:flex;background:#f1f1f1;border-bottom:1px solid #ccc}button.leksy-editor-popover-tab{padding:8px 12px;border:none;background:transparent;cursor:pointer}button.leksy-editor-popover-tab.active{border-bottom:2px solid black;font-weight:700}.leksy-editor-popover-tabs .leksy-editor-popover-tab:not(:last-child){border-right:1px solid #ccc}.leksy-editor-codeview{flex:1 1 auto;padding:4px;background-color:#1f1f1f;color:#74bed8;border:0;outline:0;display:none;resize:none;height:400px}.leksy-editor-stepper{height:24px;border-top:1px solid black;border-radius:0 0 4px 4px;background-color:#f8f8ff;padding:2px 5px;text-transform:uppercase;display:flex;justify-content:space-between;font-size:14px;user-select:none}.leksy-editor-stepper .breadcrumb{list-style:none;display:flex;overflow:hidden;justify-content:end}.leksy-editor-stepper .breadcrumb li{margin-left:5px}.leksy-editor-stepper .breadcrumb li:after{content:">";margin-left:5px}.leksy-editor-stepper .breadcrumb li:last-child:after{content:""}.leksy-editor-modal{position:fixed;z-index:100;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#00000080}.leksy-editor-modal.leksy-editor-draggable-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:inherit;width:fit-content;height:inherit}.leksy-editor-modal-content{margin:10% auto;border:1px solid #898f9f;max-width:500px;border-radius:12px}.leksy-editor-modal.leksy-editor-draggable-modal .leksy-editor-modal-content{margin:unset;width:fit-content}.leksy-editor-modal-header{padding:1.25rem;display:flex;align-items:center;justify-content:space-between;background-color:#fff;border-bottom:1px solid #d4d5d8;border-radius:12px 12px 0 0;overflow:hidden}.leksy-editor-modal-body{background-color:#fff;padding:1.5rem;width:100%}.leksy-editor-modal-body .warning{color:red}.leksy-editor-modal-footer{background-color:#f2f2f3;padding:1.25rem;display:flex;justify-content:flex-end;gap:12px;border-radius:0 0 12px 12px;width:100%}.leksy-editor-modal input{width:100%;font-size:1rem;padding:10px 12px;border:1px solid #ccc;border-radius:6px;outline:none;transition:all .3s ease-in-out;color:#333}.leksy-editor-modal input:focus{border-color:#4592ff;background-color:#fff}.leksy-editor-modal input::placeholder{color:#bdbdbd}.leksy-editor-modal input:hover{border-color:#555}.leksy-editor-modal button.submit{height:2rem;padding:.75rem 1rem;background-color:#00b377;display:flex;align-items:center;justify-content:center;flex-direction:row;text-align:center;text-decoration:none;cursor:pointer;border:1px solid hsl(160,100%,40%);border-radius:6px;color:#fff;white-space:nowrap;gap:.5rem;transition:.5s;font-size:1rem}.leksy-editor-preview-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b9;display:block;align-items:center;justify-content:center;z-index:1000}.leksy-editor-preview-modal-content{height:100%;padding:20px;border-radius:8px;box-shadow:0 4px 6px #0000001a;position:relative;text-align:center}.leksy-editor-preview-modal-close{position:absolute;top:10px;right:20px;cursor:pointer;color:#fff;font-size:20px}.leksy-editor-preview-modal-close svg{width:28px}.leksy-editor-preview-modal-body{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.leksy-editor-preview-modal-body img{object-fit:contain;max-width:90%;max-height:90%}.leksy-editor-spinner{animation:leksy-editor-rotate 1s linear infinite;margin-right:8px;vertical-align:middle}.leksy-editor-spinner .leksy-editor-path{stroke:#fff;stroke-linecap:round;animation:leksy-editor-dash 1.5s ease-in-out infinite}.leksy-editor-upload-img-box{height:180px;border:2px dashed #d1d5db;border-radius:12px;background:#f9fafb;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .2s ease}.leksy-editor-upload-img-box:hover{border-color:gray}.leksy-editor-upload-img-preview-box{height:180px;border:2px solid grey;margin-bottom:8px;border-radius:8px}.leksy-editor-upload-img-preview{width:100%;height:100%;border-radius:8px;object-fit:cover;object-position:top}.leksy-editor-find-and-replace-modal-tab-btn{background:transparent;border:none;cursor:pointer;font-size:16px;padding:0;color:var(--primary)}.leksy-editor-find-and-replace-modal-tab-btn.active{font-weight:700;border-bottom:2px solid black}.leksy-editor-find-and-replace-modal-label{padding-left:4px;margin-bottom:10px}.leksy-editor-find-and-replace-modal-count{position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:12px;color:#585555;pointer-events:none;user-select:none}@keyframes leksy-editor-rotate{to{transform:rotate(360deg)}}@keyframes leksy-editor-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}
2
- /*# sourceMappingURL=index.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/style.css"],"sourcesContent":[".leksy-editor-container *,\n*:before,\n*:after {\n box-sizing: border-box;\n}\n\n.leksy-editor-container body,\n.leksy-editor-container p,\n.leksy-editor-container ul,\n.leksy-editor-container ol,\n.leksy-editor-container li {\n margin: 0;\n padding: 0;\n color: black;\n font-weight: normal;\n}\n\n.leksy-editor-container button {\n appearance: auto;\n text-rendering: auto;\n color: unset;\n letter-spacing: normal;\n word-spacing: normal;\n line-height: normal;\n text-transform: none;\n text-indent: 0px;\n text-shadow: none;\n display: inline-block;\n text-align: center;\n align-items: center;\n cursor: pointer;\n box-sizing: border-box;\n background-color: unset;\n padding-block: unset;\n border-width: 0px;\n border-style: outset;\n border-color: unset;\n border-image: initial;\n}\n\n.leksy-editor-container {\n width: 100%;\n min-height: 400px;\n border: 1px solid black;\n border-radius: 6px;\n display: flex;\n flex-direction: column;\n position: relative;\n}\n\n.leksy-editor-container.fullscreen {\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n background-color: white;\n z-index: 1000;\n border-radius: 0px;\n}\n\n.leksy-editor-toolbar {\n padding: 6px;\n border-bottom: 1px solid black;\n background-color: ghostwhite;\n flex: 0 1 auto;\n display: flex;\n flex-wrap: wrap;\n border-radius: 6px 6px 0px 0px;\n align-items: center;\n}\n\n.leksy-editor-toolbar-items {\n outline: 1px solid gray;\n display: flex;\n border-radius: 4px;\n margin: 2px;\n}\n\n.leksy-editor-toolbar-items span {\n font-size: 14px;\n white-space: nowrap;\n}\n\n.leksy-editor-toolbar-item {\n margin: 1px;\n padding: 6px 0;\n height: 34px;\n width: 34px;\n background: transparent;\n border-radius: 4px;\n position: relative;\n user-select: none;\n vertical-align: top;\n font-size: 1rem;\n cursor: pointer;\n outline: 0px;\n text-align: center;\n transition: .3s;\n}\n\n.leksy-editor-toolbar-item.active {\n color: #4592ff;\n fill: #4592ff;\n}\n\n.leksy-editor-toolbar-item.disabled {\n cursor: not-allowed;\n color: #bdbdbd;\n fill: #bdbdbd;\n}\n\n.leksy-editor-toolbar-item svg {\n width: 14px;\n height: 14px;\n}\n\n.leksy-editor-toolbar-item.select {\n padding: 0 8px;\n width: unset;\n}\n\n.leksy-editor-toolbar-item.button-select {\n border-radius: 4px 0 0 4px;\n margin-right: 0;\n}\n\n.leksy-editor-toolbar-item.select.button-select {\n padding: 0;\n border-radius: 0 4px 4px 0;\n margin-left: 0;\n margin-right: 1px;\n}\n\n.leksy-editor-toolbar-item.select.button-select svg {\n width: 18px;\n height: 18px;\n}\n\n.leksy-editor-toolbar-item.reset-color {\n width: unset;\n padding: 4px 8px;\n}\n\n.leksy-editor-toolbar-item.color {\n width: unset;\n padding: 4px 8px;\n}\n\n.leksy-editor-toolbar-item.color input {\n border: none;\n width: 25px;\n height: 25px;\n background: none;\n}\n\n.leksy-editor-toolbar-item.color div {\n display: inline;\n}\n\n.leksy-editor-toolbar-item:hover {\n background-color: lightgrey;\n border: pink;\n}\n\n.leksy-editor-toolbar-item:hover::after {\n opacity: 1;\n visibility: visible;\n}\n\n.leksy-editor-toolbar-item::after {\n content: attr(data-title);\n position: fixed;\n top: var(--leksy-editor-top, 0);\n left: var(--leksy-editor-left, 0);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s, visibility 0.3s;\n background-color: gray;\n box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);\n color: black;\n padding: 5px 10px;\n border-radius: 5px;\n transform: translateX(-50%);\n white-space: nowrap;\n z-index: 1;\n pointer-events: none;\n font-size: 0.875rem;\n}\n\n.leksy-editor-toolbar-table {\n display: grid;\n grid-template-columns: repeat(10, 20px);\n grid-template-rows: repeat(10, 20px);\n}\n\n.leksy-editor-toolbar-table .cell {\n width: 16px;\n height: 16px;\n border: 1px solid gray;\n background-color: lightgray;\n}\n\n.leksy-editor-toolbar-table .cell.selected {\n background-color: #0c8;\n}\n\n.leksy-editor-placeholder {\n user-select: none;\n opacity: 0.5;\n padding: 4px;\n position: absolute;\n}\n\n.leksy-editor-resize-items {\n margin-top: 4px;\n width: 235px;\n}\n\n.leksy-editor-resize-item {\n margin: 1px;\n padding: 6px;\n height: 34px;\n background: transparent;\n border-radius: 4px;\n position: relative;\n user-select: none;\n vertical-align: top;\n font-size: 1rem;\n cursor: pointer;\n outline: 0px;\n text-align: center;\n}\n\n.leksy-editor-resize-item svg {\n width: 15px;\n}\n\n.leksy-editor-resize-item:hover {\n background-color: lightgrey;\n border: pink;\n}\n\n.leksy-editor-resize-item:hover::after {\n opacity: 1;\n visibility: visible;\n}\n\n.leksy-editor-resize-item:not([data-title])::after,\n.leksy-editor-resize-item[data-title=\"\"]::after {\n display: none;\n}\n\n.leksy-editor-resize-item::after {\n content: attr(data-title);\n position: absolute;\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s, visibility 0.3s;\n background-color: gray;\n box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);\n color: black;\n padding: 5px 10px;\n border-radius: 5px;\n bottom: -90%;\n left: 60%;\n transform: translateX(-50%);\n white-space: nowrap;\n z-index: 1;\n pointer-events: none;\n font-size: 0.875rem;\n}\n\n.leksy-editor-dropdown-content {\n display: none;\n position: absolute;\n min-width: 160px;\n box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);\n border-radius: 6px;\n overflow: hidden;\n padding: 4px;\n z-index: 2000;\n background-color: white;\n}\n\n.leksy-editor-dropdown-content>button {\n display: block;\n width: 100%;\n margin: 0;\n text-align: left;\n padding: 8px 16px;\n cursor: pointer;\n white-space: nowrap;\n transition: .3s;\n border-radius: 6px;\n}\n\n.leksy-editor-dropdown-content>button svg {\n width: 10px;\n margin-right: 2px;\n}\n\n.leksy-editor-dropdown-content>button:hover {\n background-color: #28a745;\n color: #fff;\n}\n\n.leksy-editor-dropdown-content.gallery {\n width: 266px;\n height: 350px;\n padding: 0;\n overflow-y: auto;\n}\n\n.leksy-editor-dropdown-content.gallery img {\n width: 100%;\n}\n\n.leksy-editor-dropdown-content.gallery input {\n width: 100%;\n line-height: 1.5rem;\n padding: 2px 8px;\n border: 1px solid #ccc;\n border-radius: 6px;\n transition: all 0.3s ease-in-out;\n box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);\n font-size: 14px;\n position: sticky;\n top: 0;\n}\n\n.leksy-editor-dropdown-content.gallery input:focus {\n border-color: #4592ff;\n box-shadow: 0px 4px 8px rgba(69, 146, 255, 0.3);\n outline: none;\n}\n\n\n.leksy-editor-dropdown-content.category {\n width: 300px;\n height: 350px;\n padding: 6px;\n overflow-y: auto;\n user-select: none;\n}\n\n.leksy-editor-dropdown-content.category div {\n font-weight: bold;\n margin-top: 8px;\n margin-bottom: 4px;\n}\n\n.leksy-editor-dropdown-content.category span {\n padding: 4px;\n cursor: pointer;\n}\n\n.leksy-editor-dropdown-content.mention {\n width: 250px;\n height: 350px;\n padding: 6px;\n overflow-y: auto;\n user-select: none;\n}\n\n.leksy-editor-dropdown-content.mention input {\n width: 100%;\n line-height: 1.5rem;\n margin: 4px 0;\n}\n\n.leksy-editor-dropdown-content.mention button {\n display: block;\n width: 100%;\n margin: 0;\n text-align: left;\n padding: 8px 16px;\n cursor: pointer;\n white-space: nowrap;\n}\n\n.leksy-editor-dropdown-content.mention button:hover {\n background-color: green;\n}\n\n.leksy-editor-popover-content {\n display: none;\n position: absolute;\n min-width: 160px;\n box-shadow: 0 0 10px 0 grey;\n border-radius: 6px;\n padding: 4px;\n z-index: 2000;\n background-color: white;\n}\n\n.leksy-editor-popover-tabs {\n display: flex;\n background: #f1f1f1;\n border-bottom: 1px solid #ccc;\n}\n\nbutton.leksy-editor-popover-tab {\n padding: 8px 12px;\n border: none;\n background: transparent;\n cursor: pointer;\n}\n\nbutton.leksy-editor-popover-tab.active {\n border-bottom: 2px solid black;\n font-weight: bold;\n}\n\n.leksy-editor-popover-tabs .leksy-editor-popover-tab:not(:last-child) {\n border-right: 1px solid #ccc;\n}\n\n.leksy-editor-codeview {\n flex: 1 1 auto;\n padding: 4px;\n background-color: #1f1f1f;\n color: #74bed8;\n border: 0;\n outline: 0;\n display: none;\n resize: none;\n height: 400px;\n}\n\n.leksy-editor-stepper {\n height: 24px;\n border-top: 1px solid black;\n border-radius: 0 0 4px 4px;\n background-color: ghostwhite;\n padding: 2px 5px;\n text-transform: uppercase;\n display: flex;\n justify-content: space-between;\n font-size: 14px;\n user-select: none;\n /* Remove the last breadcrumb's slash */\n}\n\n.leksy-editor-stepper .breadcrumb {\n list-style: none;\n display: flex;\n overflow: hidden;\n justify-content: end;\n}\n\n.leksy-editor-stepper .breadcrumb li {\n margin-left: 5px;\n}\n\n.leksy-editor-stepper .breadcrumb li::after {\n content: \">\";\n margin-left: 5px;\n}\n\n.leksy-editor-stepper .breadcrumb li:last-child::after {\n content: \"\";\n}\n\n.leksy-editor-modal {\n position: fixed;\n z-index: 100;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.leksy-editor-modal.leksy-editor-draggable-modal {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background: inherit;\n width: fit-content;\n height: inherit;\n}\n\n.leksy-editor-modal-content {\n margin: 10% auto;\n border: 1px solid #898f9f;\n max-width: 500px;\n border-radius: 12px;\n}\n\n.leksy-editor-modal.leksy-editor-draggable-modal .leksy-editor-modal-content {\n margin: unset;\n width: fit-content;\n}\n\n.leksy-editor-modal-header {\n padding: 1.25rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n background-color: #fff;\n border-bottom: 1px solid #d4d5d8;\n border-radius: 12px 12px 0 0;\n overflow: hidden;\n}\n\n.leksy-editor-modal-body {\n background-color: #fff;\n padding: 1.5rem;\n width: 100%;\n}\n\n.leksy-editor-modal-body .warning {\n color: red;\n}\n\n.leksy-editor-modal-footer {\n background-color: #f2f2f3;\n padding: 1.25rem;\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n border-radius: 0 0 12px 12px;\n width: 100%;\n}\n\n.leksy-editor-modal input {\n width: 100%;\n font-size: 1rem;\n padding: 10px 12px;\n border: 1px solid #ccc;\n border-radius: 6px;\n outline: none;\n transition: all 0.3s ease-in-out;\n color: #333;\n}\n\n.leksy-editor-modal input:focus {\n border-color: #4592ff;\n background-color: #fff;\n}\n\n.leksy-editor-modal input::placeholder {\n color: #bdbdbd;\n}\n\n.leksy-editor-modal input:hover {\n border-color: #555;\n}\n\n.leksy-editor-modal button.submit {\n height: 2rem;\n padding: 0.75rem 1rem;\n background-color: hsl(160, 100%, 35%);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: row;\n text-align: center;\n text-decoration: none;\n cursor: pointer;\n border: 1px solid hsl(160, 100%, 40%);\n border-radius: 6px;\n color: hsl(0, 0%, 100%);\n white-space: nowrap;\n gap: 0.5rem;\n transition: 500ms;\n font-size: 1rem;\n}\n\n/* Overlay styling */\n.leksy-editor-preview-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.726);\n /* Dark semi-transparent background */\n display: block;\n /* Hidden by default */\n align-items: center;\n justify-content: center;\n z-index: 1000;\n}\n\n/* Modal content styling */\n.leksy-editor-preview-modal-content {\n height: 100%;\n padding: 20px;\n border-radius: 8px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n position: relative;\n text-align: center;\n}\n\n/* Close button styling */\n.leksy-editor-preview-modal-close {\n position: absolute;\n top: 10px;\n right: 20px;\n cursor: pointer;\n color: white;\n font-size: 20px;\n}\n\n.leksy-editor-preview-modal-close svg {\n width: 28px;\n}\n\n/* Modal body styling */\n.leksy-editor-preview-modal-body {\n display: flex;\n height: 100%;\n width: 100%;\n align-items: center;\n justify-content: center;\n}\n\n.leksy-editor-preview-modal-body img {\n object-fit: contain;\n max-width: 90%;\n max-height: 90%;\n}\n\n.leksy-editor-spinner {\n animation: leksy-editor-rotate 1s linear infinite;\n margin-right: 8px;\n vertical-align: middle;\n}\n\n.leksy-editor-spinner .leksy-editor-path {\n stroke: white;\n stroke-linecap: round;\n animation: leksy-editor-dash 1.5s ease-in-out infinite;\n}\n\n.leksy-editor-upload-img-box {\n height: 180px;\n border: 2px dashed #d1d5db;\n border-radius: 12px;\n background: #f9fafb;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: border-color 0.2s ease;\n}\n\n.leksy-editor-upload-img-box:hover {\n border-color: gray;\n}\n\n.leksy-editor-upload-img-preview-box {\n height: 180px;\n border: 2px solid grey;\n margin-bottom: 8px;\n border-radius: 8px;\n}\n\n.leksy-editor-upload-img-preview {\n width: 100%;\n height: 100%;\n border-radius: 8px;\n object-fit: cover;\n object-position: top;\n}\n\n.leksy-editor-find-and-replace-modal-tab-btn {\n background: transparent;\n border: none;\n cursor: pointer;\n font-size: 16px;\n padding: 0;\n color: var(--primary);\n}\n\n.leksy-editor-find-and-replace-modal-tab-btn.active {\n font-weight: bold;\n border-bottom: 2px solid black;\n}\n\n.leksy-editor-find-and-replace-modal-label {\n padding-left: 4px;\n margin-bottom: 10px;\n}\n\n.leksy-editor-find-and-replace-modal-count {\n position: absolute;\n right: 8px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 12px;\n color: #585555;\n pointer-events: none;\n user-select: none;\n}\n\n@keyframes leksy-editor-rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@keyframes leksy-editor-dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}"],"mappings":"AAAA,CAAC,uBAAuB,EACxB,CAAC,QACD,CAAC,OACG,WAA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