2022-01-04 23:38:10 +01:00
|
|
|
/**
|
|
|
|
* Sharable date styles constant
|
|
|
|
*/
|
|
|
|
|
2023-09-13 19:55:33 +02:00
|
|
|
import {css} from "lit";
|
2022-02-15 19:47:42 +01:00
|
|
|
import {colorsDefStyles} from "../Styles/colorsDefStyles";
|
|
|
|
import {cssImage} from "../Et2Widget/Et2Widget";
|
2021-12-15 00:55:02 +01:00
|
|
|
|
2022-02-15 19:47:42 +01:00
|
|
|
export const dateStyles = [
|
|
|
|
colorsDefStyles,
|
|
|
|
css`
|
2021-12-15 00:55:02 +01:00
|
|
|
:host {
|
2022-07-20 00:55:46 +02:00
|
|
|
display: block;
|
2021-12-15 00:55:02 +01:00
|
|
|
white-space: nowrap;
|
2022-06-24 22:08:06 +02:00
|
|
|
min-width: fit-content;
|
2021-12-15 00:55:02 +01:00
|
|
|
}
|
|
|
|
.overdue {
|
|
|
|
color: red; // var(--whatever the theme color)
|
|
|
|
}
|
2022-02-23 18:43:39 +01:00
|
|
|
input.flatpickr {
|
2022-02-15 19:47:42 +01:00
|
|
|
border: 1px solid;
|
|
|
|
border-color: var(--input-border-color);
|
|
|
|
color: var(--input-text-color);
|
|
|
|
padding-top: 4px;
|
|
|
|
padding-bottom: 4px;
|
2022-02-23 18:43:39 +01:00
|
|
|
flex: 1 1 auto;
|
2022-02-15 19:47:42 +01:00
|
|
|
}
|
2022-02-23 18:43:39 +01:00
|
|
|
input.flatpickr:hover {
|
2022-02-15 19:47:42 +01:00
|
|
|
background-image: ${cssImage("datepopup")};
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position-x: right;
|
|
|
|
background-position-y: 1px;
|
|
|
|
background-size: 18px;
|
|
|
|
}
|
2022-02-16 14:36:06 +01:00
|
|
|
`];
|