@contentstack/live-preview-utils
Version:
Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.
1 lines • 3.04 kB
Source Map (JSON)
{"version":3,"sources":["../../../../src/livePreview/editButton/editButton.style.ts"],"sourcesContent":["import { css } from \"goober\";\n\nexport function cslpTagStyles() {\n return {\n \"cslp-edit-mode\": css`\n outline: 1px dashed #6c5ce7 !important;\n `,\n \"cslp-tooltip\": css`\n padding: 0;\n display: flex;\n outline: none;\n border: none;\n z-index: 200 !important;\n position: fixed;\n margin: 0;\n height: 35px;\n width: 72px;\n background: white;\n font-weight: 400 !important;\n color: #718096 !important;\n transition: background 0.2s;\n text-align: center !important;\n border-radius: 8px !important;\n font-size: 14px !important;\n justify-content: space-around;\n align-items: center;\n box-shadow: 0px 8px 20px 0px #2222221a;\n box-sizing: border-box;\n top: -100%;\n & div {\n display: flex;\n justify-content: space-around;\n border-radius: 6px !important;\n cursor: pointer;\n }\n\n & div.cslp-tooltip-child:hover {\n background: #edf2f7;\n }\n\n & div.cslp-tooltip-child:active:hover {\n background: #c7d0e1;\n }\n\n & > div {\n display: flex;\n justify-content: space-evenly;\n white-space: nowrap;\n width: 70px;\n }\n\n & .cslp-tooltip-child.singular {\n padding: 9px 1px;\n }\n `,\n multiple: css`\n & div.cslp-tooltip-child {\n padding: 9px;\n }\n\n & div.cslp-tooltip-child:before {\n opacity: 0;\n font-size: 12px;\n font-weight: 400;\n pointer-events: none;\n content: attr(data-title);\n color: white;\n padding: 5px 10px;\n border-radius: 4px;\n position: absolute;\n background: #4a5568;\n top: -30px;\n transition: 0.2s all ease-in-out;\n }\n\n & div.cslp-tooltip-child:hover:before {\n opacity: 1;\n }\n `,\n } as const;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAoB;AAEb,SAAS,gBAAgB;AAC5B,SAAO;AAAA,IACH,kBAAkB;AAAA;AAAA;AAAA,IAGlB,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAgDhB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAwBd;AACJ;","names":[]}