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,127 @@
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
+ // MessageBanner Styles
7
+
8
+ $MessageBanner-height: 52px;
9
+ $MessageBanner-iconSize: 40px;
10
+
11
+ .ms-MessageBanner {
12
+ @include ms-baseFont;
13
+ color: $ms-color-neutralPrimary;
14
+ font-size: $ms-font-size-s;
15
+ font-weight: $ms-font-weight-regular;
16
+ position: relative;
17
+ border-bottom: 1px solid $ms-color-neutralSecondaryAlt;
18
+ background-color: $ms-color-themeLighterAlt;
19
+ min-width: 320px;
20
+ width: 100%;
21
+ height: $MessageBanner-height;
22
+ text-align: center;
23
+ overflow: hidden;
24
+ @include ms-u-slideDownIn20;
25
+
26
+ .ms-Icon {
27
+ font-size: 16px;
28
+ }
29
+
30
+ &.hide {
31
+ @include ms-u-slideUpOut20;
32
+ }
33
+
34
+ &.is-hidden {
35
+ display: none;
36
+ }
37
+ }
38
+
39
+ .ms-MessageBanner-expand,
40
+ .ms-MessageBanner-close {
41
+ height: $MessageBanner-height;
42
+ width: $MessageBanner-iconSize;
43
+ cursor: pointer;
44
+ border: 0;
45
+ background-color: transparent;
46
+ }
47
+
48
+ .ms-MessageBanner-close {
49
+ position: absolute;
50
+ right: 0;
51
+ top: 0;
52
+ line-height: $MessageBanner-height;
53
+ color: $ms-color-neutralSecondary;
54
+ }
55
+
56
+ .ms-MessageBanner-text {
57
+ display: inline-block;
58
+ padding: 18px 0;
59
+ margin-left: 0;
60
+ max-width: 770px;
61
+ overflow: hidden;
62
+ text-align: left;
63
+ }
64
+
65
+ .ms-MessageBanner-expand {
66
+ display: none;
67
+ vertical-align: top;
68
+
69
+ &.is-visible {
70
+ display: inline-block;
71
+ }
72
+ }
73
+
74
+ .ms-MessageBanner-action {
75
+ display: inline-block;
76
+ vertical-align: top;
77
+ margin-top: 10px;
78
+ margin-left: 10px;
79
+ padding-right: 36px;
80
+
81
+ .ms-Button {
82
+ color: $ms-color-white;
83
+ }
84
+ }
85
+
86
+ .ms-MessageBanner-clipper {
87
+ overflow: hidden;
88
+ white-space: nowrap;
89
+ text-overflow: ellipsis;
90
+ display: inline-block;
91
+ vertical-align: top;
92
+ }
93
+
94
+ .ms-MessageBanner.is-expanded {
95
+ height: auto;
96
+
97
+ .ms-MessageBanner-clipper {
98
+ white-space: normal;
99
+ }
100
+ }
101
+
102
+
103
+ @media screen and (max-width: 479px) {
104
+ .ms-MessageBanner-action {
105
+ margin: 0;
106
+ display: block;
107
+ text-align: right;
108
+ padding: 0 10px 10px 0;
109
+ }
110
+
111
+ .ms-MessageBanner-text {
112
+ margin-left: -25px;
113
+ padding: 18px 0 10px;
114
+ min-width: 240px;
115
+ }
116
+
117
+ .ms-MessageBanner-expand {
118
+ display: inline-block;
119
+ padding: 0;
120
+ margin-left: -5px;
121
+ width: 20px;
122
+
123
+ .ms-Icon {
124
+ color: $ms-color-themePrimary;
125
+ }
126
+ }
127
+ }
@@ -0,0 +1,86 @@
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
+ // MessageBar Styles
7
+
8
+ $MessageBar-padding: 8px;
9
+
10
+ .ms-MessageBar {
11
+ @include ms-baseFont;
12
+ padding: $MessageBar-padding;
13
+ display: table;
14
+ @include ms-bgColor-info;
15
+
16
+ .ms-Link {
17
+ font-size: $ms-font-size-s;
18
+ }
19
+ }
20
+
21
+ .ms-MessageBar-icon,
22
+ .ms-MessageBar-text {
23
+ display: table-cell;
24
+ vertical-align: top;
25
+ }
26
+
27
+ .ms-MessageBar-icon {
28
+ padding-right: $MessageBar-padding;
29
+ font-size: $ms-icon-size-m;
30
+ @include ms-fontColor-neutralSecondaryAlt;
31
+ }
32
+
33
+ .ms-MessageBar-text {
34
+ @include ms-font-s;
35
+ }
36
+
37
+
38
+ //== Modifier: Warning message
39
+ //
40
+ .ms-MessageBar.ms-MessageBar--warning {
41
+ @include ms-bgColor-warning;
42
+ }
43
+
44
+
45
+ //== Modifier: Severe Warning message
46
+ //
47
+ .ms-MessageBar.ms-MessageBar--severeWarning {
48
+ @include ms-bgColor-severeWarning;
49
+
50
+ .ms-MessageBar-icon {
51
+ @include ms-fontColor-severeWarning;
52
+ }
53
+ }
54
+
55
+
56
+ //== Modifier: Error message
57
+ //
58
+ .ms-MessageBar.ms-MessageBar--error {
59
+ @include ms-bgColor-error;
60
+
61
+ .ms-MessageBar-icon {
62
+ @include ms-fontColor-error;
63
+ }
64
+ }
65
+
66
+
67
+ //== Modifier: Blocked message
68
+ //
69
+ .ms-MessageBar.ms-MessageBar--blocked {
70
+ @include ms-bgColor-error;
71
+
72
+ .ms-MessageBar-icon {
73
+ @include ms-fontColor-error;
74
+ }
75
+ }
76
+
77
+
78
+ //== Modifier: Success message
79
+ //
80
+ .ms-MessageBar.ms-MessageBar--success {
81
+ @include ms-bgColor-success;
82
+
83
+ .ms-MessageBar-icon {
84
+ @include ms-fontColor-green;
85
+ }
86
+ }
@@ -0,0 +1,45 @@
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
+ // Org chart styles
7
+
8
+
9
+ .ms-OrgChart {
10
+ @include ms-baseFont;
11
+ @include ms-u-normalize;
12
+ color: $ms-color-neutralPrimary;
13
+ font-size: $ms-font-size-m;
14
+ font-weight: $ms-font-weight-regular;
15
+ }
16
+
17
+ .ms-OrgChart-groupTitle {
18
+ color: $ms-color-neutralSecondary;
19
+ line-height: 1;
20
+ }
21
+
22
+ .ms-OrgChart-list {
23
+ padding: 0;
24
+ margin: 12px 0 16px;
25
+ }
26
+
27
+ .ms-OrgChart-listItem {
28
+ height: 50px;
29
+ width: 100%;
30
+ position: relative;
31
+ list-style: none;
32
+ margin-bottom: 8px;
33
+ }
34
+
35
+ .ms-OrgChart-listItemBtn {
36
+ @include button-reset;
37
+ position: relative;
38
+ height: 50px;
39
+ width: 100%;
40
+ background: none;
41
+ border: 0;
42
+ text-align: left;
43
+ margin: 0;
44
+ padding: 0;
45
+ }
@@ -0,0 +1,33 @@
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
+ // Modal overlay styles
7
+
8
+
9
+ .ms-Overlay {
10
+ @include ms-baseFont;
11
+ background-color: $ms-color-whiteTranslucent40;
12
+ position: fixed;
13
+ bottom: 0;
14
+ left: 0;
15
+ right: 0;
16
+ top: 0;
17
+ z-index: $ms-zIndex-back;
18
+ display: none;
19
+ }
20
+
21
+ .ms-Overlay.is-visible {
22
+ display: block;
23
+ }
24
+
25
+ //== Modifier: Dark overlay
26
+ //
27
+ .ms-Overlay--dark {
28
+ background-color: $ms-color-blackTranslucent40;
29
+ }
30
+
31
+ .ms-u-overflowHidden {
32
+ overflow: hidden;
33
+ }
@@ -0,0 +1,154 @@
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
+ // Panel styles
7
+
8
+ $ms-panel-width-sm: 272px;
9
+ $ms-panel-width-md: 340px;
10
+ $ms-panel-width-lg: 644px;
11
+ $ms-panel-width-xl: 940px;
12
+ $ms-panel-width-xxl: 1192px;
13
+
14
+ $ms-panel-margin-md: 48px;
15
+ $ms-panel-margin-lg: 428px;
16
+ $ms-panel-margin-xl: 176px;
17
+
18
+ $ms-panel-close-button-height: 40px;
19
+
20
+ // The panel itself, where the content goes.
21
+ .ms-Panel {
22
+ @include ms-baseFont;
23
+ background-color: $ms-color-white;
24
+ width: 100%;
25
+ max-width: $ms-panel-width-md;
26
+ @include drop-shadow(-30px, 0, 30px, -30px, .2);
27
+ position: absolute;
28
+ top: 0;
29
+ right: 0;
30
+ bottom: 0;
31
+ z-index: $ms-zIndex-front;
32
+ display: none;
33
+ height: 100%;
34
+
35
+ // Animations -- Default (anchored right)
36
+ &.animate-in {
37
+ @include ms-u-slideLeftIn40;
38
+ }
39
+
40
+ &.animate-out {
41
+ @include ms-u-slideRightOut40;
42
+ }
43
+
44
+ &.is-open {
45
+ display: block;
46
+ }
47
+
48
+ .ms-CommandBar {
49
+ padding-right: 0;
50
+ padding-left: 8px;
51
+ }
52
+ }
53
+
54
+ //== Modifier: Medium panel (anchored right, fixed width)
55
+ //
56
+ .ms-Panel.ms-Panel--md {
57
+ max-width: $ms-panel-width-md;
58
+ }
59
+
60
+ //== Modifier: Large panel (anchored right, fluid width)
61
+ //
62
+ .ms-Panel.ms-Panel--lg {
63
+ max-width: $ms-panel-width-lg;
64
+ }
65
+
66
+ //== Modifier: XLarge panel (anchored right, fluid width)
67
+ //
68
+ .ms-Panel.ms-Panel--xl {
69
+ max-width: $ms-panel-width-xl;
70
+ }
71
+
72
+ //== Modifier: XLarge panel (anchored right, fluid width)
73
+ //
74
+ .ms-Panel.ms-Panel--xxl {
75
+ max-width: $ms-panel-width-xxl;
76
+ }
77
+
78
+ //== Modifier: Left anchored panel (anchored left, fixed width)
79
+ // Note: This panel variant should only be used for left nav.
80
+ .ms-Panel--left {
81
+ @include drop-shadow(-30px, 0, 30px, 30px, .2);
82
+ left: 0;
83
+ right: auto;
84
+
85
+ &.animate-in {
86
+ @include ms-u-slideRightIn40;
87
+ }
88
+
89
+ &.animate-out {
90
+ @include ms-u-slideLeftOut40;
91
+ }
92
+ }
93
+
94
+ // The close button in the top right (x)
95
+ .ms-Panel-closeButton {
96
+ @include button-reset;
97
+ position: absolute;
98
+ right: 6px;
99
+ top: 0;
100
+ height: $ms-panel-close-button-height;
101
+ width: $ms-panel-close-button-height;
102
+ line-height: $ms-panel-close-button-height;
103
+ outline: 0;
104
+ padding: 0;
105
+ color: $ms-color-neutralSecondary;
106
+ font-size: $ms-icon-size-m;
107
+
108
+ &:hover {
109
+ color: $ms-color-neutralPrimary;
110
+ }
111
+
112
+ .ms-Icon--Cancel {
113
+ margin-top: 2px;
114
+ }
115
+
116
+ @media (max-width: $ms-screen-md-max) {
117
+ font-size: $ms-icon-size-l;
118
+ line-height: $ms-icon-size-l;
119
+ height: 44px;
120
+ right: 4px;
121
+ }
122
+ }
123
+
124
+ // Scrollable content area
125
+ .ms-Panel-contentInner {
126
+ margin-top: $ms-panel-close-button-height;
127
+ padding: 0 16px 20px;
128
+ overflow-y: auto;
129
+ height: 100%;
130
+
131
+ @media (min-width: $ms-screen-lg-min) {
132
+ padding: 0 32px 20px;
133
+ }
134
+
135
+ @media (min-width: $ms-screen-xxl-min) {
136
+ padding: 0 40px 20px;
137
+ }
138
+ }
139
+
140
+ // Header text at the top of the panel.
141
+ .ms-Panel-headerText {
142
+ font-weight: $ms-font-weight-light;
143
+ font-size: $ms-font-size-xl;
144
+ color: $ms-color-neutralPrimary;
145
+ margin: 10px 0;
146
+ padding: 4px 0;
147
+ line-height: 1;
148
+ text-overflow: ellipsis;
149
+ overflow: hidden;
150
+
151
+ @media (min-width: $ms-screen-xl-min) {
152
+ margin-top: 30px;
153
+ }
154
+ }