@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.
87 lines (80 loc) • 2.43 kB
JavaScript
import "../../chunk-5WRI5ZAA.js";
// src/livePreview/editButton/editButton.style.ts
import { css } from "goober";
function cslpTagStyles() {
return {
"cslp-edit-mode": css`
outline: 1px dashed #6c5ce7 ;
`,
"cslp-tooltip": css`
padding: 0;
display: flex;
outline: none;
border: none;
z-index: 200 ;
position: fixed;
margin: 0;
height: 35px;
width: 72px;
background: white;
font-weight: 400 ;
color: #718096 ;
transition: background 0.2s;
text-align: center ;
border-radius: 8px ;
font-size: 14px ;
justify-content: space-around;
align-items: center;
box-shadow: 0px 8px 20px 0px #2222221a;
box-sizing: border-box;
top: -100%;
& div {
display: flex;
justify-content: space-around;
border-radius: 6px ;
cursor: pointer;
}
& div.cslp-tooltip-child:hover {
background: #edf2f7;
}
& div.cslp-tooltip-child:active:hover {
background: #c7d0e1;
}
& > div {
display: flex;
justify-content: space-evenly;
white-space: nowrap;
width: 70px;
}
& .cslp-tooltip-child.singular {
padding: 9px 1px;
}
`,
multiple: css`
& div.cslp-tooltip-child {
padding: 9px;
}
& div.cslp-tooltip-child:before {
opacity: 0;
font-size: 12px;
font-weight: 400;
pointer-events: none;
content: attr(data-title);
color: white;
padding: 5px 10px;
border-radius: 4px;
position: absolute;
background: #4a5568;
top: -30px;
transition: 0.2s all ease-in-out;
}
& div.cslp-tooltip-child:hover:before {
opacity: 1;
}
`
};
}
export {
cslpTagStyles
};
//# sourceMappingURL=editButton.style.js.map