-
Notifications
You must be signed in to change notification settings - Fork 6
/
d2l-date-picker-style-modules.js
114 lines (97 loc) · 2.56 KB
/
d2l-date-picker-style-modules.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import '@brightspace-ui/core/components/colors/colors.js';
import '@polymer/polymer/polymer-legacy.js';
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
let $_documentContainer = html`<dom-module id="d2l-vaadin-overlay-content-styles" theme-for="vaadin-date-picker-overlay vaadin-date-picker-overlay-content">
<template>
<style>
:host {
box-shadow: none;
font-family: inherit;
}
[part="overlay"] {
max-height: 355px;
width: 420px;
}
[part~="overlay-header"] {
background-color: var(--d2l-color-celestine);
color: white;
}
[part~="toolbar"] {
background: white;
box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 0.5);
margin-right: 0;
}
[part~="months"] {
-webkit-mask-image: none;
}
[part~="years"] {
color: white;
background-color: var(--d2l-color-ferrite);
-webkit-mask-image: none;
}
[part="year-number"], [part="year-separator"] {
opacity: 1;
transition: none;
}
[part="years"] [part="year-number"][current] {
color: white;
}
[part="years"] [part="year-separator"]::after {
color: var(--d2l-color-tungsten);
font-size: 20px;
}
[part~="years-toggle-button"] {
background-color: var(--d2l-color-celestine);
cursor: pointer;
}
</style>
</template>
</dom-module>`;
document.head.appendChild($_documentContainer.content);
$_documentContainer = html`<dom-module id="d2l-vaadin-month-calendar-styles" theme-for="vaadin-month-calendar">
<template>
<style include="vaadin-month-calendar-default-theme">
:host {
font-family: inherit;
color: var(--d2l-color-tungsten);
--lumo-primary-color: var(--d2l-color-celestine);
}
[part~="date"] {
color: var(--d2l-color-ferrite);
}
[part~="date"][focused] {
font-weight: 700;
}
[part~="month-header"] {
color: var(--d2l-color-ferrite);
font-size: 16px;
font-weight: 400;
line-height: 24px;
font-family: inherit;
}
[part~="weekday"] {
color: var(--d2l-color-tungsten);
font-size: 12px;
text-transform: uppercase;
}
</style>
</template>
</dom-module>`;
document.head.appendChild($_documentContainer.content);
$_documentContainer = html`<dom-module id="d2l-vaadin-button-styles" theme-for="vaadin-button">
<template>
<style>
:host {
background: none;
font-family: inherit;
text-transform: uppercase;
color: var(--d2l-color-celestine);
font-size: 14px;
border: none;
cursor: pointer;
font-weight: 500;
}
</style>
</template>
</dom-module>`;
document.head.appendChild($_documentContainer.content);