office-ui-fabric-js-rails 1.0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +76 -0
- data/Rakefile +24 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bower.json +7 -0
- data/lib/office-ui-fabric-js-rails.rb +2 -0
- data/lib/office-ui-fabric-js-rails/engine.rb +6 -0
- data/lib/office-ui-fabric-js-rails/version.rb +6 -0
- data/office-ui-fabric-js-rails.gemspec +36 -0
- data/vendor/assets/css/fabric.components.css +6187 -0
- data/vendor/assets/css/fabric.components.min.css +6 -0
- data/vendor/assets/css/fabric.components.rtl.css +6049 -0
- data/vendor/assets/css/fabric.components.rtl.min.css +6 -0
- data/vendor/assets/scss/components/Breadcrumb.scss +173 -0
- data/vendor/assets/scss/components/Button.scss +285 -0
- data/vendor/assets/scss/components/Callout.scss +156 -0
- data/vendor/assets/scss/components/CheckBox.scss +171 -0
- data/vendor/assets/scss/components/ChoiceFieldGroup.scss +12 -0
- data/vendor/assets/scss/components/CommandBar.scss +137 -0
- data/vendor/assets/scss/components/CommandButton.scss +292 -0
- data/vendor/assets/scss/components/ContextualHost.scss +139 -0
- data/vendor/assets/scss/components/ContextualMenu.scss +207 -0
- data/vendor/assets/scss/components/DatePicker.scss +526 -0
- data/vendor/assets/scss/components/DetailsList.scss +336 -0
- data/vendor/assets/scss/components/Dialog.scss +117 -0
- data/vendor/assets/scss/components/DialogHost.scss +11 -0
- data/vendor/assets/scss/components/Dropdown.scss +239 -0
- data/vendor/assets/scss/components/FacePile.scss +103 -0
- data/vendor/assets/scss/components/Label.scss +36 -0
- data/vendor/assets/scss/components/Link.scss +30 -0
- data/vendor/assets/scss/components/List.scss +15 -0
- data/vendor/assets/scss/components/ListItem.scss +236 -0
- data/vendor/assets/scss/components/MessageBanner.scss +127 -0
- data/vendor/assets/scss/components/MessageBar.scss +86 -0
- data/vendor/assets/scss/components/OrgChart.scss +45 -0
- data/vendor/assets/scss/components/Overlay.scss +33 -0
- data/vendor/assets/scss/components/Panel.scss +154 -0
- data/vendor/assets/scss/components/PanelHost.scss +14 -0
- data/vendor/assets/scss/components/PeoplePicker.scss +454 -0
- data/vendor/assets/scss/components/Persona.scss +730 -0
- data/vendor/assets/scss/components/PersonaCard.scss +207 -0
- data/vendor/assets/scss/components/Pivot.scss +200 -0
- data/vendor/assets/scss/components/ProgressIndicator.scss +63 -0
- data/vendor/assets/scss/components/RadioButton.scss +193 -0
- data/vendor/assets/scss/components/SearchBox.scss +368 -0
- data/vendor/assets/scss/components/Spinner.scss +47 -0
- data/vendor/assets/scss/components/Table.scss +122 -0
- data/vendor/assets/scss/components/TextField.scss +231 -0
- data/vendor/assets/scss/components/Toggle.scss +248 -0
- data/vendor/assets/scss/fabric.components.scss +1 -0
- metadata +184 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
// Office UI Fabric
|
|
5
|
+
// --------------------------------------------------
|
|
6
|
+
// RadioButton styles
|
|
7
|
+
|
|
8
|
+
$ms-radiobutton-field-size: 20px;
|
|
9
|
+
$ms-radiobutton-transition-duration: 200ms;
|
|
10
|
+
$ms-radiobutton-transition-duration-inner: 150ms;
|
|
11
|
+
$ms-radiobutton-transition-timing: cubic-bezier(.4, 0, .23, 1);
|
|
12
|
+
|
|
13
|
+
.ms-RadioButton {
|
|
14
|
+
@include ms-baseFont;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
color: $ms-color-neutralPrimary;
|
|
17
|
+
font-size: $ms-font-size-m;
|
|
18
|
+
font-weight: $ms-font-weight-regular;
|
|
19
|
+
min-height: 36px;
|
|
20
|
+
position: relative;
|
|
21
|
+
|
|
22
|
+
.ms-Label {
|
|
23
|
+
font-size: $ms-font-size-m;
|
|
24
|
+
padding: 0 0 0 26px;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// The hidden input
|
|
31
|
+
.ms-RadioButton-input {
|
|
32
|
+
position: absolute;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// The radio button circle container
|
|
37
|
+
.ms-RadioButton-field::before {
|
|
38
|
+
content: '';
|
|
39
|
+
display: inline-block;
|
|
40
|
+
border: 2px solid $ms-color-neutralTertiary;
|
|
41
|
+
width: $ms-radiobutton-field-size;
|
|
42
|
+
height: $ms-radiobutton-field-size;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
font-weight: normal;
|
|
45
|
+
position: absolute;
|
|
46
|
+
box-sizing: border-box;
|
|
47
|
+
transition-property: border-color;
|
|
48
|
+
transition-duration: $ms-radiobutton-transition-duration;
|
|
49
|
+
transition-timing-function: $ms-radiobutton-transition-timing;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// The inner circle indicating a checked radio button
|
|
54
|
+
.ms-RadioButton-field::after {
|
|
55
|
+
content: '';
|
|
56
|
+
width: 0;
|
|
57
|
+
height: 0;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 8px;
|
|
61
|
+
left: 8px;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
right: 0;
|
|
64
|
+
transition-property: top, left, width, height;
|
|
65
|
+
transition-duration: $ms-radiobutton-transition-duration-inner;
|
|
66
|
+
transition-timing-function: $ms-radiobutton-transition-timing;
|
|
67
|
+
box-sizing: border-box;
|
|
68
|
+
|
|
69
|
+
@media screen and (-ms-high-contrast: active) {
|
|
70
|
+
color: $ms-color-contrastBlackDisabled;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
|
74
|
+
color: $ms-color-contrastWhiteDisabled;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// The radio button field
|
|
79
|
+
.ms-RadioButton-field {
|
|
80
|
+
display: inline-block;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
margin-top: 8px;
|
|
83
|
+
position: relative;
|
|
84
|
+
outline: 0;
|
|
85
|
+
vertical-align: top;
|
|
86
|
+
|
|
87
|
+
&:hover,
|
|
88
|
+
&:focus {
|
|
89
|
+
&::before {
|
|
90
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ms-Label {
|
|
94
|
+
color: $ms-color-black;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
//== State: A disabled radio button
|
|
99
|
+
//
|
|
100
|
+
&.is-disabled {
|
|
101
|
+
cursor: default;
|
|
102
|
+
|
|
103
|
+
&::before {
|
|
104
|
+
background-color: $ms-color-neutralTertiaryAlt;
|
|
105
|
+
border-color: $ms-color-neutralTertiaryAlt;
|
|
106
|
+
color: $ms-color-neutralTertiaryAlt;
|
|
107
|
+
|
|
108
|
+
@media screen and (-ms-high-contrast: active) {
|
|
109
|
+
border-color: $ms-color-contrastBlackDisabled;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
|
113
|
+
border-color: $ms-color-contrastWhiteDisabled;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ms-Label {
|
|
118
|
+
color: $ms-color-neutralTertiary;
|
|
119
|
+
|
|
120
|
+
@media screen and (-ms-high-contrast: active) {
|
|
121
|
+
color: $ms-color-contrastBlackDisabled;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
|
125
|
+
color: $ms-color-contrastWhiteDisabled;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&:hover,
|
|
130
|
+
&:focus {
|
|
131
|
+
&::before {
|
|
132
|
+
border-color: $ms-color-neutralTertiaryAlt;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
//== State: A radio button in focus
|
|
138
|
+
//
|
|
139
|
+
&.in-focus {
|
|
140
|
+
&::before {
|
|
141
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
//== State: When the radio button is selected (checked)
|
|
148
|
+
//
|
|
149
|
+
.ms-RadioButton-field.is-checked {
|
|
150
|
+
&::before {
|
|
151
|
+
border: 2px solid $ms-color-themePrimary;
|
|
152
|
+
background-color: transparent;
|
|
153
|
+
|
|
154
|
+
@media screen and (-ms-high-contrast: active) {
|
|
155
|
+
border-color: $ms-color-contrastBlackSelected;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
|
159
|
+
border-color: $ms-color-contrastWhiteSelected;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&::after {
|
|
164
|
+
background-color: $ms-color-themePrimary;
|
|
165
|
+
top: 5px;
|
|
166
|
+
left: 5px;
|
|
167
|
+
width: 10px;
|
|
168
|
+
height: 10px;
|
|
169
|
+
|
|
170
|
+
@media screen and (-ms-high-contrast: active) {
|
|
171
|
+
background-color: $ms-color-contrastBlackSelected;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
|
175
|
+
background-color: $ms-color-contrastWhiteSelected;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&:hover,
|
|
180
|
+
&:focus {
|
|
181
|
+
&::before {
|
|
182
|
+
border-color: $ms-color-themePrimary;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
//== State: A radio button in focus
|
|
187
|
+
//
|
|
188
|
+
&.in-focus {
|
|
189
|
+
&::before {
|
|
190
|
+
border-color: $ms-color-themePrimary;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
|
|
2
|
+
|
|
3
|
+
//
|
|
4
|
+
// Office UI Fabric
|
|
5
|
+
// --------------------------------------------------
|
|
6
|
+
// Search box styles
|
|
7
|
+
|
|
8
|
+
$SearchBox-width: 208px;
|
|
9
|
+
$SearchBox-field-padding-left: 45px;
|
|
10
|
+
$SearchBox-height: 36px;
|
|
11
|
+
$SearchBox-commandbarHeight: 40px;
|
|
12
|
+
$SearchBox-commandbar-md-height: 44px;
|
|
13
|
+
$disabled-color: #F4F4F4;
|
|
14
|
+
$SearchBox-command-color: #F4F4F4;
|
|
15
|
+
|
|
16
|
+
.ms-SearchBox {
|
|
17
|
+
@include ms-baseFont;
|
|
18
|
+
@include ms-u-normalize;
|
|
19
|
+
height: $SearchBox-height;
|
|
20
|
+
color: $ms-color-neutralPrimary;
|
|
21
|
+
font-size: $ms-font-size-m;
|
|
22
|
+
font-weight: $ms-font-weight-regular;
|
|
23
|
+
position: relative;
|
|
24
|
+
margin-bottom: 10px;
|
|
25
|
+
display: inline-block;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
background-color: $ms-color-white;
|
|
28
|
+
|
|
29
|
+
// State: Active searchbox
|
|
30
|
+
&.is-active {
|
|
31
|
+
z-index: $ms-zIndex-front;
|
|
32
|
+
|
|
33
|
+
.ms-SearchBox-label {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ms-SearchBox-clear {
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
background-color: $ms-color-themeLighter;
|
|
44
|
+
|
|
45
|
+
.ms-SearchBox-label {
|
|
46
|
+
color: $ms-color-black;
|
|
47
|
+
|
|
48
|
+
.ms-Icon {
|
|
49
|
+
color: $ms-color-neutralPrimary;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// State: Disabled searchbox
|
|
55
|
+
&.is-disabled {
|
|
56
|
+
background-color: $disabled-color;
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
|
|
59
|
+
.ms-SearchBox-label {
|
|
60
|
+
@include ms-Label-is-disabled;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ms-SearchBox-icon {
|
|
64
|
+
color: $ms-color-neutralTertiary;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ms-SearchBox-field {
|
|
68
|
+
color: $ms-color-neutralTertiary;
|
|
69
|
+
background-color: transparent;
|
|
70
|
+
border-color: $ms-color-neutralLighter;
|
|
71
|
+
cursor: default;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.ms-SearchBox-clear {
|
|
77
|
+
display: none;
|
|
78
|
+
position: absolute;
|
|
79
|
+
top: 0;
|
|
80
|
+
right: 0;
|
|
81
|
+
z-index: $ms-zIndex-front;
|
|
82
|
+
|
|
83
|
+
.ms-CommandButton-button {
|
|
84
|
+
background-color: $ms-color-themePrimary;
|
|
85
|
+
color: $ms-color-white;
|
|
86
|
+
height: $SearchBox-height;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ms-CommandButton-icon {
|
|
90
|
+
color: $ms-color-white;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.ms-SearchBox-icon {
|
|
95
|
+
position: relative;
|
|
96
|
+
top: 50%;
|
|
97
|
+
transform: translateY(-50%);
|
|
98
|
+
display: inline-block;
|
|
99
|
+
font-size: 16px;
|
|
100
|
+
width: 16px;
|
|
101
|
+
margin-left: 12px;
|
|
102
|
+
margin-right: 6px;
|
|
103
|
+
color: $ms-color-themePrimary;
|
|
104
|
+
vertical-align: top;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ms-SearchBox-field {
|
|
108
|
+
position: relative;
|
|
109
|
+
@include ms-u-normalize;
|
|
110
|
+
border: 1px solid $ms-color-themeTertiary;
|
|
111
|
+
outline: transparent 1px solid;
|
|
112
|
+
font-weight: $ms-font-weight-semilight;
|
|
113
|
+
font-size: $ms-font-size-m;
|
|
114
|
+
color: $ms-color-black;
|
|
115
|
+
height: $SearchBox-height;
|
|
116
|
+
padding: 6px 3px 7px $SearchBox-field-padding-left;
|
|
117
|
+
width: $SearchBox-width;
|
|
118
|
+
background-color: transparent;
|
|
119
|
+
z-index: $ms-zIndex-middle;
|
|
120
|
+
transition: padding-left $ms-duration1;
|
|
121
|
+
|
|
122
|
+
&:focus {
|
|
123
|
+
padding: 6px 32px 7px 10px;
|
|
124
|
+
border-color: $ms-color-themePrimary;
|
|
125
|
+
background-color: $ms-color-themeLighter;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&::-ms-clear {
|
|
129
|
+
display: none;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.ms-SearchBox-label {
|
|
134
|
+
position: absolute;
|
|
135
|
+
top: 0;
|
|
136
|
+
left: 0;
|
|
137
|
+
height: $SearchBox-height;
|
|
138
|
+
line-height: $SearchBox-height;
|
|
139
|
+
color: $ms-color-neutralSecondary;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
//== Modifier: CommandBar Search
|
|
143
|
+
//
|
|
144
|
+
.ms-SearchBox.ms-SearchBox--commandBar {
|
|
145
|
+
@include ms-bgColor-white;
|
|
146
|
+
width: $SearchBox-width;
|
|
147
|
+
height: $SearchBox-commandbarHeight;
|
|
148
|
+
|
|
149
|
+
.ms-SearchBox-field,
|
|
150
|
+
.ms-SearchBox-label {
|
|
151
|
+
height: $SearchBox-commandbarHeight;
|
|
152
|
+
line-height: $SearchBox-commandbarHeight;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ms-SearchBox-field {
|
|
156
|
+
transition: none;
|
|
157
|
+
border: 0;
|
|
158
|
+
|
|
159
|
+
&:focus {
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
padding: 6px 3px 7px $SearchBox-field-padding-left;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.ms-SearchBox-clear,
|
|
166
|
+
.ms-SearchBox-filter,
|
|
167
|
+
.ms-SearchBox-exit {
|
|
168
|
+
display: none;
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 0;
|
|
171
|
+
z-index: $ms-zIndex-front;
|
|
172
|
+
color: $ms-color-neutralTertiary;
|
|
173
|
+
|
|
174
|
+
.ms-CommandButton-button {
|
|
175
|
+
height: $SearchBox-commandbarHeight;
|
|
176
|
+
background-color: transparent;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ms-SearchBox-clear {
|
|
181
|
+
right: 8px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ms-SearchBox-filter {
|
|
185
|
+
right: 8px;
|
|
186
|
+
|
|
187
|
+
.ms-CommandButton-icon {
|
|
188
|
+
color: $ms-color-themePrimary;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&::before {
|
|
193
|
+
position: absolute;
|
|
194
|
+
content: ' ';
|
|
195
|
+
right: 0;
|
|
196
|
+
bottom: 0;
|
|
197
|
+
left: 0;
|
|
198
|
+
margin: 0 8px;
|
|
199
|
+
border-bottom: 1px solid $ms-color-neutralLight;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&:hover {
|
|
203
|
+
background-color: $ms-color-white;
|
|
204
|
+
|
|
205
|
+
.ms-SearchBox-label {
|
|
206
|
+
color: $ms-color-neutralDark;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ms-SearchBox-icon {
|
|
210
|
+
color: $ms-color-themePrimary;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&:focus {
|
|
215
|
+
background-color: transparent;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&.is-active {
|
|
219
|
+
.ms-CommandButton {
|
|
220
|
+
.ms-SearchBox-exit,
|
|
221
|
+
.ms-SearchBox-filter {
|
|
222
|
+
display: block;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&.is-collapsed {
|
|
228
|
+
width: 50px;
|
|
229
|
+
min-height: 40px;
|
|
230
|
+
z-index: $ms-zIndex-back;
|
|
231
|
+
background-color: $SearchBox-command-color;
|
|
232
|
+
|
|
233
|
+
.ms-SearchBox-text {
|
|
234
|
+
display: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.ms-SearchBox-field {
|
|
238
|
+
cursor: pointer;
|
|
239
|
+
width: calc(100% - 50px);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&::before {
|
|
243
|
+
visibility: hidden;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&.is-collapsed.is-active {
|
|
248
|
+
width: 100%;
|
|
249
|
+
|
|
250
|
+
.ms-SearchBox-field {
|
|
251
|
+
display: block;
|
|
252
|
+
cursor: text;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ms-SearchBox-text {
|
|
256
|
+
display: inline-block;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
|
260
|
+
width: 100%;
|
|
261
|
+
|
|
262
|
+
.ms-SearchBox-clear {
|
|
263
|
+
display: inline-block;
|
|
264
|
+
right: 58px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.ms-SearchBox-filter {
|
|
268
|
+
display: inline-block;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
&.is-animated {
|
|
272
|
+
transition: width $ms-duration1 $ms-ease1;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&::before {
|
|
277
|
+
visibility: visible;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
&.has-text {
|
|
282
|
+
.ms-SearchBox-clear {
|
|
283
|
+
display: inline-block;
|
|
284
|
+
|
|
285
|
+
.ms-CommandButton-icon {
|
|
286
|
+
color: $ms-color-neutralTertiary;
|
|
287
|
+
|
|
288
|
+
&:active {
|
|
289
|
+
color: $ms-color-themePrimary;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@media only screen and (min-width: $ms-screen-xl-min) {
|
|
296
|
+
@include ms-bgColor-white;
|
|
297
|
+
border-right: 1px solid $ms-color-neutralLight;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
|
301
|
+
height: $SearchBox-commandbar-md-height;
|
|
302
|
+
|
|
303
|
+
.ms-SearchBox-icon,
|
|
304
|
+
.ms-SearchBox-exit,
|
|
305
|
+
.ms-SearchBox-field,
|
|
306
|
+
.ms-SearchBox-label {
|
|
307
|
+
height: $SearchBox-commandbar-md-height;
|
|
308
|
+
line-height: $SearchBox-commandbar-md-height;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.ms-SearchBox-icon,
|
|
312
|
+
.ms-SearchBox-exit,
|
|
313
|
+
.ms-SearchBox-filter,
|
|
314
|
+
.ms-SearchBox-clear {
|
|
315
|
+
font-size: 20px;
|
|
316
|
+
|
|
317
|
+
.ms-CommandButton-button {
|
|
318
|
+
height: $SearchBox-commandbar-md-height;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.ms-SearchBox-field,
|
|
323
|
+
.ms-SearchBox-label {
|
|
324
|
+
font-size: 16px;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.ms-SearchBox.ms-SearchBox--commandBar.is-active {
|
|
330
|
+
@include ms-bgColor-white;
|
|
331
|
+
|
|
332
|
+
.ms-SearchBox-label {
|
|
333
|
+
display: block;
|
|
334
|
+
line-height: $SearchBox-commandbarHeight;
|
|
335
|
+
height: $SearchBox-commandbarHeight;
|
|
336
|
+
|
|
337
|
+
.ms-SearchBox-text {
|
|
338
|
+
display: none;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&::before {
|
|
343
|
+
visibility: visible;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
|
347
|
+
.ms-SearchBox-field {
|
|
348
|
+
width: 100%;
|
|
349
|
+
padding-right: 100px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.ms-SearchBox-icon {
|
|
353
|
+
display: none;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.ms-SearchBox-exit {
|
|
357
|
+
display: inline-block;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
&.has-text {
|
|
361
|
+
.ms-SearchBox-filter {
|
|
362
|
+
.ms-CommandButton-icon {
|
|
363
|
+
color: $ms-color-neutralTertiary;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|