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,145 +1,145 @@
|
|
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-ContextualHost {
|
6
|
-
@include ms-baseFont;
|
7
|
-
z-index: $ms-zIndex-front;
|
8
|
-
margin: 16px auto;
|
9
|
-
position: relative;
|
10
|
-
min-width: 10px;
|
11
|
-
display: none;
|
12
|
-
background-color: $ms-color-white;
|
13
|
-
@include drop-shadow;
|
14
|
-
|
15
|
-
&.is-positioned {
|
16
|
-
position: absolute;
|
17
|
-
margin: 0;
|
18
|
-
}
|
19
|
-
|
20
|
-
&.is-open {
|
21
|
-
display: inline-block;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
// Mixin for arrow size and color
|
26
|
-
@mixin arrowBorders($ms-color-top, $ms-color-right, $ms-color-bottom, $ms-color-left) {
|
27
|
-
border-top: 10px solid $ms-color-top;
|
28
|
-
border-right: 10px solid $ms-color-right;
|
29
|
-
border-bottom: 10px solid $ms-color-bottom;
|
30
|
-
border-left: 10px solid $ms-color-left;
|
31
|
-
}
|
32
|
-
|
33
|
-
.ms-ContextualHost-beak {
|
34
|
-
box-shadow: 0 0 15px -5px $ms-color-neutralPrimaryAlt;
|
35
|
-
position: absolute;
|
36
|
-
width: 28px;
|
37
|
-
height: 28px;
|
38
|
-
background: $ms-color-white;;
|
39
|
-
border: 1px solid $ms-color-neutralLight;
|
40
|
-
box-sizing: border-box;
|
41
|
-
top: -6px;
|
42
|
-
display: none;
|
43
|
-
-webkit-transform: rotate(45deg);
|
44
|
-
transform: rotate(45deg);
|
45
|
-
z-index: $ms-zIndex-back;
|
46
|
-
outline: 1px solid transparent;
|
47
|
-
}
|
48
|
-
|
49
|
-
//= Modifier: ContextualHost with left and right arrows
|
50
|
-
//
|
51
|
-
.ms-ContextualHost.ms-ContextualHost--arrowLeft,
|
52
|
-
.ms-ContextualHost.ms-ContextualHost--arrowRight {
|
53
|
-
.ms-ContextualHost-beak {
|
54
|
-
top: 40px;
|
55
|
-
display: none; // Hide left and right arrows on sm screens
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
.ms-ContextualHost.ms-ContextualHost--arrowLeft {
|
60
|
-
.ms-ContextualHost-beak {
|
61
|
-
left: -10px;
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
.ms-ContextualHost.ms-ContextualHost--arrowRight {
|
66
|
-
.ms-ContextualHost-beak {
|
67
|
-
right: -10px;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
.ms-ContextualHost.ms-ContextualHost--arrowTop {
|
72
|
-
.ms-ContextualHost-beak {
|
73
|
-
display: block;
|
74
|
-
top: -10px;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
.ms-ContextualHost.ms-ContextualHost--arrowBottom {
|
79
|
-
.ms-ContextualHost-beak {
|
80
|
-
display: block;
|
81
|
-
bottom: -10px;
|
82
|
-
}
|
83
|
-
}
|
84
|
-
|
85
|
-
// The actual ContextualHost element
|
86
|
-
.ms-ContextualHost-main {
|
87
|
-
position: relative;
|
88
|
-
background-color: $ms-color-white;
|
89
|
-
box-sizing: border-box;
|
90
|
-
outline: 1px solid transparent;
|
91
|
-
z-index: $ms-zIndex-middle;
|
92
|
-
min-height: 10px;
|
93
|
-
}
|
94
|
-
|
95
|
-
.ms-ContextualHost-close {
|
96
|
-
margin: 0;
|
97
|
-
border: 0;
|
98
|
-
background: none;
|
99
|
-
cursor: pointer;
|
100
|
-
position: absolute;
|
101
|
-
top: 12px;
|
102
|
-
right: 12px;
|
103
|
-
padding: 8px;
|
104
|
-
width: 32px;
|
105
|
-
height: 32px;
|
106
|
-
font-size: $ms-font-size-m;
|
107
|
-
color: $ms-color-neutralSecondary;
|
108
|
-
z-index: $ms-zIndex-front;
|
109
|
-
}
|
110
|
-
|
111
|
-
//= Modifier: Close button ContextualHost
|
112
|
-
//
|
113
|
-
.ms-ContextualHost.ms-ContextualHost--close {
|
114
|
-
.ms-ContextualHost-title {
|
115
|
-
margin-right: 20px; // Avoid overlap with close button
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
//= Modifier: Close button ContextualHost
|
120
|
-
//
|
121
|
-
|
122
|
-
.ms-ContextualHost.ms-ContextualHost--primaryArrow {
|
123
|
-
.ms-ContextualHost-beak {
|
124
|
-
background-color: $ms-color-themePrimary;
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
@media (min-width: $ms-screen-md-min) {
|
129
|
-
// Make width larger and remove centering on md+ screens
|
130
|
-
.ms-ContextualHost {
|
131
|
-
margin: 16px;
|
132
|
-
|
133
|
-
&.is-positioned {
|
134
|
-
margin: 0;
|
135
|
-
}
|
136
|
-
}
|
137
|
-
|
138
|
-
// Show arrows right and left
|
139
|
-
.ms-ContextualHost.ms-ContextualHost--arrowRight,
|
140
|
-
.ms-ContextualHost.ms-ContextualHost--arrowLeft {
|
141
|
-
.ms-ContextualHost-beak {
|
142
|
-
display: block;
|
143
|
-
}
|
144
|
-
}
|
145
|
-
}
|
5
|
+
.ms-ContextualHost {
|
6
|
+
@include ms-baseFont;
|
7
|
+
z-index: $ms-zIndex-front;
|
8
|
+
margin: 16px auto;
|
9
|
+
position: relative;
|
10
|
+
min-width: 10px;
|
11
|
+
display: none;
|
12
|
+
background-color: $ms-color-white;
|
13
|
+
@include drop-shadow;
|
14
|
+
|
15
|
+
&.is-positioned {
|
16
|
+
position: absolute;
|
17
|
+
margin: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
&.is-open {
|
21
|
+
display: inline-block;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Mixin for arrow size and color
|
26
|
+
@mixin arrowBorders($ms-color-top, $ms-color-right, $ms-color-bottom, $ms-color-left) {
|
27
|
+
border-top: 10px solid $ms-color-top;
|
28
|
+
border-right: 10px solid $ms-color-right;
|
29
|
+
border-bottom: 10px solid $ms-color-bottom;
|
30
|
+
border-left: 10px solid $ms-color-left;
|
31
|
+
}
|
32
|
+
|
33
|
+
.ms-ContextualHost-beak {
|
34
|
+
box-shadow: 0 0 15px -5px $ms-color-neutralPrimaryAlt;
|
35
|
+
position: absolute;
|
36
|
+
width: 28px;
|
37
|
+
height: 28px;
|
38
|
+
background: $ms-color-white;;
|
39
|
+
border: 1px solid $ms-color-neutralLight;
|
40
|
+
box-sizing: border-box;
|
41
|
+
top: -6px;
|
42
|
+
display: none;
|
43
|
+
-webkit-transform: rotate(45deg);
|
44
|
+
transform: rotate(45deg);
|
45
|
+
z-index: $ms-zIndex-back;
|
46
|
+
outline: 1px solid transparent;
|
47
|
+
}
|
48
|
+
|
49
|
+
//= Modifier: ContextualHost with left and right arrows
|
50
|
+
//
|
51
|
+
.ms-ContextualHost.ms-ContextualHost--arrowLeft,
|
52
|
+
.ms-ContextualHost.ms-ContextualHost--arrowRight {
|
53
|
+
.ms-ContextualHost-beak {
|
54
|
+
top: 40px;
|
55
|
+
display: none; // Hide left and right arrows on sm screens
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.ms-ContextualHost.ms-ContextualHost--arrowLeft {
|
60
|
+
.ms-ContextualHost-beak {
|
61
|
+
left: -10px;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.ms-ContextualHost.ms-ContextualHost--arrowRight {
|
66
|
+
.ms-ContextualHost-beak {
|
67
|
+
right: -10px;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.ms-ContextualHost.ms-ContextualHost--arrowTop {
|
72
|
+
.ms-ContextualHost-beak {
|
73
|
+
display: block;
|
74
|
+
top: -10px;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.ms-ContextualHost.ms-ContextualHost--arrowBottom {
|
79
|
+
.ms-ContextualHost-beak {
|
80
|
+
display: block;
|
81
|
+
bottom: -10px;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// The actual ContextualHost element
|
86
|
+
.ms-ContextualHost-main {
|
87
|
+
position: relative;
|
88
|
+
background-color: $ms-color-white;
|
89
|
+
box-sizing: border-box;
|
90
|
+
outline: 1px solid transparent;
|
91
|
+
z-index: $ms-zIndex-middle;
|
92
|
+
min-height: 10px;
|
93
|
+
}
|
94
|
+
|
95
|
+
.ms-ContextualHost-close {
|
96
|
+
margin: 0;
|
97
|
+
border: 0;
|
98
|
+
background: none;
|
99
|
+
cursor: pointer;
|
100
|
+
position: absolute;
|
101
|
+
top: 12px;
|
102
|
+
right: 12px;
|
103
|
+
padding: 8px;
|
104
|
+
width: 32px;
|
105
|
+
height: 32px;
|
106
|
+
font-size: $ms-font-size-m;
|
107
|
+
color: $ms-color-neutralSecondary;
|
108
|
+
z-index: $ms-zIndex-front;
|
109
|
+
}
|
110
|
+
|
111
|
+
//= Modifier: Close button ContextualHost
|
112
|
+
//
|
113
|
+
.ms-ContextualHost.ms-ContextualHost--close {
|
114
|
+
.ms-ContextualHost-title {
|
115
|
+
margin-right: 20px; // Avoid overlap with close button
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
//= Modifier: Close button ContextualHost
|
120
|
+
//
|
121
|
+
|
122
|
+
.ms-ContextualHost.ms-ContextualHost--primaryArrow {
|
123
|
+
.ms-ContextualHost-beak {
|
124
|
+
background-color: $ms-color-themePrimary;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
@media (min-width: $ms-screen-md-min) {
|
129
|
+
// Make width larger and remove centering on md+ screens
|
130
|
+
.ms-ContextualHost {
|
131
|
+
margin: 16px;
|
132
|
+
|
133
|
+
&.is-positioned {
|
134
|
+
margin: 0;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
// Show arrows right and left
|
139
|
+
.ms-ContextualHost.ms-ContextualHost--arrowRight,
|
140
|
+
.ms-ContextualHost.ms-ContextualHost--arrowLeft {
|
141
|
+
.ms-ContextualHost-beak {
|
142
|
+
display: block;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
@@ -1,211 +1,211 @@
|
|
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
|
-
// Contextual Menu styles
|
11
|
-
|
12
|
-
.ms-ContextualMenu {
|
13
|
-
@include ms-baseFont;
|
14
|
-
@include ms-u-normalize;
|
15
|
-
color: $ms-color-neutralPrimary;
|
16
|
-
font-size: $ms-font-size-m;
|
17
|
-
font-weight: $ms-font-weight-regular;
|
18
|
-
display: block;
|
19
|
-
min-width: 180px;
|
20
|
-
max-width: 220px;
|
21
|
-
list-style-type: none;
|
22
|
-
position: relative;
|
23
|
-
background-color: $ms-color-white;
|
24
|
-
|
25
|
-
&.is-hidden {
|
26
|
-
display: none;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
.ms-ContextualMenu-item {
|
31
|
-
position: relative;
|
32
|
-
}
|
33
|
-
|
34
|
-
.ms-ContextualMenu-link {
|
35
|
-
@include ms-u-borderBox;
|
36
|
-
text-decoration: none;
|
37
|
-
color: $ms-color-neutralPrimary;
|
38
|
-
border: 1px solid transparent;
|
39
|
-
cursor: pointer;
|
40
|
-
display: block;
|
41
|
-
height: 36px;
|
42
|
-
overflow: hidden;
|
43
|
-
line-height: 34px;
|
44
|
-
padding: 0 16px 0 25px;
|
45
|
-
position: relative;
|
46
|
-
text-overflow: ellipsis;
|
47
|
-
white-space: nowrap;
|
48
|
-
|
49
|
-
&:hover,
|
50
|
-
&:active,
|
51
|
-
&:focus {
|
52
|
-
background-color: $ms-color-neutralLighter;
|
53
|
-
color: $ms-color-neutralDark;
|
54
|
-
|
55
|
-
.ms-ContextualMenu-subMenuIcon {
|
56
|
-
color: $ms-color-neutralDark;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
&:focus {
|
61
|
-
outline: transparent;
|
62
|
-
border: 1px solid $ms-color-neutralSecondary;
|
63
|
-
}
|
64
|
-
|
65
|
-
&.is-selected {
|
66
|
-
background-color: $ms-color-neutralQuaternaryAlt;
|
67
|
-
color: $ms-color-black;
|
68
|
-
font-weight: $ms-font-weight-semibold;
|
69
|
-
|
70
|
-
~.ms-ContextualMenu-subMenuIcon {
|
71
|
-
color: $ms-color-black;
|
72
|
-
}
|
73
|
-
|
74
|
-
&:hover {
|
75
|
-
background-color: $ms-color-neutralQuaternary;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
&.is-disabled {
|
80
|
-
color: $ms-color-neutralTertiary;
|
81
|
-
background-color: $ms-color-white;
|
82
|
-
pointer-events: none;
|
83
|
-
|
84
|
-
&:active,
|
85
|
-
&:focus {
|
86
|
-
border-color: $ms-color-white;
|
87
|
-
}
|
88
|
-
|
89
|
-
.ms-Icon {
|
90
|
-
color: $ms-color-neutralTertiary;
|
91
|
-
pointer-events: none;
|
92
|
-
cursor: default;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
}
|
96
|
-
|
97
|
-
// Modifier: Menu item Dividers
|
98
|
-
.ms-ContextualMenu-item.ms-ContextualMenu-item--divider {
|
99
|
-
cursor: default;
|
100
|
-
display: block;
|
101
|
-
height: 1px;
|
102
|
-
background-color: $ms-color-neutralLight;
|
103
|
-
position: relative;
|
104
|
-
}
|
105
|
-
|
106
|
-
// Modifier: Menu item Headers
|
107
|
-
.ms-ContextualMenu-item.ms-ContextualMenu-item--header {
|
108
|
-
color: $ms-color-themePrimary;
|
109
|
-
font-size: $ms-font-size-s;
|
110
|
-
text-transform: uppercase;
|
111
|
-
height: 36px;
|
112
|
-
line-height: 36px;
|
113
|
-
padding: 0 18px;
|
114
|
-
}
|
115
|
-
|
116
|
-
// Modifier: Contextual menu with submenu
|
117
|
-
.ms-ContextualMenu-item.ms-ContextualMenu-item--hasMenu .ms-ContextualMenu {
|
118
|
-
position: absolute;
|
119
|
-
top: -1px;
|
120
|
-
left: 178px; // Move the submenu to the left of the menu item that triggered it
|
121
|
-
}
|
122
|
-
|
123
|
-
// Right chevron.
|
124
|
-
// Note: The .ms-ContextualMenu-caretRight class has been deprecated.
|
125
|
-
// Please use .ms-ContextualMenu-subMenuIcon.
|
126
|
-
.ms-ContextualMenu-subMenuIcon,
|
127
|
-
.ms-ContextualMenu-caretRight {
|
128
|
-
color: $ms-color-neutralPrimary;
|
129
|
-
font-size: 8px;
|
130
|
-
font-weight: 600;
|
131
|
-
width: 24px;
|
132
|
-
height: 36px;
|
133
|
-
line-height: 36px;
|
134
|
-
position: absolute;
|
135
|
-
text-align: center;
|
136
|
-
top: 0;
|
137
|
-
right: 0;
|
138
|
-
z-index: 1;
|
139
|
-
pointer-events: none;
|
140
|
-
}
|
141
|
-
|
142
|
-
//== Modifier: Multi-select menu
|
143
|
-
//
|
144
|
-
.ms-ContextualMenu.ms-ContextualMenu--multiselect {
|
145
|
-
|
146
|
-
// Align the header with the items
|
147
|
-
.ms-ContextualMenu-item.ms-ContextualMenu-item--header {
|
148
|
-
padding: 0 16px 0 26px;
|
149
|
-
}
|
150
|
-
|
151
|
-
.ms-ContextualMenu-link {
|
152
|
-
|
153
|
-
// Multi-select checkmark
|
154
|
-
&.is-selected {
|
155
|
-
background-color: $ms-color-white;
|
156
|
-
font-weight: $ms-font-weight-semibold;
|
157
|
-
color: $ms-color-neutralPrimary;
|
158
|
-
|
159
|
-
// Checkmark
|
160
|
-
&::after {
|
161
|
-
@include ms-Icon;
|
162
|
-
color: $ms-color-neutralPrimary;
|
163
|
-
content: '\E73E';
|
164
|
-
font-size: $ms-icon-size-xs;
|
165
|
-
font-weight: 800;
|
166
|
-
height: 36px;
|
167
|
-
line-height: 36px;
|
168
|
-
position: absolute;
|
169
|
-
left: 7px;
|
170
|
-
}
|
171
|
-
|
172
|
-
&:hover,
|
173
|
-
&:focus {
|
174
|
-
color: $ms-color-neutralDark;
|
175
|
-
background-color: $ms-color-neutralLighter;
|
176
|
-
|
177
|
-
&::after {
|
178
|
-
color: $ms-color-neutralDark;
|
179
|
-
}
|
180
|
-
}
|
181
|
-
|
182
|
-
&:active {
|
183
|
-
color: $ms-color-black;
|
184
|
-
background-color: $ms-color-neutralQuaternary;
|
185
|
-
|
186
|
-
&::after {
|
187
|
-
color: $ms-color-black;
|
188
|
-
}
|
189
|
-
}
|
190
|
-
}
|
191
|
-
}
|
192
|
-
}
|
193
|
-
|
194
|
-
.ms-ContextualMenu.ms-ContextualMenu--hasIcons,
|
195
|
-
.ms-ContextualMenu.ms-ContextualMenu--hasChecks {
|
196
|
-
.ms-ContextualMenu-link {
|
197
|
-
padding-left: 40px;
|
198
|
-
}
|
199
|
-
|
200
|
-
.ms-Icon {
|
201
|
-
position: absolute;
|
202
|
-
top: 50%;
|
203
|
-
transform: translateY(-50%);
|
204
|
-
width: 40px;
|
205
|
-
text-align: center;
|
206
|
-
}
|
207
|
-
}
|
208
|
-
|
209
|
-
.ms-ContextualMenu.ms-ContextualMenu--hasIcons {
|
210
|
-
width: 220px;
|
211
|
-
}
|
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
|
+
// Contextual Menu styles
|
11
|
+
|
12
|
+
.ms-ContextualMenu {
|
13
|
+
@include ms-baseFont;
|
14
|
+
@include ms-u-normalize;
|
15
|
+
color: $ms-color-neutralPrimary;
|
16
|
+
font-size: $ms-font-size-m;
|
17
|
+
font-weight: $ms-font-weight-regular;
|
18
|
+
display: block;
|
19
|
+
min-width: 180px;
|
20
|
+
max-width: 220px;
|
21
|
+
list-style-type: none;
|
22
|
+
position: relative;
|
23
|
+
background-color: $ms-color-white;
|
24
|
+
|
25
|
+
&.is-hidden {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.ms-ContextualMenu-item {
|
31
|
+
position: relative;
|
32
|
+
}
|
33
|
+
|
34
|
+
.ms-ContextualMenu-link {
|
35
|
+
@include ms-u-borderBox;
|
36
|
+
text-decoration: none;
|
37
|
+
color: $ms-color-neutralPrimary;
|
38
|
+
border: 1px solid transparent;
|
39
|
+
cursor: pointer;
|
40
|
+
display: block;
|
41
|
+
height: 36px;
|
42
|
+
overflow: hidden;
|
43
|
+
line-height: 34px;
|
44
|
+
padding: 0 16px 0 25px;
|
45
|
+
position: relative;
|
46
|
+
text-overflow: ellipsis;
|
47
|
+
white-space: nowrap;
|
48
|
+
|
49
|
+
&:hover,
|
50
|
+
&:active,
|
51
|
+
&:focus {
|
52
|
+
background-color: $ms-color-neutralLighter;
|
53
|
+
color: $ms-color-neutralDark;
|
54
|
+
|
55
|
+
.ms-ContextualMenu-subMenuIcon {
|
56
|
+
color: $ms-color-neutralDark;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
&:focus {
|
61
|
+
outline: transparent;
|
62
|
+
border: 1px solid $ms-color-neutralSecondary;
|
63
|
+
}
|
64
|
+
|
65
|
+
&.is-selected {
|
66
|
+
background-color: $ms-color-neutralQuaternaryAlt;
|
67
|
+
color: $ms-color-black;
|
68
|
+
font-weight: $ms-font-weight-semibold;
|
69
|
+
|
70
|
+
~.ms-ContextualMenu-subMenuIcon {
|
71
|
+
color: $ms-color-black;
|
72
|
+
}
|
73
|
+
|
74
|
+
&:hover {
|
75
|
+
background-color: $ms-color-neutralQuaternary;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
&.is-disabled {
|
80
|
+
color: $ms-color-neutralTertiary;
|
81
|
+
background-color: $ms-color-white;
|
82
|
+
pointer-events: none;
|
83
|
+
|
84
|
+
&:active,
|
85
|
+
&:focus {
|
86
|
+
border-color: $ms-color-white;
|
87
|
+
}
|
88
|
+
|
89
|
+
.ms-Icon {
|
90
|
+
color: $ms-color-neutralTertiary;
|
91
|
+
pointer-events: none;
|
92
|
+
cursor: default;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
// Modifier: Menu item Dividers
|
98
|
+
.ms-ContextualMenu-item.ms-ContextualMenu-item--divider {
|
99
|
+
cursor: default;
|
100
|
+
display: block;
|
101
|
+
height: 1px;
|
102
|
+
background-color: $ms-color-neutralLight;
|
103
|
+
position: relative;
|
104
|
+
}
|
105
|
+
|
106
|
+
// Modifier: Menu item Headers
|
107
|
+
.ms-ContextualMenu-item.ms-ContextualMenu-item--header {
|
108
|
+
color: $ms-color-themePrimary;
|
109
|
+
font-size: $ms-font-size-s;
|
110
|
+
text-transform: uppercase;
|
111
|
+
height: 36px;
|
112
|
+
line-height: 36px;
|
113
|
+
padding: 0 18px;
|
114
|
+
}
|
115
|
+
|
116
|
+
// Modifier: Contextual menu with submenu
|
117
|
+
.ms-ContextualMenu-item.ms-ContextualMenu-item--hasMenu .ms-ContextualMenu {
|
118
|
+
position: absolute;
|
119
|
+
top: -1px;
|
120
|
+
left: 178px; // Move the submenu to the left of the menu item that triggered it
|
121
|
+
}
|
122
|
+
|
123
|
+
// Right chevron.
|
124
|
+
// Note: The .ms-ContextualMenu-caretRight class has been deprecated.
|
125
|
+
// Please use .ms-ContextualMenu-subMenuIcon.
|
126
|
+
.ms-ContextualMenu-subMenuIcon,
|
127
|
+
.ms-ContextualMenu-caretRight {
|
128
|
+
color: $ms-color-neutralPrimary;
|
129
|
+
font-size: 8px;
|
130
|
+
font-weight: 600;
|
131
|
+
width: 24px;
|
132
|
+
height: 36px;
|
133
|
+
line-height: 36px;
|
134
|
+
position: absolute;
|
135
|
+
text-align: center;
|
136
|
+
top: 0;
|
137
|
+
right: 0;
|
138
|
+
z-index: 1;
|
139
|
+
pointer-events: none;
|
140
|
+
}
|
141
|
+
|
142
|
+
//== Modifier: Multi-select menu
|
143
|
+
//
|
144
|
+
.ms-ContextualMenu.ms-ContextualMenu--multiselect {
|
145
|
+
|
146
|
+
// Align the header with the items
|
147
|
+
.ms-ContextualMenu-item.ms-ContextualMenu-item--header {
|
148
|
+
padding: 0 16px 0 26px;
|
149
|
+
}
|
150
|
+
|
151
|
+
.ms-ContextualMenu-link {
|
152
|
+
|
153
|
+
// Multi-select checkmark
|
154
|
+
&.is-selected {
|
155
|
+
background-color: $ms-color-white;
|
156
|
+
font-weight: $ms-font-weight-semibold;
|
157
|
+
color: $ms-color-neutralPrimary;
|
158
|
+
|
159
|
+
// Checkmark
|
160
|
+
&::after {
|
161
|
+
@include ms-Icon;
|
162
|
+
color: $ms-color-neutralPrimary;
|
163
|
+
content: '\E73E';
|
164
|
+
font-size: $ms-icon-size-xs;
|
165
|
+
font-weight: 800;
|
166
|
+
height: 36px;
|
167
|
+
line-height: 36px;
|
168
|
+
position: absolute;
|
169
|
+
left: 7px;
|
170
|
+
}
|
171
|
+
|
172
|
+
&:hover,
|
173
|
+
&:focus {
|
174
|
+
color: $ms-color-neutralDark;
|
175
|
+
background-color: $ms-color-neutralLighter;
|
176
|
+
|
177
|
+
&::after {
|
178
|
+
color: $ms-color-neutralDark;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
&:active {
|
183
|
+
color: $ms-color-black;
|
184
|
+
background-color: $ms-color-neutralQuaternary;
|
185
|
+
|
186
|
+
&::after {
|
187
|
+
color: $ms-color-black;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
.ms-ContextualMenu.ms-ContextualMenu--hasIcons,
|
195
|
+
.ms-ContextualMenu.ms-ContextualMenu--hasChecks {
|
196
|
+
.ms-ContextualMenu-link {
|
197
|
+
padding-left: 40px;
|
198
|
+
}
|
199
|
+
|
200
|
+
.ms-Icon {
|
201
|
+
position: absolute;
|
202
|
+
top: 50%;
|
203
|
+
transform: translateY(-50%);
|
204
|
+
width: 40px;
|
205
|
+
text-align: center;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
.ms-ContextualMenu.ms-ContextualMenu--hasIcons {
|
210
|
+
width: 220px;
|
211
|
+
}
|