lebel-studio / web /libs /editor /src /components /InteractiveOverlays /CommentsOverlay.module.css
bisalsaha's picture
Upload 8831 files
a7060a0 verified
Raw History Blame Contribute Delete
1.06 kB
.container {
--icon-primary-color: var(--grape_600);
--icon-secondary-color: var(--color-primary-surface-content);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 100;
.commentItem {
transition: opacity 300ms;
transform: translateY(-100%);
filter: drop-shadow(0 2px 8px #12110d52) drop-shadow(0 8px 16px #12110d1f);
pointer-events: all;
cursor: pointer;
}
.commentIcon {
/* to fit into usual screen edges with paddings */
scale: 0.8;
translate: -2px 4px;
}
.commentIconBackground {
transition: fill 300ms;
fill: var(--icon-secondary-color);
}
.commentIconLines {
transition: fill 300ms;
fill: var(--icon-primary-color);
}
&._highlighting {
& .commentItem {
opacity: 0.2;
&._highlighted {
opacity: 1;
& .commentIconBackground {
fill: var(--icon-primary-color);
}
& .commentIconLines {
fill: var(--icon-secondary-color);
}
}
}
}
}