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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/office-ui-fabric-js-rails/version.rb +2 -2
  3. data/package.json +2 -2
  4. data/vendor/assets/css/fabric.components.css +18 -6
  5. data/vendor/assets/css/fabric.components.min.css +2 -2
  6. data/vendor/assets/css/fabric.components.rtl.css +18 -6
  7. data/vendor/assets/css/fabric.components.rtl.min.css +2 -2
  8. data/vendor/assets/js/fabric.js +32 -41
  9. data/vendor/assets/js/fabric.min.js +4 -4
  10. data/vendor/assets/scss/components/Breadcrumb.scss +174 -174
  11. data/vendor/assets/scss/components/Button.scss +300 -286
  12. data/vendor/assets/scss/components/Callout.scss +157 -157
  13. data/vendor/assets/scss/components/CheckBox.scss +172 -172
  14. data/vendor/assets/scss/components/ChoiceFieldGroup.scss +14 -13
  15. data/vendor/assets/scss/components/CommandBar.scss +138 -138
  16. data/vendor/assets/scss/components/CommandButton.scss +293 -293
  17. data/vendor/assets/scss/components/ContextualHost.scss +142 -142
  18. data/vendor/assets/scss/components/ContextualMenu.scss +208 -208
  19. data/vendor/assets/scss/components/DatePicker.scss +527 -527
  20. data/vendor/assets/scss/components/DetailsList.scss +337 -337
  21. data/vendor/assets/scss/components/Dialog.scss +118 -118
  22. data/vendor/assets/scss/components/DialogHost.scss +12 -12
  23. data/vendor/assets/scss/components/Dropdown.scss +251 -251
  24. data/vendor/assets/scss/components/FacePile.scss +104 -104
  25. data/vendor/assets/scss/components/Label.scss +37 -37
  26. data/vendor/assets/scss/components/Link.scss +31 -31
  27. data/vendor/assets/scss/components/List.scss +16 -16
  28. data/vendor/assets/scss/components/ListItem.scss +237 -237
  29. data/vendor/assets/scss/components/MessageBanner.scss +128 -128
  30. data/vendor/assets/scss/components/MessageBar.scss +87 -87
  31. data/vendor/assets/scss/components/OrgChart.scss +46 -46
  32. data/vendor/assets/scss/components/Overlay.scss +34 -34
  33. data/vendor/assets/scss/components/Panel.scss +155 -155
  34. data/vendor/assets/scss/components/PanelHost.scss +15 -15
  35. data/vendor/assets/scss/components/PeoplePicker.scss +449 -449
  36. data/vendor/assets/scss/components/Persona.scss +731 -731
  37. data/vendor/assets/scss/components/PersonaCard.scss +208 -208
  38. data/vendor/assets/scss/components/Pivot.scss +201 -201
  39. data/vendor/assets/scss/components/ProgressIndicator.scss +64 -64
  40. data/vendor/assets/scss/components/RadioButton.scss +194 -194
  41. data/vendor/assets/scss/components/SearchBox.scss +368 -369
  42. data/vendor/assets/scss/components/Spinner.scss +48 -48
  43. data/vendor/assets/scss/components/Table.scss +123 -123
  44. data/vendor/assets/scss/components/TextField.scss +232 -232
  45. data/vendor/assets/scss/components/Toggle.scss +249 -249
  46. metadata +2 -2
