// Copyright 2023 The Pigweed Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations under // the License. import { css } from 'lit'; export const styles = css` :host { align-items: center; background-color: var(--sys-log-viewer-color-controls-bg); border-bottom: 1px solid var(--md-sys-color-outline-variant); box-sizing: border-box; color: var(--sys-log-viewer-color-controls-text); display: flex; flex-shrink: 0; gap: 1rem; height: 3rem; justify-content: space-between; padding: 0 1rem; --md-list-item-leading-icon-size: 1.5rem; } :host > * { display: flex; } .host-name { font-size: 1.125rem; font-weight: 300; margin: 0; white-space: nowrap; } .field-menu { background-color: var(--md-sys-color-surface-container); border-radius: 4px; margin: 0; padding: 0.5rem 0.75rem; position: absolute; right: 0; z-index: 2; } md-standard-icon-button[selected] { background-color: var(--sys-log-viewer-color-controls-button-enabled); border-radius: 100%; } .field-menu-item { align-items: center; display: flex; height: 3rem; width: max-content; } .field-toggle { border-radius: 1.5rem; position: relative; } .input-container { justify-content: flex-end; width: 100%; } input[type='text'] { align-items: center; background-color: var(--sys-log-viewer-color-controls-input-bg); border: 1px solid var(--sys-log-viewer-color-controls-input-outline); border-radius: 1.5rem; cursor: text; display: inline-flex; font-size: 1rem; height: 0.75rem; line-height: 0.75; max-width: 30rem; overflow: hidden; padding: 0.5rem 1rem; width: 100%; } input::placeholder { color: var(--md-sys-color-on-surface-variant); } input[type='checkbox'] { accent-color: var(--md-sys-color-primary); height: 1.125rem; width: 1.125rem; } label { padding-left: 0.75rem; } p { flex: 1 0; white-space: nowrap; } `;