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,156 @@
|
|
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
|
+
// Callout styles
|
7
|
+
|
8
|
+
$ms-Callout-commandButtonHeight: 27px;
|
9
|
+
|
10
|
+
.ms-Callout {
|
11
|
+
@include ms-baseFont;
|
12
|
+
width: 288px;
|
13
|
+
|
14
|
+
&.is-hidden {
|
15
|
+
display: none;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
.ms-Callout-header {
|
20
|
+
z-index: ($ms-zIndex-Callout + $ms-zIndex-middle);
|
21
|
+
padding-top: 24px;
|
22
|
+
padding-bottom: 12px;
|
23
|
+
padding-left: 28px;
|
24
|
+
padding-right: 28px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ms-Callout-title {
|
28
|
+
margin: 0;
|
29
|
+
font-weight: $ms-font-weight-semilight;
|
30
|
+
font-size: $ms-font-size-xl;
|
31
|
+
}
|
32
|
+
|
33
|
+
.ms-Callout-subText {
|
34
|
+
margin: 0;
|
35
|
+
font-weight: $ms-font-weight-semilight;
|
36
|
+
color: $ms-color-neutralPrimary;
|
37
|
+
font-size: $ms-font-size-s;
|
38
|
+
}
|
39
|
+
|
40
|
+
.ms-Callout-close {
|
41
|
+
margin: 0;
|
42
|
+
border: 0;
|
43
|
+
background: none;
|
44
|
+
cursor: pointer;
|
45
|
+
position: absolute;
|
46
|
+
top: 12px;
|
47
|
+
right: 12px;
|
48
|
+
padding: 8px;
|
49
|
+
width: 32px;
|
50
|
+
height: 32px;
|
51
|
+
font-size: 14px;
|
52
|
+
color: $ms-color-neutralSecondary;
|
53
|
+
z-index: 110;
|
54
|
+
}
|
55
|
+
|
56
|
+
.ms-Callout-link {
|
57
|
+
font-size: $ms-font-size-m;
|
58
|
+
}
|
59
|
+
|
60
|
+
.ms-Callout-inner {
|
61
|
+
height: 100%;
|
62
|
+
padding-top: 0;
|
63
|
+
padding-bottom: 12px;
|
64
|
+
padding-left: 28px;
|
65
|
+
padding-right: 28px;
|
66
|
+
}
|
67
|
+
|
68
|
+
.ms-Callout-actions {
|
69
|
+
position: relative;
|
70
|
+
margin-top: 20px;
|
71
|
+
width: 100%;
|
72
|
+
white-space: nowrap;
|
73
|
+
|
74
|
+
.ms-CommandButton.ms-CommandButton--inline {
|
75
|
+
height: $ms-Callout-commandButtonHeight;
|
76
|
+
line-height: $ms-Callout-commandButtonHeight;
|
77
|
+
|
78
|
+
.ms-CommandButton-button {
|
79
|
+
height: $ms-Callout-commandButtonHeight;
|
80
|
+
line-height: $ms-Callout-commandButtonHeight;
|
81
|
+
}
|
82
|
+
|
83
|
+
.ms-CommandButton-label {
|
84
|
+
line-height: $ms-Callout-commandButtonHeight;
|
85
|
+
}
|
86
|
+
|
87
|
+
.ms-CommandButton-icon {
|
88
|
+
line-height: $ms-Callout-commandButtonHeight;
|
89
|
+
}
|
90
|
+
|
91
|
+
&:hover .ms-Button,
|
92
|
+
&:focus .ms-Button {
|
93
|
+
color: $ms-color-themePrimary;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.ms-Callout-button {
|
98
|
+
margin-right: 12px;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
//= Modifier: OOBE (Out of box experience) callout
|
103
|
+
//
|
104
|
+
.ms-Callout.ms-Callout--OOBE {
|
105
|
+
|
106
|
+
.ms-Callout-header {
|
107
|
+
padding: 28px 24px;
|
108
|
+
background-color: $ms-color-themePrimary;
|
109
|
+
}
|
110
|
+
|
111
|
+
.ms-Callout-title {
|
112
|
+
font-weight: $ms-font-weight-light;
|
113
|
+
font-size: $ms-font-size-xxl;
|
114
|
+
color: $ms-color-white;
|
115
|
+
}
|
116
|
+
|
117
|
+
.ms-Callout-inner {
|
118
|
+
padding-top: 20px;
|
119
|
+
}
|
120
|
+
|
121
|
+
.ms-Callout-subText {
|
122
|
+
font-size: $ms-font-size-m;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
|
127
|
+
//= Modifier: ActionText callout
|
128
|
+
//
|
129
|
+
.ms-Callout.ms-Callout--actionText {
|
130
|
+
.ms-Callout-actions {
|
131
|
+
border-top: 1px solid $ms-color-neutralLight;
|
132
|
+
padding-top: 12px;
|
133
|
+
}
|
134
|
+
|
135
|
+
.ms-Callout-inner {
|
136
|
+
padding-bottom: 12px;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
|
141
|
+
//= Modifier: Peek callout
|
142
|
+
//
|
143
|
+
.ms-Callout.ms-Callout--peek {
|
144
|
+
.ms-Callout-header {
|
145
|
+
padding-bottom: 0;
|
146
|
+
}
|
147
|
+
|
148
|
+
.ms-Callout-title {
|
149
|
+
font-size: $ms-font-size-m;
|
150
|
+
}
|
151
|
+
|
152
|
+
.ms-Callout-actions {
|
153
|
+
margin-top: 12px;
|
154
|
+
margin-bottom: -4px;
|
155
|
+
}
|
156
|
+
}
|
@@ -0,0 +1,171 @@
|
|
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
|
+
// CheckBox styles
|
7
|
+
|
8
|
+
$ms-checkbox-field-size: 20px;
|
9
|
+
$ms-checkbox-transition-duration: 200ms;
|
10
|
+
$ms-checkbox-transition-timing: cubic-bezier(.4, 0, .23, 1);
|
11
|
+
|
12
|
+
|
13
|
+
.ms-CheckBox {
|
14
|
+
box-sizing: border-box;
|
15
|
+
color: $ms-color-neutralPrimary;
|
16
|
+
font-family: $ms-font-family-base;
|
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-CheckBox-input {
|
32
|
+
position: absolute;
|
33
|
+
opacity: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
// The checkbox square container
|
37
|
+
.ms-CheckBox-field::before {
|
38
|
+
content: '';
|
39
|
+
display: inline-block;
|
40
|
+
border: 2px solid $ms-color-neutralTertiary;
|
41
|
+
width: $ms-checkbox-field-size;
|
42
|
+
height: $ms-checkbox-field-size;
|
43
|
+
cursor: pointer;
|
44
|
+
font-weight: normal;
|
45
|
+
position: absolute;
|
46
|
+
box-sizing: border-box;
|
47
|
+
transition-property: background, border, border-color;
|
48
|
+
transition-duration: $ms-checkbox-transition-duration;
|
49
|
+
transition-timing-function: $ms-checkbox-transition-timing;
|
50
|
+
}
|
51
|
+
|
52
|
+
// The check mark icon
|
53
|
+
.ms-CheckBox-field::after {
|
54
|
+
@include ms-Icon--CheckMark;
|
55
|
+
font-family: 'FabricMDL2Icons';
|
56
|
+
display: none;
|
57
|
+
position: absolute;
|
58
|
+
font-weight: 900;
|
59
|
+
background-color: transparent;
|
60
|
+
font-size: $ms-font-size-s-plus;
|
61
|
+
top: 0;
|
62
|
+
color: $ms-color-white;
|
63
|
+
line-height: $ms-checkbox-field-size;
|
64
|
+
width: $ms-checkbox-field-size;
|
65
|
+
text-align: center;
|
66
|
+
|
67
|
+
@media screen and (-ms-high-contrast: active) {
|
68
|
+
color: $ms-color-black;
|
69
|
+
}
|
70
|
+
|
71
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
72
|
+
color: $ms-color-white;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
// The checkbox field
|
77
|
+
.ms-CheckBox-field {
|
78
|
+
display: inline-block;
|
79
|
+
cursor: pointer;
|
80
|
+
margin-top: 8px;
|
81
|
+
position: relative;
|
82
|
+
outline: 0;
|
83
|
+
vertical-align: top;
|
84
|
+
|
85
|
+
&:hover,
|
86
|
+
&:focus {
|
87
|
+
&::before {
|
88
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
89
|
+
}
|
90
|
+
|
91
|
+
.ms-Label {
|
92
|
+
color: $ms-color-black;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
//== State: A disabled checkbox
|
97
|
+
//
|
98
|
+
&.is-disabled {
|
99
|
+
cursor: default;
|
100
|
+
|
101
|
+
&::before {
|
102
|
+
background-color: $ms-color-neutralTertiaryAlt;
|
103
|
+
border-color: $ms-color-neutralTertiaryAlt;
|
104
|
+
color: $ms-color-neutralTertiaryAlt;
|
105
|
+
|
106
|
+
@media screen and (-ms-high-contrast: active) {
|
107
|
+
border-color: $ms-color-contrastBlackDisabled;
|
108
|
+
}
|
109
|
+
|
110
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
111
|
+
border-color: $ms-color-contrastWhiteDisabled;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
.ms-Label {
|
116
|
+
color: $ms-color-neutralTertiary;
|
117
|
+
|
118
|
+
@media screen and (-ms-high-contrast: active) {
|
119
|
+
color: $ms-color-contrastBlackDisabled;
|
120
|
+
}
|
121
|
+
|
122
|
+
@media screen and (-ms-high-contrast: black-on-white) {
|
123
|
+
color: $ms-color-contrastWhiteDisabled;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
//== State: A checkbox in focus
|
129
|
+
//
|
130
|
+
&.in-focus {
|
131
|
+
&::before {
|
132
|
+
border-color: $ms-color-neutralSecondaryAlt;
|
133
|
+
}
|
134
|
+
|
135
|
+
&.is-disabled::before {
|
136
|
+
border-color: $ms-color-neutralTertiaryAlt;
|
137
|
+
}
|
138
|
+
|
139
|
+
&.is-checked::before {
|
140
|
+
border-color: $ms-color-themeDarkAlt;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
//== State: When the checkbox is checked
|
146
|
+
//
|
147
|
+
.ms-CheckBox-field.is-checked {
|
148
|
+
&::before {
|
149
|
+
border: 10px solid $ms-color-themePrimary;
|
150
|
+
background-color: $ms-color-themePrimary;
|
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
|
+
&::after {
|
162
|
+
display: block;
|
163
|
+
}
|
164
|
+
|
165
|
+
&:hover,
|
166
|
+
&:focus {
|
167
|
+
&::before {
|
168
|
+
border-color: $ms-color-themeDarkAlt;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
@@ -0,0 +1,137 @@
|
|
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
|
+
// Command Bar styles
|
7
|
+
|
8
|
+
$CommandBar-height: 40px;
|
9
|
+
$CommandBar-md-height: 44px;
|
10
|
+
$CommandBar-iconSize: 18px;
|
11
|
+
$CommandBar-sideAreaWidthsm: 128px;
|
12
|
+
$SearchBox-width: 220px;
|
13
|
+
$CommandBarItem-height: $CommandBar-height;
|
14
|
+
$red: #FF0000;
|
15
|
+
|
16
|
+
@mixin highContrastBorder($color) {
|
17
|
+
border-left: 1px solid $color;
|
18
|
+
border-right: 1px solid $color;
|
19
|
+
}
|
20
|
+
|
21
|
+
.ms-CommandBar {
|
22
|
+
@include ms-baseFont;
|
23
|
+
background-color: $ms-color-neutralLighter;
|
24
|
+
height: $CommandBar-height;
|
25
|
+
white-space: nowrap;
|
26
|
+
padding-left: 0;
|
27
|
+
border: 0;
|
28
|
+
position: relative;
|
29
|
+
|
30
|
+
&:focus {
|
31
|
+
outline: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
.ms-CommandButton--actionButton {
|
35
|
+
border-right: 1px solid $ms-color-neutralLight;
|
36
|
+
}
|
37
|
+
|
38
|
+
//== CommandBar -> ms-Button specific changes
|
39
|
+
//
|
40
|
+
.ms-Button {
|
41
|
+
height: 100%;
|
42
|
+
|
43
|
+
&.ms-Button--noLabel {
|
44
|
+
.ms-Button-icon {
|
45
|
+
padding-right: 0;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&.is-hidden {
|
50
|
+
display: none;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.ms-SearchBox,
|
55
|
+
.ms-SearchBox-field,
|
56
|
+
.ms-SearchBox-label {
|
57
|
+
height: 100%;
|
58
|
+
}
|
59
|
+
|
60
|
+
.ms-SearchBox {
|
61
|
+
display: inline-block;
|
62
|
+
vertical-align: top;
|
63
|
+
transition: margin-right $ms-duration2;
|
64
|
+
}
|
65
|
+
|
66
|
+
.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed.is-active {
|
67
|
+
width: $SearchBox-width;
|
68
|
+
|
69
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
70
|
+
width: 100%;
|
71
|
+
position: absolute;
|
72
|
+
left: 0;
|
73
|
+
right: 0;
|
74
|
+
z-index: $ms-zIndex-front;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.ms-CommandBar-overflowButton {
|
79
|
+
.ms-CommandButton-button {
|
80
|
+
font-size: 18px;
|
81
|
+
padding: 0 11px;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// Search is collapsed unless activated and its only
|
86
|
+
// collapsed < L break points
|
87
|
+
|
88
|
+
@media only screen and (min-width: $ms-screen-xl-min) {
|
89
|
+
.ms-SearchBox {
|
90
|
+
margin-right: 24px;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
@media only screen and (max-width: $ms-screen-md-max) {
|
95
|
+
height: $CommandBar-md-height;
|
96
|
+
}
|
97
|
+
|
98
|
+
@media only screen and (min-width: $ms-screen-lg-min) {
|
99
|
+
|
100
|
+
&.search-expanded {
|
101
|
+
.ms-SearchBox {
|
102
|
+
margin-right: 8px;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
.ms-SearchBox.ms-SearchBox--commandBar.is-collapsed {
|
107
|
+
transition: none;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
.ms-CommandBar-mainArea {
|
113
|
+
overflow-x: hidden;
|
114
|
+
display: block;
|
115
|
+
height: 100%;
|
116
|
+
overflow: hidden;
|
117
|
+
}
|
118
|
+
|
119
|
+
.ms-CommandBar-sideCommands {
|
120
|
+
float: right;
|
121
|
+
text-align: right;
|
122
|
+
width: auto;
|
123
|
+
padding-right: 4px;
|
124
|
+
height: 100%;
|
125
|
+
|
126
|
+
.ms-Button:last-child {
|
127
|
+
margin-right: 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
@media only screen and (min-width: $ms-screen-lg-min) {
|
131
|
+
min-width: $CommandBar-sideAreaWidthsm;
|
132
|
+
}
|
133
|
+
|
134
|
+
@media only screen and (min-width: $ms-screen-xl-min) {
|
135
|
+
padding-right: 20px;
|
136
|
+
}
|
137
|
+
}
|