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