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,16 +1,17 @@
|
|
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
|
-
//== Component: Choicefield group
|
6
|
-
//
|
7
|
-
// Choice field groups contain multiple radio buttons or checkboxes
|
8
|
-
.ms-ChoiceFieldGroup {
|
9
|
-
@include ms-baseFont;
|
10
|
-
margin-bottom: 4px;
|
11
|
-
|
12
|
-
.ms-ChoiceFieldGroup-list {
|
13
|
-
padding: 0;
|
14
|
-
margin: 0;
|
15
|
-
|
16
|
-
}
|
5
|
+
//== Component: Choicefield group
|
6
|
+
//
|
7
|
+
// Choice field groups contain multiple radio buttons or checkboxes
|
8
|
+
.ms-ChoiceFieldGroup {
|
9
|
+
@include ms-baseFont;
|
10
|
+
margin-bottom: 4px;
|
11
|
+
|
12
|
+
.ms-ChoiceFieldGroup-list {
|
13
|
+
padding: 0;
|
14
|
+
margin: 0;
|
15
|
+
list-style: none;
|
16
|
+
}
|
17
|
+
}
|
@@ -1,141 +1,141 @@
|
|
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
|
-
// Command Bar styles
|
11
|
-
|
12
|
-
$CommandBar-height: 40px;
|
13
|
-
$CommandBar-md-height: 44px;
|
14
|
-
$CommandBar-iconSize: 18px;
|
15
|
-
$CommandBar-sideAreaWidthsm: 128px;
|
16
|
-
$SearchBox-width: 220px;
|
17
|
-
$CommandBarItem-height: $CommandBar-height;
|
18
|
-
$red: #FF0000;
|
19
|
-
|
20
|
-
@mixin highContrastBorder($color) {
|
21
|
-
border-left: 1px solid $color;
|
22
|
-
border-right: 1px solid $color;
|
23
|
-
}
|
24
|
-
|
25
|
-
.ms-CommandBar {
|
26
|
-
@include ms-baseFont;
|
27
|
-
background-color: $ms-color-neutralLighter;
|
28
|
-
height: $CommandBar-height;
|
29
|
-
white-space: nowrap;
|
30
|
-
padding-left: 0;
|
31
|
-
border: 0;
|
32
|
-
position: relative;
|
33
|
-
|
34
|
-
&:focus {
|
35
|
-
outline: none;
|
36
|
-
}
|
37
|
-
|
38
|
-
.ms-CommandButton--actionButton {
|
39
|
-
border-right: 1px solid $ms-color-neutralLight;
|
40
|
-
}
|
41
|
-
|
42
|
-
//== CommandBar -> ms-Button specific changes
|
43
|
-
//
|
44
|
-
.ms-Button {
|
45
|
-
height: 100%;
|
46
|
-
|
47
|
-
&.ms-Button--noLabel {
|
48
|
-
.ms-Button-icon {
|
49
|
-
padding-right: 0;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
&.is-hidden {
|
54
|
-
display: none;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
.ms-SearchBox,
|
59
|
-
.ms-SearchBox-field,
|
60
|
-
.ms-SearchBox-label {
|
61
|
-
height: 100%;
|
62
|
-
}
|
63
|
-
|
64
|
-
.ms-SearchBox {
|
65
|
-
display: inline-block;
|
66
|
-
vertical-align: top;
|
67
|
-
transition: margin-right $ms-duration2;
|
68
|
-
}
|
69
|
-
|
70
|
-
.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active {
|
71
|
-
width: $SearchBox-width;
|
72
|
-
|
73
|
-
@media only screen and (max-width: $ms-screen-md-max) {
|
74
|
-
width: 100%;
|
75
|
-
position: absolute;
|
76
|
-
left: 0;
|
77
|
-
right: 0;
|
78
|
-
z-index: $ms-zIndex-front;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
|
82
|
-
.ms-CommandBar-overflowButton {
|
83
|
-
.ms-CommandButton-button {
|
84
|
-
font-size: 18px;
|
85
|
-
padding: 0 11px;
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
// Search is collapsed unless activated and its only
|
90
|
-
// collapsed < L break points
|
91
|
-
|
92
|
-
@media only screen and (min-width: $ms-screen-xl-min) {
|
93
|
-
.ms-SearchBox {
|
94
|
-
margin-right: 24px;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
@media only screen and (max-width: $ms-screen-md-max) {
|
99
|
-
height: $CommandBar-md-height;
|
100
|
-
}
|
101
|
-
|
102
|
-
@media only screen and (min-width: $ms-screen-lg-min) {
|
103
|
-
|
104
|
-
&.search-expanded {
|
105
|
-
.ms-SearchBox {
|
106
|
-
margin-right: 8px;
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed {
|
111
|
-
transition: none;
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
.ms-CommandBar-mainArea {
|
117
|
-
overflow-x: hidden;
|
118
|
-
display: block;
|
119
|
-
height: 100%;
|
120
|
-
overflow: hidden;
|
121
|
-
}
|
122
|
-
|
123
|
-
.ms-CommandBar-sideCommands {
|
124
|
-
float: right;
|
125
|
-
text-align: right;
|
126
|
-
width: auto;
|
127
|
-
padding-right: 4px;
|
128
|
-
height: 100%;
|
129
|
-
|
130
|
-
.ms-Button:last-child {
|
131
|
-
margin-right: 0;
|
132
|
-
}
|
133
|
-
|
134
|
-
@media only screen and (min-width: $ms-screen-lg-min) {
|
135
|
-
min-width: $CommandBar-sideAreaWidthsm;
|
136
|
-
}
|
137
|
-
|
138
|
-
@media only screen and (min-width: $ms-screen-xl-min) {
|
139
|
-
padding-right: 20px;
|
140
|
-
}
|
141
|
-
}
|
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
|
+
// Command Bar styles
|
11
|
+
|
12
|
+
$CommandBar-height: 40px;
|
13
|
+
$CommandBar-md-height: 44px;
|
14
|
+
$CommandBar-iconSize: 18px;
|
15
|
+
$CommandBar-sideAreaWidthsm: 128px;
|
16
|
+
$SearchBox-width: 220px;
|
17
|
+
$CommandBarItem-height: $CommandBar-height;
|
18
|
+
$red: #FF0000;
|
19
|
+
|
20
|
+
@mixin highContrastBorder($color) {
|
21
|
+
border-left: 1px solid $color;
|
22
|
+
border-right: 1px solid $color;
|
23
|
+
}
|
24
|
+
|
25
|
+
.ms-CommandBar {
|
26
|
+
@include ms-baseFont;
|
27
|
+
background-color: $ms-color-neutralLighter;
|
28
|
+
height: $CommandBar-height;
|
29
|
+
white-space: nowrap;
|
30
|
+
padding-left: 0;
|
31
|
+
border: 0;
|
32
|
+
position: relative;
|
33
|
+
|
34
|
+
&:focus {
|
35
|
+
outline: none;
|
36
|
+
}
|
37
|
+
|
38
|
+
.ms-CommandButton--actionButton {
|
39
|
+
border-right: 1px solid $ms-color-neutralLight;
|
40
|
+
}
|
41
|
+
|
42
|
+
//== CommandBar -> ms-Button specific changes
|
43
|
+
//
|
44
|
+
.ms-Button {
|
45
|
+
height: 100%;
|
46
|
+
|
47
|
+
&.ms-Button--noLabel {
|
48
|
+
.ms-Button-icon {
|
49
|
+
padding-right: 0;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
&.is-hidden {
|
54
|
+
display: none;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.ms-SearchBox,
|
59
|
+
.ms-SearchBox-field,
|
60
|
+
.ms-SearchBox-label {
|
61
|
+
height: 100%;
|
62
|
+
}
|
63
|
+
|
64
|
+
.ms-SearchBox {
|
65
|
+
display: inline-block;
|
66
|
+
vertical-align: top;
|
67
|
+
transition: margin-right $ms-duration2;
|
68
|
+
}
|
69
|
+
|
70
|
+
.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active {
|
71
|
+
width: $SearchBox-width;
|
72
|
+
|
73
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
74
|
+
width: 100%;
|
75
|
+
position: absolute;
|
76
|
+
left: 0;
|
77
|
+
right: 0;
|
78
|
+
z-index: $ms-zIndex-front;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
.ms-CommandBar-overflowButton {
|
83
|
+
.ms-CommandButton-button {
|
84
|
+
font-size: 18px;
|
85
|
+
padding: 0 11px;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
// Search is collapsed unless activated and its only
|
90
|
+
// collapsed < L break points
|
91
|
+
|
92
|
+
@media only screen and (min-width: $ms-screen-xl-min) {
|
93
|
+
.ms-SearchBox {
|
94
|
+
margin-right: 24px;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
99
|
+
height: $CommandBar-md-height;
|
100
|
+
}
|
101
|
+
|
102
|
+
@media only screen and (min-width: $ms-screen-lg-min) {
|
103
|
+
|
104
|
+
&.search-expanded {
|
105
|
+
.ms-SearchBox {
|
106
|
+
margin-right: 8px;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed {
|
111
|
+
transition: none;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.ms-CommandBar-mainArea {
|
117
|
+
overflow-x: hidden;
|
118
|
+
display: block;
|
119
|
+
height: 100%;
|
120
|
+
overflow: hidden;
|
121
|
+
}
|
122
|
+
|
123
|
+
.ms-CommandBar-sideCommands {
|
124
|
+
float: right;
|
125
|
+
text-align: right;
|
126
|
+
width: auto;
|
127
|
+
padding-right: 4px;
|
128
|
+
height: 100%;
|
129
|
+
|
130
|
+
.ms-Button:last-child {
|
131
|
+
margin-right: 0;
|
132
|
+
}
|
133
|
+
|
134
|
+
@media only screen and (min-width: $ms-screen-lg-min) {
|
135
|
+
min-width: $CommandBar-sideAreaWidthsm;
|
136
|
+
}
|
137
|
+
|
138
|
+
@media only screen and (min-width: $ms-screen-xl-min) {
|
139
|
+
padding-right: 20px;
|
140
|
+
}
|
141
|
+
}
|
@@ -1,296 +1,296 @@
|
|
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
|
-
// Button styles
|
11
|
-
|
12
|
-
$CommandButton-height: 40px;
|
13
|
-
$CommandButton-md-height: 44px;
|
14
|
-
$CommandButton-padding: 8px;
|
15
|
-
$CommandButtonIcon-size: 16px;
|
16
|
-
$CommandButtonIcon-md-size: 20px;
|
17
|
-
|
18
|
-
.ms-CommandButton {
|
19
|
-
@include ms-baseFont;
|
20
|
-
display: inline-block;
|
21
|
-
position: relative;
|
22
|
-
vertical-align: top;
|
23
|
-
|
24
|
-
&.is-hidden {
|
25
|
-
display: none;
|
26
|
-
}
|
27
|
-
|
28
|
-
&:disabled,
|
29
|
-
&.is-disabled {
|
30
|
-
.ms-CommandButton-button {
|
31
|
-
cursor: default;
|
32
|
-
|
33
|
-
&:hover {
|
34
|
-
background-color: $ms-color-themeLighterAlt;
|
35
|
-
}
|
36
|
-
|
37
|
-
.ms-CommandButton-label {
|
38
|
-
color: $ms-color-neutralTertiary;
|
39
|
-
}
|
40
|
-
|
41
|
-
.ms-CommandButton-icon {
|
42
|
-
color: $ms-color-neutralTertiary;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
.ms-ContextualMenu {
|
48
|
-
display: none;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
//== Mixins: Base button, focus, and icon alignments
|
53
|
-
//
|
54
|
-
@mixin ms-CommandButton-iconBase {
|
55
|
-
position: absolute;
|
56
|
-
top: 50%;
|
57
|
-
left: 50%;
|
58
|
-
transform: translate(-50%, -50%);
|
59
|
-
}
|
60
|
-
|
61
|
-
@mixin ms-CommandBar-focusRectangle {
|
62
|
-
top: 3px;
|
63
|
-
left: 3px;
|
64
|
-
right: 3px;
|
65
|
-
bottom: 3px;
|
66
|
-
border: 1px solid $ms-color-neutralPrimary;
|
67
|
-
position: absolute;
|
68
|
-
z-index: 10;
|
69
|
-
content: '';
|
70
|
-
outline: none;
|
71
|
-
}
|
72
|
-
|
73
|
-
@mixin ms-CommandBarButton-buttonBase {
|
74
|
-
@include ms-u-normalize;
|
75
|
-
color: $ms-color-neutralPrimary;
|
76
|
-
font-size: $ms-font-size-m;
|
77
|
-
font-weight: $ms-font-weight-regular;
|
78
|
-
// background-color: $ms-color-themeLighterAlt;
|
79
|
-
// border: 1px solid $ms-color-themeLighterAlt;
|
80
|
-
cursor: pointer;
|
81
|
-
display: inline-block;
|
82
|
-
height: $CommandButton-height;
|
83
|
-
line-height: $CommandButton-height;
|
84
|
-
outline: 1px solid transparent;
|
85
|
-
padding: 0 $CommandButton-padding;
|
86
|
-
position: relative;
|
87
|
-
vertical-align: top;
|
88
|
-
background: transparent;
|
89
|
-
|
90
|
-
&:hover {
|
91
|
-
background-color: $ms-color-neutralLight;
|
92
|
-
|
93
|
-
.ms-CommandButton-label {
|
94
|
-
color: $ms-color-neutralDark;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
&:active {
|
99
|
-
background-color: $ms-color-neutralLight;
|
100
|
-
}
|
101
|
-
|
102
|
-
&:focus::before {
|
103
|
-
@include ms-CommandBar-focusRectangle;
|
104
|
-
}
|
105
|
-
|
106
|
-
&:focus {
|
107
|
-
outline: 0;
|
108
|
-
}
|
109
|
-
|
110
|
-
@media only screen and (max-width: $ms-screen-md-max) {
|
111
|
-
height: $CommandButton-md-height;
|
112
|
-
|
113
|
-
.ms-CommandButton-icon {
|
114
|
-
font-size: $CommandButtonIcon-md-size;
|
115
|
-
}
|
116
|
-
|
117
|
-
.ms-CommandButton-label {
|
118
|
-
line-height: $CommandButton-md-height;
|
119
|
-
}
|
120
|
-
}
|
121
|
-
}
|
122
|
-
|
123
|
-
.ms-CommandButton-button,
|
124
|
-
.ms-CommandButton-splitIcon {
|
125
|
-
@include ms-CommandBarButton-buttonBase;
|
126
|
-
}
|
127
|
-
|
128
|
-
.ms-CommandButton-button {
|
129
|
-
border: 0;
|
130
|
-
margin: 0;
|
131
|
-
}
|
132
|
-
|
133
|
-
// Add space between adjacent command buttons.
|
134
|
-
.ms-CommandButton + .ms-CommandButton {
|
135
|
-
margin-left: 8px;
|
136
|
-
|
137
|
-
@media only screen and (max-width: $ms-screen-md-max) {
|
138
|
-
margin-left: 4px;
|
139
|
-
}
|
140
|
-
}
|
141
|
-
|
142
|
-
.ms-CommandButton-icon {
|
143
|
-
display: inline-block;
|
144
|
-
margin-right: $CommandButton-padding;
|
145
|
-
position: relative;
|
146
|
-
font-size: $CommandButtonIcon-size;
|
147
|
-
min-width: 16px;
|
148
|
-
height: 100%;
|
149
|
-
|
150
|
-
.ms-Icon {
|
151
|
-
@include ms-CommandButton-iconBase;
|
152
|
-
}
|
153
|
-
}
|
154
|
-
|
155
|
-
.ms-CommandButton-label {
|
156
|
-
font-size: $ms-font-size-m;
|
157
|
-
font-weight: $ms-font-weight-regular;
|
158
|
-
color: $ms-color-neutralPrimary;
|
159
|
-
line-height: $CommandButton-height;
|
160
|
-
height: 100%;
|
161
|
-
display: inline-block;
|
162
|
-
vertical-align: top;
|
163
|
-
|
164
|
-
&:hover {
|
165
|
-
color: $ms-color-neutralDark;
|
166
|
-
}
|
167
|
-
}
|
168
|
-
|
169
|
-
.ms-CommandButton-dropdownIcon,
|
170
|
-
.ms-CommandButton-splitIcon {
|
171
|
-
display: inline-block;
|
172
|
-
position: relative;
|
173
|
-
color: $ms-color-neutralPrimary;
|
174
|
-
font-size: $ms-font-size-s;
|
175
|
-
font-weight: $ms-font-weight-semilight;
|
176
|
-
min-width: 12px;
|
177
|
-
height: 100%;
|
178
|
-
vertical-align: top;
|
179
|
-
margin-left: 8px;
|
180
|
-
|
181
|
-
.ms-Icon {
|
182
|
-
line-height: normal;
|
183
|
-
padding-top: $CommandButton-padding * 2;
|
184
|
-
}
|
185
|
-
|
186
|
-
&:focus::before {
|
187
|
-
@include ms-CommandBar-focusRectangle;
|
188
|
-
}
|
189
|
-
|
190
|
-
@media only screen and (max-width: $ms-screen-md-max) {
|
191
|
-
display: none;
|
192
|
-
}
|
193
|
-
}
|
194
|
-
|
195
|
-
.ms-CommandButton-splitIcon {
|
196
|
-
margin-left: -2px;
|
197
|
-
width: 27px;
|
198
|
-
border: 0;
|
199
|
-
|
200
|
-
.ms-Icon {
|
201
|
-
margin-left: -1px;
|
202
|
-
position: relative;
|
203
|
-
padding-top: 16px;
|
204
|
-
|
205
|
-
&::after {
|
206
|
-
position: absolute;
|
207
|
-
content: ' ';
|
208
|
-
width: 1px;
|
209
|
-
height: 16px;
|
210
|
-
top: 12px;
|
211
|
-
left: -8px;
|
212
|
-
border-left: 1px solid $ms-color-neutralTertiaryAlt;
|
213
|
-
}
|
214
|
-
}
|
215
|
-
}
|
216
|
-
|
217
|
-
//= Modifier: No Label modifier
|
218
|
-
//
|
219
|
-
.ms-CommandButton.ms-CommandButton--noLabel {
|
220
|
-
.ms-CommandButton-icon {
|
221
|
-
margin-right: 0;
|
222
|
-
}
|
223
|
-
|
224
|
-
.ms-CommandButton-label {
|
225
|
-
display: none;
|
226
|
-
}
|
227
|
-
|
228
|
-
.ms-CommandButton-button {
|
229
|
-
padding: 0 12px;
|
230
|
-
}
|
231
|
-
}
|
232
|
-
|
233
|
-
//= Modifier: Inline modifier
|
234
|
-
//
|
235
|
-
.ms-CommandButton.ms-CommandButton--inline {
|
236
|
-
.ms-CommandButton-button {
|
237
|
-
background: none;
|
238
|
-
}
|
239
|
-
}
|
240
|
-
|
241
|
-
//= Modifier: Action Button modifier
|
242
|
-
//
|
243
|
-
.ms-CommandButton.ms-CommandButton--actionButton {
|
244
|
-
.ms-CommandButton-button {
|
245
|
-
width: 50px;
|
246
|
-
height: $CommandButton-height;
|
247
|
-
}
|
248
|
-
|
249
|
-
.ms-CommandButton-icon {
|
250
|
-
position: absolute;
|
251
|
-
top: 50%;
|
252
|
-
left: 50%;
|
253
|
-
transform: translate(-50%, -50%);
|
254
|
-
width: 16px;
|
255
|
-
height: 16px;
|
256
|
-
padding-right: 0;
|
257
|
-
}
|
258
|
-
}
|
259
|
-
|
260
|
-
@mixin ms-CommandButton-pivotLine {
|
261
|
-
content: '';
|
262
|
-
height: 2px;
|
263
|
-
position: absolute;
|
264
|
-
left: 0;
|
265
|
-
right: 0;
|
266
|
-
background-color: $ms-color-themePrimary;
|
267
|
-
bottom: 0;
|
268
|
-
z-index: $ms-zIndex-middle;
|
269
|
-
}
|
270
|
-
|
271
|
-
//= Modifier: Pivot Button modifier
|
272
|
-
//
|
273
|
-
.ms-CommandButton.ms-CommandButton--pivot {
|
274
|
-
|
275
|
-
&.is-active::before {
|
276
|
-
@include ms-CommandButton-pivotLine;
|
277
|
-
}
|
278
|
-
|
279
|
-
&:hover {
|
280
|
-
&::before {
|
281
|
-
@include ms-CommandButton-pivotLine;
|
282
|
-
}
|
283
|
-
}
|
284
|
-
}
|
285
|
-
|
286
|
-
.ms-CommandButton.ms-CommandButton--textOnly,
|
287
|
-
.ms-CommandButton.ms-CommandButton--pivot {
|
288
|
-
|
289
|
-
.ms-CommandButton-label {
|
290
|
-
display: inline-block;
|
291
|
-
|
292
|
-
@media only screen and (max-width: $ms-screen-sm-max) {
|
293
|
-
font-size: 16px;
|
294
|
-
}
|
295
|
-
}
|
296
|
-
}
|
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
|
+
// Button styles
|
11
|
+
|
12
|
+
$CommandButton-height: 40px;
|
13
|
+
$CommandButton-md-height: 44px;
|
14
|
+
$CommandButton-padding: 8px;
|
15
|
+
$CommandButtonIcon-size: 16px;
|
16
|
+
$CommandButtonIcon-md-size: 20px;
|
17
|
+
|
18
|
+
.ms-CommandButton {
|
19
|
+
@include ms-baseFont;
|
20
|
+
display: inline-block;
|
21
|
+
position: relative;
|
22
|
+
vertical-align: top;
|
23
|
+
|
24
|
+
&.is-hidden {
|
25
|
+
display: none;
|
26
|
+
}
|
27
|
+
|
28
|
+
&:disabled,
|
29
|
+
&.is-disabled {
|
30
|
+
.ms-CommandButton-button {
|
31
|
+
cursor: default;
|
32
|
+
|
33
|
+
&:hover {
|
34
|
+
background-color: $ms-color-themeLighterAlt;
|
35
|
+
}
|
36
|
+
|
37
|
+
.ms-CommandButton-label {
|
38
|
+
color: $ms-color-neutralTertiary;
|
39
|
+
}
|
40
|
+
|
41
|
+
.ms-CommandButton-icon {
|
42
|
+
color: $ms-color-neutralTertiary;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.ms-ContextualMenu {
|
48
|
+
display: none;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
//== Mixins: Base button, focus, and icon alignments
|
53
|
+
//
|
54
|
+
@mixin ms-CommandButton-iconBase {
|
55
|
+
position: absolute;
|
56
|
+
top: 50%;
|
57
|
+
left: 50%;
|
58
|
+
transform: translate(-50%, -50%);
|
59
|
+
}
|
60
|
+
|
61
|
+
@mixin ms-CommandBar-focusRectangle {
|
62
|
+
top: 3px;
|
63
|
+
left: 3px;
|
64
|
+
right: 3px;
|
65
|
+
bottom: 3px;
|
66
|
+
border: 1px solid $ms-color-neutralPrimary;
|
67
|
+
position: absolute;
|
68
|
+
z-index: 10;
|
69
|
+
content: '';
|
70
|
+
outline: none;
|
71
|
+
}
|
72
|
+
|
73
|
+
@mixin ms-CommandBarButton-buttonBase {
|
74
|
+
@include ms-u-normalize;
|
75
|
+
color: $ms-color-neutralPrimary;
|
76
|
+
font-size: $ms-font-size-m;
|
77
|
+
font-weight: $ms-font-weight-regular;
|
78
|
+
// background-color: $ms-color-themeLighterAlt;
|
79
|
+
// border: 1px solid $ms-color-themeLighterAlt;
|
80
|
+
cursor: pointer;
|
81
|
+
display: inline-block;
|
82
|
+
height: $CommandButton-height;
|
83
|
+
line-height: $CommandButton-height;
|
84
|
+
outline: 1px solid transparent;
|
85
|
+
padding: 0 $CommandButton-padding;
|
86
|
+
position: relative;
|
87
|
+
vertical-align: top;
|
88
|
+
background: transparent;
|
89
|
+
|
90
|
+
&:hover {
|
91
|
+
background-color: $ms-color-neutralLight;
|
92
|
+
|
93
|
+
.ms-CommandButton-label {
|
94
|
+
color: $ms-color-neutralDark;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
&:active {
|
99
|
+
background-color: $ms-color-neutralLight;
|
100
|
+
}
|
101
|
+
|
102
|
+
&:focus::before {
|
103
|
+
@include ms-CommandBar-focusRectangle;
|
104
|
+
}
|
105
|
+
|
106
|
+
&:focus {
|
107
|
+
outline: 0;
|
108
|
+
}
|
109
|
+
|
110
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
111
|
+
height: $CommandButton-md-height;
|
112
|
+
|
113
|
+
.ms-CommandButton-icon {
|
114
|
+
font-size: $CommandButtonIcon-md-size;
|
115
|
+
}
|
116
|
+
|
117
|
+
.ms-CommandButton-label {
|
118
|
+
line-height: $CommandButton-md-height;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.ms-CommandButton-button,
|
124
|
+
.ms-CommandButton-splitIcon {
|
125
|
+
@include ms-CommandBarButton-buttonBase;
|
126
|
+
}
|
127
|
+
|
128
|
+
.ms-CommandButton-button {
|
129
|
+
border: 0;
|
130
|
+
margin: 0;
|
131
|
+
}
|
132
|
+
|
133
|
+
// Add space between adjacent command buttons.
|
134
|
+
.ms-CommandButton + .ms-CommandButton {
|
135
|
+
margin-left: 8px;
|
136
|
+
|
137
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
138
|
+
margin-left: 4px;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
.ms-CommandButton-icon {
|
143
|
+
display: inline-block;
|
144
|
+
margin-right: $CommandButton-padding;
|
145
|
+
position: relative;
|
146
|
+
font-size: $CommandButtonIcon-size;
|
147
|
+
min-width: 16px;
|
148
|
+
height: 100%;
|
149
|
+
|
150
|
+
.ms-Icon {
|
151
|
+
@include ms-CommandButton-iconBase;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
.ms-CommandButton-label {
|
156
|
+
font-size: $ms-font-size-m;
|
157
|
+
font-weight: $ms-font-weight-regular;
|
158
|
+
color: $ms-color-neutralPrimary;
|
159
|
+
line-height: $CommandButton-height;
|
160
|
+
height: 100%;
|
161
|
+
display: inline-block;
|
162
|
+
vertical-align: top;
|
163
|
+
|
164
|
+
&:hover {
|
165
|
+
color: $ms-color-neutralDark;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.ms-CommandButton-dropdownIcon,
|
170
|
+
.ms-CommandButton-splitIcon {
|
171
|
+
display: inline-block;
|
172
|
+
position: relative;
|
173
|
+
color: $ms-color-neutralPrimary;
|
174
|
+
font-size: $ms-font-size-s;
|
175
|
+
font-weight: $ms-font-weight-semilight;
|
176
|
+
min-width: 12px;
|
177
|
+
height: 100%;
|
178
|
+
vertical-align: top;
|
179
|
+
margin-left: 8px;
|
180
|
+
|
181
|
+
.ms-Icon {
|
182
|
+
line-height: normal;
|
183
|
+
padding-top: $CommandButton-padding * 2;
|
184
|
+
}
|
185
|
+
|
186
|
+
&:focus::before {
|
187
|
+
@include ms-CommandBar-focusRectangle;
|
188
|
+
}
|
189
|
+
|
190
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
191
|
+
display: none;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
.ms-CommandButton-splitIcon {
|
196
|
+
margin-left: -2px;
|
197
|
+
width: 27px;
|
198
|
+
border: 0;
|
199
|
+
|
200
|
+
.ms-Icon {
|
201
|
+
margin-left: -1px;
|
202
|
+
position: relative;
|
203
|
+
padding-top: 16px;
|
204
|
+
|
205
|
+
&::after {
|
206
|
+
position: absolute;
|
207
|
+
content: ' ';
|
208
|
+
width: 1px;
|
209
|
+
height: 16px;
|
210
|
+
top: 12px;
|
211
|
+
left: -8px;
|
212
|
+
border-left: 1px solid $ms-color-neutralTertiaryAlt;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
//= Modifier: No Label modifier
|
218
|
+
//
|
219
|
+
.ms-CommandButton.ms-CommandButton--noLabel {
|
220
|
+
.ms-CommandButton-icon {
|
221
|
+
margin-right: 0;
|
222
|
+
}
|
223
|
+
|
224
|
+
.ms-CommandButton-label {
|
225
|
+
display: none;
|
226
|
+
}
|
227
|
+
|
228
|
+
.ms-CommandButton-button {
|
229
|
+
padding: 0 12px;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
//= Modifier: Inline modifier
|
234
|
+
//
|
235
|
+
.ms-CommandButton.ms-CommandButton--inline {
|
236
|
+
.ms-CommandButton-button {
|
237
|
+
background: none;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
//= Modifier: Action Button modifier
|
242
|
+
//
|
243
|
+
.ms-CommandButton.ms-CommandButton--actionButton {
|
244
|
+
.ms-CommandButton-button {
|
245
|
+
width: 50px;
|
246
|
+
height: $CommandButton-height;
|
247
|
+
}
|
248
|
+
|
249
|
+
.ms-CommandButton-icon {
|
250
|
+
position: absolute;
|
251
|
+
top: 50%;
|
252
|
+
left: 50%;
|
253
|
+
transform: translate(-50%, -50%);
|
254
|
+
width: 16px;
|
255
|
+
height: 16px;
|
256
|
+
padding-right: 0;
|
257
|
+
}
|
258
|
+
}
|
259
|
+
|
260
|
+
@mixin ms-CommandButton-pivotLine {
|
261
|
+
content: '';
|
262
|
+
height: 2px;
|
263
|
+
position: absolute;
|
264
|
+
left: 0;
|
265
|
+
right: 0;
|
266
|
+
background-color: $ms-color-themePrimary;
|
267
|
+
bottom: 0;
|
268
|
+
z-index: $ms-zIndex-middle;
|
269
|
+
}
|
270
|
+
|
271
|
+
//= Modifier: Pivot Button modifier
|
272
|
+
//
|
273
|
+
.ms-CommandButton.ms-CommandButton--pivot {
|
274
|
+
|
275
|
+
&.is-active::before {
|
276
|
+
@include ms-CommandButton-pivotLine;
|
277
|
+
}
|
278
|
+
|
279
|
+
&:hover {
|
280
|
+
&::before {
|
281
|
+
@include ms-CommandButton-pivotLine;
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
.ms-CommandButton.ms-CommandButton--textOnly,
|
287
|
+
.ms-CommandButton.ms-CommandButton--pivot {
|
288
|
+
|
289
|
+
.ms-CommandButton-label {
|
290
|
+
display: inline-block;
|
291
|
+
|
292
|
+
@media only screen and (max-width: $ms-screen-sm-max) {
|
293
|
+
font-size: 16px;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|