egroupware/api/js/etemplate/Et2Date/DateStyles.ts

34 lines
749 B
TypeScript
Raw Normal View History

2022-01-04 23:38:10 +01:00
/**
* Sharable date styles constant
*/
import {css} from "@lion/core";
2022-02-15 19:47:42 +01:00
import {colorsDefStyles} from "../Styles/colorsDefStyles";
import {cssImage} from "../Et2Widget/Et2Widget";
2022-02-15 19:47:42 +01:00
export const dateStyles = [
colorsDefStyles,
css`
:host {
display: inline-block;
white-space: nowrap;
min-width: 20ex;
}
.overdue {
color: red; // var(--whatever the theme color)
}
2022-02-15 19:47:42 +01:00
input.flatpickr-input {
border: 1px solid;
border-color: var(--input-border-color);
color: var(--input-text-color);
padding-top: 4px;
padding-bottom: 4px;
}
input.flatpickr-input:hover {
background-image: ${cssImage("datepopup")};
background-repeat: no-repeat;
background-position-x: right;
background-position-y: 1px;
background-size: 18px;
}
`];