date-pickerpackage.src.vaadin-date-picker-overlay-content-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!
/**
* @license
* Copyright (c) 2016 - 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 overlayContentStyles = css`
:host {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
outline: none;
}
[part='overlay-header'] {
display: flex;
flex-shrink: 0;
flex-wrap: nowrap;
align-items: center;
}
:host(:not([fullscreen])) [part='overlay-header'] {
display: none;
}
[part='label'] {
flex-grow: 1;
}
[hidden] {
display: none !important;
}
[part='years-toggle-button'] {
display: flex;
}
#scrollers {
display: flex;
height: 100%;
width: 100%;
position: relative;
overflow: hidden;
}
:host([desktop]) ::slotted([slot='months']) {
right: 50px;
transform: none !important;
}
:host([desktop]) ::slotted([slot='years']) {
transform: none !important;
}
:host(.animate) ::slotted([slot='months']),
:host(.animate) ::slotted([slot='years']) {
transition: all 200ms;
}
[part='toolbar'] {
display: flex;
justify-content: space-between;
z-index: 2;
flex-shrink: 0;
}
`;