office-ui-fabric-js-rails 1.3.0.0 → 1.4.0.0
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.
- checksums.yaml +4 -4
- data/lib/office-ui-fabric-js-rails/version.rb +2 -2
- data/package.json +2 -2
- data/vendor/assets/css/fabric.components.css +18 -6
- data/vendor/assets/css/fabric.components.min.css +2 -2
- data/vendor/assets/css/fabric.components.rtl.css +18 -6
- data/vendor/assets/css/fabric.components.rtl.min.css +2 -2
- data/vendor/assets/js/fabric.js +32 -41
- data/vendor/assets/js/fabric.min.js +4 -4
- data/vendor/assets/scss/components/Breadcrumb.scss +174 -174
- data/vendor/assets/scss/components/Button.scss +300 -286
- data/vendor/assets/scss/components/Callout.scss +157 -157
- data/vendor/assets/scss/components/CheckBox.scss +172 -172
- data/vendor/assets/scss/components/ChoiceFieldGroup.scss +14 -13
- data/vendor/assets/scss/components/CommandBar.scss +138 -138
- data/vendor/assets/scss/components/CommandButton.scss +293 -293
- data/vendor/assets/scss/components/ContextualHost.scss +142 -142
- data/vendor/assets/scss/components/ContextualMenu.scss +208 -208
- data/vendor/assets/scss/components/DatePicker.scss +527 -527
- data/vendor/assets/scss/components/DetailsList.scss +337 -337
- data/vendor/assets/scss/components/Dialog.scss +118 -118
- data/vendor/assets/scss/components/DialogHost.scss +12 -12
- data/vendor/assets/scss/components/Dropdown.scss +251 -251
- data/vendor/assets/scss/components/FacePile.scss +104 -104
- data/vendor/assets/scss/components/Label.scss +37 -37
- data/vendor/assets/scss/components/Link.scss +31 -31
- data/vendor/assets/scss/components/List.scss +16 -16
- data/vendor/assets/scss/components/ListItem.scss +237 -237
- data/vendor/assets/scss/components/MessageBanner.scss +128 -128
- data/vendor/assets/scss/components/MessageBar.scss +87 -87
- data/vendor/assets/scss/components/OrgChart.scss +46 -46
- data/vendor/assets/scss/components/Overlay.scss +34 -34
- data/vendor/assets/scss/components/Panel.scss +155 -155
- data/vendor/assets/scss/components/PanelHost.scss +15 -15
- data/vendor/assets/scss/components/PeoplePicker.scss +449 -449
- data/vendor/assets/scss/components/Persona.scss +731 -731
- data/vendor/assets/scss/components/PersonaCard.scss +208 -208
- data/vendor/assets/scss/components/Pivot.scss +201 -201
- data/vendor/assets/scss/components/ProgressIndicator.scss +64 -64
- data/vendor/assets/scss/components/RadioButton.scss +194 -194
- data/vendor/assets/scss/components/SearchBox.scss +368 -369
- data/vendor/assets/scss/components/Spinner.scss +48 -48
- data/vendor/assets/scss/components/Table.scss +123 -123
- data/vendor/assets/scss/components/TextField.scss +232 -232
- data/vendor/assets/scss/components/Toggle.scss +249 -249
- metadata +2 -2
@@ -1,530 +1,530 @@
|
|
1
1
|
/**
|
2
|
-
* Office UI Fabric JS 1.
|
2
|
+
* Office UI Fabric JS 1.4.0
|
3
3
|
* The JavaScript front-end framework for building experiences for Office 365.
|
4
4
|
**/
|
5
|
-
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
|
6
|
-
|
7
|
-
//
|
8
|
-
// Office UI Fabric
|
9
|
-
// --------------------------------------------------
|
10
|
-
// Date Picker styles
|
11
|
-
|
12
|
-
|
13
|
-
.ms-DatePicker {
|
14
|
-
@include ms-baseFont;
|
15
|
-
@include ms-u-normalize;
|
16
|
-
margin-bottom: 17px;
|
17
|
-
z-index: $ms-zIndex-DatePicker;
|
18
|
-
|
19
|
-
.ms-TextField { position: relative; }
|
20
|
-
}
|
21
|
-
|
22
|
-
// Base wrapper for the date picker.
|
23
|
-
.ms-DatePicker-picker {
|
24
|
-
color: $ms-color-black;
|
25
|
-
font-size: $ms-font-size-m;
|
26
|
-
position: relative;
|
27
|
-
text-align: left;
|
28
|
-
z-index: $ms-zIndex-back;
|
29
|
-
}
|
30
|
-
|
31
|
-
// Insert a calendar icon over the date field.
|
32
|
-
.ms-DatePicker-event {
|
33
|
-
color: $ms-color-neutralSecondary;
|
34
|
-
font-size: 21px;
|
35
|
-
line-height: 20px;
|
36
|
-
pointer-events: none;
|
37
|
-
position: absolute;
|
38
|
-
right: 5px;
|
39
|
-
bottom: 5px;
|
40
|
-
z-index: $ms-zIndex-middle;
|
41
|
-
}
|
42
|
-
|
43
|
-
// The holder is the only "scrollable" top-level container element.
|
44
|
-
.ms-DatePicker-holder {
|
45
|
-
-webkit-overflow-scrolling: touch;
|
46
|
-
@include ms-u-borderBox;
|
47
|
-
background: $ms-color-white;
|
48
|
-
position: absolute;
|
49
|
-
min-width: 300px;
|
50
|
-
display: none;
|
51
|
-
}
|
52
|
-
|
53
|
-
|
54
|
-
// When the picker opens, reveal the content.
|
55
|
-
.ms-DatePicker-picker.ms-DatePicker-picker--opened .ms-DatePicker-holder {
|
56
|
-
@include ms-u-slideDownIn10;
|
57
|
-
@include ms-u-borderBox;
|
58
|
-
@include drop-shadow;
|
59
|
-
border: 1px solid $ms-color-neutralLight;
|
60
|
-
display: block;
|
61
|
-
}
|
62
|
-
|
63
|
-
// When a picker opens, always open it in front of other closed pickers
|
64
|
-
.ms-DatePicker-picker--opened {
|
65
|
-
position: relative;
|
66
|
-
z-index: $ms-zIndex-front;
|
67
|
-
}
|
68
|
-
|
69
|
-
|
70
|
-
// The frame and wrap work together to ensure that
|
71
|
-
// clicks within the picker don’t reach the holder.
|
72
|
-
.ms-DatePicker-frame {
|
73
|
-
padding: 1px;
|
74
|
-
}
|
75
|
-
|
76
|
-
.ms-DatePicker-wrap {
|
77
|
-
margin: -1px;
|
78
|
-
padding: 9px;
|
79
|
-
}
|
80
|
-
|
81
|
-
|
82
|
-
// Wrapper containing the calendar view to pick a specific date.
|
83
|
-
.ms-DatePicker-dayPicker {
|
84
|
-
display: block;
|
85
|
-
margin-bottom: 30px;
|
86
|
-
}
|
87
|
-
|
88
|
-
|
89
|
-
// The header containing the month and year.
|
90
|
-
.ms-DatePicker-header {
|
91
|
-
height: 40px;
|
92
|
-
line-height: 44px;
|
93
|
-
}
|
94
|
-
|
95
|
-
|
96
|
-
// The month and year labels.
|
97
|
-
.ms-DatePicker-month,
|
98
|
-
.ms-DatePicker-year {
|
99
|
-
display: inline-block;
|
100
|
-
font-weight: $ms-font-weight-light;
|
101
|
-
font-size: 21px;
|
102
|
-
color: $ms-color-themePrimary;
|
103
|
-
margin-top: -1px;
|
104
|
-
|
105
|
-
&:hover {
|
106
|
-
color: $ms-color-themeDark;
|
107
|
-
cursor: pointer;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
|
-
.ms-DatePicker-month {
|
112
|
-
margin-left: 15px;
|
113
|
-
}
|
114
|
-
|
115
|
-
.ms-DatePicker-year {
|
116
|
-
margin-left: 5px;
|
117
|
-
}
|
118
|
-
|
119
|
-
|
120
|
-
// The calendar table of dates.
|
121
|
-
.ms-DatePicker-table {
|
122
|
-
text-align: center;
|
123
|
-
border-collapse: collapse;
|
124
|
-
border-spacing: 0;
|
125
|
-
table-layout: fixed;
|
126
|
-
font-size: inherit;
|
127
|
-
|
128
|
-
td {
|
129
|
-
margin: 0;
|
130
|
-
padding: 0;
|
131
|
-
|
132
|
-
&:hover { outline: 1px solid transparent; }
|
133
|
-
}
|
134
|
-
}
|
135
|
-
|
136
|
-
|
137
|
-
// The days on the calendar.
|
138
|
-
.ms-DatePicker-day,
|
139
|
-
.ms-DatePicker-weekday {
|
140
|
-
width: 40px;
|
141
|
-
height: 40px;
|
142
|
-
padding: 0;
|
143
|
-
line-height: 40px;
|
144
|
-
font-weight: $ms-font-weight-regular;
|
145
|
-
font-size: 15px;
|
146
|
-
color: $ms-color-neutralPrimary;
|
147
|
-
}
|
148
|
-
|
149
|
-
|
150
|
-
// Today.
|
151
|
-
.ms-DatePicker-day--today {
|
152
|
-
position: relative;
|
153
|
-
background-color: $ms-color-themeLight;
|
154
|
-
}
|
155
|
-
|
156
|
-
|
157
|
-
// Disabled day.
|
158
|
-
.ms-DatePicker-day--disabled::before {
|
159
|
-
border-top-color: $ms-color-neutralTertiary;
|
160
|
-
}
|
161
|
-
|
162
|
-
|
163
|
-
// Out of focus days.
|
164
|
-
.ms-DatePicker-day--outfocus {
|
165
|
-
color: $ms-color-neutralTertiary;
|
166
|
-
font-weight: $ms-font-weight-regular;
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
// Hovered date picker items.
|
171
|
-
.ms-DatePicker-day--infocus:hover,
|
172
|
-
.ms-DatePicker-day--outfocus:hover {
|
173
|
-
cursor: pointer;
|
174
|
-
color: $ms-color-black;
|
175
|
-
background: $ms-color-neutralLight;
|
176
|
-
}
|
177
|
-
|
178
|
-
|
179
|
-
// Highlighted and hovered/focused dates.
|
180
|
-
.ms-DatePicker-day--highlighted:hover,
|
181
|
-
.ms-DatePicker-picker--focused .ms-DatePicker-day--highlighted {
|
182
|
-
cursor: pointer;
|
183
|
-
color: $ms-color-white;
|
184
|
-
background: $ms-color-themePrimary;
|
185
|
-
}
|
186
|
-
|
187
|
-
|
188
|
-
// Disabled and highlighted dates.
|
189
|
-
.ms-DatePicker-day--highlighted.ms-DatePicker-day--disabled,
|
190
|
-
.ms-DatePicker-day--highlighted.ms-DatePicker-day--disabled:hover {
|
191
|
-
background: $ms-color-neutralTertiary;
|
192
|
-
}
|
193
|
-
|
194
|
-
|
195
|
-
// Month and year pickers, hidden on small screens by default.
|
196
|
-
.ms-DatePicker-monthPicker,
|
197
|
-
.ms-DatePicker-yearPicker {
|
198
|
-
display: none;
|
199
|
-
}
|
200
|
-
|
201
|
-
|
202
|
-
// Month and year previous/next components.
|
203
|
-
.ms-DatePicker-monthComponents {
|
204
|
-
position: absolute;
|
205
|
-
top: 9px;
|
206
|
-
right: 9px;
|
207
|
-
left: 9px;
|
208
|
-
}
|
209
|
-
|
210
|
-
.ms-DatePicker-yearComponents,
|
211
|
-
.ms-DatePicker-decadeComponents {
|
212
|
-
position: absolute;
|
213
|
-
right: 10px;
|
214
|
-
}
|
215
|
-
|
216
|
-
.ms-DatePicker-prevMonth,
|
217
|
-
.ms-DatePicker-nextMonth,
|
218
|
-
.ms-DatePicker-prevYear,
|
219
|
-
.ms-DatePicker-nextYear,
|
220
|
-
.ms-DatePicker-prevDecade,
|
221
|
-
.ms-DatePicker-nextDecade {
|
222
|
-
width: 40px;
|
223
|
-
height: 40px;
|
224
|
-
display: block;
|
225
|
-
float: right;
|
226
|
-
margin-left: 10px;
|
227
|
-
text-align: center;
|
228
|
-
line-height: 40px;
|
229
|
-
font-size: 21px;
|
230
|
-
color: $ms-color-neutralSecondary;
|
231
|
-
position: relative;
|
232
|
-
top: 3px;
|
233
|
-
|
234
|
-
&:hover {
|
235
|
-
color: $ms-color-neutralDark;
|
236
|
-
cursor: pointer;
|
237
|
-
outline: 1px solid transparent;
|
238
|
-
}
|
239
|
-
}
|
240
|
-
|
241
|
-
// Without modifying the Pickadate JS, this transparent
|
242
|
-
// button is necessary to toggle the month view.
|
243
|
-
.ms-DatePicker-headerToggleView {
|
244
|
-
height: 40px;
|
245
|
-
left: 0;
|
246
|
-
position: absolute;
|
247
|
-
top: 0;
|
248
|
-
width: 140px;
|
249
|
-
z-index: $ms-zIndex-middle;
|
250
|
-
cursor: pointer;
|
251
|
-
}
|
252
|
-
|
253
|
-
|
254
|
-
// Text showing the currently-selected year.
|
255
|
-
.ms-DatePicker-currentYear,
|
256
|
-
.ms-DatePicker-currentDecade {
|
257
|
-
display: block;
|
258
|
-
font-weight: $ms-font-weight-semilight;
|
259
|
-
font-size: 21px;
|
260
|
-
height: 40px;
|
261
|
-
line-height: 42px;
|
262
|
-
margin-left: 15px;
|
263
|
-
}
|
264
|
-
|
265
|
-
// The current year is blue and actionable.
|
266
|
-
.ms-DatePicker-currentYear {
|
267
|
-
color: $ms-color-themePrimary;
|
268
|
-
|
269
|
-
&:hover {
|
270
|
-
color: $ms-color-themeDark;
|
271
|
-
cursor: pointer;
|
272
|
-
}
|
273
|
-
}
|
274
|
-
|
275
|
-
|
276
|
-
// A grid of month or year options, which pushes them over
|
277
|
-
// five pixels for horizontal centering and moves them down.
|
278
|
-
.ms-DatePicker-optionGrid {
|
279
|
-
position: relative;
|
280
|
-
height: 210px;
|
281
|
-
width: 280px;
|
282
|
-
margin: 10px 0 30px 5px;
|
283
|
-
}
|
284
|
-
|
285
|
-
// Button to select a different month.
|
286
|
-
.ms-DatePicker-monthOption,
|
287
|
-
.ms-DatePicker-yearOption {
|
288
|
-
background-color: $ms-color-neutralLighter;
|
289
|
-
width: 60px;
|
290
|
-
height: 60px;
|
291
|
-
line-height: 60px;
|
292
|
-
cursor: pointer;
|
293
|
-
float: left;
|
294
|
-
margin: 0 10px 10px 0;
|
295
|
-
font-weight: $ms-font-weight-regular;
|
296
|
-
font-size: 13px;
|
297
|
-
color: $ms-color-neutralPrimary;
|
298
|
-
text-align: center;
|
299
|
-
|
300
|
-
&:hover {
|
301
|
-
background-color: $ms-color-neutralTertiaryAlt;
|
302
|
-
outline: 1px solid transparent;
|
303
|
-
}
|
304
|
-
|
305
|
-
&.is-highlighted {
|
306
|
-
background-color: $ms-color-neutralPrimary;
|
307
|
-
color: $ms-color-white;
|
308
|
-
}
|
309
|
-
}
|
310
|
-
|
311
|
-
|
312
|
-
// Button to navigate to the current date.
|
313
|
-
.ms-DatePicker-goToday {
|
314
|
-
bottom: 9px;
|
315
|
-
color: $ms-color-themePrimary;
|
316
|
-
cursor: pointer;
|
317
|
-
font-weight: $ms-font-weight-semilight;
|
318
|
-
font-size: 13px;
|
319
|
-
height: 30px;
|
320
|
-
line-height: 30px;
|
321
|
-
padding: 0 10px;
|
322
|
-
position: absolute;
|
323
|
-
right: 9px;
|
324
|
-
|
325
|
-
&:hover {
|
326
|
-
outline: 1px solid transparent;
|
327
|
-
}
|
328
|
-
}
|
329
|
-
|
330
|
-
// State: The picker is showing the year components.
|
331
|
-
.ms-DatePicker.is-pickingYears {
|
332
|
-
|
333
|
-
// Hide the day picking components.
|
334
|
-
.ms-DatePicker-dayPicker,
|
335
|
-
.ms-DatePicker-monthComponents {
|
336
|
-
display: none;
|
337
|
-
}
|
338
|
-
|
339
|
-
// Hide the month picking components.
|
340
|
-
.ms-DatePicker-monthPicker {
|
341
|
-
display: none;
|
342
|
-
}
|
343
|
-
|
344
|
-
// Show the year picking components.
|
345
|
-
.ms-DatePicker-yearPicker {
|
346
|
-
display: block;
|
347
|
-
}
|
348
|
-
|
349
|
-
}
|
350
|
-
|
351
|
-
// 460px and up.
|
352
|
-
//
|
353
|
-
// On screens that can fit it, we show the month picker next to the day picker at all times.
|
354
|
-
@media (min-width: 460px) {
|
355
|
-
|
356
|
-
.ms-DatePicker-holder {
|
357
|
-
width: 440px;
|
358
|
-
}
|
359
|
-
|
360
|
-
|
361
|
-
// Update header text styles.
|
362
|
-
.ms-DatePicker-month,
|
363
|
-
.ms-DatePicker-year {
|
364
|
-
font-weight: $ms-font-weight-semilight;
|
365
|
-
font-size: 17px;
|
366
|
-
color: $ms-color-neutralPrimary;
|
367
|
-
|
368
|
-
&:hover {
|
369
|
-
color: $ms-color-neutralPrimary;
|
370
|
-
cursor: default;
|
371
|
-
}
|
372
|
-
}
|
373
|
-
|
374
|
-
.ms-DatePicker-header {
|
375
|
-
height: 30px;
|
376
|
-
line-height: 28px;
|
377
|
-
}
|
378
|
-
|
379
|
-
// Contains the calendar view for picking a day.
|
380
|
-
.ms-DatePicker-dayPicker {
|
381
|
-
@include ms-u-borderBox;
|
382
|
-
border-right: 1px solid $ms-color-neutralLight;
|
383
|
-
width: 220px;
|
384
|
-
margin: -10px 0;
|
385
|
-
padding: 10px 0;
|
386
|
-
}
|
387
|
-
|
388
|
-
// Show the month picker.
|
389
|
-
.ms-DatePicker-monthPicker {
|
390
|
-
display: block;
|
391
|
-
}
|
392
|
-
|
393
|
-
// Style the the month and year pickers.
|
394
|
-
.ms-DatePicker-monthPicker,
|
395
|
-
.ms-DatePicker-yearPicker {
|
396
|
-
top: 9px;
|
397
|
-
left: 238px;
|
398
|
-
position: absolute;
|
399
|
-
}
|
400
|
-
|
401
|
-
.ms-DatePicker-optionGrid {
|
402
|
-
width: 200px;
|
403
|
-
height: auto;
|
404
|
-
margin: 10px 0 0;
|
405
|
-
}
|
406
|
-
|
407
|
-
// Size the month components to the day picker's new width
|
408
|
-
.ms-DatePicker-monthComponents {
|
409
|
-
width: 210px;
|
410
|
-
}
|
411
|
-
|
412
|
-
// Size and position of the month and year labels.
|
413
|
-
.ms-DatePicker-month {
|
414
|
-
margin-left: 12px;
|
415
|
-
}
|
416
|
-
|
417
|
-
|
418
|
-
// Calendar day cells are smaller.
|
419
|
-
.ms-DatePicker-day,
|
420
|
-
.ms-DatePicker-weekday {
|
421
|
-
width: 30px;
|
422
|
-
height: 30px;
|
423
|
-
line-height: 30px;
|
424
|
-
font-weight: $ms-font-weight-semibold;
|
425
|
-
font-size: 12px;
|
426
|
-
}
|
427
|
-
|
428
|
-
|
429
|
-
// Reduce the size of arrows to change month/year.
|
430
|
-
.ms-DatePicker-prevMonth,
|
431
|
-
.ms-DatePicker-nextMonth,
|
432
|
-
.ms-DatePicker-prevYear,
|
433
|
-
.ms-DatePicker-nextYear,
|
434
|
-
.ms-DatePicker-prevDecade,
|
435
|
-
.ms-DatePicker-nextDecade {
|
436
|
-
font-size: 17px;
|
437
|
-
width: 30px;
|
438
|
-
height: 30px;
|
439
|
-
line-height: 29px;
|
440
|
-
}
|
441
|
-
|
442
|
-
|
443
|
-
// This component is only used on small displays.
|
444
|
-
.ms-DatePicker-toggleMonthView {
|
445
|
-
display: none;
|
446
|
-
}
|
447
|
-
|
448
|
-
|
449
|
-
// Position the current year and decade labels.
|
450
|
-
.ms-DatePicker-currentYear,
|
451
|
-
.ms-DatePicker-currentDecade {
|
452
|
-
font-size: 17px;
|
453
|
-
margin: 0;
|
454
|
-
height: 30px;
|
455
|
-
line-height: 26px;
|
456
|
-
padding: 0 10px;
|
457
|
-
display: inline-block;
|
458
|
-
}
|
459
|
-
|
460
|
-
|
461
|
-
// Reduce the size of the month buttons.
|
462
|
-
.ms-DatePicker-monthOption,
|
463
|
-
.ms-DatePicker-yearOption {
|
464
|
-
width: 40px;
|
465
|
-
height: 40px;
|
466
|
-
line-height: 40px;
|
467
|
-
font-size: 12px;
|
468
|
-
margin: 0 10px 10px 0;
|
469
|
-
|
470
|
-
&:hover {
|
471
|
-
outline: 1px solid transparent;
|
472
|
-
}
|
473
|
-
}
|
474
|
-
|
475
|
-
|
476
|
-
// Position the "Go to today" button below the month picker.
|
477
|
-
.ms-DatePicker-goToday {
|
478
|
-
@include ms-u-borderBox;
|
479
|
-
font-size: 12px;
|
480
|
-
height: 30px;
|
481
|
-
line-height: 30px;
|
482
|
-
padding: 0 10px;
|
483
|
-
right: 10px;
|
484
|
-
text-align: right;
|
485
|
-
top: 199px;
|
486
|
-
width: 210px;
|
487
|
-
}
|
488
|
-
|
489
|
-
// State: The picker is showing the year components.
|
490
|
-
// On larger screens the calendar will remain and the years
|
491
|
-
// will replace the months.
|
492
|
-
.ms-DatePicker.is-pickingYears {
|
493
|
-
|
494
|
-
// On large screens, we need to keep the day picker
|
495
|
-
// and month components in view.
|
496
|
-
.ms-DatePicker-dayPicker,
|
497
|
-
.ms-DatePicker-monthComponents {
|
498
|
-
display: block;
|
499
|
-
}
|
500
|
-
|
501
|
-
// Hide the month picking components.
|
502
|
-
.ms-DatePicker-monthPicker {
|
503
|
-
display: none;
|
504
|
-
}
|
505
|
-
|
506
|
-
// Show the year picking components.
|
507
|
-
.ms-DatePicker-yearPicker {
|
508
|
-
display: block;
|
509
|
-
}
|
510
|
-
}
|
511
|
-
}
|
512
|
-
|
513
|
-
// On smaller screens the month button toggles to the picking months state.
|
514
|
-
@media (max-width: 459px) {
|
515
|
-
|
516
|
-
// State: The picker is showing the month components.
|
517
|
-
.ms-DatePicker.is-pickingMonths {
|
518
|
-
|
519
|
-
// Hide the day picking components.
|
520
|
-
.ms-DatePicker-dayPicker,
|
521
|
-
.ms-DatePicker-monthComponents {
|
522
|
-
display: none;
|
523
|
-
}
|
524
|
-
|
525
|
-
// Show the month picking components.
|
526
|
-
.ms-DatePicker-monthPicker {
|
527
|
-
display: block;
|
528
|
-
}
|
529
|
-
}
|
530
|
-
}
|
5
|
+
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
|
6
|
+
|
7
|
+
//
|
8
|
+
// Office UI Fabric
|
9
|
+
// --------------------------------------------------
|
10
|
+
// Date Picker styles
|
11
|
+
|
12
|
+
|
13
|
+
.ms-DatePicker {
|
14
|
+
@include ms-baseFont;
|
15
|
+
@include ms-u-normalize;
|
16
|
+
margin-bottom: 17px;
|
17
|
+
z-index: $ms-zIndex-DatePicker;
|
18
|
+
|
19
|
+
.ms-TextField { position: relative; }
|
20
|
+
}
|
21
|
+
|
22
|
+
// Base wrapper for the date picker.
|
23
|
+
.ms-DatePicker-picker {
|
24
|
+
color: $ms-color-black;
|
25
|
+
font-size: $ms-font-size-m;
|
26
|
+
position: relative;
|
27
|
+
text-align: left;
|
28
|
+
z-index: $ms-zIndex-back;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Insert a calendar icon over the date field.
|
32
|
+
.ms-DatePicker-event {
|
33
|
+
color: $ms-color-neutralSecondary;
|
34
|
+
font-size: 21px;
|
35
|
+
line-height: 20px;
|
36
|
+
pointer-events: none;
|
37
|
+
position: absolute;
|
38
|
+
right: 5px;
|
39
|
+
bottom: 5px;
|
40
|
+
z-index: $ms-zIndex-middle;
|
41
|
+
}
|
42
|
+
|
43
|
+
// The holder is the only "scrollable" top-level container element.
|
44
|
+
.ms-DatePicker-holder {
|
45
|
+
-webkit-overflow-scrolling: touch;
|
46
|
+
@include ms-u-borderBox;
|
47
|
+
background: $ms-color-white;
|
48
|
+
position: absolute;
|
49
|
+
min-width: 300px;
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
// When the picker opens, reveal the content.
|
55
|
+
.ms-DatePicker-picker.ms-DatePicker-picker--opened .ms-DatePicker-holder {
|
56
|
+
@include ms-u-slideDownIn10;
|
57
|
+
@include ms-u-borderBox;
|
58
|
+
@include drop-shadow;
|
59
|
+
border: 1px solid $ms-color-neutralLight;
|
60
|
+
display: block;
|
61
|
+
}
|
62
|
+
|
63
|
+
// When a picker opens, always open it in front of other closed pickers
|
64
|
+
.ms-DatePicker-picker--opened {
|
65
|
+
position: relative;
|
66
|
+
z-index: $ms-zIndex-front;
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
// The frame and wrap work together to ensure that
|
71
|
+
// clicks within the picker don’t reach the holder.
|
72
|
+
.ms-DatePicker-frame {
|
73
|
+
padding: 1px;
|
74
|
+
}
|
75
|
+
|
76
|
+
.ms-DatePicker-wrap {
|
77
|
+
margin: -1px;
|
78
|
+
padding: 9px;
|
79
|
+
}
|
80
|
+
|
81
|
+
|
82
|
+
// Wrapper containing the calendar view to pick a specific date.
|
83
|
+
.ms-DatePicker-dayPicker {
|
84
|
+
display: block;
|
85
|
+
margin-bottom: 30px;
|
86
|
+
}
|
87
|
+
|
88
|
+
|
89
|
+
// The header containing the month and year.
|
90
|
+
.ms-DatePicker-header {
|
91
|
+
height: 40px;
|
92
|
+
line-height: 44px;
|
93
|
+
}
|
94
|
+
|
95
|
+
|
96
|
+
// The month and year labels.
|
97
|
+
.ms-DatePicker-month,
|
98
|
+
.ms-DatePicker-year {
|
99
|
+
display: inline-block;
|
100
|
+
font-weight: $ms-font-weight-light;
|
101
|
+
font-size: 21px;
|
102
|
+
color: $ms-color-themePrimary;
|
103
|
+
margin-top: -1px;
|
104
|
+
|
105
|
+
&:hover {
|
106
|
+
color: $ms-color-themeDark;
|
107
|
+
cursor: pointer;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
.ms-DatePicker-month {
|
112
|
+
margin-left: 15px;
|
113
|
+
}
|
114
|
+
|
115
|
+
.ms-DatePicker-year {
|
116
|
+
margin-left: 5px;
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
// The calendar table of dates.
|
121
|
+
.ms-DatePicker-table {
|
122
|
+
text-align: center;
|
123
|
+
border-collapse: collapse;
|
124
|
+
border-spacing: 0;
|
125
|
+
table-layout: fixed;
|
126
|
+
font-size: inherit;
|
127
|
+
|
128
|
+
td {
|
129
|
+
margin: 0;
|
130
|
+
padding: 0;
|
131
|
+
|
132
|
+
&:hover { outline: 1px solid transparent; }
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
|
137
|
+
// The days on the calendar.
|
138
|
+
.ms-DatePicker-day,
|
139
|
+
.ms-DatePicker-weekday {
|
140
|
+
width: 40px;
|
141
|
+
height: 40px;
|
142
|
+
padding: 0;
|
143
|
+
line-height: 40px;
|
144
|
+
font-weight: $ms-font-weight-regular;
|
145
|
+
font-size: 15px;
|
146
|
+
color: $ms-color-neutralPrimary;
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
// Today.
|
151
|
+
.ms-DatePicker-day--today {
|
152
|
+
position: relative;
|
153
|
+
background-color: $ms-color-themeLight;
|
154
|
+
}
|
155
|
+
|
156
|
+
|
157
|
+
// Disabled day.
|
158
|
+
.ms-DatePicker-day--disabled::before {
|
159
|
+
border-top-color: $ms-color-neutralTertiary;
|
160
|
+
}
|
161
|
+
|
162
|
+
|
163
|
+
// Out of focus days.
|
164
|
+
.ms-DatePicker-day--outfocus {
|
165
|
+
color: $ms-color-neutralTertiary;
|
166
|
+
font-weight: $ms-font-weight-regular;
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
// Hovered date picker items.
|
171
|
+
.ms-DatePicker-day--infocus:hover,
|
172
|
+
.ms-DatePicker-day--outfocus:hover {
|
173
|
+
cursor: pointer;
|
174
|
+
color: $ms-color-black;
|
175
|
+
background: $ms-color-neutralLight;
|
176
|
+
}
|
177
|
+
|
178
|
+
|
179
|
+
// Highlighted and hovered/focused dates.
|
180
|
+
.ms-DatePicker-day--highlighted:hover,
|
181
|
+
.ms-DatePicker-picker--focused .ms-DatePicker-day--highlighted {
|
182
|
+
cursor: pointer;
|
183
|
+
color: $ms-color-white;
|
184
|
+
background: $ms-color-themePrimary;
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
// Disabled and highlighted dates.
|
189
|
+
.ms-DatePicker-day--highlighted.ms-DatePicker-day--disabled,
|
190
|
+
.ms-DatePicker-day--highlighted.ms-DatePicker-day--disabled:hover {
|
191
|
+
background: $ms-color-neutralTertiary;
|
192
|
+
}
|
193
|
+
|
194
|
+
|
195
|
+
// Month and year pickers, hidden on small screens by default.
|
196
|
+
.ms-DatePicker-monthPicker,
|
197
|
+
.ms-DatePicker-yearPicker {
|
198
|
+
display: none;
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
// Month and year previous/next components.
|
203
|
+
.ms-DatePicker-monthComponents {
|
204
|
+
position: absolute;
|
205
|
+
top: 9px;
|
206
|
+
right: 9px;
|
207
|
+
left: 9px;
|
208
|
+
}
|
209
|
+
|
210
|
+
.ms-DatePicker-yearComponents,
|
211
|
+
.ms-DatePicker-decadeComponents {
|
212
|
+
position: absolute;
|
213
|
+
right: 10px;
|
214
|
+
}
|
215
|
+
|
216
|
+
.ms-DatePicker-prevMonth,
|
217
|
+
.ms-DatePicker-nextMonth,
|
218
|
+
.ms-DatePicker-prevYear,
|
219
|
+
.ms-DatePicker-nextYear,
|
220
|
+
.ms-DatePicker-prevDecade,
|
221
|
+
.ms-DatePicker-nextDecade {
|
222
|
+
width: 40px;
|
223
|
+
height: 40px;
|
224
|
+
display: block;
|
225
|
+
float: right;
|
226
|
+
margin-left: 10px;
|
227
|
+
text-align: center;
|
228
|
+
line-height: 40px;
|
229
|
+
font-size: 21px;
|
230
|
+
color: $ms-color-neutralSecondary;
|
231
|
+
position: relative;
|
232
|
+
top: 3px;
|
233
|
+
|
234
|
+
&:hover {
|
235
|
+
color: $ms-color-neutralDark;
|
236
|
+
cursor: pointer;
|
237
|
+
outline: 1px solid transparent;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
// Without modifying the Pickadate JS, this transparent
|
242
|
+
// button is necessary to toggle the month view.
|
243
|
+
.ms-DatePicker-headerToggleView {
|
244
|
+
height: 40px;
|
245
|
+
left: 0;
|
246
|
+
position: absolute;
|
247
|
+
top: 0;
|
248
|
+
width: 140px;
|
249
|
+
z-index: $ms-zIndex-middle;
|
250
|
+
cursor: pointer;
|
251
|
+
}
|
252
|
+
|
253
|
+
|
254
|
+
// Text showing the currently-selected year.
|
255
|
+
.ms-DatePicker-currentYear,
|
256
|
+
.ms-DatePicker-currentDecade {
|
257
|
+
display: block;
|
258
|
+
font-weight: $ms-font-weight-semilight;
|
259
|
+
font-size: 21px;
|
260
|
+
height: 40px;
|
261
|
+
line-height: 42px;
|
262
|
+
margin-left: 15px;
|
263
|
+
}
|
264
|
+
|
265
|
+
// The current year is blue and actionable.
|
266
|
+
.ms-DatePicker-currentYear {
|
267
|
+
color: $ms-color-themePrimary;
|
268
|
+
|
269
|
+
&:hover {
|
270
|
+
color: $ms-color-themeDark;
|
271
|
+
cursor: pointer;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
|
276
|
+
// A grid of month or year options, which pushes them over
|
277
|
+
// five pixels for horizontal centering and moves them down.
|
278
|
+
.ms-DatePicker-optionGrid {
|
279
|
+
position: relative;
|
280
|
+
height: 210px;
|
281
|
+
width: 280px;
|
282
|
+
margin: 10px 0 30px 5px;
|
283
|
+
}
|
284
|
+
|
285
|
+
// Button to select a different month.
|
286
|
+
.ms-DatePicker-monthOption,
|
287
|
+
.ms-DatePicker-yearOption {
|
288
|
+
background-color: $ms-color-neutralLighter;
|
289
|
+
width: 60px;
|
290
|
+
height: 60px;
|
291
|
+
line-height: 60px;
|
292
|
+
cursor: pointer;
|
293
|
+
float: left;
|
294
|
+
margin: 0 10px 10px 0;
|
295
|
+
font-weight: $ms-font-weight-regular;
|
296
|
+
font-size: 13px;
|
297
|
+
color: $ms-color-neutralPrimary;
|
298
|
+
text-align: center;
|
299
|
+
|
300
|
+
&:hover {
|
301
|
+
background-color: $ms-color-neutralTertiaryAlt;
|
302
|
+
outline: 1px solid transparent;
|
303
|
+
}
|
304
|
+
|
305
|
+
&.is-highlighted {
|
306
|
+
background-color: $ms-color-neutralPrimary;
|
307
|
+
color: $ms-color-white;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
|
312
|
+
// Button to navigate to the current date.
|
313
|
+
.ms-DatePicker-goToday {
|
314
|
+
bottom: 9px;
|
315
|
+
color: $ms-color-themePrimary;
|
316
|
+
cursor: pointer;
|
317
|
+
font-weight: $ms-font-weight-semilight;
|
318
|
+
font-size: 13px;
|
319
|
+
height: 30px;
|
320
|
+
line-height: 30px;
|
321
|
+
padding: 0 10px;
|
322
|
+
position: absolute;
|
323
|
+
right: 9px;
|
324
|
+
|
325
|
+
&:hover {
|
326
|
+
outline: 1px solid transparent;
|
327
|
+
}
|
328
|
+
}
|
329
|
+
|
330
|
+
// State: The picker is showing the year components.
|
331
|
+
.ms-DatePicker.is-pickingYears {
|
332
|
+
|
333
|
+
// Hide the day picking components.
|
334
|
+
.ms-DatePicker-dayPicker,
|
335
|
+
.ms-DatePicker-monthComponents {
|
336
|
+
display: none;
|
337
|
+
}
|
338
|
+
|
339
|
+
// Hide the month picking components.
|
340
|
+
.ms-DatePicker-monthPicker {
|
341
|
+
display: none;
|
342
|
+
}
|
343
|
+
|
344
|
+
// Show the year picking components.
|
345
|
+
.ms-DatePicker-yearPicker {
|
346
|
+
display: block;
|
347
|
+
}
|
348
|
+
|
349
|
+
}
|
350
|
+
|
351
|
+
// 460px and up.
|
352
|
+
//
|
353
|
+
// On screens that can fit it, we show the month picker next to the day picker at all times.
|
354
|
+
@media (min-width: 460px) {
|
355
|
+
|
356
|
+
.ms-DatePicker-holder {
|
357
|
+
width: 440px;
|
358
|
+
}
|
359
|
+
|
360
|
+
|
361
|
+
// Update header text styles.
|
362
|
+
.ms-DatePicker-month,
|
363
|
+
.ms-DatePicker-year {
|
364
|
+
font-weight: $ms-font-weight-semilight;
|
365
|
+
font-size: 17px;
|
366
|
+
color: $ms-color-neutralPrimary;
|
367
|
+
|
368
|
+
&:hover {
|
369
|
+
color: $ms-color-neutralPrimary;
|
370
|
+
cursor: default;
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
.ms-DatePicker-header {
|
375
|
+
height: 30px;
|
376
|
+
line-height: 28px;
|
377
|
+
}
|
378
|
+
|
379
|
+
// Contains the calendar view for picking a day.
|
380
|
+
.ms-DatePicker-dayPicker {
|
381
|
+
@include ms-u-borderBox;
|
382
|
+
border-right: 1px solid $ms-color-neutralLight;
|
383
|
+
width: 220px;
|
384
|
+
margin: -10px 0;
|
385
|
+
padding: 10px 0;
|
386
|
+
}
|
387
|
+
|
388
|
+
// Show the month picker.
|
389
|
+
.ms-DatePicker-monthPicker {
|
390
|
+
display: block;
|
391
|
+
}
|
392
|
+
|
393
|
+
// Style the the month and year pickers.
|
394
|
+
.ms-DatePicker-monthPicker,
|
395
|
+
.ms-DatePicker-yearPicker {
|
396
|
+
top: 9px;
|
397
|
+
left: 238px;
|
398
|
+
position: absolute;
|
399
|
+
}
|
400
|
+
|
401
|
+
.ms-DatePicker-optionGrid {
|
402
|
+
width: 200px;
|
403
|
+
height: auto;
|
404
|
+
margin: 10px 0 0;
|
405
|
+
}
|
406
|
+
|
407
|
+
// Size the month components to the day picker's new width
|
408
|
+
.ms-DatePicker-monthComponents {
|
409
|
+
width: 210px;
|
410
|
+
}
|
411
|
+
|
412
|
+
// Size and position of the month and year labels.
|
413
|
+
.ms-DatePicker-month {
|
414
|
+
margin-left: 12px;
|
415
|
+
}
|
416
|
+
|
417
|
+
|
418
|
+
// Calendar day cells are smaller.
|
419
|
+
.ms-DatePicker-day,
|
420
|
+
.ms-DatePicker-weekday {
|
421
|
+
width: 30px;
|
422
|
+
height: 30px;
|
423
|
+
line-height: 30px;
|
424
|
+
font-weight: $ms-font-weight-semibold;
|
425
|
+
font-size: 12px;
|
426
|
+
}
|
427
|
+
|
428
|
+
|
429
|
+
// Reduce the size of arrows to change month/year.
|
430
|
+
.ms-DatePicker-prevMonth,
|
431
|
+
.ms-DatePicker-nextMonth,
|
432
|
+
.ms-DatePicker-prevYear,
|
433
|
+
.ms-DatePicker-nextYear,
|
434
|
+
.ms-DatePicker-prevDecade,
|
435
|
+
.ms-DatePicker-nextDecade {
|
436
|
+
font-size: 17px;
|
437
|
+
width: 30px;
|
438
|
+
height: 30px;
|
439
|
+
line-height: 29px;
|
440
|
+
}
|
441
|
+
|
442
|
+
|
443
|
+
// This component is only used on small displays.
|
444
|
+
.ms-DatePicker-toggleMonthView {
|
445
|
+
display: none;
|
446
|
+
}
|
447
|
+
|
448
|
+
|
449
|
+
// Position the current year and decade labels.
|
450
|
+
.ms-DatePicker-currentYear,
|
451
|
+
.ms-DatePicker-currentDecade {
|
452
|
+
font-size: 17px;
|
453
|
+
margin: 0;
|
454
|
+
height: 30px;
|
455
|
+
line-height: 26px;
|
456
|
+
padding: 0 10px;
|
457
|
+
display: inline-block;
|
458
|
+
}
|
459
|
+
|
460
|
+
|
461
|
+
// Reduce the size of the month buttons.
|
462
|
+
.ms-DatePicker-monthOption,
|
463
|
+
.ms-DatePicker-yearOption {
|
464
|
+
width: 40px;
|
465
|
+
height: 40px;
|
466
|
+
line-height: 40px;
|
467
|
+
font-size: 12px;
|
468
|
+
margin: 0 10px 10px 0;
|
469
|
+
|
470
|
+
&:hover {
|
471
|
+
outline: 1px solid transparent;
|
472
|
+
}
|
473
|
+
}
|
474
|
+
|
475
|
+
|
476
|
+
// Position the "Go to today" button below the month picker.
|
477
|
+
.ms-DatePicker-goToday {
|
478
|
+
@include ms-u-borderBox;
|
479
|
+
font-size: 12px;
|
480
|
+
height: 30px;
|
481
|
+
line-height: 30px;
|
482
|
+
padding: 0 10px;
|
483
|
+
right: 10px;
|
484
|
+
text-align: right;
|
485
|
+
top: 199px;
|
486
|
+
width: 210px;
|
487
|
+
}
|
488
|
+
|
489
|
+
// State: The picker is showing the year components.
|
490
|
+
// On larger screens the calendar will remain and the years
|
491
|
+
// will replace the months.
|
492
|
+
.ms-DatePicker.is-pickingYears {
|
493
|
+
|
494
|
+
// On large screens, we need to keep the day picker
|
495
|
+
// and month components in view.
|
496
|
+
.ms-DatePicker-dayPicker,
|
497
|
+
.ms-DatePicker-monthComponents {
|
498
|
+
display: block;
|
499
|
+
}
|
500
|
+
|
501
|
+
// Hide the month picking components.
|
502
|
+
.ms-DatePicker-monthPicker {
|
503
|
+
display: none;
|
504
|
+
}
|
505
|
+
|
506
|
+
// Show the year picking components.
|
507
|
+
.ms-DatePicker-yearPicker {
|
508
|
+
display: block;
|
509
|
+
}
|
510
|
+
}
|
511
|
+
}
|
512
|
+
|
513
|
+
// On smaller screens the month button toggles to the picking months state.
|
514
|
+
@media (max-width: 459px) {
|
515
|
+
|
516
|
+
// State: The picker is showing the month components.
|
517
|
+
.ms-DatePicker.is-pickingMonths {
|
518
|
+
|
519
|
+
// Hide the day picking components.
|
520
|
+
.ms-DatePicker-dayPicker,
|
521
|
+
.ms-DatePicker-monthComponents {
|
522
|
+
display: none;
|
523
|
+
}
|
524
|
+
|
525
|
+
// Show the month picking components.
|
526
|
+
.ms-DatePicker-monthPicker {
|
527
|
+
display: block;
|
528
|
+
}
|
529
|
+
}
|
530
|
+
}
|