date-pickerpackage.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 vaadin-webcomponents Show documentation
Show all versions of vaadin-webcomponents Show documentation
Mvnpm composite: Vaadin webcomponents
The newest version!
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' },
);