chrome-devtools-frontend
Version:
Chrome DevTools UI
51 lines (45 loc) • 1.41 kB
CSS
/*
* Copyright 2026 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@scope to (devtools-widget > *) {
:scope,
.comments-overlay-container {
position: fixed;
inset: 0;
pointer-events: none;
/* Needs to be above regular panel widgets (e.g. flame chart at z-index 2000) but below floating glass panes (which start at z-index 3000). */
z-index: 2500;
overflow: hidden;
width: 100vw;
height: 100vh;
}
.comment-pin {
position: absolute;
pointer-events: auto;
cursor: pointer;
font-size: var(--sys-typescale-headline1-size);
line-height: var(--sys-typescale-body1-line-height);
filter: drop-shadow(0 2px 5px rgb(0 0 0 / 35%));
user-select: none;
transition: transform 0.1s ease;
}
.comment-pin:hover {
transform: scale(1.15);
}
.comment-anchor-highlight {
position: absolute;
pointer-events: none;
border: var(--sys-size-2) dashed var(--sys-color-primary);
background-color: color-mix(in srgb, var(--sys-color-primary), transparent 90%);
box-sizing: border-box;
}
.comment-hover-highlight {
position: absolute;
pointer-events: none;
border: var(--sys-size-2) solid var(--sys-color-primary);
background-color: color-mix(in srgb, var(--sys-color-primary), transparent 85%);
box-sizing: border-box;
}
}