chrome-devtools-frontend
Version:
Chrome DevTools UI
91 lines (75 loc) • 1.9 kB
CSS
/*
* Copyright 2011 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
:host {
display: flex;
flex: auto;
}
.suggest-box {
flex: auto;
background-color: var(--sys-color-cdt-base-container);
pointer-events: auto;
margin-left: -3px;
box-shadow: var(--drop-shadow);
overflow-x: hidden;
}
.suggest-box-content-item {
padding: var(--sys-size-1) 0 var(--sys-size-1) var(--sys-size-1);
margin: 0;
border: var(--sys-size-1) solid transparent;
white-space: nowrap;
display: flex;
align-items: center;
justify-content: space-between;
}
.suggest-box-content-item.secondary {
background-color: var(--sys-color-neutral-container);
justify-content: normal;
}
.suggestion-title {
overflow: hidden;
text-overflow: ellipsis;
}
.suggestion-title span {
white-space: pre;
}
.suggestion-subtitle {
flex: auto;
text-align: right;
color: var(--sys-color-token-subtle);
margin-right: 3px;
overflow: hidden;
text-overflow: ellipsis;
}
.suggest-box-content-item devtools-icon {
color: var(--sys-color-on-surface-subtle);
margin-right: var(--sys-size-1);
}
.suggest-box-content-item .query {
font-weight: bold;
}
.suggest-box-content-item .spacer {
display: inline-block;
width: var(--sys-size-9);
}
.suggest-box-content-item.selected {
background-color: var(--sys-color-tonal-container);
}
.suggest-box-content-item.selected .suggestion-subtitle,
.suggest-box-content-item.selected > span {
color: var(--sys-color-on-tonal-container);
}
.suggest-box-content-item:hover:not(.selected) {
background-color: var(--sys-color-state-hover-on-subtle);
}
@media (forced-colors: active) {
.suggest-box-content-item.selected {
forced-color-adjust: none;
background-color: Highlight;
}
.suggest-box-content-item.selected > span {
color: HighlightText;
}
}