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.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE +21 -0
  7. data/README.md +76 -0
  8. data/Rakefile +24 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/bower.json +7 -0
  12. data/lib/office-ui-fabric-js-rails.rb +2 -0
  13. data/lib/office-ui-fabric-js-rails/engine.rb +6 -0
  14. data/lib/office-ui-fabric-js-rails/version.rb +6 -0
  15. data/office-ui-fabric-js-rails.gemspec +36 -0
  16. data/vendor/assets/css/fabric.components.css +6187 -0
  17. data/vendor/assets/css/fabric.components.min.css +6 -0
  18. data/vendor/assets/css/fabric.components.rtl.css +6049 -0
  19. data/vendor/assets/css/fabric.components.rtl.min.css +6 -0
  20. data/vendor/assets/scss/components/Breadcrumb.scss +173 -0
  21. data/vendor/assets/scss/components/Button.scss +285 -0
  22. data/vendor/assets/scss/components/Callout.scss +156 -0
  23. data/vendor/assets/scss/components/CheckBox.scss +171 -0
  24. data/vendor/assets/scss/components/ChoiceFieldGroup.scss +12 -0
  25. data/vendor/assets/scss/components/CommandBar.scss +137 -0
  26. data/vendor/assets/scss/components/CommandButton.scss +292 -0
  27. data/vendor/assets/scss/components/ContextualHost.scss +139 -0
  28. data/vendor/assets/scss/components/ContextualMenu.scss +207 -0
  29. data/vendor/assets/scss/components/DatePicker.scss +526 -0
  30. data/vendor/assets/scss/components/DetailsList.scss +336 -0
  31. data/vendor/assets/scss/components/Dialog.scss +117 -0
  32. data/vendor/assets/scss/components/DialogHost.scss +11 -0
  33. data/vendor/assets/scss/components/Dropdown.scss +239 -0
  34. data/vendor/assets/scss/components/FacePile.scss +103 -0
  35. data/vendor/assets/scss/components/Label.scss +36 -0
  36. data/vendor/assets/scss/components/Link.scss +30 -0
  37. data/vendor/assets/scss/components/List.scss +15 -0
  38. data/vendor/assets/scss/components/ListItem.scss +236 -0
  39. data/vendor/assets/scss/components/MessageBanner.scss +127 -0
  40. data/vendor/assets/scss/components/MessageBar.scss +86 -0
  41. data/vendor/assets/scss/components/OrgChart.scss +45 -0
  42. data/vendor/assets/scss/components/Overlay.scss +33 -0
  43. data/vendor/assets/scss/components/Panel.scss +154 -0
  44. data/vendor/assets/scss/components/PanelHost.scss +14 -0
  45. data/vendor/assets/scss/components/PeoplePicker.scss +454 -0
  46. data/vendor/assets/scss/components/Persona.scss +730 -0
  47. data/vendor/assets/scss/components/PersonaCard.scss +207 -0
  48. data/vendor/assets/scss/components/Pivot.scss +200 -0
  49. data/vendor/assets/scss/components/ProgressIndicator.scss +63 -0
  50. data/vendor/assets/scss/components/RadioButton.scss +193 -0
  51. data/vendor/assets/scss/components/SearchBox.scss +368 -0
  52. data/vendor/assets/scss/components/Spinner.scss +47 -0
  53. data/vendor/assets/scss/components/Table.scss +122 -0
  54. data/vendor/assets/scss/components/TextField.scss +231 -0
  55. data/vendor/assets/scss/components/Toggle.scss +248 -0
  56. data/vendor/assets/scss/fabric.components.scss +1 -0
  57. metadata +184 -0
