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,51 +1,51 @@
|
|
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
|
-
// Spinner styles
|
11
|
-
|
12
|
-
|
13
|
-
.ms-Spinner {
|
14
|
-
@include ms-baseFont;
|
15
|
-
position: relative;
|
16
|
-
height: 20px;
|
17
|
-
|
18
|
-
&.ms-Spinner--large {
|
19
|
-
height: 28px;
|
20
|
-
|
21
|
-
.ms-Spinner-label {
|
22
|
-
left: 34px;
|
23
|
-
top: 6px;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
.ms-Spinner-circle {
|
29
|
-
position: absolute;
|
30
|
-
border-radius: 100px;
|
31
|
-
background-color: $ms-color-themePrimary;
|
32
|
-
opacity: 0;
|
33
|
-
|
34
|
-
@media screen and (-ms-high-contrast: active) {
|
35
|
-
background-color: $ms-color-white;
|
36
|
-
}
|
37
|
-
|
38
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
39
|
-
background-color: $ms-color-black;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
.ms-Spinner-label {
|
44
|
-
@include ms-baseFont;
|
45
|
-
position: relative;
|
46
|
-
font-size: $ms-font-size-s;
|
47
|
-
font-weight: $ms-font-weight-regular;
|
48
|
-
color: $ms-color-themePrimary;
|
49
|
-
left: 28px;
|
50
|
-
top: 2px;
|
51
|
-
}
|
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
|
+
// Spinner styles
|
11
|
+
|
12
|
+
|
13
|
+
.ms-Spinner {
|
14
|
+
@include ms-baseFont;
|
15
|
+
position: relative;
|
16
|
+
height: 20px;
|
17
|
+
|
18
|
+
&.ms-Spinner--large {
|
19
|
+
height: 28px;
|
20
|
+
|
21
|
+
.ms-Spinner-label {
|
22
|
+
left: 34px;
|
23
|
+
top: 6px;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.ms-Spinner-circle {
|
29
|
+
position: absolute;
|
30
|
+
border-radius: 100px;
|
31
|
+
background-color: $ms-color-themePrimary;
|
32
|
+
opacity: 0;
|
33
|
+
|
34
|
+
@media screen and (-ms-high-contrast: active) {
|
35
|
+
background-color: $ms-color-white;
|
36
|
+
}
|
37
|
+
|
38
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
39
|
+
background-color: $ms-color-black;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
.ms-Spinner-label {
|
44
|
+
@include ms-baseFont;
|
45
|
+
position: relative;
|
46
|
+
font-size: $ms-font-size-s;
|
47
|
+
font-weight: $ms-font-weight-regular;
|
48
|
+
color: $ms-color-themePrimary;
|
49
|
+
left: 28px;
|
50
|
+
top: 2px;
|
51
|
+
}
|
@@ -1,126 +1,126 @@
|
|
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
|
-
// Data table styles
|
11
|
-
|
12
|
-
.ms-Table {
|
13
|
-
@include ms-baseFont;
|
14
|
-
display: table;
|
15
|
-
width: 100%;
|
16
|
-
border-collapse: collapse;
|
17
|
-
}
|
18
|
-
|
19
|
-
// makes the table cells not expand with the content, keeping the table cells at a fixed size
|
20
|
-
.ms-Table--fixed {
|
21
|
-
table-layout: fixed;
|
22
|
-
}
|
23
|
-
|
24
|
-
.ms-Table tr,
|
25
|
-
.ms-Table-row {
|
26
|
-
display: table-row;
|
27
|
-
line-height: 30px;
|
28
|
-
font-weight: $ms-font-weight-semilight;
|
29
|
-
font-size: $ms-font-size-s;
|
30
|
-
color: $ms-color-neutralPrimary;
|
31
|
-
|
32
|
-
// Rows can be selected.
|
33
|
-
&.is-selected {
|
34
|
-
background-color: $ms-color-themeLight;
|
35
|
-
|
36
|
-
// A checkmark in a selected row.
|
37
|
-
.ms-Table-rowCheck {
|
38
|
-
background-color: $ms-color-themePrimary;
|
39
|
-
|
40
|
-
// Hide the checkbox.
|
41
|
-
&::before {
|
42
|
-
display: none;
|
43
|
-
}
|
44
|
-
|
45
|
-
// But show the mark.
|
46
|
-
&::after {
|
47
|
-
@include ms-Icon--CheckboxComposite;
|
48
|
-
color: $ms-color-white;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
.ms-Table th,
|
55
|
-
.ms-Table td,
|
56
|
-
.ms-Table-cell {
|
57
|
-
display: table-cell;
|
58
|
-
padding: 0 10px;
|
59
|
-
}
|
60
|
-
|
61
|
-
// Style the first row as a header.
|
62
|
-
.ms-Table thead th,
|
63
|
-
.ms-Table-head {
|
64
|
-
font-weight: $ms-font-weight-semilight;
|
65
|
-
font-size: $ms-font-size-xs;
|
66
|
-
color: $ms-color-neutralSecondary;
|
67
|
-
}
|
68
|
-
|
69
|
-
.ms-Table thead,
|
70
|
-
.ms-Table-head {
|
71
|
-
td,
|
72
|
-
th,
|
73
|
-
.ms-Table-cell,
|
74
|
-
.ms-Table-rowCheck {
|
75
|
-
font-weight: normal;
|
76
|
-
text-align: left;
|
77
|
-
border-bottom: 1px solid $ms-color-neutralLight;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
// On selectable tables, each row has a checkbox.
|
82
|
-
.ms-Table-rowCheck {
|
83
|
-
display: table-cell;
|
84
|
-
width: 20px;
|
85
|
-
position: relative;
|
86
|
-
padding: 0;
|
87
|
-
|
88
|
-
// Empty checkbox.
|
89
|
-
&::after {
|
90
|
-
@include ms-Icon;
|
91
|
-
@include ms-Icon--Checkbox;
|
92
|
-
color: $ms-color-neutralTertiary;
|
93
|
-
font-size: 12px;
|
94
|
-
position: absolute;
|
95
|
-
left: 4px;
|
96
|
-
top: 1px;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
|
100
|
-
// A table with selectable rows
|
101
|
-
.ms-Table--selectable {
|
102
|
-
tr:hover,
|
103
|
-
.ms-Table-row:hover {
|
104
|
-
background-color: $ms-color-neutralLighter;
|
105
|
-
cursor: pointer;
|
106
|
-
outline: 1px solid transparent;
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
// All high contrast styling rules
|
111
|
-
@media screen and (-ms-high-contrast: active) {
|
112
|
-
.ms-Table-row {
|
113
|
-
// Rows can be selected.
|
114
|
-
&.is-selected {
|
115
|
-
// A checkmark in a selected row.
|
116
|
-
.ms-Table-rowCheck {
|
117
|
-
background: none;
|
118
|
-
|
119
|
-
// Show the checkbox.
|
120
|
-
&::before {
|
121
|
-
display: block;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
}
|
125
|
-
}
|
126
|
-
}
|
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
|
+
// Data table styles
|
11
|
+
|
12
|
+
.ms-Table {
|
13
|
+
@include ms-baseFont;
|
14
|
+
display: table;
|
15
|
+
width: 100%;
|
16
|
+
border-collapse: collapse;
|
17
|
+
}
|
18
|
+
|
19
|
+
// makes the table cells not expand with the content, keeping the table cells at a fixed size
|
20
|
+
.ms-Table--fixed {
|
21
|
+
table-layout: fixed;
|
22
|
+
}
|
23
|
+
|
24
|
+
.ms-Table tr,
|
25
|
+
.ms-Table-row {
|
26
|
+
display: table-row;
|
27
|
+
line-height: 30px;
|
28
|
+
font-weight: $ms-font-weight-semilight;
|
29
|
+
font-size: $ms-font-size-s;
|
30
|
+
color: $ms-color-neutralPrimary;
|
31
|
+
|
32
|
+
// Rows can be selected.
|
33
|
+
&.is-selected {
|
34
|
+
background-color: $ms-color-themeLight;
|
35
|
+
|
36
|
+
// A checkmark in a selected row.
|
37
|
+
.ms-Table-rowCheck {
|
38
|
+
background-color: $ms-color-themePrimary;
|
39
|
+
|
40
|
+
// Hide the checkbox.
|
41
|
+
&::before {
|
42
|
+
display: none;
|
43
|
+
}
|
44
|
+
|
45
|
+
// But show the mark.
|
46
|
+
&::after {
|
47
|
+
@include ms-Icon--CheckboxComposite;
|
48
|
+
color: $ms-color-white;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.ms-Table th,
|
55
|
+
.ms-Table td,
|
56
|
+
.ms-Table-cell {
|
57
|
+
display: table-cell;
|
58
|
+
padding: 0 10px;
|
59
|
+
}
|
60
|
+
|
61
|
+
// Style the first row as a header.
|
62
|
+
.ms-Table thead th,
|
63
|
+
.ms-Table-head {
|
64
|
+
font-weight: $ms-font-weight-semilight;
|
65
|
+
font-size: $ms-font-size-xs;
|
66
|
+
color: $ms-color-neutralSecondary;
|
67
|
+
}
|
68
|
+
|
69
|
+
.ms-Table thead,
|
70
|
+
.ms-Table-head {
|
71
|
+
td,
|
72
|
+
th,
|
73
|
+
.ms-Table-cell,
|
74
|
+
.ms-Table-rowCheck {
|
75
|
+
font-weight: normal;
|
76
|
+
text-align: left;
|
77
|
+
border-bottom: 1px solid $ms-color-neutralLight;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
// On selectable tables, each row has a checkbox.
|
82
|
+
.ms-Table-rowCheck {
|
83
|
+
display: table-cell;
|
84
|
+
width: 20px;
|
85
|
+
position: relative;
|
86
|
+
padding: 0;
|
87
|
+
|
88
|
+
// Empty checkbox.
|
89
|
+
&::after {
|
90
|
+
@include ms-Icon;
|
91
|
+
@include ms-Icon--Checkbox;
|
92
|
+
color: $ms-color-neutralTertiary;
|
93
|
+
font-size: 12px;
|
94
|
+
position: absolute;
|
95
|
+
left: 4px;
|
96
|
+
top: 1px;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
// A table with selectable rows
|
101
|
+
.ms-Table--selectable {
|
102
|
+
tr:hover,
|
103
|
+
.ms-Table-row:hover {
|
104
|
+
background-color: $ms-color-neutralLighter;
|
105
|
+
cursor: pointer;
|
106
|
+
outline: 1px solid transparent;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
// All high contrast styling rules
|
111
|
+
@media screen and (-ms-high-contrast: active) {
|
112
|
+
.ms-Table-row {
|
113
|
+
// Rows can be selected.
|
114
|
+
&.is-selected {
|
115
|
+
// A checkmark in a selected row.
|
116
|
+
.ms-Table-rowCheck {
|
117
|
+
background: none;
|
118
|
+
|
119
|
+
// Show the checkbox.
|
120
|
+
&::before {
|
121
|
+
display: block;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
@@ -1,235 +1,235 @@
|
|
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
|
-
@import '../Label/Label';
|
8
|
-
|
9
|
-
//
|
10
|
-
// Office UI Fabric
|
11
|
-
// --------------------------------------------------
|
12
|
-
// Single line (input) and multiline (textarea) form field styles
|
13
|
-
|
14
|
-
.ms-TextField {
|
15
|
-
@include ms-baseFont;
|
16
|
-
@include ms-u-normalize;
|
17
|
-
color: $ms-color-neutralPrimary;
|
18
|
-
font-size: $ms-font-size-m;
|
19
|
-
font-weight: $ms-font-weight-regular;
|
20
|
-
margin-bottom: 8px;
|
21
|
-
|
22
|
-
.ms-Label {
|
23
|
-
font-size: $ms-font-size-m;
|
24
|
-
font-weight: $ms-font-weight-semibold;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
//= State: A disabled textfield
|
29
|
-
.ms-TextField.is-disabled {
|
30
|
-
.ms-TextField-field {
|
31
|
-
background-color: $ms-color-neutralLighter;
|
32
|
-
border-color: $ms-color-neutralLighter;
|
33
|
-
pointer-events: none;
|
34
|
-
cursor: default;
|
35
|
-
}
|
36
|
-
|
37
|
-
@include input-placeholder {
|
38
|
-
color: $ms-color-neutralTertiary;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
|
42
|
-
//= State: A required textfield
|
43
|
-
.ms-TextField.is-required {
|
44
|
-
.ms-Label {
|
45
|
-
@include ms-Label-is-required
|
46
|
-
}
|
47
|
-
|
48
|
-
@include input-placeholder {
|
49
|
-
@include ms-Label-is-required
|
50
|
-
}
|
51
|
-
}
|
52
|
-
|
53
|
-
//= State: An active textfield
|
54
|
-
.ms-TextField.is-active {
|
55
|
-
border-color: $ms-color-themePrimary;
|
56
|
-
}
|
57
|
-
|
58
|
-
.ms-TextField-field {
|
59
|
-
@include ms-u-normalize;
|
60
|
-
border: 1px solid $ms-color-neutralTertiaryAlt;
|
61
|
-
border-radius: 0;
|
62
|
-
font-weight: $ms-font-weight-semilight;
|
63
|
-
font-size: $ms-font-size-m;
|
64
|
-
color: $ms-color-neutralPrimary;
|
65
|
-
height: 32px;
|
66
|
-
padding: 6px 12px 7px;
|
67
|
-
width: 100%;
|
68
|
-
min-width: 180px;
|
69
|
-
outline: 0;
|
70
|
-
text-overflow: ellipsis;
|
71
|
-
|
72
|
-
&:hover {
|
73
|
-
border-color: $ms-color-neutralSecondaryAlt;
|
74
|
-
}
|
75
|
-
|
76
|
-
&:focus {
|
77
|
-
border-color: $ms-color-themePrimary;
|
78
|
-
}
|
79
|
-
|
80
|
-
&:hover,
|
81
|
-
&:focus {
|
82
|
-
@media screen and (-ms-high-contrast: active) {
|
83
|
-
border-color: $ms-color-contrastBlackSelected;
|
84
|
-
}
|
85
|
-
|
86
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
87
|
-
border-color: $ms-color-contrastWhiteSelected;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
|
91
|
-
&[disabled] {
|
92
|
-
background-color: $ms-color-neutralLighter;
|
93
|
-
border-color: $ms-color-neutralLighter;
|
94
|
-
pointer-events: none;
|
95
|
-
cursor: default;
|
96
|
-
}
|
97
|
-
|
98
|
-
@include input-placeholder {
|
99
|
-
color: $ms-color-neutralSecondary;
|
100
|
-
}
|
101
|
-
}
|
102
|
-
|
103
|
-
.ms-TextField-description {
|
104
|
-
color: $ms-color-neutralSecondaryAlt;
|
105
|
-
font-size: $ms-font-size-xs;
|
106
|
-
}
|
107
|
-
|
108
|
-
|
109
|
-
//== Modifier: Single line (default), placeholder label
|
110
|
-
//
|
111
|
-
.ms-TextField.ms-TextField--placeholder {
|
112
|
-
position: relative;
|
113
|
-
background-color: $ms-color-white;
|
114
|
-
|
115
|
-
.ms-TextField-field {
|
116
|
-
position: relative;
|
117
|
-
background-color: transparent;
|
118
|
-
z-index: $ms-zIndex-middle;
|
119
|
-
}
|
120
|
-
|
121
|
-
.ms-Label {
|
122
|
-
position: absolute;
|
123
|
-
font-weight: $ms-font-weight-semilight;
|
124
|
-
font-size: $ms-font-size-m;
|
125
|
-
color: $ms-color-neutralSecondary;
|
126
|
-
padding: 6px 12px 7px;
|
127
|
-
pointer-events: none;
|
128
|
-
z-index: $ms-zIndex-back;
|
129
|
-
}
|
130
|
-
|
131
|
-
&.is-disabled {
|
132
|
-
color: $ms-color-neutralTertiary;
|
133
|
-
|
134
|
-
.ms-Label {
|
135
|
-
@include ms-Label-is-disabled;
|
136
|
-
}
|
137
|
-
}
|
138
|
-
}
|
139
|
-
|
140
|
-
|
141
|
-
//== Modifier: Single line (default), underlined
|
142
|
-
//
|
143
|
-
.ms-TextField.ms-TextField--underlined {
|
144
|
-
border-bottom: 1px solid $ms-color-neutralTertiaryAlt;
|
145
|
-
display: table;
|
146
|
-
width: 100%;
|
147
|
-
min-width: 180px;
|
148
|
-
|
149
|
-
&:hover {
|
150
|
-
border-color: $ms-color-neutralSecondaryAlt;
|
151
|
-
|
152
|
-
@media screen and (-ms-high-contrast: active) {
|
153
|
-
border-color: $ms-color-contrastBlackSelected;
|
154
|
-
}
|
155
|
-
|
156
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
157
|
-
border-color: $ms-color-contrastWhiteSelected;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
|
161
|
-
&:active,
|
162
|
-
&:focus {
|
163
|
-
border-color: $ms-color-themePrimary;
|
164
|
-
}
|
165
|
-
|
166
|
-
.ms-Label {
|
167
|
-
font-size: $ms-font-size-m;
|
168
|
-
margin-right: 8px;
|
169
|
-
display: table-cell;
|
170
|
-
vertical-align: top;
|
171
|
-
padding-left: 12px;
|
172
|
-
padding-top: 9px;
|
173
|
-
height: 32px;
|
174
|
-
width: 1%;
|
175
|
-
white-space: nowrap;
|
176
|
-
}
|
177
|
-
|
178
|
-
.ms-TextField-field {
|
179
|
-
border: 0;
|
180
|
-
float: left;
|
181
|
-
display: table-cell;
|
182
|
-
text-align: left;
|
183
|
-
padding-top: 8px;
|
184
|
-
padding-bottom: 3px;
|
185
|
-
|
186
|
-
&:active,
|
187
|
-
&:focus,
|
188
|
-
&:hover {
|
189
|
-
outline: 0;
|
190
|
-
}
|
191
|
-
}
|
192
|
-
|
193
|
-
&.is-disabled {
|
194
|
-
border-bottom-color: $ms-color-neutralLight;
|
195
|
-
|
196
|
-
.ms-Label {
|
197
|
-
@include ms-Label-is-disabled;
|
198
|
-
}
|
199
|
-
|
200
|
-
.ms-TextField-field {
|
201
|
-
background-color: transparent;
|
202
|
-
color: $ms-color-neutralTertiary;
|
203
|
-
}
|
204
|
-
}
|
205
|
-
|
206
|
-
&.is-active {
|
207
|
-
border-color: $ms-color-themePrimary;
|
208
|
-
|
209
|
-
@media screen and (-ms-high-contrast: active) {
|
210
|
-
border-color: $ms-color-contrastBlackSelected;
|
211
|
-
}
|
212
|
-
|
213
|
-
@media screen and (-ms-high-contrast: black-on-white) {
|
214
|
-
border-color: $ms-color-contrastWhiteSelected;
|
215
|
-
}
|
216
|
-
}
|
217
|
-
}
|
218
|
-
|
219
|
-
|
220
|
-
//== Modifier: Multiline textfield
|
221
|
-
//
|
222
|
-
.ms-TextField.ms-TextField--multiline {
|
223
|
-
.ms-TextField-field {
|
224
|
-
@include ms-baseFont;
|
225
|
-
color: $ms-color-neutralSecondary;
|
226
|
-
font-family: $ms-font-family-base;
|
227
|
-
font-size: $ms-font-size-m;
|
228
|
-
font-weight: $ms-font-weight-regular;
|
229
|
-
line-height: 17px;
|
230
|
-
min-height: 60px;
|
231
|
-
min-width: 260px;
|
232
|
-
padding-top: 6px;
|
233
|
-
overflow: auto;
|
234
|
-
}
|
235
|
-
}
|
5
|
+
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information.
|
6
|
+
|
7
|
+
@import '../Label/Label';
|
8
|
+
|
9
|
+
//
|
10
|
+
// Office UI Fabric
|
11
|
+
// --------------------------------------------------
|
12
|
+
// Single line (input) and multiline (textarea) form field styles
|
13
|
+
|
14
|
+
.ms-TextField {
|
15
|
+
@include ms-baseFont;
|
16
|
+
@include ms-u-normalize;
|
17
|
+
color: $ms-color-neutralPrimary;
|
18
|
+
font-size: $ms-font-size-m;
|
19
|
+
font-weight: $ms-font-weight-regular;
|
20
|
+
margin-bottom: 8px;
|
21
|
+
|
22
|
+
.ms-Label {
|
23
|
+
font-size: $ms-font-size-m;
|
24
|
+
font-weight: $ms-font-weight-semibold;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
//= State: A disabled textfield
|
29
|
+
.ms-TextField.is-disabled {
|
30
|
+
.ms-TextField-field {
|
31
|
+
background-color: $ms-color-neutralLighter;
|
32
|
+
border-color: $ms-color-neutralLighter;
|
33
|
+
pointer-events: none;
|
34
|
+
cursor: default;
|
35
|
+
}
|
36
|
+
|
37
|
+
@include input-placeholder {
|
38
|
+
color: $ms-color-neutralTertiary;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
//= State: A required textfield
|
43
|
+
.ms-TextField.is-required {
|
44
|
+
.ms-Label {
|
45
|
+
@include ms-Label-is-required
|
46
|
+
}
|
47
|
+
|
48
|
+
@include input-placeholder {
|
49
|
+
@include ms-Label-is-required
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
//= State: An active textfield
|
54
|
+
.ms-TextField.is-active {
|
55
|
+
border-color: $ms-color-themePrimary;
|
56
|
+
}
|
57
|
+
|
58
|
+
.ms-TextField-field {
|
59
|
+
@include ms-u-normalize;
|
60
|
+
border: 1px solid $ms-color-neutralTertiaryAlt;
|
61
|
+
border-radius: 0;
|
62
|
+
font-weight: $ms-font-weight-semilight;
|
63
|
+
font-size: $ms-font-size-m;
|
64
|
+
color: $ms-color-neutralPrimary;
|
65
|
+
height: 32px;
|
66
|
+
padding: 6px 12px 7px;
|
67
|
+
width: 100%;
|
68
|
+
min-width: 180px;
|
69
|
+
outline: 0;
|
70
|
+
text-overflow: ellipsis;
|
71
|
+
|
72
|
+
&:hover {
|
73
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
74
|
+
}
|
75
|
+
|
76
|
+
&:focus {
|
77
|
+
border-color: $ms-color-themePrimary;
|
78
|
+
}
|
79
|
+
|
80
|
+
&:hover,
|
81
|
+
&:focus {
|
82
|
+
@media screen and (-ms-high-contrast: active) {
|
83
|
+
border-color: $ms-color-contrastBlackSelected;
|
84
|
+
}
|
85
|
+
|
86
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
87
|
+
border-color: $ms-color-contrastWhiteSelected;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
&[disabled] {
|
92
|
+
background-color: $ms-color-neutralLighter;
|
93
|
+
border-color: $ms-color-neutralLighter;
|
94
|
+
pointer-events: none;
|
95
|
+
cursor: default;
|
96
|
+
}
|
97
|
+
|
98
|
+
@include input-placeholder {
|
99
|
+
color: $ms-color-neutralSecondary;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.ms-TextField-description {
|
104
|
+
color: $ms-color-neutralSecondaryAlt;
|
105
|
+
font-size: $ms-font-size-xs;
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
//== Modifier: Single line (default), placeholder label
|
110
|
+
//
|
111
|
+
.ms-TextField.ms-TextField--placeholder {
|
112
|
+
position: relative;
|
113
|
+
background-color: $ms-color-white;
|
114
|
+
|
115
|
+
.ms-TextField-field {
|
116
|
+
position: relative;
|
117
|
+
background-color: transparent;
|
118
|
+
z-index: $ms-zIndex-middle;
|
119
|
+
}
|
120
|
+
|
121
|
+
.ms-Label {
|
122
|
+
position: absolute;
|
123
|
+
font-weight: $ms-font-weight-semilight;
|
124
|
+
font-size: $ms-font-size-m;
|
125
|
+
color: $ms-color-neutralSecondary;
|
126
|
+
padding: 6px 12px 7px;
|
127
|
+
pointer-events: none;
|
128
|
+
z-index: $ms-zIndex-back;
|
129
|
+
}
|
130
|
+
|
131
|
+
&.is-disabled {
|
132
|
+
color: $ms-color-neutralTertiary;
|
133
|
+
|
134
|
+
.ms-Label {
|
135
|
+
@include ms-Label-is-disabled;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
|
141
|
+
//== Modifier: Single line (default), underlined
|
142
|
+
//
|
143
|
+
.ms-TextField.ms-TextField--underlined {
|
144
|
+
border-bottom: 1px solid $ms-color-neutralTertiaryAlt;
|
145
|
+
display: table;
|
146
|
+
width: 100%;
|
147
|
+
min-width: 180px;
|
148
|
+
|
149
|
+
&:hover {
|
150
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
151
|
+
|
152
|
+
@media screen and (-ms-high-contrast: active) {
|
153
|
+
border-color: $ms-color-contrastBlackSelected;
|
154
|
+
}
|
155
|
+
|
156
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
157
|
+
border-color: $ms-color-contrastWhiteSelected;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
&:active,
|
162
|
+
&:focus {
|
163
|
+
border-color: $ms-color-themePrimary;
|
164
|
+
}
|
165
|
+
|
166
|
+
.ms-Label {
|
167
|
+
font-size: $ms-font-size-m;
|
168
|
+
margin-right: 8px;
|
169
|
+
display: table-cell;
|
170
|
+
vertical-align: top;
|
171
|
+
padding-left: 12px;
|
172
|
+
padding-top: 9px;
|
173
|
+
height: 32px;
|
174
|
+
width: 1%;
|
175
|
+
white-space: nowrap;
|
176
|
+
}
|
177
|
+
|
178
|
+
.ms-TextField-field {
|
179
|
+
border: 0;
|
180
|
+
float: left;
|
181
|
+
display: table-cell;
|
182
|
+
text-align: left;
|
183
|
+
padding-top: 8px;
|
184
|
+
padding-bottom: 3px;
|
185
|
+
|
186
|
+
&:active,
|
187
|
+
&:focus,
|
188
|
+
&:hover {
|
189
|
+
outline: 0;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
&.is-disabled {
|
194
|
+
border-bottom-color: $ms-color-neutralLight;
|
195
|
+
|
196
|
+
.ms-Label {
|
197
|
+
@include ms-Label-is-disabled;
|
198
|
+
}
|
199
|
+
|
200
|
+
.ms-TextField-field {
|
201
|
+
background-color: transparent;
|
202
|
+
color: $ms-color-neutralTertiary;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
&.is-active {
|
207
|
+
border-color: $ms-color-themePrimary;
|
208
|
+
|
209
|
+
@media screen and (-ms-high-contrast: active) {
|
210
|
+
border-color: $ms-color-contrastBlackSelected;
|
211
|
+
}
|
212
|
+
|
213
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
214
|
+
border-color: $ms-color-contrastWhiteSelected;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
//== Modifier: Multiline textfield
|
221
|
+
//
|
222
|
+
.ms-TextField.ms-TextField--multiline {
|
223
|
+
.ms-TextField-field {
|
224
|
+
@include ms-baseFont;
|
225
|
+
color: $ms-color-neutralSecondary;
|
226
|
+
font-family: $ms-font-family-base;
|
227
|
+
font-size: $ms-font-size-m;
|
228
|
+
font-weight: $ms-font-weight-regular;
|
229
|
+
line-height: 17px;
|
230
|
+
min-height: 60px;
|
231
|
+
min-width: 260px;
|
232
|
+
padding-top: 6px;
|
233
|
+
overflow: auto;
|
234
|
+
}
|
235
|
+
}
|