package.theme.lumo.vaadin-date-picker-year-styles.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of date-picker Show documentation
Show all versions of date-picker Show documentation
Web component providing a date selection field with scrollable month calendar
import '@vaadin/vaadin-lumo-styles/color.js';
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
registerStyles(
'vaadin-date-picker-year',
css`
:host([current]) [part='year-number'] {
color: var(--lumo-primary-text-color);
}
:host(:not([current])) [part='year-number'],
[part='year-separator'] {
opacity: var(--_lumo-date-picker-year-opacity, 0.7);
transition: 0.2s opacity;
}
[part='year-number'],
[part='year-separator'] {
display: flex;
align-items: center;
justify-content: center;
height: 50%;
transform: translateY(-50%);
}
[part='year-separator']::after {
color: var(--lumo-disabled-text-color);
content: '\\2022';
}
`,
{ moduleId: 'lumo-date-picker-year' },
);
© 2015 - 2024 Weber Informatics LLC | Privacy Policy