blob: b66ac911e1361a4d3d39f84c8938d4c526cc8a9a [file]
/*
* 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 > *) {
.comments-container {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
overflow: hidden;
}
.comments-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
height: var(--sys-size-13);
padding: 0 var(--sys-size-5);
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
background-color: var(--sys-color-surface1);
flex-shrink: 0;
}
.toolbar-left {
display: flex;
align-items: center;
height: 100%;
gap: var(--sys-size-8);
padding-left: var(--sys-size-3);
}
.tab-button {
position: relative;
display: flex;
align-items: center;
height: 100%;
padding: 0 var(--sys-size-2);
border: none;
background: transparent;
color: var(--sys-color-on-surface-subtle);
font-size: var(--sys-typescale-body4-size);
font-weight: var(--ref-typeface-weight-regular);
cursor: pointer;
}
.tab-button:hover {
color: var(--sys-color-on-surface);
}
.tab-button:focus-visible {
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
outline-offset: calc(-1 * var(--sys-size-2));
}
.tab-button.active {
color: var(--sys-color-primary);
font-weight: var(--ref-typeface-weight-bold);
}
.tab-button.active::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: var(--sys-size-2);
background-color: var(--sys-color-primary);
border-radius: var(--sys-shape-corner-full) var(--sys-shape-corner-full) 0 0;
}
.toolbar-button {
display: flex;
align-items: center;
justify-content: center;
width: var(--sys-size-11);
height: var(--sys-size-11);
padding: 0;
border: none;
background: transparent;
border-radius: var(--sys-shape-corner-extra-small);
cursor: pointer;
color: var(--sys-color-on-surface-subtle);
}
.toolbar-button:hover {
background-color: var(--sys-color-state-hover-on-subtle);
color: var(--sys-color-on-surface);
}
.toolbar-button:active {
background-color: var(--sys-color-state-ripple-neutral-on-subtle);
}
.comments-list {
flex: 1;
overflow-y: auto;
margin: 0;
padding: 0;
list-style: none;
}
.comment-thread-item {
display: flex;
align-items: center;
gap: var(--sys-size-5);
padding: var(--sys-size-5) var(--sys-size-8);
border-bottom: var(--sys-size-1) solid var(--sys-color-divider);
cursor: pointer;
transition: background-color var(--sys-motion-duration-short4) var(--sys-motion-easing-emphasized);
}
.comment-thread-item:hover {
background-color: var(--sys-color-state-hover-on-subtle);
}
.comment-thread-item:focus-visible {
background-color: var(--sys-color-state-hover-on-subtle);
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
outline-offset: calc(-1 * var(--sys-size-2));
}
.comment-pin-badge {
width: var(--sys-size-9);
height: var(--sys-size-9);
margin-right: var(--sys-size-2);
border-radius: var(--sys-shape-corner-full) var(--sys-shape-corner-full) var(--sys-shape-corner-full) var(--sys-shape-corner-extra-small);
background-color: var(--sys-color-primary);
flex-shrink: 0;
}
.comment-thread-item.orphaned .comment-pin-badge {
background-color: var(--sys-color-surface-variant);
color: var(--sys-color-on-surface-subtle);
}
.anchor-chip {
display: flex;
height: calc(var(--sys-size-8) + var(--sys-size-2));
padding: var(--sys-size-2) var(--sys-size-4) var(--sys-size-2) var(--sys-size-3);
align-items: center;
border-radius: var(--sys-shape-corner-extra-small);
border: var(--sys-size-1) solid var(--sys-color-divider);
background: var(--sys-color-surface2);
font-family: var(--source-code-font-family);
font-size: var(--monospace-font-size);
color: var(--sys-color-token-tag);
overflow: hidden;
max-width: var(--sys-size-24);
min-width: 0;
flex-shrink: 0;
pointer-events: none;
}
.anchor-chip.orphaned {
border-style: dashed;
border-color: var(--sys-color-neutral-outline);
background: transparent;
color: var(--sys-color-state-disabled);
gap: var(--sys-size-3);
}
.anchor-chip.orphaned .anchor-chip-text {
color: var(--sys-color-state-disabled);
}
.orphaned-label {
flex-shrink: 0;
color: var(--sys-color-on-surface-subtle);
font-family: var(--default-font-family);
font-size: var(--sys-typescale-body5-size);
font-style: italic;
}
.anchor-chip devtools-widget,
.anchor-chip-text {
display: block;
flex: 0 1 auto;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.comment-text {
flex: 1;
font-size: var(--sys-typescale-body4-size);
line-height: var(--sys-typescale-body4-line-height);
color: var(--sys-color-on-surface);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.thread-status-working {
display: flex;
align-items: center;
gap: var(--sys-size-4);
color: var(--sys-color-on-surface-subtle);
font-size: var(--sys-typescale-body4-size);
line-height: var(--sys-typescale-body4-line-height);
font-weight: var(--ref-typeface-weight-medium);
white-space: nowrap;
}
.comments-empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: var(--sys-color-on-surface-subtle);
font-size: var(--sys-typescale-body3-size);
padding: var(--sys-size-13);
text-align: center;
}
.comments-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: var(--sys-size-5);
padding: var(--sys-size-5) var(--sys-size-8);
border-top: var(--sys-size-1) solid var(--sys-color-divider);
flex-shrink: 0;
}
.info-icon {
color: var(--sys-color-on-surface-subtle);
cursor: pointer;
}
.info-tooltip-container {
max-width: var(--sys-size-28);
padding: var(--sys-size-4) var(--sys-size-5);
}
.send-agent-button {
background-color: var(--sys-color-primary);
color: var(--sys-color-on-primary);
border: none;
border-radius: var(--sys-shape-corner-full);
padding: var(--sys-size-4) var(--sys-size-8);
font-size: var(--sys-typescale-body4-size);
font-weight: var(--ref-typeface-weight-medium);
cursor: pointer;
transition: background-color var(--sys-motion-duration-short4) var(--sys-motion-easing-emphasized), box-shadow var(--sys-motion-duration-short4) var(--sys-motion-easing-emphasized);
}
.send-agent-button:hover {
background-color: var(--sys-color-primary-bright);
box-shadow: var(--sys-elevation-level1);
}
.send-agent-button:disabled {
background-color: var(--sys-color-state-disabled-container);
color: var(--sys-color-state-disabled);
cursor: default;
box-shadow: none;
}
}