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