@@ -0,0 +1,207 @@
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
+ // Persona Card styles
7
+
8
+
9
+ // Small
10
+ //
11
+ // The persona card docks to the bottom of the viewport.
12
+ .ms-PersonaCard {
13
+ @include ms-baseFont;
14
+ @include ms-u-slideUpIn10;
15
+ color: $ms-color-neutralPrimary;
16
+ font-size: $ms-font-size-m;
17
+ font-weight: $ms-font-weight-regular;
18
+ bottom: 0;
19
+ left: 0;
20
+ position: fixed;
21
+ right: 0;
22
+ outline: 1px solid transparent;
23
+ }
24
+
25
+ .ms-PersonaCard-persona {
26
+ background-color: $ms-color-neutralLighter;
27
+ padding-top: 12px;
28
+ padding-bottom: 12px;
29
+ padding-left: 20px;
30
+ }
31
+
32
+ .ms-PersonaCard-actions {
33
+ @include ms-u-borderBox;
34
+ position: relative;
35
+ list-style: none;
36
+ margin: 0;
37
+ padding: 0 10px;
38
+ background-color: $ms-color-white;
39
+ height: 48px;
40
+
41
+ &::before {
42
+ content: '';
43
+ position: absolute;
44
+ top: 47px;
45
+ left: 0;
46
+ width: 100%;
47
+ border-top: 1px solid $ms-color-neutralTertiaryAlt;
48
+ }
49
+ }
50
+
51
+ .ms-PersonaCard-action,
52
+ .ms-PersonaCard-overflow {
53
+ display: inline-block;
54
+ cursor: pointer;
55
+ font-size: $ms-icon-size-m;
56
+ height: 48px;
57
+ line-height: 48px;
58
+ padding: 0 10px;
59
+ color: $ms-color-neutralSecondary;
60
+ outline: transparent;
61
+ position: relative;
62
+ @include ms-u-borderBox;
63
+
64
+ &:hover {
65
+ color: $ms-color-neutralDark;
66
+ }
67
+
68
+ &:active {
69
+ color: $ms-color-themePrimary;
70
+ }
71
+
72
+ &::before {
73
+ content: '';
74
+ position: absolute;
75
+ width: 100%;
76
+ height: 100%;
77
+ background-color: transparent;
78
+ top: 0;
79
+ left: 0;
80
+ z-index: 100;
81
+ }
82
+
83
+ // Currently-selected action
84
+ &.is-active {
85
+ color: $ms-color-themePrimary;
86
+
87
+ // Arrow
88
+ &::after {
89
+ @include ms-u-borderBox;
90
+ @include rotate(45deg);
91
+ content: '';
92
+ width: 10px;
93
+ height: 10px;
94
+ border: 1px solid $ms-color-neutralTertiaryAlt;
95
+ background-color: $ms-color-white;
96
+ position: absolute;
97
+ border-right: 0;
98
+ border-bottom: 0;
99
+ bottom: -4px;
100
+ left: 13px;
101
+ }
102
+ }
103
+ }
104
+
105
+ .ms-PersonaCard-overflow {
106
+ font-size: $ms-font-size-m;
107
+ color: $ms-color-neutralPrimary;
108
+ float: right;
109
+ margin-top: -1px;
110
+
111
+ &:hover {
112
+ color: $ms-color-themePrimary;
113
+ }
114
+ }
115
+
116
+ .ms-PersonaCard-orgChart {
117
+ position: absolute;
118
+ right: 12px;
119
+ top: -95px;
120
+ }
121
+
122
+ .ms-PersonaCard-actionDetailBox {
123
+ min-height: 48px;
124
+ overflow-y: auto;
125
+ overflow-x: hidden;
126
+ background-color: $ms-color-white;
127
+ }
128
+
129
+ // Active detail items
130
+ .ms-PersonaCard-details {
131
+ display: none;
132
+ width: 100%;
133
+ margin: 0;
134
+ max-height: 300px;
135
+ min-height: 48px;
136
+ color: $ms-color-neutralSecondary;
137
+ padding: 9px 20px;
138
+ box-sizing: border-box;
139
+
140
+ &.is-active {
141
+ display: block;
142
+ }
143
+
144
+ // State: Contents are collapsed to a single line.
145
+ &.is-collapsed {
146
+ height: 30px;
147
+ overflow: hidden;
148
+
149
+ // Show the expander icon.
150
+ .ms-PersonaCard-detailExpander::after {
151
+ @include ms-Icon--ChevronDown;
152
+ }
153
+ }
154
+ }
155
+
156
+ .ms-PersonaCard-details[data-detail-id='org'] {
157
+ max-height: 300px;
158
+ }
159
+
160
+ // Icon to expand a collapsed actionDetails section.
161
+ .ms-PersonaCard-detailExpander {
162
+ color: $ms-color-neutralPrimary;
163
+ cursor: pointer;
164
+ font-size: $ms-icon-size-m;
165
+ height: 30px;
166
+ line-height: 30px;
167
+ margin-top: 2px;
168
+ position: absolute;
169
+ right: 10px;
170
+ text-align: center;
171
+ width: 30px;
172
+
173
+ &::after {
174
+ @include ms-Icon;
175
+ @include ms-Icon--ChevronUp;
176
+ }
177
+ }
178
+
179
+ .ms-PersonaCard-detailLine {
180
+ color: $ms-color-neutralPrimary;
181
+ line-height: 30px;
182
+ }
183
+
184
+ .ms-PersonaCard-detailLabel {
185
+ color: $ms-color-neutralSecondary;
186
+ }
187
+
188
+ .ms-PersonaCard-action.ms-PersonaCard-orgChart {
189
+ &::after {
190
+ display: none; // Hide arrow for orgchart action
191
+ }
192
+ }
193
+
194
+ @media (min-width: $ms-screen-md-min) {
195
+ // Undock the persona card and give it a shadow.
196
+ .ms-PersonaCard {
197
+ @include drop-shadow;
198
+ max-width: 360px;
199
+ position: relative;
200
+ }
201
+
202
+ .ms-ContextualHost {
203
+ .ms-PersonaCard {
204
+ box-shadow: none;
205
+ }
206
+ }
207
+ }
@@ -0,0 +1,200 @@
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
+ // Pivot and tab styles
7
+
8
+
9
+ .ms-Pivot {
10
+ @include ms-baseFont;
11
+ @include ms-u-normalize;
12
+ font-size: $ms-font-size-m;
13
+ font-weight: $ms-font-weight-regular;
14
+ }
15
+
16
+ .ms-Pivot-links {
17
+ font-size: 0; // Bring inline-block children together
18
+ height: 40px;
19
+ list-style-type: none;
20
+ padding: 0;
21
+ white-space: nowrap;
22
+ }
23
+
24
+ .ms-Pivot-link {
25
+ color: $ms-color-neutralPrimary;
26
+ display: inline-block;
27
+ font-size: $ms-font-size-m;
28
+ font-weight: $ms-font-weight-regular;
29
+ line-height: 40px;
30
+ margin-right: 8px;
31
+ padding: 0 8px;
32
+ text-align: center;
33
+ vertical-align: top;
34
+
35
+ &:hover {
36
+ cursor: pointer;
37
+ }
38
+
39
+ // Underline, not yet visible
40
+ &::before {
41
+ background-color: transparent;
42
+ bottom: 0;
43
+ content: '';
44
+ height: 2px;
45
+ left: 8px;
46
+ position: absolute;
47
+ right: 8px;
48
+ transition: background-color $ms-duration2 $ms-ease2;
49
+ }
50
+
51
+ // Make room for the heavier text of the selected state
52
+ &::after {
53
+ color: transparent;
54
+ content: attr(title);
55
+ display: block;
56
+ font-weight: bold;
57
+ height: 1px;
58
+ overflow: hidden;
59
+ visibility: hidden;
60
+ }
61
+
62
+ //== State: Selected
63
+ &.is-selected {
64
+ font-weight: $ms-font-weight-semibold;
65
+ position: relative;
66
+
67
+ // Show the underline
68
+ &::before {
69
+ background-color: $ms-color-themePrimary;
70
+ }
71
+ }
72
+
73
+ //== State: Disabled
74
+ &.is-disabled {
75
+ color: $ms-color-neutralTertiary;
76
+ }
77
+ }
78
+
79
+
80
+
81
+
82
+ // @TODO: Determine if any of the styles below this are necessary anymore.
83
+
84
+
85
+ // Overflow (ellipsis)
86
+ .ms-Pivot-link.ms-Pivot-link--overflow {
87
+ color: $ms-color-neutralSecondary;
88
+
89
+ &.is-selected {
90
+ color: $ms-color-themePrimary;
91
+ }
92
+
93
+ &:hover:not(.is-selected),
94
+ &:focus:not(.is-selected) {
95
+ color: $ms-color-neutralDark;
96
+ }
97
+
98
+ &:active {
99
+ color: $ms-color-themePrimary;
100
+ }
101
+ }
102
+
103
+ // Ellipsis icon
104
+ .ms-Pivot-ellipsis {
105
+ font-size: $ms-font-size-m-plus;
106
+ position: relative;
107
+ top: 0;
108
+ }
109
+
110
+ // Pivot content, hidden by default
111
+ .ms-Pivot-content {
112
+ display: none;
113
+ margin-top: 20px;
114
+ }
115
+
116
+
117
+ //== Modifier: Large Pivots
118
+ //
119
+ .ms-Pivot.ms-Pivot--large {
120
+ .ms-Pivot-link {
121
+ font-size: $ms-font-size-l;
122
+
123
+ &.is-selected {
124
+ font-weight: $ms-font-weight-semilight;
125
+ }
126
+ }
127
+
128
+ .ms-Pivot-link.ms-Pivot-link--overflow {
129
+ &::after {
130
+ font-size: $ms-font-size-l;
131
+ }
132
+ }
133
+ }
134
+
135
+
136
+ //== Modifier: Tabs
137
+ //
138
+ .ms-Pivot.ms-Pivot--tabs {
139
+
140
+ .ms-Pivot-link {
141
+ height: 40px;
142
+ background-color: $ms-color-neutralLighter;
143
+ line-height: 40px;
144
+ margin-right: -2px; // Remove space next to inline-block element
145
+ padding: 0 10px;
146
+
147
+ &:hover:not(.is-selected):not(.ms-Pivot-link--overflow),
148
+ &:focus:not(.is-selected):not(.ms-Pivot-link--overflow) {
149
+ color: $ms-color-black;
150
+ }
151
+
152
+ &:active {
153
+ color: $ms-color-white;
154
+ background-color: $ms-color-themePrimary;
155
+ }
156
+
157
+ //== State: Selected
158
+ &.is-selected {
159
+ background-color: $ms-color-themePrimary;
160
+ color: $ms-color-white;
161
+ font-weight: $ms-font-weight-semilight;
162
+ }
163
+ }
164
+
165
+ .ms-Pivot-link.ms-Pivot-link--overflow {
166
+ &:hover:not(.is-selected),
167
+ &:focus:not(.is-selected) {
168
+ background-color: $ms-color-white;
169
+ }
170
+
171
+ &:active {
172
+ background-color: $ms-color-themePrimary;
173
+ }
174
+ }
175
+ }
176
+
177
+ // @TODO: Confirm that this component is not responsive.
178
+ //
179
+ // @media (min-width: $ms-screen-lg-min) {
180
+ // .ms-Pivot-link {
181
+ // font-size: $ms-font-size-m;
182
+ // }
183
+
184
+ // .ms-Pivot-link.ms-Pivot-link--overflow {
185
+ // &:after {
186
+ // font-size: $ms-font-size-m;
187
+ // }
188
+ // }
189
+ // }
190
+
191
+ // All high contrast styling rules
192
+ @media screen and (-ms-high-contrast: active) {
193
+ .ms-Pivot.ms-Pivot--tabs {
194
+ .ms-Pivot-link {
195
+ &.is-selected {
196
+ font-weight: $ms-font-weight-semibold;
197
+ }
198
+ }
199
+ }
200
+ }
@@ -0,0 +1,63 @@
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
+ // ProgressIndicator Styles
7
+
8
+
9
+ $ProgressIndicatorMarginBetweenText: 8px;
10
+ $ProgressIndicatorButtonsWidth: 218px;
11
+ $ProgressIndicatorTextHeight: 18px;
12
+
13
+ .ms-ProgressIndicator {
14
+ @include ms-baseFont;
15
+ font-weight: $ms-font-weight-regular;
16
+ }
17
+
18
+ .ms-ProgressIndicator-itemName {
19
+ color: $ms-color-neutralPrimary;
20
+ font-size: $ms-font-size-m;
21
+ text-overflow: ellipsis;
22
+ overflow: hidden;
23
+ white-space: nowrap;
24
+ padding-top: $ProgressIndicatorMarginBetweenText / 2;
25
+ line-height: $ProgressIndicatorTextHeight + 2;
26
+ }
27
+
28
+ .ms-ProgressIndicator-itemDescription {
29
+ color: $ms-color-neutralSecondaryAlt;
30
+ font-size: $ms-font-size-xs;
31
+ line-height: $ProgressIndicatorTextHeight;
32
+ }
33
+
34
+ .ms-ProgressIndicator-itemProgress {
35
+ position: relative;
36
+ width: 180px;
37
+ height: 2px;
38
+ padding: $ProgressIndicatorMarginBetweenText 0;
39
+ }
40
+
41
+ .ms-ProgressIndicator-progressTrack {
42
+ position: absolute;
43
+ width: 100%;
44
+ height: 2px;
45
+ background-color: $ms-color-neutralLight;
46
+ outline: 1px solid transparent;
47
+ }
48
+
49
+ .ms-ProgressIndicator-progressBar {
50
+ background-color: $ms-color-themePrimary;
51
+ height: 2px;
52
+ position: absolute;
53
+ transition: width .3s ease;
54
+ width: 0;
55
+
56
+ @media screen and (-ms-high-contrast: active) {
57
+ background-color: $ms-color-white;
58
+ }
59
+
60
+ @media screen and (-ms-high-contrast: black-on-white) {
61
+ background-color: $ms-color-black;
62
+ }
63
+ }