date-pickerpackage.theme.lumo.vaadin-date-picker-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
The newest version!
import '@vaadin/input-container/theme/lumo/vaadin-input-container-styles.js';
import '@vaadin/vaadin-lumo-styles/font-icons.js';
import { inputFieldShared } from '@vaadin/vaadin-lumo-styles/mixins/input-field-shared.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
const datePicker = css`
[part='toggle-button']::before {
content: var(--lumo-icons-calendar);
}
[part='clear-button']::before {
content: var(--lumo-icons-cross);
}
@media (max-width: 420px), (max-height: 420px) {
[part='overlay-content'] {
height: 70vh;
}
}
:host([dir='rtl']) [part='input-field'] ::slotted(input) {
--_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
}
:host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
--_lumo-text-field-overflow-mask-image: none;
}
`;
registerStyles('vaadin-date-picker', [inputFieldShared, datePicker], { moduleId: 'lumo-date-picker' });