UNPKG

@scoped-vaadin/select

Version:
51 lines (45 loc) 985 B
/** * @license * Copyright (c) 2017 - 2024 Vaadin Ltd. * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/ */ import { css } from 'lit'; export const valueButton = css` :host { display: inline-block; position: relative; outline: none; white-space: nowrap; -webkit-user-select: none; -moz-user-select: none; user-select: none; min-width: 0; width: 0; } ::slotted(*) { padding-left: 0; padding-right: 0; flex: auto; } /* placeholder styles */ ::slotted(*:not([selected])) { line-height: 1; } .vaadin-button-container { display: inline-flex; align-items: center; justify-content: center; text-align: inherit; width: 100%; height: 100%; min-height: inherit; text-shadow: inherit; } [part='label'] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; line-height: inherit; } `;