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,454 @@
|
|
|
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
|
+
// People Picker styles
|
|
7
|
+
|
|
8
|
+
$personaItemHeight: 40px;
|
|
9
|
+
$ms-Persona-leftPadding: 16px;
|
|
10
|
+
|
|
11
|
+
.ms-PeoplePicker {
|
|
12
|
+
@include ms-baseFont;
|
|
13
|
+
@include ms-u-normalize;
|
|
14
|
+
color: $ms-color-neutralPrimary;
|
|
15
|
+
font-size: $ms-font-size-m;
|
|
16
|
+
background-color: $ms-color-white;
|
|
17
|
+
margin-bottom: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Box that contains the search field and selected people.
|
|
21
|
+
.ms-PeoplePicker-searchBox {
|
|
22
|
+
border-bottom: 1px solid $ms-color-neutralTertiaryAlt;
|
|
23
|
+
cursor: text;
|
|
24
|
+
flex-flow: row wrap;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: stretch;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.is-active,
|
|
33
|
+
&:focus {
|
|
34
|
+
border-color: $ms-color-themePrimary;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:hover,
|
|
38
|
+
&:focus {
|
|
39
|
+
@media screen and (-ms-high-contrast: active) {
|
|
40
|
+
border-color: $ms-color-contrastBlackSelected;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
|
44
|
+
border-color: $ms-color-contrastWhiteSelected;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include input-placeholder {
|
|
49
|
+
color: $ms-color-neutralSecondary;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ms-TextField.ms-TextField--textFieldUnderlined {
|
|
53
|
+
border: 0;
|
|
54
|
+
margin-bottom: 0;
|
|
55
|
+
display: inline-block;
|
|
56
|
+
width: 100%;
|
|
57
|
+
flex: 1;
|
|
58
|
+
|
|
59
|
+
.ms-TextField-field {
|
|
60
|
+
min-height: 40px;
|
|
61
|
+
border: 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Highlight the search box when the people picker is active
|
|
67
|
+
.ms-PeoplePicker.is-active .ms-PeoplePicker-searchBox {
|
|
68
|
+
.ms-TextField-field {
|
|
69
|
+
border-color: $ms-color-themePrimary;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.ms-PeoplePicker-persona {
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// The selected persona may be in an error state.
|
|
78
|
+
.ms-PeoplePicker-persona.has-error {
|
|
79
|
+
.ms-Persona-primaryText {
|
|
80
|
+
color: $ms-color-error;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Button to remove a selected person.
|
|
85
|
+
.ms-PeoplePicker-personaRemove {
|
|
86
|
+
@include button-reset;
|
|
87
|
+
background-color: $ms-color-neutralLighter;
|
|
88
|
+
color: $ms-color-neutralSecondary;
|
|
89
|
+
display: inline-block;
|
|
90
|
+
text-align: center;
|
|
91
|
+
height: 32px;
|
|
92
|
+
width: 32px;
|
|
93
|
+
|
|
94
|
+
&:hover {
|
|
95
|
+
background-color: $ms-color-neutralLight;
|
|
96
|
+
color: $ms-color-neutralPrimary;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:focus {
|
|
101
|
+
background-color: $ms-color-neutralLight;
|
|
102
|
+
color: $ms-color-neutralPrimary;
|
|
103
|
+
border: 1px solid $ms-color-themePrimary;
|
|
104
|
+
outline: none;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Results area, hidden by default
|
|
109
|
+
.ms-PeoplePicker-results {
|
|
110
|
+
background-color: $ms-color-white;
|
|
111
|
+
border: 1px solid $ms-color-neutralTertiaryAlt;
|
|
112
|
+
margin-bottom: -1px;
|
|
113
|
+
padding-top: 9px;
|
|
114
|
+
width: 100%;
|
|
115
|
+
padding-left: 0;
|
|
116
|
+
box-sizing: border-box;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Show the results area when the people picker is active
|
|
120
|
+
.ms-PeoplePicker.is-active .ms-PeoplePicker-results {
|
|
121
|
+
display: block;
|
|
122
|
+
opacity: 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
// A group of results
|
|
127
|
+
.ms-PeoplePicker-resultGroup {
|
|
128
|
+
border-top: 1px solid $ms-color-neutralLight;
|
|
129
|
+
|
|
130
|
+
// The first result group needs to be bumped up 1px to account for border on ms-PeoplePicker-results
|
|
131
|
+
&:first-child {
|
|
132
|
+
border-top: 0;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Title for a group of results (optional)
|
|
137
|
+
.ms-PeoplePicker-resultGroupTitle {
|
|
138
|
+
color: $ms-color-themePrimary;
|
|
139
|
+
font-weight: $ms-font-weight-semilight;
|
|
140
|
+
font-size: $ms-font-size-s;
|
|
141
|
+
padding-top: 8px;
|
|
142
|
+
padding-bottom: 8px;
|
|
143
|
+
text-transform: uppercase;
|
|
144
|
+
padding-left: $ms-Persona-leftPadding;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// List of results
|
|
148
|
+
.ms-PeoplePicker-resultList {
|
|
149
|
+
@include ms-u-normalize;
|
|
150
|
+
margin-bottom: -1px;
|
|
151
|
+
list-style-type: none; // Browser default override.
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// A single result in the result list
|
|
155
|
+
.ms-PeoplePicker-result {
|
|
156
|
+
position: relative;
|
|
157
|
+
margin-top: 8px;
|
|
158
|
+
margin-bottom: 8px;
|
|
159
|
+
padding-left: $ms-Persona-leftPadding;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
outline: 0;
|
|
162
|
+
|
|
163
|
+
&:hover,
|
|
164
|
+
&:focus {
|
|
165
|
+
background-color: $ms-color-neutralLight;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&:focus {
|
|
169
|
+
box-shadow: 0 0 0 1px $ms-color-themePrimary inset;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&.is-selected {
|
|
173
|
+
background-color: $ms-color-themeLight;
|
|
174
|
+
|
|
175
|
+
.ms-PeoplePicker-resultAction {
|
|
176
|
+
&:hover {
|
|
177
|
+
background-color: $ms-color-themeTertiary;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:active {
|
|
181
|
+
background-color: $ms-color-themeTertiary;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// Result buttons
|
|
188
|
+
.ms-PeoplePicker-resultBtn,
|
|
189
|
+
.ms-PeoplePicker-peopleListBtn {
|
|
190
|
+
@include button-reset;
|
|
191
|
+
position: relative;
|
|
192
|
+
box-sizing: border-box;
|
|
193
|
+
height: 34px;
|
|
194
|
+
width: 100%;
|
|
195
|
+
background: none;
|
|
196
|
+
border: 0;
|
|
197
|
+
text-align: left;
|
|
198
|
+
margin: 0 0 10px;
|
|
199
|
+
padding: 0 0 0 9px;
|
|
200
|
+
|
|
201
|
+
@media (min-width: $ms-screen-md-min) {
|
|
202
|
+
height: 48px;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&:hover {
|
|
206
|
+
background-color: $ms-color-neutralLight;
|
|
207
|
+
outline: 1px solid transparent;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&:focus {
|
|
211
|
+
outline: 1;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&.ms-PeoplePicker-resultBtn--compact {
|
|
215
|
+
height: 32px;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.ms-PeoplePicker-peopleListBtn {
|
|
220
|
+
margin-bottom: 0;
|
|
221
|
+
padding: 0;
|
|
222
|
+
|
|
223
|
+
&:hover {
|
|
224
|
+
background-color: transparent;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Actionable icon on a result
|
|
229
|
+
.ms-PeoplePicker-resultAction {
|
|
230
|
+
@include button-reset;
|
|
231
|
+
display: block;
|
|
232
|
+
height: 100%;
|
|
233
|
+
transition: background-color .367s $ms-ease1;
|
|
234
|
+
position: absolute;
|
|
235
|
+
right: 0;
|
|
236
|
+
top: 0;
|
|
237
|
+
width: 40px;
|
|
238
|
+
text-align: center;
|
|
239
|
+
|
|
240
|
+
.ms-Icon {
|
|
241
|
+
color: $ms-color-neutralSecondary;
|
|
242
|
+
font-size: $ms-font-size-m-plus;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&:hover {
|
|
246
|
+
background-color: $ms-color-neutralTertiaryAlt;
|
|
247
|
+
outline: 1px solid transparent;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&:active {
|
|
251
|
+
background-color: $ms-color-neutralTertiary;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// A result can contain additional content (usually a ms-PeoplePicker-resultList of Persona components) that is hidden initially
|
|
256
|
+
.ms-PeoplePicker-resultAdditionalContent {
|
|
257
|
+
display: none;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// Use the .is-expanded state to reveal the additional content
|
|
261
|
+
.ms-PeoplePicker-result.is-expanded {
|
|
262
|
+
background-color: $ms-color-neutralLighter;
|
|
263
|
+
margin-bottom: 11px;
|
|
264
|
+
|
|
265
|
+
// Switch the toggle icon
|
|
266
|
+
.ms-PeoplePicker-resultAction .ms-Icon {
|
|
267
|
+
transform: rotate(180deg);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// Show the content
|
|
271
|
+
.ms-PeoplePicker-resultAdditionalContent {
|
|
272
|
+
display: block;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// After the result groups we have a button to trigger additional searches
|
|
277
|
+
.ms-PeoplePicker-searchMore {
|
|
278
|
+
@include button-reset;
|
|
279
|
+
height: 40px;
|
|
280
|
+
position: relative;
|
|
281
|
+
width: 100%;
|
|
282
|
+
|
|
283
|
+
&:hover {
|
|
284
|
+
background-color: $ms-color-neutralLighter;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.ms-PeoplePicker-searchMoreIcon {
|
|
289
|
+
font-size: $ms-font-size-xl;
|
|
290
|
+
height: 40px;
|
|
291
|
+
left: 16px;
|
|
292
|
+
line-height: 40px;
|
|
293
|
+
position: absolute;
|
|
294
|
+
text-align: center;
|
|
295
|
+
top: 0;
|
|
296
|
+
width: 40px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.ms-PeoplePicker-searchMoreText {
|
|
300
|
+
@include ms-baseFont;
|
|
301
|
+
font-size: $ms-font-size-m;
|
|
302
|
+
height: 40px;
|
|
303
|
+
left: 64px;
|
|
304
|
+
line-height: 40px;
|
|
305
|
+
position: absolute;
|
|
306
|
+
top: 0;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
//== Modifier: People Picker Compact
|
|
310
|
+
//
|
|
311
|
+
.ms-PeoplePicker-results.ms-PeoplePicker-results--compact {
|
|
312
|
+
.ms-PeoplePicker-resultAction {
|
|
313
|
+
height: 32px;
|
|
314
|
+
width: 32px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.ms-PeoplePicker-resultGroups {
|
|
318
|
+
max-height: 209px;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
//== Modifier: facePile
|
|
324
|
+
//
|
|
325
|
+
.ms-PeoplePicker.ms-PeoplePicker--facePile {
|
|
326
|
+
//= State: Searching in peoplepicker search field
|
|
327
|
+
&.is-searching {
|
|
328
|
+
.ms-PeoplePicker-results {
|
|
329
|
+
border-bottom: 0;
|
|
330
|
+
padding: 20px 0 0;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.ms-PeoplePicker-peopleListHeader {
|
|
334
|
+
display: none;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.ms-PersonaCard {
|
|
339
|
+
display: none;
|
|
340
|
+
position: absolute;
|
|
341
|
+
height: 200px;
|
|
342
|
+
|
|
343
|
+
&.is-active {
|
|
344
|
+
display: block;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.ms-Persona.ms-Persona--selectable {
|
|
349
|
+
padding: 0;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// PeoplePicker results - facePile
|
|
354
|
+
.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile {
|
|
355
|
+
position: relative;
|
|
356
|
+
border: 0;
|
|
357
|
+
box-shadow: none;
|
|
358
|
+
margin: 0;
|
|
359
|
+
max-width: 100%;
|
|
360
|
+
border-bottom: 1px solid $ms-color-neutralLight;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// Personas are size xs on mobile, sm on md screens and above
|
|
364
|
+
.ms-PeoplePicker-results.ms-PeoplePicker-results--facePile,
|
|
365
|
+
.ms-PeoplePicker-selectedPeople {
|
|
366
|
+
@media (max-width: $ms-screen-sm-max) {
|
|
367
|
+
.ms-Persona-imageArea,
|
|
368
|
+
.ms-Persona-image {
|
|
369
|
+
width: 32px;
|
|
370
|
+
height: 32px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.ms-Persona-placeholder {
|
|
374
|
+
font-size: 28px;
|
|
375
|
+
top: 6px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.ms-Persona-initials {
|
|
379
|
+
font-size: $ms-font-size-s;
|
|
380
|
+
line-height: 32px;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.ms-Persona-presence {
|
|
384
|
+
left: 19px;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.ms-Persona-details {
|
|
388
|
+
padding-left: 8px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.ms-Persona-primaryText {
|
|
392
|
+
font-size: $ms-font-size-m;
|
|
393
|
+
padding-top: 3px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.ms-Persona-secondaryText {
|
|
397
|
+
display: none;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
@media (min-width: $ms-screen-md-min) {
|
|
402
|
+
.ms-Persona .ms-Persona-secondaryText {
|
|
403
|
+
display: block;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.ms-PeoplePicker-resultBtn,
|
|
408
|
+
.ms-PeoplePicker-peopleListBtn {
|
|
409
|
+
@media (min-width: $ms-screen-md-min) {
|
|
410
|
+
height: $personaItemHeight;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.ms-PeoplePicker-resultAction {
|
|
415
|
+
@media (min-width: $ms-screen-md-min) {
|
|
416
|
+
height: $personaItemHeight;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.ms-PeoplePicker-selected {
|
|
421
|
+
margin-bottom: 20px;
|
|
422
|
+
display: none;
|
|
423
|
+
|
|
424
|
+
&.is-active {
|
|
425
|
+
display: block;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
.ms-PeoplePicker-selectedHeader,
|
|
432
|
+
.ms-PeoplePicker-peopleListHeader {
|
|
433
|
+
color: $ms-color-themePrimary;
|
|
434
|
+
font-size: $ms-font-size-s;
|
|
435
|
+
font-weight: $ms-font-weight-regular;
|
|
436
|
+
height: 50px;
|
|
437
|
+
line-height: 50px;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.ms-PeoplePicker-selectedPeople,
|
|
441
|
+
.ms-PeoplePicker-peopleList {
|
|
442
|
+
@include ms-u-normalize;
|
|
443
|
+
list-style: none;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.ms-PeoplePicker-selectedPerson {
|
|
447
|
+
margin-bottom: 8px;
|
|
448
|
+
position: relative;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.ms-PeoplePicker-peopleListItem {
|
|
452
|
+
margin-bottom: 6px;
|
|
453
|
+
position: relative;
|
|
454
|
+
}
|