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,239 @@
|
|
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
|
+
// Dropdown styles
|
7
|
+
|
8
|
+
// Mixin for high contrast mode link states
|
9
|
+
@mixin highContrastListItemState {
|
10
|
+
@media screen and (-ms-high-contrast: active) {
|
11
|
+
background-color: $ms-color-contrastBlackSelected;
|
12
|
+
border-color: $ms-color-contrastBlackSelected;
|
13
|
+
color: $ms-color-black;
|
14
|
+
|
15
|
+
&:focus {
|
16
|
+
border-color: $ms-color-black;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
21
|
+
background-color: $ms-color-contrastWhiteSelected;
|
22
|
+
border-color: $ms-color-contrastWhiteSelected;
|
23
|
+
color: $ms-color-white;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.ms-Dropdown {
|
28
|
+
@include ms-baseFont;
|
29
|
+
@include ms-u-normalize;
|
30
|
+
color: $ms-color-neutralPrimary;
|
31
|
+
|
32
|
+
font-size: $ms-font-size-m;
|
33
|
+
font-weight: $ms-font-weight-regular;
|
34
|
+
margin-bottom: 10px;
|
35
|
+
position: relative;
|
36
|
+
outline: 0;
|
37
|
+
|
38
|
+
&:hover,
|
39
|
+
&:focus,
|
40
|
+
&:active {
|
41
|
+
.ms-Dropdown-title,
|
42
|
+
.ms-Dropdown-caretDown {
|
43
|
+
color: $ms-color-black;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
&:hover,
|
48
|
+
&:active {
|
49
|
+
.ms-Dropdown-title {
|
50
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
&:focus {
|
55
|
+
.ms-Dropdown-title {
|
56
|
+
border-color: $ms-color-themePrimary;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.ms-Label {
|
61
|
+
display: inline-block;
|
62
|
+
margin-bottom: 8px;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
//== State: A disabled dropdown
|
67
|
+
.ms-Dropdown.is-disabled {
|
68
|
+
.ms-Dropdown-title {
|
69
|
+
background-color: $ms-color-neutralLighter;
|
70
|
+
border-color: $ms-color-neutralLighter;
|
71
|
+
color: $ms-color-neutralTertiary;
|
72
|
+
cursor: default;
|
73
|
+
|
74
|
+
@media screen and (-ms-high-contrast: active) {
|
75
|
+
border-color: $ms-color-contrastBlackDisabled;
|
76
|
+
color: $ms-color-contrastBlackDisabled;
|
77
|
+
}
|
78
|
+
|
79
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
80
|
+
border-color: $ms-color-contrastWhiteDisabled;
|
81
|
+
color: $ms-color-contrastWhiteDisabled;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.ms-Dropdown-caretDown {
|
86
|
+
color: $ms-color-neutralTertiary;
|
87
|
+
|
88
|
+
@media screen and (-ms-high-contrast: active) {
|
89
|
+
color: $ms-color-contrastBlackDisabled;
|
90
|
+
}
|
91
|
+
|
92
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
93
|
+
color: $ms-color-contrastWhiteDisabled;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
// When the dropdown is opened
|
99
|
+
.ms-Dropdown.is-open .ms-Dropdown-items {
|
100
|
+
display: block;
|
101
|
+
position: absolute;
|
102
|
+
}
|
103
|
+
|
104
|
+
// Adjustments for when the dropdown is open as a panel on small screens
|
105
|
+
.ms-Panel .ms-Dropdown-items {
|
106
|
+
box-shadow: none;
|
107
|
+
overflow-y: auto;
|
108
|
+
padding-top: 4px;
|
109
|
+
max-height: 100%;
|
110
|
+
|
111
|
+
.ms-Dropdown-item {
|
112
|
+
padding: 7px 16px;
|
113
|
+
}
|
114
|
+
|
115
|
+
&::before {
|
116
|
+
content: none;
|
117
|
+
border: 0;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
// Hide the original dropdown
|
122
|
+
.ms-Dropdown-select {
|
123
|
+
display: none;
|
124
|
+
}
|
125
|
+
|
126
|
+
.ms-Dropdown-caretDown {
|
127
|
+
color: $ms-color-neutralDark;
|
128
|
+
font-size: $ms-icon-size-s;
|
129
|
+
position: absolute;
|
130
|
+
right: 13px;
|
131
|
+
bottom: 9px;
|
132
|
+
z-index: 1;
|
133
|
+
pointer-events: none;
|
134
|
+
}
|
135
|
+
|
136
|
+
// Style the new, replacement component
|
137
|
+
.ms-Dropdown-title {
|
138
|
+
@include ms-u-normalize;
|
139
|
+
background: $ms-color-white;
|
140
|
+
border: 1px solid $ms-color-neutralTertiaryAlt;
|
141
|
+
cursor: pointer;
|
142
|
+
display: block;
|
143
|
+
height: 32px;
|
144
|
+
padding: 5px 32px 0 10px;
|
145
|
+
position: relative;
|
146
|
+
overflow: hidden;
|
147
|
+
}
|
148
|
+
|
149
|
+
// Container for the dropdown items, displayed as a panel on small screens.
|
150
|
+
.ms-Dropdown-items {
|
151
|
+
@include ms-u-normalize;
|
152
|
+
@include drop-shadow;
|
153
|
+
background-color: $ms-color-white;
|
154
|
+
display: none;
|
155
|
+
list-style-type: none;
|
156
|
+
position: absolute;
|
157
|
+
width: 100%;
|
158
|
+
max-height: 200px;
|
159
|
+
z-index: ($ms-zIndex-Dropdown + $ms-zIndex-back);
|
160
|
+
overflow-y: scroll;
|
161
|
+
|
162
|
+
top: auto;
|
163
|
+
right: auto;
|
164
|
+
bottom: auto;
|
165
|
+
left: auto;
|
166
|
+
max-width: 100%;
|
167
|
+
|
168
|
+
&::before {
|
169
|
+
content: '';
|
170
|
+
position: absolute;
|
171
|
+
z-index: -1;
|
172
|
+
top: 0;
|
173
|
+
left: 0;
|
174
|
+
right: 0;
|
175
|
+
bottom: 0;
|
176
|
+
border: 1px solid $ms-color-neutralLight;
|
177
|
+
}
|
178
|
+
|
179
|
+
@media screen and (-ms-high-contrast: active) {
|
180
|
+
border: 1px solid $ms-color-white;
|
181
|
+
}
|
182
|
+
|
183
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
184
|
+
border: 1px solid $ms-color-black;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
.ms-Dropdown-item {
|
189
|
+
box-sizing: border-box;
|
190
|
+
cursor: pointer;
|
191
|
+
display: block;
|
192
|
+
height: 36px;
|
193
|
+
padding: 7px 10px;
|
194
|
+
position: relative;
|
195
|
+
border: 1px solid transparent;
|
196
|
+
white-space: nowrap;
|
197
|
+
|
198
|
+
@media screen and (-ms-high-contrast: active) {
|
199
|
+
border-color: $ms-color-black;
|
200
|
+
}
|
201
|
+
|
202
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
203
|
+
border-color: $ms-color-white;
|
204
|
+
}
|
205
|
+
|
206
|
+
&:hover {
|
207
|
+
background-color: $ms-color-neutralLight;
|
208
|
+
color: $ms-color-black;
|
209
|
+
|
210
|
+
@include highContrastListItemState;
|
211
|
+
}
|
212
|
+
|
213
|
+
&:active {
|
214
|
+
background-color: $ms-color-neutralLight;
|
215
|
+
border-color: $ms-color-themePrimary;
|
216
|
+
color: $ms-color-black;
|
217
|
+
}
|
218
|
+
|
219
|
+
&.is-disabled {
|
220
|
+
background: $ms-color-white;
|
221
|
+
color: $ms-color-neutralTertiary;
|
222
|
+
cursor: default;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
//== State: A selected dropdown item
|
227
|
+
// Note: .ms-Dropdown-item--selected is deprecated and will be removed in a future version.
|
228
|
+
// Use .is-selected instead.
|
229
|
+
.ms-Dropdown-item.is-selected,
|
230
|
+
.ms-Dropdown-item.ms-Dropdown-item--selected {
|
231
|
+
background-color: $ms-color-themeLight;
|
232
|
+
color: $ms-color-black;
|
233
|
+
|
234
|
+
&:hover {
|
235
|
+
background-color: $ms-color-themeLight;
|
236
|
+
}
|
237
|
+
|
238
|
+
@include highContrastListItemState;
|
239
|
+
}
|
@@ -0,0 +1,103 @@
|
|
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
|
+
// FacePile styles
|
7
|
+
|
8
|
+
.ms-FacePile {
|
9
|
+
@include ms-baseFont;
|
10
|
+
position: relative;
|
11
|
+
height: 32px;
|
12
|
+
width: auto;
|
13
|
+
|
14
|
+
.ms-FacePile-personaCardHost {
|
15
|
+
display: none;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.ms-FacePile-addButton {
|
20
|
+
@include button-reset;
|
21
|
+
position: relative;
|
22
|
+
height: 32px;
|
23
|
+
width: 32px;
|
24
|
+
line-height: 32px;
|
25
|
+
text-align: center;
|
26
|
+
float: left;
|
27
|
+
padding: 0;
|
28
|
+
margin-right: 4px;
|
29
|
+
outline: transparent;
|
30
|
+
border-radius: 50%;
|
31
|
+
vertical-align: top;
|
32
|
+
|
33
|
+
.ms-Persona-presence,
|
34
|
+
.ms-Persona-details {
|
35
|
+
display: none;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.ms-FacePile-addButton.ms-FacePile-addButton--addPerson {
|
40
|
+
background-color: $ms-color-themePrimary;
|
41
|
+
color: $ms-color-white;
|
42
|
+
font-size: $ms-font-size-l - 1;
|
43
|
+
|
44
|
+
&:hover,
|
45
|
+
&:focus {
|
46
|
+
background-color: $ms-color-themeDark;
|
47
|
+
}
|
48
|
+
|
49
|
+
&:active {
|
50
|
+
background-color: $ms-color-themeDarker;
|
51
|
+
}
|
52
|
+
|
53
|
+
&:disabled {
|
54
|
+
background-color: $ms-color-neutralTertiaryAlt;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.ms-FacePile-addButton.ms-FacePile-addButton--overflow {
|
59
|
+
background-color: $ms-color-neutralLight;
|
60
|
+
color: $ms-color-neutralSecondary;
|
61
|
+
display: none;
|
62
|
+
|
63
|
+
&.is-active {
|
64
|
+
display: block;
|
65
|
+
}
|
66
|
+
|
67
|
+
&:hover {
|
68
|
+
color: $ms-color-neutralDark;
|
69
|
+
}
|
70
|
+
|
71
|
+
&:disabled {
|
72
|
+
color: $ms-color-neutralTertiaryAlt;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.ms-FacePile-addPersonIcon {
|
77
|
+
position: relative;
|
78
|
+
top: -1px;
|
79
|
+
}
|
80
|
+
|
81
|
+
.ms-FacePile-overflowText {
|
82
|
+
font-size: $ms-font-size-m;
|
83
|
+
}
|
84
|
+
|
85
|
+
//== Panels
|
86
|
+
// Overflow panel - only show member list
|
87
|
+
.ms-FacePile-panel.ms-FacePile-panel--overflow {
|
88
|
+
.ms-Panel-headerText,
|
89
|
+
.ms-PeoplePicker-searchBox,
|
90
|
+
.ms-PeoplePicker-results,
|
91
|
+
.ms-PeoplePicker-resultAction {
|
92
|
+
display: none;
|
93
|
+
}
|
94
|
+
|
95
|
+
.ms-PeoplePicker-selectedHeader {
|
96
|
+
font-weight: $ms-font-weight-light;
|
97
|
+
font-size: $ms-font-size-xl;
|
98
|
+
color: $ms-color-neutralPrimary;
|
99
|
+
line-height: 82px;
|
100
|
+
height: 74px;
|
101
|
+
text-transform: none;
|
102
|
+
}
|
103
|
+
}
|
@@ -0,0 +1,36 @@
|
|
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
|
+
// Form field label styles
|
7
|
+
|
8
|
+
@mixin ms-Label-is-disabled {
|
9
|
+
color: $ms-color-neutralTertiary;
|
10
|
+
}
|
11
|
+
|
12
|
+
@mixin ms-Label-is-required {
|
13
|
+
&::after {
|
14
|
+
content: ' *';
|
15
|
+
color: $ms-color-error;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.ms-Label {
|
20
|
+
@include ms-baseFont;
|
21
|
+
@include ms-u-normalize;
|
22
|
+
color: $ms-color-neutralPrimary;
|
23
|
+
font-size: $ms-font-size-s;
|
24
|
+
font-weight: $ms-font-weight-regular;
|
25
|
+
box-sizing: border-box;
|
26
|
+
display: block;
|
27
|
+
padding: 5px 0;
|
28
|
+
|
29
|
+
&.is-required {
|
30
|
+
@include ms-Label-is-required;
|
31
|
+
}
|
32
|
+
|
33
|
+
&.is-disabled {
|
34
|
+
@include ms-Label-is-disabled;
|
35
|
+
}
|
36
|
+
}
|
@@ -0,0 +1,30 @@
|
|
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
|
+
// Link (anchor) styles
|
7
|
+
|
8
|
+
|
9
|
+
@mixin ms-Link {
|
10
|
+
@include ms-baseFont;
|
11
|
+
font-size: $ms-font-size-m;
|
12
|
+
font-weight: $ms-font-weight-regular;
|
13
|
+
color: $ms-color-themePrimary;
|
14
|
+
text-decoration: none;
|
15
|
+
cursor: pointer;
|
16
|
+
outline: none;
|
17
|
+
|
18
|
+
&:hover,
|
19
|
+
&:focus {
|
20
|
+
color: $ms-color-themeDarker;
|
21
|
+
}
|
22
|
+
|
23
|
+
&:active {
|
24
|
+
color: $ms-color-themePrimary;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.ms-Link {
|
29
|
+
@include ms-Link;
|
30
|
+
}
|
@@ -0,0 +1,15 @@
|
|
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
|
+
// List styles
|
7
|
+
|
8
|
+
.ms-List {
|
9
|
+
@include ms-baseFont;
|
10
|
+
@include ms-u-normalize;
|
11
|
+
color: $ms-color-neutralPrimary;
|
12
|
+
font-size: $ms-font-size-m;
|
13
|
+
font-weight: $ms-font-weight-regular;
|
14
|
+
list-style-type: none;
|
15
|
+
}
|
@@ -0,0 +1,236 @@
|
|
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
|
+
// List item styles
|
7
|
+
|
8
|
+
|
9
|
+
.ms-ListItem {
|
10
|
+
@include ms-baseFont;
|
11
|
+
@include ms-u-normalize;
|
12
|
+
@include ms-u-clearfix;
|
13
|
+
color: $ms-color-neutralPrimary;
|
14
|
+
font-size: $ms-font-size-m;
|
15
|
+
font-weight: $ms-font-weight-regular;
|
16
|
+
padding: 9px 28px 3px;
|
17
|
+
position: relative;
|
18
|
+
display: block;
|
19
|
+
}
|
20
|
+
|
21
|
+
.ms-ListItem-primaryText,
|
22
|
+
.ms-ListItem-secondaryText,
|
23
|
+
.ms-ListItem-tertiaryText {
|
24
|
+
@include noWrap;
|
25
|
+
display: block;
|
26
|
+
}
|
27
|
+
|
28
|
+
.ms-ListItem-primaryText {
|
29
|
+
color: $ms-color-neutralDark;
|
30
|
+
font-weight: $ms-font-weight-semilight;
|
31
|
+
font-size: $ms-font-size-xl;
|
32
|
+
padding-right: 80px; // Prevent overlap with up to three actions.
|
33
|
+
position: relative;
|
34
|
+
top: -4px;
|
35
|
+
}
|
36
|
+
|
37
|
+
.ms-ListItem-secondaryText {
|
38
|
+
color: $ms-color-neutralPrimary;
|
39
|
+
font-weight: $ms-font-weight-regular;
|
40
|
+
font-size: $ms-font-size-m;
|
41
|
+
line-height: 25px;
|
42
|
+
position: relative;
|
43
|
+
top: -7px;
|
44
|
+
padding-right: 30px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.ms-ListItem-tertiaryText {
|
48
|
+
color: $ms-color-neutralSecondaryAlt;
|
49
|
+
font-weight: $ms-font-weight-semilight;
|
50
|
+
font-size: $ms-font-size-m;
|
51
|
+
position: relative;
|
52
|
+
top: -9px;
|
53
|
+
margin-bottom: -4px;
|
54
|
+
padding-right: 30px;
|
55
|
+
}
|
56
|
+
|
57
|
+
.ms-ListItem-metaText {
|
58
|
+
color: $ms-color-neutralPrimary;
|
59
|
+
font-weight: $ms-font-weight-semilight;
|
60
|
+
font-size: $ms-font-size-xs;
|
61
|
+
position: absolute;
|
62
|
+
right: 30px;
|
63
|
+
top: 39px;
|
64
|
+
}
|
65
|
+
|
66
|
+
.ms-ListItem-image {
|
67
|
+
float: left;
|
68
|
+
height: 70px;
|
69
|
+
margin-left: -8px; // Images sit closer to the edge than text.
|
70
|
+
margin-right: 10px;
|
71
|
+
width: 70px;
|
72
|
+
background-color: $ms-color-neutralPrimary;
|
73
|
+
}
|
74
|
+
|
75
|
+
.ms-ListItem-selectionTarget {
|
76
|
+
display: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
.ms-ListItem-actions {
|
80
|
+
max-width: 80px; // Up to three actions.
|
81
|
+
position: absolute;
|
82
|
+
right: 30px;
|
83
|
+
text-align: right;
|
84
|
+
top: 10px;
|
85
|
+
}
|
86
|
+
|
87
|
+
.ms-ListItem-action {
|
88
|
+
color: $ms-color-neutralTertiary;
|
89
|
+
display: inline-block;
|
90
|
+
font-size: 15px;
|
91
|
+
position: relative;
|
92
|
+
text-align: center;
|
93
|
+
top: 3px;
|
94
|
+
cursor: pointer;
|
95
|
+
height: 16px;
|
96
|
+
width: 16px;
|
97
|
+
|
98
|
+
.ms-Icon {
|
99
|
+
vertical-align: top;
|
100
|
+
}
|
101
|
+
|
102
|
+
&:hover {
|
103
|
+
color: $ms-color-neutralSecondary;
|
104
|
+
outline: 1px solid transparent;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
//== State: Unread list item
|
110
|
+
//
|
111
|
+
.ms-ListItem.is-unread {
|
112
|
+
border-left: 3px solid $ms-color-themePrimary;
|
113
|
+
padding-left: 27px; // Reduce padding to allow room for border.
|
114
|
+
|
115
|
+
.ms-ListItem-secondaryText,
|
116
|
+
.ms-ListItem-metaText {
|
117
|
+
color: $ms-color-themePrimary;
|
118
|
+
font-weight: $ms-font-weight-semibold;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
|
123
|
+
//== State: Unseen list item
|
124
|
+
//
|
125
|
+
.ms-ListItem.is-unseen {
|
126
|
+
&::after {
|
127
|
+
border-right: 10px solid transparent;
|
128
|
+
border-top: 10px solid $ms-color-themePrimary;
|
129
|
+
left: 0;
|
130
|
+
position: absolute;
|
131
|
+
top: 0;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
//== State: Selectable list item
|
137
|
+
//
|
138
|
+
.ms-ListItem.is-selectable {
|
139
|
+
.ms-ListItem-selectionTarget {
|
140
|
+
display: block;
|
141
|
+
height: 20px;
|
142
|
+
left: 6px;
|
143
|
+
position: absolute;
|
144
|
+
top: 13px;
|
145
|
+
width: 20px;
|
146
|
+
}
|
147
|
+
|
148
|
+
.ms-ListItem-image {
|
149
|
+
margin-left: 0;
|
150
|
+
}
|
151
|
+
|
152
|
+
&:hover {
|
153
|
+
background-color: $ms-color-neutralLight;
|
154
|
+
cursor: pointer;
|
155
|
+
outline: 1px solid transparent;
|
156
|
+
|
157
|
+
// Insert the empty box.
|
158
|
+
&::before {
|
159
|
+
@include ms-Icon;
|
160
|
+
position: absolute;
|
161
|
+
top: 14px;
|
162
|
+
left: 7px;
|
163
|
+
height: 15px;
|
164
|
+
width: 15px;
|
165
|
+
border: 1px solid $ms-color-neutralSecondaryAlt;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
|
171
|
+
//== State: Selected list item
|
172
|
+
//
|
173
|
+
.ms-ListItem.is-selected {
|
174
|
+
// Insert the checkmark.
|
175
|
+
&::before {
|
176
|
+
border: 1px solid transparent;
|
177
|
+
}
|
178
|
+
|
179
|
+
&::before,
|
180
|
+
&:hover::before {
|
181
|
+
@include ms-Icon;
|
182
|
+
content: '\e73A';
|
183
|
+
font-size: $ms-font-size-l;
|
184
|
+
color: $ms-color-neutralSecondaryAlt;
|
185
|
+
position: absolute;
|
186
|
+
top: 23px;
|
187
|
+
left: 7px;
|
188
|
+
border: 0;
|
189
|
+
}
|
190
|
+
|
191
|
+
&:hover {
|
192
|
+
background-color: $ms-color-themeLight;
|
193
|
+
outline: 1px solid transparent;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
//== Modifier: Document list item
|
199
|
+
//
|
200
|
+
.ms-ListItem.ms-ListItem--document {
|
201
|
+
padding: 0;
|
202
|
+
|
203
|
+
// The icon for a file or folder in the items list. This may
|
204
|
+
// be an .ms-Icon or a specific modifier that loads an image.
|
205
|
+
.ms-ListItem-itemIcon {
|
206
|
+
width: 70px;
|
207
|
+
height: 70px;
|
208
|
+
float: left;
|
209
|
+
text-align: center;
|
210
|
+
}
|
211
|
+
|
212
|
+
// If the item icon is an .ms-Icon, position and color it appropriately.
|
213
|
+
.ms-ListItem-itemIcon .ms-Icon {
|
214
|
+
font-size: 38px;
|
215
|
+
line-height: 70px;
|
216
|
+
color: $ms-color-neutralSecondary;
|
217
|
+
}
|
218
|
+
|
219
|
+
// Primary text, typically the name.
|
220
|
+
.ms-ListItem-primaryText {
|
221
|
+
@include noWrap;
|
222
|
+
font-size: $ms-font-size-m;
|
223
|
+
padding-top: 15px;
|
224
|
+
padding-right: 0;
|
225
|
+
position: static;
|
226
|
+
}
|
227
|
+
|
228
|
+
// Secondary text, typically the modified date or some other metadata.
|
229
|
+
.ms-ListItem-secondaryText {
|
230
|
+
@include noWrap;
|
231
|
+
color: $ms-color-neutralSecondary;
|
232
|
+
font-weight: $ms-font-weight-regular;
|
233
|
+
font-size: $ms-font-size-xs;
|
234
|
+
padding-top: 6px;
|
235
|
+
}
|
236
|
+
}
|