selectpackage.src.vaadin-select-value-button-styles.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
/**
* @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;
}
`;