UNPKG

chrome-devtools-frontend

Version:
81 lines (69 loc) 1.67 kB
/* * Copyright 2023 The Chromium Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ * { box-sizing: border-box; font-size: inherit; margin: 0; padding: 0; } devtools-editable-content { background: transparent; border: none; color: var(--color-text-primary); cursor: text; display: inline-block; line-height: 18px; min-height: 18px; min-width: 0.5em; outline: none; overflow-wrap: anywhere; } devtools-editable-content:hover, devtools-editable-content:focus { box-shadow: 0 0 0 1px var(--color-details-hairline); border-radius: 2px; } devtools-editable-content[placeholder]:empty::before { content: attr(placeholder); color: var(--color-text-primary); opacity: 50%; } devtools-editable-content[placeholder]:empty:focus::before { content: ""; } devtools-suggestion-box { position: absolute; visibility: hidden; display: block; } devtools-editable-content:focus ~ devtools-suggestion-box { visibility: visible; } .suggestions { background-color: var(--color-background); box-shadow: var(--drop-shadow); min-height: 1em; min-width: 150px; overflow-x: hidden; overflow-y: auto; position: relative; z-index: 100; } .suggestions > li { padding: 1px; border: 1px solid transparent; white-space: nowrap; font-family: var(--source-code-font-family); font-size: var(--source-code-font-size); color: var(--color-text-primary); } .suggestions > li:hover { background-color: var(--item-hover-color); } .suggestions > li.selected { background-color: var(--color-primary); color: var(--color-background); }