office-ui-fabric-js-rails 1.3.0.0 → 1.4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/office-ui-fabric-js-rails/version.rb +2 -2
- data/package.json +2 -2
- data/vendor/assets/css/fabric.components.css +18 -6
- data/vendor/assets/css/fabric.components.min.css +2 -2
- data/vendor/assets/css/fabric.components.rtl.css +18 -6
- data/vendor/assets/css/fabric.components.rtl.min.css +2 -2
- data/vendor/assets/js/fabric.js +32 -41
- data/vendor/assets/js/fabric.min.js +4 -4
- data/vendor/assets/scss/components/Breadcrumb.scss +174 -174
- data/vendor/assets/scss/components/Button.scss +300 -286
- data/vendor/assets/scss/components/Callout.scss +157 -157
- data/vendor/assets/scss/components/CheckBox.scss +172 -172
- data/vendor/assets/scss/components/ChoiceFieldGroup.scss +14 -13
- data/vendor/assets/scss/components/CommandBar.scss +138 -138
- data/vendor/assets/scss/components/CommandButton.scss +293 -293
- data/vendor/assets/scss/components/ContextualHost.scss +142 -142
- data/vendor/assets/scss/components/ContextualMenu.scss +208 -208
- data/vendor/assets/scss/components/DatePicker.scss +527 -527
- data/vendor/assets/scss/components/DetailsList.scss +337 -337
- data/vendor/assets/scss/components/Dialog.scss +118 -118
- data/vendor/assets/scss/components/DialogHost.scss +12 -12
- data/vendor/assets/scss/components/Dropdown.scss +251 -251
- data/vendor/assets/scss/components/FacePile.scss +104 -104
- data/vendor/assets/scss/components/Label.scss +37 -37
- data/vendor/assets/scss/components/Link.scss +31 -31
- data/vendor/assets/scss/components/List.scss +16 -16
- data/vendor/assets/scss/components/ListItem.scss +237 -237
- data/vendor/assets/scss/components/MessageBanner.scss +128 -128
- data/vendor/assets/scss/components/MessageBar.scss +87 -87
- data/vendor/assets/scss/components/OrgChart.scss +46 -46
- data/vendor/assets/scss/components/Overlay.scss +34 -34
- data/vendor/assets/scss/components/Panel.scss +155 -155
- data/vendor/assets/scss/components/PanelHost.scss +15 -15
- data/vendor/assets/scss/components/PeoplePicker.scss +449 -449
- data/vendor/assets/scss/components/Persona.scss +731 -731
- data/vendor/assets/scss/components/PersonaCard.scss +208 -208
- data/vendor/assets/scss/components/Pivot.scss +201 -201
- data/vendor/assets/scss/components/ProgressIndicator.scss +64 -64
- data/vendor/assets/scss/components/RadioButton.scss +194 -194
- data/vendor/assets/scss/components/SearchBox.scss +368 -369
- data/vendor/assets/scss/components/Spinner.scss +48 -48
- data/vendor/assets/scss/components/Table.scss +123 -123
- data/vendor/assets/scss/components/TextField.scss +232 -232
- data/vendor/assets/scss/components/Toggle.scss +249 -249
- metadata +2 -2
@@ -1,121 +1,121 @@
|
|
1
1
|
/**
|
2
|
-
* Office UI Fabric JS 1.
|
2
|
+
* Office UI Fabric JS 1.4.0
|
3
3
|
* The JavaScript front-end framework for building experiences for Office 365.
|
4
4
|
**/
|
5
|
-
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
|
6
|
-
|
7
|
-
//
|
8
|
-
// Office UI Fabric
|
9
|
-
// --------------------------------------------------
|
10
|
-
// Dialog styles
|
11
|
-
|
12
|
-
.ms-Dialog {
|
13
|
-
@include ms-baseFont;
|
14
|
-
@include drop-shadow(0, 0, 5px, 0, .4);
|
15
|
-
background-color: $ms-color-white;
|
16
|
-
display: none;
|
17
|
-
height: auto;
|
18
|
-
min-width: 220px;
|
19
|
-
max-width: 340px;
|
20
|
-
padding: 28px 24px;
|
21
|
-
z-index: $ms-zIndex-front;
|
22
|
-
position: fixed;
|
23
|
-
transform: translate(-50%, -50%);
|
24
|
-
left: 50%;
|
25
|
-
top: 50%;
|
26
|
-
}
|
27
|
-
|
28
|
-
.ms-Dialog.is-open {
|
29
|
-
display: block;
|
30
|
-
}
|
31
|
-
|
32
|
-
.ms-Dialog-title {
|
33
|
-
font-size: $ms-font-size-xl;
|
34
|
-
font-weight: $ms-font-weight-light;
|
35
|
-
margin-bottom: 24px;
|
36
|
-
}
|
37
|
-
|
38
|
-
.ms-Dialog-content {
|
39
|
-
position: relative;
|
40
|
-
}
|
41
|
-
|
42
|
-
.ms-Dialog-subText {
|
43
|
-
color: $ms-color-neutralPrimary;
|
44
|
-
font-size: $ms-font-size-s;
|
45
|
-
font-weight: $ms-font-weight-semilight;
|
46
|
-
line-height: 1.5;
|
47
|
-
}
|
48
|
-
|
49
|
-
.ms-Dialog-actions {
|
50
|
-
margin-top: 24px;
|
51
|
-
text-align: right;
|
52
|
-
}
|
53
|
-
|
54
|
-
//= Modifier: Multiline button dialog
|
55
|
-
//
|
56
|
-
.ms-Dialog--multiline {
|
57
|
-
.ms-Dialog-title {
|
58
|
-
font-size: $ms-font-size-xxl;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
//= Modifier: Large header dialog
|
63
|
-
//
|
64
|
-
.ms-Dialog.ms-Dialog--lgHeader {
|
65
|
-
.ms-Dialog-title {
|
66
|
-
background-color: $ms-color-themePrimary;
|
67
|
-
color: $ms-color-white;
|
68
|
-
font-size: $ms-font-size-xxl;
|
69
|
-
font-weight: $ms-font-weight-light;
|
70
|
-
padding: 28px 24px;
|
71
|
-
margin-top: -28px;
|
72
|
-
margin-left: -24px;
|
73
|
-
margin-right: -24px;
|
74
|
-
}
|
75
|
-
}
|
76
|
-
|
77
|
-
// Close button, hidden by default
|
78
|
-
.ms-Dialog-buttonClose {
|
79
|
-
background: none;
|
80
|
-
border: 0;
|
81
|
-
cursor: pointer;
|
82
|
-
margin: 0;
|
83
|
-
padding: 4px;
|
84
|
-
position: absolute;
|
85
|
-
right: 12px;
|
86
|
-
top: 12px;
|
87
|
-
z-index: $ms-zIndex-front;
|
88
|
-
|
89
|
-
.ms-Icon.ms-Icon--Cancel {
|
90
|
-
color: $ms-color-neutralSecondary;
|
91
|
-
font-size: 16px;
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
// Add margin bottom between compound buttons
|
96
|
-
.ms-Button.ms-Button--compound:not(:last-child) {
|
97
|
-
margin-bottom: 20px;
|
98
|
-
}
|
99
|
-
|
100
|
-
//= Modifier: Dialog with close button
|
101
|
-
//
|
102
|
-
.ms-Dialog.ms-Dialog--close:not(.ms-Dialog--lgHeader) {
|
103
|
-
// Push the right side over so the icon doesn't overlap the text
|
104
|
-
.ms-Dialog-title {
|
105
|
-
margin-right: 20px;
|
106
|
-
}
|
107
|
-
|
108
|
-
// Show the close button
|
109
|
-
.ms-Dialog-button.ms-Dialog-buttonClose {
|
110
|
-
display: block;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
@media (min-width: $ms-screen-md-min) {
|
115
|
-
// Allow wider dialog on larger screens
|
116
|
-
.ms-Dialog-main {
|
117
|
-
width: auto;
|
118
|
-
min-width: 288px;
|
119
|
-
max-width: 340px;
|
120
|
-
}
|
121
|
-
}
|
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
|
+
// Dialog styles
|
11
|
+
|
12
|
+
.ms-Dialog {
|
13
|
+
@include ms-baseFont;
|
14
|
+
@include drop-shadow(0, 0, 5px, 0, .4);
|
15
|
+
background-color: $ms-color-white;
|
16
|
+
display: none;
|
17
|
+
height: auto;
|
18
|
+
min-width: 220px;
|
19
|
+
max-width: 340px;
|
20
|
+
padding: 28px 24px;
|
21
|
+
z-index: $ms-zIndex-front;
|
22
|
+
position: fixed;
|
23
|
+
transform: translate(-50%, -50%);
|
24
|
+
left: 50%;
|
25
|
+
top: 50%;
|
26
|
+
}
|
27
|
+
|
28
|
+
.ms-Dialog.is-open {
|
29
|
+
display: block;
|
30
|
+
}
|
31
|
+
|
32
|
+
.ms-Dialog-title {
|
33
|
+
font-size: $ms-font-size-xl;
|
34
|
+
font-weight: $ms-font-weight-light;
|
35
|
+
margin-bottom: 24px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.ms-Dialog-content {
|
39
|
+
position: relative;
|
40
|
+
}
|
41
|
+
|
42
|
+
.ms-Dialog-subText {
|
43
|
+
color: $ms-color-neutralPrimary;
|
44
|
+
font-size: $ms-font-size-s;
|
45
|
+
font-weight: $ms-font-weight-semilight;
|
46
|
+
line-height: 1.5;
|
47
|
+
}
|
48
|
+
|
49
|
+
.ms-Dialog-actions {
|
50
|
+
margin-top: 24px;
|
51
|
+
text-align: right;
|
52
|
+
}
|
53
|
+
|
54
|
+
//= Modifier: Multiline button dialog
|
55
|
+
//
|
56
|
+
.ms-Dialog--multiline {
|
57
|
+
.ms-Dialog-title {
|
58
|
+
font-size: $ms-font-size-xxl;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
//= Modifier: Large header dialog
|
63
|
+
//
|
64
|
+
.ms-Dialog.ms-Dialog--lgHeader {
|
65
|
+
.ms-Dialog-title {
|
66
|
+
background-color: $ms-color-themePrimary;
|
67
|
+
color: $ms-color-white;
|
68
|
+
font-size: $ms-font-size-xxl;
|
69
|
+
font-weight: $ms-font-weight-light;
|
70
|
+
padding: 28px 24px;
|
71
|
+
margin-top: -28px;
|
72
|
+
margin-left: -24px;
|
73
|
+
margin-right: -24px;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
// Close button, hidden by default
|
78
|
+
.ms-Dialog-buttonClose {
|
79
|
+
background: none;
|
80
|
+
border: 0;
|
81
|
+
cursor: pointer;
|
82
|
+
margin: 0;
|
83
|
+
padding: 4px;
|
84
|
+
position: absolute;
|
85
|
+
right: 12px;
|
86
|
+
top: 12px;
|
87
|
+
z-index: $ms-zIndex-front;
|
88
|
+
|
89
|
+
.ms-Icon.ms-Icon--Cancel {
|
90
|
+
color: $ms-color-neutralSecondary;
|
91
|
+
font-size: 16px;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
// Add margin bottom between compound buttons
|
96
|
+
.ms-Button.ms-Button--compound:not(:last-child) {
|
97
|
+
margin-bottom: 20px;
|
98
|
+
}
|
99
|
+
|
100
|
+
//= Modifier: Dialog with close button
|
101
|
+
//
|
102
|
+
.ms-Dialog.ms-Dialog--close:not(.ms-Dialog--lgHeader) {
|
103
|
+
// Push the right side over so the icon doesn't overlap the text
|
104
|
+
.ms-Dialog-title {
|
105
|
+
margin-right: 20px;
|
106
|
+
}
|
107
|
+
|
108
|
+
// Show the close button
|
109
|
+
.ms-Dialog-button.ms-Dialog-buttonClose {
|
110
|
+
display: block;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
@media (min-width: $ms-screen-md-min) {
|
115
|
+
// Allow wider dialog on larger screens
|
116
|
+
.ms-Dialog-main {
|
117
|
+
width: auto;
|
118
|
+
min-width: 288px;
|
119
|
+
max-width: 340px;
|
120
|
+
}
|
121
|
+
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
/**
|
2
|
-
* Office UI Fabric JS 1.
|
2
|
+
* Office UI Fabric JS 1.4.0
|
3
3
|
* The JavaScript front-end framework for building experiences for Office 365.
|
4
4
|
**/
|
5
|
-
.ms-DialogHost {
|
6
|
-
@include ms-baseFont;
|
7
|
-
@include drop-shadow;
|
8
|
-
background-color: $ms-color-white;
|
9
|
-
box-sizing: border-box;
|
10
|
-
line-height: 1.35;
|
11
|
-
width: 288px;
|
12
|
-
position: relative;
|
13
|
-
text-align: left;
|
14
|
-
outline: 1px solid transparent;
|
15
|
-
}
|
5
|
+
.ms-DialogHost {
|
6
|
+
@include ms-baseFont;
|
7
|
+
@include drop-shadow;
|
8
|
+
background-color: $ms-color-white;
|
9
|
+
box-sizing: border-box;
|
10
|
+
line-height: 1.35;
|
11
|
+
width: 288px;
|
12
|
+
position: relative;
|
13
|
+
text-align: left;
|
14
|
+
outline: 1px solid transparent;
|
15
|
+
}
|
@@ -1,254 +1,254 @@
|
|
1
1
|
/**
|
2
|
-
* Office UI Fabric JS 1.
|
2
|
+
* Office UI Fabric JS 1.4.0
|
3
3
|
* The JavaScript front-end framework for building experiences for Office 365.
|
4
4
|
**/
|
5
|
-
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
|
6
|
-
|
7
|
-
//
|
8
|
-
// Office UI Fabric
|
9
|
-
// --------------------------------------------------
|
10
|
-
// Dropdown styles
|
11
|
-
|
12
|
-
// Mixin for high contrast mode link states
|
13
|
-
@mixin highContrastListItemState {
|
14
|
-
@media screen and (-ms-high-contrast: active) {
|
15
|
-
background-color: $ms-color-contrastBlackSelected;
|
16
|
-
border-color: $ms-color-contrastBlackSelected;
|
17
|
-
color: $ms-color-black;
|
18
|
-
|
19
|
-
&:focus {
|
20
|
-
border-color: $ms-color-black;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
|
24
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
25
|
-
background-color: $ms-color-contrastWhiteSelected;
|
26
|
-
border-color: $ms-color-contrastWhiteSelected;
|
27
|
-
color: $ms-color-white;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
.ms-Dropdown {
|
32
|
-
@include ms-baseFont;
|
33
|
-
@include ms-u-normalize;
|
34
|
-
color: $ms-color-neutralPrimary;
|
35
|
-
|
36
|
-
font-size: $ms-font-size-m;
|
37
|
-
font-weight: $ms-font-weight-regular;
|
38
|
-
margin-bottom: 10px;
|
39
|
-
position: relative;
|
40
|
-
outline: 0;
|
41
|
-
|
42
|
-
&:hover,
|
43
|
-
&:focus,
|
44
|
-
&:active {
|
45
|
-
.ms-Dropdown-title,
|
46
|
-
.ms-Dropdown-caretDown {
|
47
|
-
color: $ms-color-black;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
&:hover,
|
52
|
-
&:active {
|
53
|
-
.ms-Dropdown-title {
|
54
|
-
border-color: $ms-color-neutralSecondaryAlt;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
&:focus {
|
59
|
-
.ms-Dropdown-title {
|
60
|
-
border-color: $ms-color-themePrimary;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
.ms-Label {
|
65
|
-
display: inline-block;
|
66
|
-
margin-bottom: 8px;
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
//== State: A disabled dropdown
|
71
|
-
.ms-Dropdown.is-disabled {
|
72
|
-
.ms-Dropdown-title {
|
73
|
-
background-color: $ms-color-neutralLighter;
|
74
|
-
border-color: $ms-color-neutralLighter;
|
75
|
-
color: $ms-color-neutralTertiary;
|
76
|
-
cursor: default;
|
77
|
-
|
78
|
-
@media screen and (-ms-high-contrast: active) {
|
79
|
-
border-color: $ms-color-contrastBlackDisabled;
|
80
|
-
color: $ms-color-contrastBlackDisabled;
|
81
|
-
}
|
82
|
-
|
83
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
84
|
-
border-color: $ms-color-contrastWhiteDisabled;
|
85
|
-
color: $ms-color-contrastWhiteDisabled;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
.ms-Dropdown-caretDown {
|
90
|
-
color: $ms-color-neutralTertiary;
|
91
|
-
|
92
|
-
@media screen and (-ms-high-contrast: active) {
|
93
|
-
color: $ms-color-contrastBlackDisabled;
|
94
|
-
}
|
95
|
-
|
96
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
97
|
-
color: $ms-color-contrastWhiteDisabled;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
// When the dropdown is opened
|
103
|
-
.ms-Dropdown.is-open .ms-Dropdown-items {
|
104
|
-
display: block;
|
105
|
-
position: absolute;
|
106
|
-
}
|
107
|
-
|
108
|
-
// Adjustments for when the dropdown is open as a panel on small screens
|
109
|
-
.ms-Panel .ms-Dropdown-items {
|
110
|
-
box-shadow: none;
|
111
|
-
overflow-y: auto;
|
112
|
-
padding-top: 4px;
|
113
|
-
max-height: 100%;
|
114
|
-
|
115
|
-
.ms-Dropdown-item {
|
116
|
-
padding: 7px 16px;
|
117
|
-
overflow: hidden;
|
118
|
-
text-overflow: ellipsis;
|
119
|
-
}
|
120
|
-
|
121
|
-
&::before {
|
122
|
-
content: none;
|
123
|
-
border: 0;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
|
127
|
-
// Hide the original dropdown
|
128
|
-
.ms-Dropdown-select {
|
129
|
-
display: none;
|
130
|
-
}
|
131
|
-
|
132
|
-
.ms-Dropdown-caretDown {
|
133
|
-
color: $ms-color-neutralDark;
|
134
|
-
font-size: $ms-icon-size-s;
|
135
|
-
position: absolute;
|
136
|
-
right: 13px;
|
137
|
-
bottom: 9px;
|
138
|
-
z-index: 1;
|
139
|
-
pointer-events: none;
|
140
|
-
}
|
141
|
-
|
142
|
-
// Style the new, replacement component
|
143
|
-
.ms-Dropdown-title {
|
144
|
-
@include ms-u-normalize;
|
145
|
-
background: $ms-color-white;
|
146
|
-
border: 1px solid $ms-color-neutralTertiaryAlt;
|
147
|
-
cursor: pointer;
|
148
|
-
display: block;
|
149
|
-
height: 32px;
|
150
|
-
padding: 5px 32px 0 10px;
|
151
|
-
position: relative;
|
152
|
-
overflow: hidden;
|
153
|
-
|
154
|
-
&.ms-Dropdown-truncator {
|
155
|
-
height: auto;
|
156
|
-
display: block;
|
157
|
-
position: absolute;
|
158
|
-
visibility: hidden;
|
159
|
-
}
|
160
|
-
}
|
161
|
-
|
162
|
-
// Container for the dropdown items, displayed as a panel on small screens.
|
163
|
-
.ms-Dropdown-items {
|
164
|
-
@include ms-u-normalize;
|
165
|
-
@include drop-shadow;
|
166
|
-
background-color: $ms-color-white;
|
167
|
-
display: none;
|
168
|
-
list-style-type: none;
|
169
|
-
position: absolute;
|
170
|
-
width: 100%;
|
171
|
-
max-height: 200px;
|
172
|
-
z-index: ($ms-zIndex-Dropdown + $ms-zIndex-back);
|
173
|
-
overflow-y: scroll;
|
174
|
-
|
175
|
-
top: auto;
|
176
|
-
right: auto;
|
177
|
-
bottom: auto;
|
178
|
-
left: auto;
|
179
|
-
max-width: 100%;
|
180
|
-
|
181
|
-
&::before {
|
182
|
-
content: '';
|
183
|
-
position: absolute;
|
184
|
-
z-index: -1;
|
185
|
-
top: 0;
|
186
|
-
left: 0;
|
187
|
-
right: 0;
|
188
|
-
bottom: 0;
|
189
|
-
border: 1px solid $ms-color-neutralLight;
|
190
|
-
}
|
191
|
-
|
192
|
-
@media screen and (-ms-high-contrast: active) {
|
193
|
-
border: 1px solid $ms-color-white;
|
194
|
-
}
|
195
|
-
|
196
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
197
|
-
border: 1px solid $ms-color-black;
|
198
|
-
}
|
199
|
-
}
|
200
|
-
|
201
|
-
.ms-Dropdown-item {
|
202
|
-
box-sizing: border-box;
|
203
|
-
cursor: pointer;
|
204
|
-
display: block;
|
205
|
-
height: 36px;
|
206
|
-
padding: 7px 10px;
|
207
|
-
position: relative;
|
208
|
-
border: 1px solid transparent;
|
209
|
-
white-space: nowrap;
|
210
|
-
overflow: hidden;
|
211
|
-
text-overflow: ellipsis;
|
212
|
-
|
213
|
-
@media screen and (-ms-high-contrast: active) {
|
214
|
-
border-color: $ms-color-black;
|
215
|
-
}
|
216
|
-
|
217
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
218
|
-
border-color: $ms-color-white;
|
219
|
-
}
|
220
|
-
|
221
|
-
&:hover {
|
222
|
-
background-color: $ms-color-neutralLight;
|
223
|
-
color: $ms-color-black;
|
224
|
-
|
225
|
-
@include highContrastListItemState;
|
226
|
-
}
|
227
|
-
|
228
|
-
&:active {
|
229
|
-
background-color: $ms-color-neutralLight;
|
230
|
-
border-color: $ms-color-themePrimary;
|
231
|
-
color: $ms-color-black;
|
232
|
-
}
|
233
|
-
|
234
|
-
&.is-disabled {
|
235
|
-
background: $ms-color-white;
|
236
|
-
color: $ms-color-neutralTertiary;
|
237
|
-
cursor: default;
|
238
|
-
}
|
239
|
-
}
|
240
|
-
|
241
|
-
//== State: A selected dropdown item
|
242
|
-
// Note: .ms-Dropdown-item--selected is deprecated and will be removed in a future version.
|
243
|
-
// Use .is-selected instead.
|
244
|
-
.ms-Dropdown-item.is-selected,
|
245
|
-
.ms-Dropdown-item.ms-Dropdown-item--selected {
|
246
|
-
background-color: $ms-color-themeLight;
|
247
|
-
color: $ms-color-black;
|
248
|
-
|
249
|
-
&:hover {
|
250
|
-
background-color: $ms-color-themeLight;
|
251
|
-
}
|
252
|
-
|
253
|
-
@include highContrastListItemState;
|
254
|
-
}
|
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
|
+
// Dropdown styles
|
11
|
+
|
12
|
+
// Mixin for high contrast mode link states
|
13
|
+
@mixin highContrastListItemState {
|
14
|
+
@media screen and (-ms-high-contrast: active) {
|
15
|
+
background-color: $ms-color-contrastBlackSelected;
|
16
|
+
border-color: $ms-color-contrastBlackSelected;
|
17
|
+
color: $ms-color-black;
|
18
|
+
|
19
|
+
&:focus {
|
20
|
+
border-color: $ms-color-black;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
25
|
+
background-color: $ms-color-contrastWhiteSelected;
|
26
|
+
border-color: $ms-color-contrastWhiteSelected;
|
27
|
+
color: $ms-color-white;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.ms-Dropdown {
|
32
|
+
@include ms-baseFont;
|
33
|
+
@include ms-u-normalize;
|
34
|
+
color: $ms-color-neutralPrimary;
|
35
|
+
|
36
|
+
font-size: $ms-font-size-m;
|
37
|
+
font-weight: $ms-font-weight-regular;
|
38
|
+
margin-bottom: 10px;
|
39
|
+
position: relative;
|
40
|
+
outline: 0;
|
41
|
+
|
42
|
+
&:hover,
|
43
|
+
&:focus,
|
44
|
+
&:active {
|
45
|
+
.ms-Dropdown-title,
|
46
|
+
.ms-Dropdown-caretDown {
|
47
|
+
color: $ms-color-black;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
&:hover,
|
52
|
+
&:active {
|
53
|
+
.ms-Dropdown-title {
|
54
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
&:focus {
|
59
|
+
.ms-Dropdown-title {
|
60
|
+
border-color: $ms-color-themePrimary;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.ms-Label {
|
65
|
+
display: inline-block;
|
66
|
+
margin-bottom: 8px;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
//== State: A disabled dropdown
|
71
|
+
.ms-Dropdown.is-disabled {
|
72
|
+
.ms-Dropdown-title {
|
73
|
+
background-color: $ms-color-neutralLighter;
|
74
|
+
border-color: $ms-color-neutralLighter;
|
75
|
+
color: $ms-color-neutralTertiary;
|
76
|
+
cursor: default;
|
77
|
+
|
78
|
+
@media screen and (-ms-high-contrast: active) {
|
79
|
+
border-color: $ms-color-contrastBlackDisabled;
|
80
|
+
color: $ms-color-contrastBlackDisabled;
|
81
|
+
}
|
82
|
+
|
83
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
84
|
+
border-color: $ms-color-contrastWhiteDisabled;
|
85
|
+
color: $ms-color-contrastWhiteDisabled;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.ms-Dropdown-caretDown {
|
90
|
+
color: $ms-color-neutralTertiary;
|
91
|
+
|
92
|
+
@media screen and (-ms-high-contrast: active) {
|
93
|
+
color: $ms-color-contrastBlackDisabled;
|
94
|
+
}
|
95
|
+
|
96
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
97
|
+
color: $ms-color-contrastWhiteDisabled;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
// When the dropdown is opened
|
103
|
+
.ms-Dropdown.is-open .ms-Dropdown-items {
|
104
|
+
display: block;
|
105
|
+
position: absolute;
|
106
|
+
}
|
107
|
+
|
108
|
+
// Adjustments for when the dropdown is open as a panel on small screens
|
109
|
+
.ms-Panel .ms-Dropdown-items {
|
110
|
+
box-shadow: none;
|
111
|
+
overflow-y: auto;
|
112
|
+
padding-top: 4px;
|
113
|
+
max-height: 100%;
|
114
|
+
|
115
|
+
.ms-Dropdown-item {
|
116
|
+
padding: 7px 16px;
|
117
|
+
overflow: hidden;
|
118
|
+
text-overflow: ellipsis;
|
119
|
+
}
|
120
|
+
|
121
|
+
&::before {
|
122
|
+
content: none;
|
123
|
+
border: 0;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
// Hide the original dropdown
|
128
|
+
.ms-Dropdown-select {
|
129
|
+
display: none;
|
130
|
+
}
|
131
|
+
|
132
|
+
.ms-Dropdown-caretDown {
|
133
|
+
color: $ms-color-neutralDark;
|
134
|
+
font-size: $ms-icon-size-s;
|
135
|
+
position: absolute;
|
136
|
+
right: 13px;
|
137
|
+
bottom: 9px;
|
138
|
+
z-index: 1;
|
139
|
+
pointer-events: none;
|
140
|
+
}
|
141
|
+
|
142
|
+
// Style the new, replacement component
|
143
|
+
.ms-Dropdown-title {
|
144
|
+
@include ms-u-normalize;
|
145
|
+
background: $ms-color-white;
|
146
|
+
border: 1px solid $ms-color-neutralTertiaryAlt;
|
147
|
+
cursor: pointer;
|
148
|
+
display: block;
|
149
|
+
height: 32px;
|
150
|
+
padding: 5px 32px 0 10px;
|
151
|
+
position: relative;
|
152
|
+
overflow: hidden;
|
153
|
+
|
154
|
+
&.ms-Dropdown-truncator {
|
155
|
+
height: auto;
|
156
|
+
display: block;
|
157
|
+
position: absolute;
|
158
|
+
visibility: hidden;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
// Container for the dropdown items, displayed as a panel on small screens.
|
163
|
+
.ms-Dropdown-items {
|
164
|
+
@include ms-u-normalize;
|
165
|
+
@include drop-shadow;
|
166
|
+
background-color: $ms-color-white;
|
167
|
+
display: none;
|
168
|
+
list-style-type: none;
|
169
|
+
position: absolute;
|
170
|
+
width: 100%;
|
171
|
+
max-height: 200px;
|
172
|
+
z-index: ($ms-zIndex-Dropdown + $ms-zIndex-back);
|
173
|
+
overflow-y: scroll;
|
174
|
+
|
175
|
+
top: auto;
|
176
|
+
right: auto;
|
177
|
+
bottom: auto;
|
178
|
+
left: auto;
|
179
|
+
max-width: 100%;
|
180
|
+
|
181
|
+
&::before {
|
182
|
+
content: '';
|
183
|
+
position: absolute;
|
184
|
+
z-index: -1;
|
185
|
+
top: 0;
|
186
|
+
left: 0;
|
187
|
+
right: 0;
|
188
|
+
bottom: 0;
|
189
|
+
border: 1px solid $ms-color-neutralLight;
|
190
|
+
}
|
191
|
+
|
192
|
+
@media screen and (-ms-high-contrast: active) {
|
193
|
+
border: 1px solid $ms-color-white;
|
194
|
+
}
|
195
|
+
|
196
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
197
|
+
border: 1px solid $ms-color-black;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
.ms-Dropdown-item {
|
202
|
+
box-sizing: border-box;
|
203
|
+
cursor: pointer;
|
204
|
+
display: block;
|
205
|
+
height: 36px;
|
206
|
+
padding: 7px 10px;
|
207
|
+
position: relative;
|
208
|
+
border: 1px solid transparent;
|
209
|
+
white-space: nowrap;
|
210
|
+
overflow: hidden;
|
211
|
+
text-overflow: ellipsis;
|
212
|
+
|
213
|
+
@media screen and (-ms-high-contrast: active) {
|
214
|
+
border-color: $ms-color-black;
|
215
|
+
}
|
216
|
+
|
217
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
218
|
+
border-color: $ms-color-white;
|
219
|
+
}
|
220
|
+
|
221
|
+
&:hover {
|
222
|
+
background-color: $ms-color-neutralLight;
|
223
|
+
color: $ms-color-black;
|
224
|
+
|
225
|
+
@include highContrastListItemState;
|
226
|
+
}
|
227
|
+
|
228
|
+
&:active {
|
229
|
+
background-color: $ms-color-neutralLight;
|
230
|
+
border-color: $ms-color-themePrimary;
|
231
|
+
color: $ms-color-black;
|
232
|
+
}
|
233
|
+
|
234
|
+
&.is-disabled {
|
235
|
+
background: $ms-color-white;
|
236
|
+
color: $ms-color-neutralTertiary;
|
237
|
+
cursor: default;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
//== State: A selected dropdown item
|
242
|
+
// Note: .ms-Dropdown-item--selected is deprecated and will be removed in a future version.
|
243
|
+
// Use .is-selected instead.
|
244
|
+
.ms-Dropdown-item.is-selected,
|
245
|
+
.ms-Dropdown-item.ms-Dropdown-item--selected {
|
246
|
+
background-color: $ms-color-themeLight;
|
247
|
+
color: $ms-color-black;
|
248
|
+
|
249
|
+
&:hover {
|
250
|
+
background-color: $ms-color-themeLight;
|
251
|
+
}
|
252
|
+
|
253
|
+
@include highContrastListItemState;
|
254
|
+
}
|