@@ -1,734 +1,734 @@
1
1
  /**
2
- * Office UI Fabric JS 1.3.0
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
- // Persona styles
11
-
12
-
13
- // Skype presence colors
14
- $ms-color-presence-available: #7FBA00;
15
- $ms-color-presence-away: #FCD116;
16
- $ms-color-presence-busy: #E81123;
17
- $ms-color-presence-dnd-background: #E81123;
18
- $ms-color-presence-dnd-line: #FFFFFF;
19
- $ms-color-presence-offline: #93ABBD;
20
- $ms-color-presence-out-of-office: $ms-color-magenta;
21
-
22
- // Other presence colors
23
- $ms-color-presence-blocked-background: #DEDEDE;
24
- $ms-color-presence-blocked-line: #C72D25;
25
- $ms-color-presence-busy-stripe-light: #E57A79;
26
- $ms-color-presence-busy-stripe-dark: #D00E0D;
27
- $ms-color-presence-busy-average: #D93B3B;
28
-
29
- // Persona Sizes
30
- $ms-Persona-sizeTiny: 30px;
31
- $ms-Persona-sizeXs: 32px;
32
- $ms-Persona-sizeSm: 40px;
33
- $ms-Persona-sizeMd: 48px;
34
- $ms-Persona-sizeLg: 72px;
35
- $ms-Persona-sizeXl: 100px;
36
-
37
- // Details Spacing
38
- $ms-Persona-imageDetailsSmSpace: 8px;
39
- $ms-Persona-imageDetailsLgSpace: 12px;
40
- $ms-Persona-imageDetailsXlSpace: 20px;
41
-
42
- // Presence Sizes
43
- $ms-Persona-presenceSizeMd: 12px;
44
- $ms-Persona-presenceSizeLg: 20px;
45
- $ms-Persona-presenceSizeXl: 28px;
46
-
47
-
48
- .ms-Persona {
49
- @include ms-baseFont;
50
- @include ms-u-normalize;
51
- color: $ms-color-neutralPrimary;
52
- font-size: $ms-font-size-m;
53
- font-weight: $ms-font-weight-regular;
54
- line-height: 1;
55
- position: relative;
56
- width: 100%;
57
- height: $ms-Persona-sizeMd;
58
- display: table;
59
- table-layout: fixed;
60
- border-collapse: separate;
61
-
62
- .ms-ContextualHost {
63
- display: none;
64
- }
65
- }
66
-
67
- .ms-Persona-imageArea {
68
- position: absolute;
69
- overflow: hidden;
70
- text-align: center;
71
- max-width: $ms-Persona-sizeMd;
72
- height: $ms-Persona-sizeMd;
73
- border-radius: 50%;
74
- z-index: $ms-zIndex-back;
75
- width: 100%;
76
- top: 0;
77
- left: 0;
78
-
79
- @media screen and (-ms-high-contrast: active) {
80
- border: 1px solid $ms-color-white;
81
- }
82
-
83
- @media screen and (-ms-high-contrast: black-on-white) {
84
- border: 1px solid $ms-color-black;
85
- }
86
- }
87
-
88
- //= Note: The doughboy placeholder is being deprecated.
89
- // The initials color block (.ms-Persona-initials) will be used going forward
90
- // as a fallback when the persona does not have an image.
91
- .ms-Persona-placeholder {
92
- color: $ms-color-white;
93
- position: absolute;
94
- right: 0;
95
- left: 0;
96
- font-size: 47px;
97
- top: 9px;
98
- z-index: $ms-zIndex-middle;
99
- }
100
-
101
- .ms-Persona-initials {
102
- color: $ms-color-white;
103
- font-size: $ms-font-size-l;
104
- font-weight: $ms-font-weight-light;
105
- line-height: $ms-Persona-sizeMd;
106
-
107
- &.ms-Persona-initials--blueLight {
108
- background-color: $ms-color-blueLight;
109
- }
110
-
111
- &.ms-Persona-initials--blue {
112
- background-color: $ms-color-blue;
113
- }
114
-
115
- &.ms-Persona-initials--blueDark {
116
- background-color: $ms-color-blueDark;
117
- }
118
-
119
- &.ms-Persona-initials--teal {
120
- background-color: $ms-color-teal;
121
- }
122
-
123
- &.ms-Persona-initials--greenLight {
124
- background-color: $ms-color-greenLight;
125
- }
126
-
127
- &.ms-Persona-initials--green {
128
- background-color: $ms-color-green;
129
- }
130
-
131
- &.ms-Persona-initials--greenDark {
132
- background-color: $ms-color-greenDark;
133
- }
134
-
135
- &.ms-Persona-initials--magentaLight {
136
- background-color: $ms-color-magentaLight;
137
- }
138
-
139
- &.ms-Persona-initials--magenta {
140
- background-color: $ms-color-magenta;
141
- }
142
-
143
- &.ms-Persona-initials--purpleLight {
144
- background-color: $ms-color-purpleLight;
145
- }
146
-
147
- &.ms-Persona-initials--purple {
148
- background-color: $ms-color-purple;
149
- }
150
-
151
- &.ms-Persona-initials--black {
152
- background-color: $ms-color-black;
153
- }
154
-
155
- &.ms-Persona-initials--orange {
156
- background-color: $ms-color-orange;
157
- }
158
-
159
- &.ms-Persona-initials--red {
160
- background-color: $ms-color-red;
161
- }
162
-
163
- &.ms-Persona-initials--redDark {
164
- background-color: $ms-color-redDark;
165
- }
166
- }
167
-
168
- .ms-Persona-image {
169
- position: absolute;
170
- top: 0;
171
- left: 0;
172
- height: $ms-Persona-sizeMd;
173
- z-index: $ms-zIndex-front;
174
- width: 100%;
175
-
176
- &[src=''] {
177
- display: none;
178
- }
179
- }
180
-
181
- .ms-Persona-presence {
182
- background-color: $ms-color-presence-available;
183
- position: absolute;
184
- height: $ms-Persona-presenceSizeMd;
185
- width: $ms-Persona-presenceSizeMd;
186
- border-radius: 50%;
187
- top: auto;
188
- left: 34px;
189
- bottom: -1px;
190
- border: 2px solid $ms-color-white;
191
- text-align: center;
192
-
193
- @media screen and (-ms-high-contrast: active) {
194
- border-color: $ms-color-black;
195
- box-shadow: 0 0 0 1px $ms-color-contrastBlackSelected inset;
196
- color: $ms-color-black;
197
- background-color: $ms-color-white;
198
- }
199
-
200
- @media screen and (-ms-high-contrast: black-on-white) {
201
- border-color: $ms-color-white;
202
- box-shadow: 0 0 0 1px $ms-color-contrastWhiteSelected inset;
203
- color: $ms-color-white;
204
- background-color: $ms-color-black;
205
- }
206
- }
207
-
208
- .ms-Persona-presenceIcon {
209
- color: $ms-color-white;
210
- font-size: 8px;
211
- line-height: $ms-Persona-presenceSizeMd;
212
- vertical-align: top;
213
- }
214
-
215
- .ms-Persona-details {
216
- padding: 0 12px;
217
- vertical-align: middle;
218
- overflow: hidden;
219
- text-align: left;
220
- padding-left: $ms-Persona-sizeMd + $ms-Persona-imageDetailsLgSpace;
221
- display: table-cell;
222
- width: 100%;
223
- }
224
-
225
- .ms-Persona-primaryText,
226
- .ms-Persona-secondaryText,
227
- .ms-Persona-tertiaryText,
228
- .ms-Persona-optionalText {
229
- @include noWrap;
230
- width: 100%;
231
- overflow: hidden;
232
- text-overflow: ellipsis;
233
- }
234
-
235
- .ms-Persona-primaryText {
236
- color: $ms-color-neutralPrimary;
237
- font-weight: $ms-font-weight-regular;
238
- font-size: $ms-font-size-l;
239
- margin-top: -3px;
240
- line-height: 1.4;
241
- }
242
-
243
- .ms-Persona-secondaryText,
244
- .ms-Persona-tertiaryText,
245
- .ms-Persona-optionalText {
246
- color: $ms-color-neutralSecondary;
247
- font-weight: $ms-font-weight-regular;
248
- font-size: $ms-font-size-s;
249
- white-space: nowrap;
250
- line-height: 1.3;
251
- }
252
-
253
- .ms-Persona-secondaryText {
254
- padding-top: 3px;
255
- }
256
-
257
- .ms-Persona-tertiaryText,
258
- .ms-Persona-optionalText {
259
- padding-top: 5px;
260
- display: none; // Hidden on default persona
261
- }
262
-
263
-
264
- //== Modifier: Tiny Persona
265
- //
266
- .ms-Persona.ms-Persona--tiny {
267
- height: $ms-Persona-sizeTiny;
268
- display: inline-block;
269
-
270
- .ms-Persona-imageArea {
271
- overflow: visible;
272
- display: none;
273
- }
274
-
275
- .ms-Persona-presence {
276
- right: auto;
277
- top: 10px;
278
- left: 0;
279
- border: 0;
280
-
281
- @media screen and (-ms-high-contrast: active) {
282
- top: 9px;
283
- border: 1px solid $ms-color-white;
284
- }
285
-
286
- @media screen and (-ms-high-contrast: black-on-white) {
287
- border: 1px solid $ms-color-black;
288
- }
289
- }
290
-
291
- .ms-Persona-details {
292
- padding-left: 20px;
293
- }
294
-
295
- .ms-Persona-primaryText {
296
- font-size: $ms-font-size-m;
297
- padding-top: 9px;
298
- }
299
-
300
- .ms-Persona-secondaryText {
301
- display: none;
302
- }
303
- }
304
-
305
-
306
- //== Modifier: Tiny Persona with read only state
307
- //
308
- // This variant includes a semicolon, and is
309
- // most often presented within a People Picker.
310
- .ms-Persona.ms-Persona--tiny.ms-Persona--readonly {
311
- padding: 0;
312
- background-color: transparent;
313
-
314
- .ms-Persona-primaryText {
315
- &::after {
316
- content: ';';
317
- }
318
- }
319
- }
320
-
321
-
322
- //== Modifier: Extra Small Persona, FacePile and Token modifiers
323
- //
324
- .ms-Persona.ms-Persona--xs,
325
- .ms-Persona.ms-Persona--facePile,
326
- .ms-Persona.ms-Persona--token {
327
- height: $ms-Persona-sizeXs;
328
-
329
- .ms-Persona-imageArea,
330
- .ms-Persona-image {
331
- max-width: $ms-Persona-sizeXs;
332
- height: $ms-Persona-sizeXs;
333
- }
334
-
335
- .ms-Persona-placeholder {
336
- font-size: 28px;
337
- top: 6px;
338
- }
339
-
340
- .ms-Persona-initials {
341
- font-size: $ms-font-size-s;
342
- line-height: $ms-Persona-sizeXs;
343
- }
344
-
345
- .ms-Persona-presence {
346
- left: 19px;
347
- }
348
-
349
- .ms-Persona-details {
350
- padding-left: $ms-Persona-sizeXs + $ms-Persona-imageDetailsSmSpace;
351
- }
352
-
353
- .ms-Persona-primaryText {
354
- font-size: $ms-font-size-m;
355
- padding-top: 3px;
356
- }
357
-
358
- .ms-Persona-secondaryText {
359
- display: none;
360
- }
361
- }
362
-
363
-
364
- //== Modifier: Small Persona
365
- //
366
- .ms-Persona.ms-Persona--sm {
367
- height: $ms-Persona-sizeSm;
368
-
369
- .ms-Persona-imageArea,
370
- .ms-Persona-image {
371
- max-width: $ms-Persona-sizeSm;
372
- height: $ms-Persona-sizeSm;
373
- }
374
-
375
- .ms-Persona-placeholder {
376
- font-size: 38px;
377
- top: 5px;
378
- }
379
-
380
- .ms-Persona-initials {
381
- font-size: $ms-font-size-m;
382
- line-height: $ms-Persona-sizeSm;
383
- }
384
-
385
- .ms-Persona-presence {
386
- left: 27px;
387
- }
388
-
389
- .ms-Persona-details {
390
- padding-left: $ms-Persona-sizeSm + $ms-Persona-imageDetailsSmSpace;
391
- }
392
-
393
- .ms-Persona-primaryText {
394
- font-size: $ms-font-size-m;
395
- }
396
-
397
- .ms-Persona-primaryText,
398
- .ms-Persona-secondaryText {
399
- padding-top: 1px;
400
- }
401
- }
402
-
403
-
404
- //== Modifier: Large Persona
405
- //
406
- .ms-Persona.ms-Persona--lg {
407
- height: $ms-Persona-sizeLg;
408
-
409
- .ms-Persona-imageArea,
410
- .ms-Persona-image {
411
- max-width: $ms-Persona-sizeLg;
412
- height: $ms-Persona-sizeLg;
413
- }
414
-
415
- .ms-Persona-placeholder {
416
- font-size: 67px;
417
- top: 10px;
418
- }
419
-
420
- .ms-Persona-initials {
421
- font-size: $ms-font-size-xxl;
422
- line-height: $ms-Persona-sizeLg;
423
- }
424
-
425
- .ms-Persona-presence {
426
- left: 49px;
427
- height: $ms-Persona-presenceSizeLg;
428
- width: $ms-Persona-presenceSizeLg;
429
- border-width: 3px;
430
- }
431
-
432
- .ms-Persona-presenceIcon {
433
- line-height: $ms-Persona-presenceSizeLg;
434
- font-size: $ms-font-size-m;
435
- }
436
-
437
- .ms-Persona-details {
438
- padding-left: $ms-Persona-sizeLg + $ms-Persona-imageDetailsLgSpace;
439
- }
440
-
441
- .ms-Persona-secondaryText {
442
- padding-top: 3px;
443
- }
444
-
445
- .ms-Persona-tertiaryText {
446
- padding-top: 5px;
447
- display: block; // Show tertiary text
448
- }
449
- }
450
-
451
-
452
- //== Modifier: Extra Large Persona
453
- //
454
- .ms-Persona.ms-Persona--xl {
455
- height: $ms-Persona-sizeXl;
456
-
457
- .ms-Persona-imageArea,
458
- .ms-Persona-image {
459
- max-width: $ms-Persona-sizeXl;
460
- height: $ms-Persona-sizeXl;
461
- }
462
-
463
- .ms-Persona-placeholder {
464
- font-size: 95px;
465
- top: 12px;
466
- }
467
-
468
- .ms-Persona-initials {
469
- font-size: $ms-font-size-su;
470
- line-height: $ms-Persona-sizeXl;
471
- }
472
-
473
- .ms-Persona-presence {
474
- height: $ms-Persona-presenceSizeXl;
475
- width: $ms-Persona-presenceSizeXl;
476
- left: 71px;
477
- border-width: 4px;
478
- }
479
-
480
- .ms-Persona-presenceIcon {
481
- line-height: $ms-Persona-presenceSizeXl;
482
- font-size: $ms-font-size-xl;
483
- position: relative;
484
- top: 1px;
485
- }
486
-
487
- .ms-Persona-details {
488
- padding-left: $ms-Persona-sizeXl + $ms-Persona-imageDetailsXlSpace;
489
- }
490
-
491
- .ms-Persona-primaryText {
492
- font-size: $ms-font-size-xl;
493
- font-weight: $ms-font-weight-semilight;
494
- margin-top: 0;
495
- }
496
-
497
- .ms-Persona-secondaryText {
498
- padding-top: 2px;
499
- }
500
-
501
- .ms-Persona-tertiaryText,
502
- .ms-Persona-optionalText {
503
- padding-top: 5px;
504
- display: block; // Show tertiary and optional text
505
- }
506
- }
507
-
508
-
509
- //== Modifier: Persona with darker text
510
- //
511
- // Note: Typically applied when the component has a colored background.
512
- .ms-Persona.ms-Persona--darkText {
513
- .ms-Persona-primaryText {
514
- color: $ms-color-neutralDark;
515
- }
516
-
517
- .ms-Persona-secondaryText,
518
- .ms-Persona-tertiaryText,
519
- .ms-Persona-optionalText {
520
- color: $ms-color-neutralPrimary;
521
- }
522
- }
523
-
524
-
525
- //== Modifier: Selectable Persona
526
- //
527
- .ms-Persona.ms-Persona--selectable {
528
- cursor: pointer;
529
- padding: 0 10px;
530
-
531
- &:not(.ms-Persona--xl) {
532
- &:hover,
533
- &:focus {
534
- background-color: $ms-color-themeLighter;
535
- outline: 1px solid transparent;
536
- }
537
- }
538
- }
539
-
540
-
541
- //== Presence indicator variants.
542
-
543
- //== Modifier: Persona with available presence
544
- //
545
- .ms-Persona.ms-Persona--available {
546
- .ms-Persona-presence {
547
- background-color: $ms-color-presence-available;
548
- }
549
- }
550
-
551
-
552
- //== Modifier: Persona with away presence
553
- //
554
- .ms-Persona.ms-Persona--away {
555
- .ms-Persona-presence {
556
- background-color: $ms-color-presence-away;
557
- }
558
-
559
- .ms-Persona-presenceIcon {
560
- position: relative;
561
- left: 1px;
562
- }
563
- }
564
-
565
-
566
- //== Modifier: Persona with blocked presence
567
- //
568
- .ms-Persona.ms-Persona--blocked {
569
- .ms-Persona-presence {
570
- background-color: $ms-color-white;
571
-
572
- &::before {
573
- content: '';
574
- width: 100%;
575
- height: 100%;
576
- position: absolute;
577
- top: 0;
578
- left: 0;
579
- box-shadow: 0 0 0 2px $ms-color-presence-busy-average inset;
580
- border-radius: 50%;
581
- }
582
-
583
- &::after {
584
- content: '';
585
- width: 100%;
586
- height: 2px;
587
- background-color: $ms-color-presence-busy-average;
588
- transform: rotate(-45deg);
589
- position: absolute;
590
- top: 5px;
591
- left: 0;
592
- }
593
- }
594
-
595
- &.ms-Persona--lg {
596
- .ms-Persona-presence {
597
- &::after {
598
- top: 9px;
599
- }
600
- }
601
- }
602
-
603
- &.ms-Persona--xl {
604
- .ms-Persona-presence {
605
- &::after {
606
- top: 13px;
607
- }
608
- }
609
- }
610
- }
611
-
612
-
613
- //== Modifier: Persona with busy presence
614
- //
615
- .ms-Persona.ms-Persona--busy {
616
- .ms-Persona-presence {
617
- background-color: $ms-color-presence-busy-average;
618
-
619
- @media screen and (-ms-high-contrast: active) {
620
- background-color: $ms-color-contrastBlackSelected;
621
- }
622
-
623
- @media screen and (-ms-high-contrast: black-on-white) {
624
- background-color: $ms-color-contrastWhiteSelected;
625
- }
626
- }
627
- }
628
-
629
-
630
- //== Modifier: Persona with do not disturb presence
631
- //
632
- .ms-Persona.ms-Persona--dnd {
633
- .ms-Persona-presence {
634
- background-color: $ms-color-presence-dnd-background;
635
- }
636
- }
637
-
638
-
639
- //== Modifier: Persona with offline presence
640
- //
641
- .ms-Persona.ms-Persona--offline {
642
- .ms-Persona-presence {
643
- background-color: $ms-color-presence-offline;
644
-
645
- @media screen and (-ms-high-contrast: active) {
646
- background-color: $ms-color-black;
647
- box-shadow: 0 0 0 1px $ms-color-white inset;
648
- }
649
-
650
- @media screen and (-ms-high-contrast: black-on-white) {
651
- background-color: $ms-color-white;
652
- box-shadow: 0 0 0 1px $ms-color-black inset;
653
- }
654
- }
655
- }
656
-
657
- //== Modifier: FacePile
658
- //
659
- .ms-Persona.ms-Persona--facePile {
660
- display: inline-block;
661
- width: auto;
662
-
663
- &:hover {
664
- cursor: pointer;
665
- }
666
-
667
- .ms-Persona-imageArea {
668
- position: relative;
669
- width: 100%;
670
- min-width: $ms-Persona-sizeXs;
671
- }
672
-
673
- .ms-Persona-initials {
674
- position: relative;
675
- }
676
-
677
- .ms-Persona-details {
678
- display: none;
679
- }
680
-
681
- .ms-Persona-presence {
682
- display: none;
683
- }
684
- }
685
-
686
- //== Modifier: FacePile
687
- //
688
- .ms-Persona.ms-Persona--token {
689
- display: inline-flex;
690
- width: auto;
691
- background-color: $ms-color-neutralLighter;
692
- border-radius: 20px;
693
- margin: 4px;
694
-
695
- &:hover {
696
- cursor: pointer;
697
- }
698
-
699
- .ms-Persona-actionIcon {
700
- border-radius: 20px;
701
- display: inline-block;
702
- width: $ms-Persona-sizeXs;
703
- height: $ms-Persona-sizeXs;
704
- padding: 0;
705
- line-height: 30px;
706
- transition: background-color $ms-duration1 $ms-ease1;
707
- text-align: center;
708
-
709
- &:hover {
710
- background-color: $ms-color-neutralLight;
711
- }
712
- }
713
-
714
- .ms-Persona-imageArea {
715
- width: 100%;
716
- min-width: $ms-Persona-sizeXs;
717
- }
718
-
719
- .ms-Persona-details {
720
- height: 30px;
721
- display: inline-block;
722
- width: auto;
723
- padding-right: 8px;
724
- }
725
-
726
- .ms-Persona-primaryText {
727
- padding-top: 0;
728
- line-height: 34px;
729
- }
730
-
731
- .ms-Persona-initials {
732
- position: relative;
733
- }
734
- }
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
+ // Persona styles
11
+
12
+
13
+ // Skype presence colors
14
+ $ms-color-presence-available: #7FBA00;
15
+ $ms-color-presence-away: #FCD116;
16
+ $ms-color-presence-busy: #E81123;
17
+ $ms-color-presence-dnd-background: #E81123;
18
+ $ms-color-presence-dnd-line: #FFFFFF;
19
+ $ms-color-presence-offline: #93ABBD;
20
+ $ms-color-presence-out-of-office: $ms-color-magenta;
21
+
22
+ // Other presence colors
23
+ $ms-color-presence-blocked-background: #DEDEDE;
24
+ $ms-color-presence-blocked-line: #C72D25;
25
+ $ms-color-presence-busy-stripe-light: #E57A79;
26
+ $ms-color-presence-busy-stripe-dark: #D00E0D;
27
+ $ms-color-presence-busy-average: #D93B3B;
28
+
29
+ // Persona Sizes
30
+ $ms-Persona-sizeTiny: 30px;
31
+ $ms-Persona-sizeXs: 32px;
32
+ $ms-Persona-sizeSm: 40px;
33
+ $ms-Persona-sizeMd: 48px;
34
+ $ms-Persona-sizeLg: 72px;
35
+ $ms-Persona-sizeXl: 100px;
36
+
37
+ // Details Spacing
38
+ $ms-Persona-imageDetailsSmSpace: 8px;
39
+ $ms-Persona-imageDetailsLgSpace: 12px;
40
+ $ms-Persona-imageDetailsXlSpace: 20px;
41
+
42
+ // Presence Sizes
43
+ $ms-Persona-presenceSizeMd: 12px;
44
+ $ms-Persona-presenceSizeLg: 20px;
45
+ $ms-Persona-presenceSizeXl: 28px;
46
+
47
+
48
+ .ms-Persona {
49
+ @include ms-baseFont;
50
+ @include ms-u-normalize;
51
+ color: $ms-color-neutralPrimary;
52
+ font-size: $ms-font-size-m;
53
+ font-weight: $ms-font-weight-regular;
54
+ line-height: 1;
55
+ position: relative;
56
+ width: 100%;
57
+ height: $ms-Persona-sizeMd;
58
+ display: table;
59
+ table-layout: fixed;
60
+ border-collapse: separate;
61
+
62
+ .ms-ContextualHost {
63
+ display: none;
64
+ }
65
+ }
66
+
67
+ .ms-Persona-imageArea {
68
+ position: absolute;
69
+ overflow: hidden;
70
+ text-align: center;
71
+ max-width: $ms-Persona-sizeMd;
72
+ height: $ms-Persona-sizeMd;
73
+ border-radius: 50%;
74
+ z-index: $ms-zIndex-back;
75
+ width: 100%;
76
+ top: 0;
77
+ left: 0;
78
+
79
+ @media screen and (-ms-high-contrast: active) {
80
+ border: 1px solid $ms-color-white;
81
+ }
82
+
83
+ @media screen and (-ms-high-contrast: black-on-white) {
84
+ border: 1px solid $ms-color-black;
85
+ }
86
+ }
87
+
88
+ //= Note: The doughboy placeholder is being deprecated.
89
+ // The initials color block (.ms-Persona-initials) will be used going forward
90
+ // as a fallback when the persona does not have an image.
91
+ .ms-Persona-placeholder {
92
+ color: $ms-color-white;
93
+ position: absolute;
94
+ right: 0;
95
+ left: 0;
96
+ font-size: 47px;
97
+ top: 9px;
98
+ z-index: $ms-zIndex-middle;
99
+ }
100
+
101
+ .ms-Persona-initials {
102
+ color: $ms-color-white;
103
+ font-size: $ms-font-size-l;
104
+ font-weight: $ms-font-weight-light;
105
+ line-height: $ms-Persona-sizeMd;
106
+
107
+ &.ms-Persona-initials--blueLight {
108
+ background-color: $ms-color-blueLight;
109
+ }
110
+
111
+ &.ms-Persona-initials--blue {
112
+ background-color: $ms-color-blue;
113
+ }
114
+
115
+ &.ms-Persona-initials--blueDark {
116
+ background-color: $ms-color-blueDark;
117
+ }
118
+
119
+ &.ms-Persona-initials--teal {
120
+ background-color: $ms-color-teal;
121
+ }
122
+
123
+ &.ms-Persona-initials--greenLight {
124
+ background-color: $ms-color-greenLight;
125
+ }
126
+
127
+ &.ms-Persona-initials--green {
128
+ background-color: $ms-color-green;
129
+ }
130
+
131
+ &.ms-Persona-initials--greenDark {
132
+ background-color: $ms-color-greenDark;
133
+ }
134
+
135
+ &.ms-Persona-initials--magentaLight {
136
+ background-color: $ms-color-magentaLight;
137
+ }
138
+
139
+ &.ms-Persona-initials--magenta {
140
+ background-color: $ms-color-magenta;
141
+ }
142
+
143
+ &.ms-Persona-initials--purpleLight {
144
+ background-color: $ms-color-purpleLight;
145
+ }
146
+
147
+ &.ms-Persona-initials--purple {
148
+ background-color: $ms-color-purple;
149
+ }
150
+
151
+ &.ms-Persona-initials--black {
152
+ background-color: $ms-color-black;
153
+ }
154
+
155
+ &.ms-Persona-initials--orange {
156
+ background-color: $ms-color-orange;
157
+ }
158
+
159
+ &.ms-Persona-initials--red {
160
+ background-color: $ms-color-red;
161
+ }
162
+
163
+ &.ms-Persona-initials--redDark {
164
+ background-color: $ms-color-redDark;
165
+ }
166
+ }
167
+
168
+ .ms-Persona-image {
169
+ position: absolute;
170
+ top: 0;
171
+ left: 0;
172
+ height: $ms-Persona-sizeMd;
173
+ z-index: $ms-zIndex-front;
174
+ width: 100%;
175
+
176
+ &[src=''] {
177
+ display: none;
178
+ }
179
+ }
180
+
181
+ .ms-Persona-presence {
182
+ background-color: $ms-color-presence-available;
183
+ position: absolute;
184
+ height: $ms-Persona-presenceSizeMd;
185
+ width: $ms-Persona-presenceSizeMd;
186
+ border-radius: 50%;
187
+ top: auto;
188
+ left: 34px;
189
+ bottom: -1px;
190
+ border: 2px solid $ms-color-white;
191
+ text-align: center;
192
+
193
+ @media screen and (-ms-high-contrast: active) {
194
+ border-color: $ms-color-black;
195
+ box-shadow: 0 0 0 1px $ms-color-contrastBlackSelected inset;
196
+ color: $ms-color-black;
197
+ background-color: $ms-color-white;
198
+ }
199
+
200
+ @media screen and (-ms-high-contrast: black-on-white) {
201
+ border-color: $ms-color-white;
202
+ box-shadow: 0 0 0 1px $ms-color-contrastWhiteSelected inset;
203
+ color: $ms-color-white;
204
+ background-color: $ms-color-black;
205
+ }
206
+ }
207
+
208
+ .ms-Persona-presenceIcon {
209
+ color: $ms-color-white;
210
+ font-size: 8px;
211
+ line-height: $ms-Persona-presenceSizeMd;
212
+ vertical-align: top;
213
+ }
214
+
215
+ .ms-Persona-details {
216
+ padding: 0 12px;
217
+ vertical-align: middle;
218
+ overflow: hidden;
219
+ text-align: left;
220
+ padding-left: $ms-Persona-sizeMd + $ms-Persona-imageDetailsLgSpace;
221
+ display: table-cell;
222
+ width: 100%;
223
+ }
224
+
225
+ .ms-Persona-primaryText,
226
+ .ms-Persona-secondaryText,
227
+ .ms-Persona-tertiaryText,
228
+ .ms-Persona-optionalText {
229
+ @include noWrap;
230
+ width: 100%;
231
+ overflow: hidden;
232
+ text-overflow: ellipsis;
233
+ }
234
+
235
+ .ms-Persona-primaryText {
236
+ color: $ms-color-neutralPrimary;
237
+ font-weight: $ms-font-weight-regular;
238
+ font-size: $ms-font-size-l;
239
+ margin-top: -3px;
240
+ line-height: 1.4;
241
+ }
242
+
243
+ .ms-Persona-secondaryText,
244
+ .ms-Persona-tertiaryText,
245
+ .ms-Persona-optionalText {
246
+ color: $ms-color-neutralSecondary;
247
+ font-weight: $ms-font-weight-regular;
248
+ font-size: $ms-font-size-s;
249
+ white-space: nowrap;
250
+ line-height: 1.3;
251
+ }
252
+
253
+ .ms-Persona-secondaryText {
254
+ padding-top: 3px;
255
+ }
256
+
257
+ .ms-Persona-tertiaryText,
258
+ .ms-Persona-optionalText {
259
+ padding-top: 5px;
260
+ display: none; // Hidden on default persona
261
+ }
262
+
263
+
264
+ //== Modifier: Tiny Persona
265
+ //
266
+ .ms-Persona.ms-Persona--tiny {
267
+ height: $ms-Persona-sizeTiny;
268
+ display: inline-block;
269
+
270
+ .ms-Persona-imageArea {
271
+ overflow: visible;
272
+ display: none;
273
+ }
274
+
275
+ .ms-Persona-presence {
276
+ right: auto;
277
+ top: 10px;
278
+ left: 0;
279
+ border: 0;
280
+
281
+ @media screen and (-ms-high-contrast: active) {
282
+ top: 9px;
283
+ border: 1px solid $ms-color-white;
284
+ }
285
+
286
+ @media screen and (-ms-high-contrast: black-on-white) {
287
+ border: 1px solid $ms-color-black;
288
+ }
289
+ }
290
+
291
+ .ms-Persona-details {
292
+ padding-left: 20px;
293
+ }
294
+
295
+ .ms-Persona-primaryText {
296
+ font-size: $ms-font-size-m;
297
+ padding-top: 9px;
298
+ }
299
+
300
+ .ms-Persona-secondaryText {
301
+ display: none;
302
+ }
303
+ }
304
+
305
+
306
+ //== Modifier: Tiny Persona with read only state
307
+ //
308
+ // This variant includes a semicolon, and is
309
+ // most often presented within a People Picker.
310
+ .ms-Persona.ms-Persona--tiny.ms-Persona--readonly {
311
+ padding: 0;
312
+ background-color: transparent;
313
+
314
+ .ms-Persona-primaryText {
315
+ &::after {
316
+ content: ';';
317
+ }
318
+ }
319
+ }
320
+
321
+
322
+ //== Modifier: Extra Small Persona, FacePile and Token modifiers
323
+ //
324
+ .ms-Persona.ms-Persona--xs,
325
+ .ms-Persona.ms-Persona--facePile,
326
+ .ms-Persona.ms-Persona--token {
327
+ height: $ms-Persona-sizeXs;
328
+
329
+ .ms-Persona-imageArea,
330
+ .ms-Persona-image {
331
+ max-width: $ms-Persona-sizeXs;
332
+ height: $ms-Persona-sizeXs;
333
+ }
334
+
335
+ .ms-Persona-placeholder {
336
+ font-size: 28px;
337
+ top: 6px;
338
+ }
339
+
340
+ .ms-Persona-initials {
341
+ font-size: $ms-font-size-s;
342
+ line-height: $ms-Persona-sizeXs;
343
+ }
344
+
345
+ .ms-Persona-presence {
346
+ left: 19px;
347
+ }
348
+
349
+ .ms-Persona-details {
350
+ padding-left: $ms-Persona-sizeXs + $ms-Persona-imageDetailsSmSpace;
351
+ }
352
+
353
+ .ms-Persona-primaryText {
354
+ font-size: $ms-font-size-m;
355
+ padding-top: 3px;
356
+ }
357
+
358
+ .ms-Persona-secondaryText {
359
+ display: none;
360
+ }
361
+ }
362
+
363
+
364
+ //== Modifier: Small Persona
365
+ //
366
+ .ms-Persona.ms-Persona--sm {
367
+ height: $ms-Persona-sizeSm;
368
+
369
+ .ms-Persona-imageArea,
370
+ .ms-Persona-image {
371
+ max-width: $ms-Persona-sizeSm;
372
+ height: $ms-Persona-sizeSm;
373
+ }
374
+
375
+ .ms-Persona-placeholder {
376
+ font-size: 38px;
377
+ top: 5px;
378
+ }
379
+
380
+ .ms-Persona-initials {
381
+ font-size: $ms-font-size-m;
382
+ line-height: $ms-Persona-sizeSm;
383
+ }
384
+
385
+ .ms-Persona-presence {
386
+ left: 27px;
387
+ }
388
+
389
+ .ms-Persona-details {
390
+ padding-left: $ms-Persona-sizeSm + $ms-Persona-imageDetailsSmSpace;
391
+ }
392
+
393
+ .ms-Persona-primaryText {
394
+ font-size: $ms-font-size-m;
395
+ }
396
+
397
+ .ms-Persona-primaryText,
398
+ .ms-Persona-secondaryText {
399
+ padding-top: 1px;
400
+ }
401
+ }
402
+
403
+
404
+ //== Modifier: Large Persona
405
+ //
406
+ .ms-Persona.ms-Persona--lg {
407
+ height: $ms-Persona-sizeLg;
408
+
409
+ .ms-Persona-imageArea,
410
+ .ms-Persona-image {
411
+ max-width: $ms-Persona-sizeLg;
412
+ height: $ms-Persona-sizeLg;
413
+ }
414
+
415
+ .ms-Persona-placeholder {
416
+ font-size: 67px;
417
+ top: 10px;
418
+ }
419
+
420
+ .ms-Persona-initials {
421
+ font-size: $ms-font-size-xxl;
422
+ line-height: $ms-Persona-sizeLg;
423
+ }
424
+
425
+ .ms-Persona-presence {
426
+ left: 49px;
427
+ height: $ms-Persona-presenceSizeLg;
428
+ width: $ms-Persona-presenceSizeLg;
429
+ border-width: 3px;
430
+ }
431
+
432
+ .ms-Persona-presenceIcon {
433
+ line-height: $ms-Persona-presenceSizeLg;
434
+ font-size: $ms-font-size-m;
435
+ }
436
+
437
+ .ms-Persona-details {
438
+ padding-left: $ms-Persona-sizeLg + $ms-Persona-imageDetailsLgSpace;
439
+ }
440
+
441
+ .ms-Persona-secondaryText {
442
+ padding-top: 3px;
443
+ }
444
+
445
+ .ms-Persona-tertiaryText {
446
+ padding-top: 5px;
447
+ display: block; // Show tertiary text
448
+ }
449
+ }
450
+
451
+
452
+ //== Modifier: Extra Large Persona
453
+ //
454
+ .ms-Persona.ms-Persona--xl {
455
+ height: $ms-Persona-sizeXl;
456
+
457
+ .ms-Persona-imageArea,
458
+ .ms-Persona-image {
459
+ max-width: $ms-Persona-sizeXl;
460
+ height: $ms-Persona-sizeXl;
461
+ }
462
+
463
+ .ms-Persona-placeholder {
464
+ font-size: 95px;
465
+ top: 12px;
466
+ }
467
+
468
+ .ms-Persona-initials {
469
+ font-size: $ms-font-size-su;
470
+ line-height: $ms-Persona-sizeXl;
471
+ }
472
+
473
+ .ms-Persona-presence {
474
+ height: $ms-Persona-presenceSizeXl;
475
+ width: $ms-Persona-presenceSizeXl;
476
+ left: 71px;
477
+ border-width: 4px;
478
+ }
479
+
480
+ .ms-Persona-presenceIcon {
481
+ line-height: $ms-Persona-presenceSizeXl;
482
+ font-size: $ms-font-size-xl;
483
+ position: relative;
484
+ top: 1px;
485
+ }
486
+
487
+ .ms-Persona-details {
488
+ padding-left: $ms-Persona-sizeXl + $ms-Persona-imageDetailsXlSpace;
489
+ }
490
+
491
+ .ms-Persona-primaryText {
492
+ font-size: $ms-font-size-xl;
493
+ font-weight: $ms-font-weight-semilight;
494
+ margin-top: 0;
495
+ }
496
+
497
+ .ms-Persona-secondaryText {
498
+ padding-top: 2px;
499
+ }
500
+
501
+ .ms-Persona-tertiaryText,
502
+ .ms-Persona-optionalText {
503
+ padding-top: 5px;
504
+ display: block; // Show tertiary and optional text
505
+ }
506
+ }
507
+
508
+
509
+ //== Modifier: Persona with darker text
510
+ //
511
+ // Note: Typically applied when the component has a colored background.
512
+ .ms-Persona.ms-Persona--darkText {
513
+ .ms-Persona-primaryText {
514
+ color: $ms-color-neutralDark;
515
+ }
516
+
517
+ .ms-Persona-secondaryText,
518
+ .ms-Persona-tertiaryText,
519
+ .ms-Persona-optionalText {
520
+ color: $ms-color-neutralPrimary;
521
+ }
522
+ }
523
+
524
+
525
+ //== Modifier: Selectable Persona
526
+ //
527
+ .ms-Persona.ms-Persona--selectable {
528
+ cursor: pointer;
529
+ padding: 0 10px;
530
+
531
+ &:not(.ms-Persona--xl) {
532
+ &:hover,
533
+ &:focus {
534
+ background-color: $ms-color-themeLighter;
535
+ outline: 1px solid transparent;
536
+ }
537
+ }
538
+ }
539
+
540
+
541
+ //== Presence indicator variants.
542
+
543
+ //== Modifier: Persona with available presence
544
+ //
545
+ .ms-Persona.ms-Persona--available {
546
+ .ms-Persona-presence {
547
+ background-color: $ms-color-presence-available;
548
+ }
549
+ }
550
+
551
+
552
+ //== Modifier: Persona with away presence
553
+ //
554
+ .ms-Persona.ms-Persona--away {
555
+ .ms-Persona-presence {
556
+ background-color: $ms-color-presence-away;
557
+ }
558
+
559
+ .ms-Persona-presenceIcon {
560
+ position: relative;
561
+ left: 1px;
562
+ }
563
+ }
564
+
565
+
566
+ //== Modifier: Persona with blocked presence
567
+ //
568
+ .ms-Persona.ms-Persona--blocked {
569
+ .ms-Persona-presence {
570
+ background-color: $ms-color-white;
571
+
572
+ &::before {
573
+ content: '';
574
+ width: 100%;
575
+ height: 100%;
576
+ position: absolute;
577
+ top: 0;
578
+ left: 0;
579
+ box-shadow: 0 0 0 2px $ms-color-presence-busy-average inset;
580
+ border-radius: 50%;
581
+ }
582
+
583
+ &::after {
584
+ content: '';
585
+ width: 100%;
586
+ height: 2px;
587
+ background-color: $ms-color-presence-busy-average;
588
+ transform: rotate(-45deg);
589
+ position: absolute;
590
+ top: 5px;
591
+ left: 0;
592
+ }
593
+ }
594
+
595
+ &.ms-Persona--lg {
596
+ .ms-Persona-presence {
597
+ &::after {
598
+ top: 9px;
599
+ }
600
+ }
601
+ }
602
+
603
+ &.ms-Persona--xl {
604
+ .ms-Persona-presence {
605
+ &::after {
606
+ top: 13px;
607
+ }
608
+ }
609
+ }
610
+ }
611
+
612
+
613
+ //== Modifier: Persona with busy presence
614
+ //
615
+ .ms-Persona.ms-Persona--busy {
616
+ .ms-Persona-presence {
617
+ background-color: $ms-color-presence-busy-average;
618
+
619
+ @media screen and (-ms-high-contrast: active) {
620
+ background-color: $ms-color-contrastBlackSelected;
621
+ }
622
+
623
+ @media screen and (-ms-high-contrast: black-on-white) {
624
+ background-color: $ms-color-contrastWhiteSelected;
625
+ }
626
+ }
627
+ }
628
+
629
+
630
+ //== Modifier: Persona with do not disturb presence
631
+ //
632
+ .ms-Persona.ms-Persona--dnd {
633
+ .ms-Persona-presence {
634
+ background-color: $ms-color-presence-dnd-background;
635
+ }
636
+ }
637
+
638
+
639
+ //== Modifier: Persona with offline presence
640
+ //
641
+ .ms-Persona.ms-Persona--offline {
642
+ .ms-Persona-presence {
643
+ background-color: $ms-color-presence-offline;
644
+
645
+ @media screen and (-ms-high-contrast: active) {
646
+ background-color: $ms-color-black;
647
+ box-shadow: 0 0 0 1px $ms-color-white inset;
648
+ }
649
+
650
+ @media screen and (-ms-high-contrast: black-on-white) {
651
+ background-color: $ms-color-white;
652
+ box-shadow: 0 0 0 1px $ms-color-black inset;
653
+ }
654
+ }
655
+ }
656
+
657
+ //== Modifier: FacePile
658
+ //
659
+ .ms-Persona.ms-Persona--facePile {
660
+ display: inline-block;
661
+ width: auto;
662
+
663
+ &:hover {
664
+ cursor: pointer;
665
+ }
666
+
667
+ .ms-Persona-imageArea {
668
+ position: relative;
669
+ width: 100%;
670
+ min-width: $ms-Persona-sizeXs;
671
+ }
672
+
673
+ .ms-Persona-initials {
674
+ position: relative;
675
+ }
676
+
677
+ .ms-Persona-details {
678
+ display: none;
679
+ }
680
+
681
+ .ms-Persona-presence {
682
+ display: none;
683
+ }
684
+ }
685
+
686
+ //== Modifier: FacePile
687
+ //
688
+ .ms-Persona.ms-Persona--token {
689
+ display: inline-flex;
690
+ width: auto;
691
+ background-color: $ms-color-neutralLighter;
692
+ border-radius: 20px;
693
+ margin: 4px;
694
+
695
+ &:hover {
696
+ cursor: pointer;
697
+ }
698
+
699
+ .ms-Persona-actionIcon {
700
+ border-radius: 20px;
701
+ display: inline-block;
702
+ width: $ms-Persona-sizeXs;
703
+ height: $ms-Persona-sizeXs;
704
+ padding: 0;
705
+ line-height: 30px;
706
+ transition: background-color $ms-duration1 $ms-ease1;
707
+ text-align: center;
708
+
709
+ &:hover {
710
+ background-color: $ms-color-neutralLight;
711
+ }
712
+ }
713
+
714
+ .ms-Persona-imageArea {
715
+ width: 100%;
716
+ min-width: $ms-Persona-sizeXs;
717
+ }
718
+
719
+ .ms-Persona-details {
720
+ height: 30px;
721
+ display: inline-block;
722
+ width: auto;
723
+ padding-right: 8px;
724
+ }
725
+
726
+ .ms-Persona-primaryText {
727
+ padding-top: 0;
728
+ line-height: 34px;
729
+ }
730
+
731
+ .ms-Persona-initials {
732
+ position: relative;
733
+ }
734
+ }