tltv-timeline-element 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,4 +3,20 @@ Timeline LitElement web component
3
3
  Migrated from GWT Timeline widget for Gantt component (Java/Vaadin Framework 8).
4
4
 
5
5
  Guide to how to use LitElements:
6
- https://lit-element.polymer-project.org/guide/use
6
+ https://lit-element.polymer-project.org/guide/use
7
+
8
+ ## Styling
9
+
10
+ The timeline styles live in the element's shadow DOM. Colors and sizes can be
11
+ customized with the following CSS custom properties (defaults in parentheses):
12
+
13
+ | Property | Description |
14
+ | --- | --- |
15
+ | `--timeline-row-background` (`#d0d0d0`) | Background of header rows (year, month, day). |
16
+ | `--timeline-row-even-background` (`#ddd`) | Background of every even month and day block in the header. |
17
+ | `--timeline-row-height` (`15px`) | Height of a header row. |
18
+ | `--timeline-row-font-size` (`10px`) | Font size of a header row. |
19
+ | `--timeline-col-background-color` (`#ddd`) | Background of resolution blocks. |
20
+ | `--timeline-col-even-background-color` (`#ccc`) | Background of even resolution blocks. |
21
+ | `--timeline-col-weekend` (`#ccc`) | Background of weekend resolution blocks. |
22
+ | `--timeline-col-font-size` (`10px`) | Font size of resolution blocks. |
@@ -147,10 +147,10 @@ export let TimelineElement = TimelineElement_1 = class TimelineElement extends L
147
147
 
148
148
  .month:nth-of-type(even),
149
149
  .day:nth-of-type(even) {
150
- background-color: #ddd;
150
+ background-color: var(--timeline-row-even-background, #ddd);
151
151
  }
152
152
  .col.even {
153
- background-color: #ccc;
153
+ background-color: var(--timeline-col-even-background-color, #ccc);
154
154
  }
155
155
 
156
156
  .col {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tltv-timeline-element",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Timeline web component",
5
5
  "main": "timeline-element.js",
6
6
  "module": "timeline-element.js",
@@ -247,10 +247,10 @@ export class TimelineElement extends LitElement {
247
247
 
248
248
  .month:nth-of-type(even),
249
249
  .day:nth-of-type(even) {
250
- background-color: #ddd;
250
+ background-color: var(--timeline-row-even-background, #ddd);
251
251
  }
252
252
  .col.even {
253
- background-color: #ccc;
253
+ background-color: var(--timeline-col-even-background-color, #ccc);
254
254
  }
255
255
 
256
256
  .col {