slide-cast
Version:
Web presentation tool with video recording included
70 lines (61 loc) • 1.13 kB
JavaScript
let btn = /*css*/ `
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 100%;
border: none;
margin: 0;
cursor: pointer;
background-color: rgba(255, 255, 255, 0.1);
color: var(--clr-2);
backdrop-filter: blur(10px);
cursor: pointer;
outline: none;
`;
export default /*css*/ `
common-toolbar {
display: inline-flex;
gap: 10px;
position: fixed;
bottom: calc(var(--gap-max) * 2);
left: calc(var(--gap-max) * 2);
z-index: 100000;
&::part(color-picker) {
${btn}
}
&::part(color-picker-input) {
width: 100%;
height: 100%;
border: none;
opacity: 0;
}
&::part(color-picker-preview) {
display: inline-flex;
align-items: center;
justify-content: center;
position: absolute;
width: 14px;
height: 14px;
border-radius: 100%;
background-color: var(--clr-draw-current, #ffffff);
pointer-events: none;
}
&::part(btn-prev) {
${btn}
}
&::part(btn-next) {
${btn}
}
&::part(btn-clear) {
${btn}
}
&::part(btn-erase) {
${btn}
}
&::part(btn-recorder) {
${btn}
}
}
`;