mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
38 lines
1.1 KiB
CSS
38 lines
1.1 KiB
CSS
/* The comment editor over a picked element, floating above a still of the page. */
|
|
@keyframes browser-comment-enter {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes browser-comment-editor-enter {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(4px) scale(0.98);
|
|
}
|
|
}
|
|
|
|
[data-component="browser-comment"],
|
|
[data-slot="browser-comment-spotlight"] {
|
|
animation: browser-comment-enter 160ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
}
|
|
|
|
/* Dim the frozen page around the picked element, whose DevTools highlight stays in the still. */
|
|
[data-slot="browser-comment-spotlight"] {
|
|
box-shadow:
|
|
0 0 0 1px var(--v2-border-border-focus),
|
|
0 0 0 100vmax color-mix(in srgb, var(--v2-overlay-simple-overlay-scrim) 50%, transparent);
|
|
}
|
|
|
|
[data-component="browser-comment"] [data-slot="browser-comment-editor"] {
|
|
animation: browser-comment-editor-enter 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
transform-origin: top left;
|
|
}
|
|
|
|
:root[data-motion="reduce"] {
|
|
[data-component="browser-comment"],
|
|
[data-slot="browser-comment-spotlight"],
|
|
[data-component="browser-comment"] [data-slot="browser-comment-editor"] {
|
|
animation: none;
|
|
}
|
|
}
|