UNPKG

7.8 kBtext/lessView Raw
1@import (reference) './imports/global';
2@import (reference) './imports/mixins/shadows';
3@import (reference) './imports/aui-theme/theme';
4
5
6/*! AUI Date Picker, using jQuery UI Date Picker */
7/*
8 * CSS is a bit curious because it has to work both with and without jQuery UI's theme CSS present.
9 * jQuery UI themes are not meant to be loaded, but we can't prevent the scenario.
10 */
11
12@aui-datepicker-outer-gutter: 5px;
13@aui-datepicker-option-width: 35px;
14
15.aui-datepicker-dialog {
16 max-width: (@aui-datepicker-option-width * 7) + (@aui-datepicker-outer-gutter * 2);
17}
18
19.aui-datepicker-dialog .aui-datepicker-hint {
20 background: var(--aui-datepicker-panel-bg-color);
21 border-bottom: 1px solid var(--aui-datepicker-panel-divider-color);
22 color: var(--aui-datepicker-hint-text-color);
23 font-size: @aui-font-size-medium;
24 padding: 2px 5px;
25 border-radius: @aui-border-radius-smallish;
26 #aui.shadow.z200();
27}
28
29.aui-datepicker-dialog[x-placement*="bottom"]{
30 #aui-themes.when-light({
31 --aui-inline-dialog-bg-color: var(--aui-datepicker-heading-bg-color);
32 });
33}
34
35.aui-datepicker-dialog .aui-inline-dialog-contents,
36.aui-datepicker-dialog .contents {
37 padding: 0;
38}
39.aui-datepicker-dialog .aui-inline-dialog-arrow.aui-css-arrow:not(.aui-bottom-arrow):after,
40.aui-datepicker-dialog .arrow.aui-css-arrow:not(.aui-bottom-arrow):after {
41 border-bottom-color: var(--aui-datepicker-panel-bg-color);
42 top: 2px; //AUI-2522: fix for top arrow in FF
43}
44
45.aui-datepicker-dialog .ui-datepicker {
46 background: inherit;
47 color: inherit;
48 font-size: @aui-font-size-medium;
49 font-family: @aui-font-family;
50 padding: 0;
51}
52
53.aui-datepicker-dialog .ui-datepicker .ui-datepicker-header {
54 background: var(--aui-datepicker-heading-bg-color);
55 height: 14px;
56 margin: 0;
57 padding: 10px;
58 position:relative;
59}
60
61.aui-datepicker-dialog .ui-datepicker .ui-datepicker-title {
62 color: var(--aui-datepicker-heading-text-color);
63 font-size: @aui-font-size-medium;
64 font-weight: bold;
65 height: 14px;
66 line-height: 14px;
67 margin: 0;
68 padding: 0;
69 text-align: center;
70}
71
72/* jQuery UI Date Picker - Calendar */
73
74.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar {
75 border-spacing: 0;
76 margin: 0;
77 table-layout: fixed;
78 width: 100%;
79}
80
81.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar thead {
82 background: var(--aui-datepicker-heading-bg-color);
83}
84
85.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar tbody {
86 background: var(--aui-datepicker-panel-bg-color);
87 padding-bottom: 5px;
88}
89
90.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar th {
91 line-height: 15px;
92}
93
94.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar th {
95 #aui.typography.h100(var(--aui-datepicker-heading-weekdays-text-color));
96}
97
98.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar th,
99.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td {
100 cursor: default; // so that it doesn't flip between the text-selection and pointer cursors
101 padding: 0;
102 width: @aui-datepicker-option-width;
103}
104
105.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td a,
106.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td span {
107 border: 1px solid transparent;
108 border-radius: @aui-border-radius-smallish;
109 box-sizing: border-box;
110 display: block;
111 font-size: @aui-font-size-medium;
112 font-family: @aui-font-family;
113 line-height: 25px;
114 padding: 0;
115 text-align: center;
116}
117
118.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td a {
119 background: var(--aui-datepicker-option-bg-color);
120 color: var(--aui-datepicker-option-text-color);
121 text-decoration: none;
122 text-align: center;
123}
124
125.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td a:hover,
126.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td a:active,
127.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td a:focus {
128 background: var(--aui-datepicker-option-focus-bg-color);
129 border-color: $background;
130 color: var(--aui-datepicker-option-focus-text-color);
131}
132
133.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a {
134 background: var(--aui-datepicker-option-selected-bg-color);
135 border-color: $background;
136 color: var(--aui-datepicker-option-selected-text-color);
137}
138
139.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a:hover,
140.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-current-day a:focus {
141 background: var(--aui-datepicker-option-selected-bg-color);
142 border-color: $background;
143}
144
145.aui-datepicker-dialog .ui-datepicker .ui-datepicker-today {
146 font-weight: @aui-font-weight-bold;
147 text-decoration: underline;
148 text-decoration-width: 2px;
149}
150
151.aui-datepicker-dialog .ui-datepicker .ui-datepicker-unselectable {
152 background-color: var(--aui-datepicker-option-unselectable-bg-color);
153 color: var(--aui-datepicker-option-unselectable-text-color);
154}
155
156.aui-datepicker-dialog .ui-datepicker .ui-datepicker-other-month.ui-datepicker-unselectable {
157 background-color: var(--aui-datepicker-option-bg-color);
158}
159
160/* jQuery UI Overrides (default theme) */
161
162.aui-datepicker-dialog .ui-widget-header {
163 font-weight: normal;
164}
165
166.aui-datepicker-dialog .ui-widget-header,
167.aui-datepicker-dialog .ui-widget-content {
168 border: none;
169}
170
171.aui-datepicker-dialog .ui-datepicker td a,
172.aui-datepicker-dialog .ui-datepicker td span {
173 &,
174 &:hover,
175 &:active,
176 &:focus {
177 text-decoration: none;
178 }
179}
180
181.aui-datepicker-dialog .ui-datepicker .ui-datepicker-prev,
182.aui-datepicker-dialog .ui-datepicker .ui-datepicker-prev-hover,
183.aui-datepicker-dialog .ui-datepicker .ui-datepicker-next,
184.aui-datepicker-dialog .ui-datepicker .ui-datepicker-next-hover {
185 cursor: default;
186 height: 100%;
187 line-height: 35px;
188 padding: 0;
189 position: absolute;
190 text-align: center;
191 top: 0;
192 width: 40px;
193 border-width: 0;
194
195 span {
196 display: block;
197 position: absolute;
198 bottom: 0;
199 right: 0;
200 left: 0;
201 top: 0;
202 margin: 0;
203 width: 100%;
204 text-indent: 0;
205 }
206}
207
208.aui-datepicker-dialog .ui-datepicker .ui-datepicker-prev,
209.aui-datepicker-dialog .ui-datepicker .ui-datepicker-prev-hover { left: 0; }
210.aui-datepicker-dialog .ui-datepicker .ui-datepicker-next,
211.aui-datepicker-dialog .ui-datepicker .ui-datepicker-next-hover { right: 0; }
212
213.aui-datepicker-dialog .ui-datepicker .ui-datepicker-header .ui-datepicker-prev,
214.aui-datepicker-dialog .ui-datepicker .ui-datepicker-header .ui-datepicker-next {
215 &.ui-state-disabled {
216 &,
217 &:hover,
218 &:active,
219 &:focus {
220 color: var(--aui-datepicker-disabled-text-color);
221 }
222 }
223}
224
225.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar > thead > tr > th {
226 padding-bottom: 5px;
227 border-bottom: 1px solid var(--aui-datepicker-panel-divider-color);
228}
229
230.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar > thead > tr > th:first-child,
231.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar > tbody > tr > td:first-child {
232 padding-left: 5px;
233}
234
235.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar > thead > tr > th:last-child,
236.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar > tbody > tr > td:last-child {
237 padding-right: 5px;
238}
239
240.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar > tbody > tr:first-child > td {
241 padding-top: 5px;
242}
243
244.aui-datepicker-dialog .ui-datepicker .ui-datepicker-calendar > tbody > tr:last-child > td {
245 padding-bottom: 5px;
246}
247
248.aui-calendar-widget {
249 display: inline-flex;
250 flex-direction: column;
251}