date-pickerpackage.src.vaadin-month-calendar-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 monthCalendarStyles = css`
:host {
display: block;
}
#monthGrid {
width: 100%;
border-collapse: collapse;
}
#days-container tr,
#weekdays-container tr {
display: flex;
}
[part~='date'] {
outline: none;
}
[part~='disabled'] {
pointer-events: none;
}
[part='week-number'][hidden],
[part='weekday'][hidden] {
display: none;
}
[part='weekday'],
[part~='date'] {
width: calc(100% / 7);
padding: 0;
font-weight: normal;
}
[part='weekday']:empty,
[part='week-number'] {
width: 12.5%;
flex-shrink: 0;
padding: 0;
}
:host([week-numbers]) [part='weekday']:not(:empty),
:host([week-numbers]) [part~='date'] {
width: 12.5%;
}
@media (forced-colors: active) {
[part~='date'][part~='focused'] {
outline: 1px solid;
}
[part~='date'][part~='selected'] {
outline: 3px solid;
}
}
`;