office-ui-fabric-rails 3.0.0.0.beta2 → 3.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/Rakefile +5 -3
- data/bower.json +3 -2
- data/lib/office-ui-fabric-rails/version.rb +3 -2
- data/vendor/assets/scss/_Fabric.Icons.Adjustments.scss +6 -0
- data/vendor/assets/scss/_Fabric.i18n.scss +316 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 079760399bc0ac7608321fa76e6c5e5b00eea69d
|
4
|
+
data.tar.gz: 3e6acbb74fef17ef29211dc5aae77843fe366c05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d7c727d30eb2f7a1276c86dbb119e059457b6b3492c176157e5bfb22d76e47b898be6346a97c02f66cdebf341ab55322941a88e16630966d86d2fc7f7aa1681
|
7
|
+
data.tar.gz: 048cc39b8da37a6418e8f760380d304a9f6bd2c815159cc094aed6ad526f04fcad399e22ce3e76cc7b458fa08fe568540e21beed72f7d4e4338d84d92b55e699
|
data/README.md
CHANGED
@@ -53,7 +53,8 @@ If you also wish to use the [Fabric components](http://dev.office.com/fabric/com
|
|
53
53
|
Add the following to your `app/assets/javascripts/application.js` file:
|
54
54
|
|
55
55
|
```
|
56
|
-
//= require
|
56
|
+
//= require fabric
|
57
|
+
//= require fabric.templates
|
57
58
|
```
|
58
59
|
|
59
60
|
For information on how to use the Office UI Fabric framework see the [documentation](http://dev.office.com/fabric)
|
data/Rakefile
CHANGED
@@ -9,14 +9,16 @@ namespace :assets do
|
|
9
9
|
desc 'Update Office UI Fabric assets'
|
10
10
|
task update: :clean do
|
11
11
|
sh 'bower install'
|
12
|
-
sh 'cp -r bower_components/office-ui-fabric/dist/js/* vendor/assets/js'
|
13
12
|
sh 'cp -r bower_components/office-ui-fabric/dist/sass/* vendor/assets/scss'
|
14
13
|
sh 'cp -r bower_components/office-ui-fabric/dist/css/* vendor/assets/css'
|
15
|
-
|
14
|
+
sh 'cp -r bower_components/office-ui-fabric-js/dist/js/* vendor/assets/js'
|
15
|
+
sh 'cp -r bower_components/office-ui-fabric-js/dist/css/* vendor/assets/css'
|
16
|
+
sh 'cp -r bower_components/office-ui-fabric-js/dist/sass/* vendor/assets/scss'
|
17
|
+
|
16
18
|
puts "Updated to the latest version of Office UI Fabric"
|
17
19
|
end
|
18
20
|
|
19
|
-
desc 'Remove old
|
21
|
+
desc 'Remove old office-ui-fabric assets'
|
20
22
|
task :clean do
|
21
23
|
sh 'rm -rf vendor'
|
22
24
|
sh 'mkdir -p vendor/assets/js/ vendor/assets/scss/ vendor/assets/css'
|
data/bower.json
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "office-ui-fabric-rails",
|
3
|
-
"version": "3.0.0.0
|
3
|
+
"version": "3.0.0.0",
|
4
4
|
"dependencies": {
|
5
|
-
"office-ui-fabric": "3.0.0
|
5
|
+
"office-ui-fabric": "3.0.0",
|
6
|
+
"office-ui-fabric-js": "git@github.com:OfficeDev/office-ui-fabric-js.git#3.0.0-beta2"
|
6
7
|
}
|
7
8
|
}
|
@@ -0,0 +1,316 @@
|
|
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
|
+
// Internationalization mixins
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
// Base left-to-right mixin definition.
|
11
|
+
@mixin LTR {
|
12
|
+
html[dir='ltr'] & {
|
13
|
+
@content;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
// Base right-to-left mixin definition.
|
18
|
+
@mixin RTL {
|
19
|
+
html[dir='rtl'] & {
|
20
|
+
@content;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// Use baseRTL on a root element (e.g. page or region) that needs RTL support.
|
25
|
+
@mixin baseRtl {
|
26
|
+
@include RTL {
|
27
|
+
direction: rtl;
|
28
|
+
unicode-bidi: bidi-override;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
|
33
|
+
// Common CSS property mixins with support for RTL.
|
34
|
+
// Use to automatically create RTL versions of your properties.
|
35
|
+
|
36
|
+
// Border styles.
|
37
|
+
@mixin border-color($top, $right, $bottom, $left) {
|
38
|
+
border-color: $top $right $bottom $left;
|
39
|
+
|
40
|
+
@include RTL {
|
41
|
+
border-color: $top $left $bottom $right;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
@mixin border-left($width, $style, $color) {
|
46
|
+
@include LTR {
|
47
|
+
border-left: $width $style $color;
|
48
|
+
}
|
49
|
+
|
50
|
+
@include RTL {
|
51
|
+
border-right: $width $style $color;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
@mixin border-left-color($color) {
|
56
|
+
@include LTR {
|
57
|
+
border-left-color: $color;
|
58
|
+
}
|
59
|
+
|
60
|
+
@include RTL {
|
61
|
+
border-right-color: $color;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
@mixin border-left-style($style) {
|
66
|
+
@include LTR {
|
67
|
+
border-left-style: $style;
|
68
|
+
}
|
69
|
+
|
70
|
+
@include RTL {
|
71
|
+
border-right-style: $style;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin border-left-width($width) {
|
76
|
+
@include LTR {
|
77
|
+
border-left-width: $width;
|
78
|
+
}
|
79
|
+
|
80
|
+
@include RTL {
|
81
|
+
border-right-width: $width;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
@mixin border-radius($topLeft, $topRight, $bottomRight, $bottomLeft) {
|
86
|
+
border-radius: $topLeft $topRight $bottomRight $bottomLeft;
|
87
|
+
|
88
|
+
@include RTL {
|
89
|
+
border-radius: $topRight $topLeft $bottomLeft $bottomRight;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
@mixin border-right($width, $style, $color) {
|
94
|
+
@include LTR {
|
95
|
+
border-right: $width $style $color;
|
96
|
+
}
|
97
|
+
|
98
|
+
@include RTL {
|
99
|
+
border-left: $width $style $color;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
@mixin border-right-color($color) {
|
104
|
+
@include LTR {
|
105
|
+
border-right-color: $color;
|
106
|
+
}
|
107
|
+
|
108
|
+
@include RTL {
|
109
|
+
border-left-color: $color;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
@mixin border-right-style($style) {
|
114
|
+
@include LTR {
|
115
|
+
border-right-style: $style;
|
116
|
+
}
|
117
|
+
|
118
|
+
@include RTL {
|
119
|
+
border-left-style: $style;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
@mixin border-right-width($width) {
|
124
|
+
@include LTR {
|
125
|
+
border-right-width: $width;
|
126
|
+
}
|
127
|
+
|
128
|
+
@include RTL {
|
129
|
+
border-left-width: $width;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
// Floats.
|
134
|
+
@mixin clear($side) {
|
135
|
+
@if $side == left {
|
136
|
+
@include LTR {
|
137
|
+
clear: $side;
|
138
|
+
}
|
139
|
+
|
140
|
+
@include RTL {
|
141
|
+
clear: right;
|
142
|
+
}
|
143
|
+
} @else if $side == right {
|
144
|
+
@include LTR {
|
145
|
+
clear: $side;
|
146
|
+
}
|
147
|
+
|
148
|
+
@include RTL {
|
149
|
+
clear: left;
|
150
|
+
}
|
151
|
+
} @else {
|
152
|
+
clear: $side;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
@mixin float($direction) {
|
157
|
+
@if $direction == left {
|
158
|
+
@include LTR {
|
159
|
+
float: left;
|
160
|
+
}
|
161
|
+
|
162
|
+
@include RTL {
|
163
|
+
float: right;
|
164
|
+
}
|
165
|
+
} @else {
|
166
|
+
@include LTR {
|
167
|
+
float: right;
|
168
|
+
}
|
169
|
+
|
170
|
+
@include RTL {
|
171
|
+
float: left;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
}
|
175
|
+
|
176
|
+
// Positioning.
|
177
|
+
@mixin left($distance) {
|
178
|
+
@include LTR {
|
179
|
+
left: $distance;
|
180
|
+
}
|
181
|
+
|
182
|
+
@include RTL {
|
183
|
+
right: $distance;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
@mixin right($distance) {
|
188
|
+
@include LTR {
|
189
|
+
right: $distance;
|
190
|
+
}
|
191
|
+
|
192
|
+
@include RTL {
|
193
|
+
left: $distance;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
// Margins.
|
198
|
+
@mixin margin($top, $right, $bottom, $left) {
|
199
|
+
margin: $top $right $bottom $left;
|
200
|
+
|
201
|
+
@include RTL {
|
202
|
+
margin: $top $left $bottom $right;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
|
206
|
+
@mixin margin-left($distance) {
|
207
|
+
@include LTR {
|
208
|
+
margin-left: $distance;
|
209
|
+
}
|
210
|
+
|
211
|
+
@include RTL {
|
212
|
+
margin-right: $distance;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
@mixin margin-right($distance) {
|
217
|
+
@include LTR {
|
218
|
+
margin-right: $distance;
|
219
|
+
}
|
220
|
+
@include RTL {
|
221
|
+
margin-left: $distance;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
|
225
|
+
// Padding.
|
226
|
+
@mixin padding($top, $right, $bottom, $left) {
|
227
|
+
padding: $top $right $bottom $left;
|
228
|
+
|
229
|
+
@include RTL {
|
230
|
+
padding: $top $left $bottom $right;
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
@mixin padding-left($distance) {
|
235
|
+
@include LTR {
|
236
|
+
padding-left: $distance;
|
237
|
+
}
|
238
|
+
|
239
|
+
@include RTL {
|
240
|
+
padding-right: $distance;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
@mixin padding-right($distance) {
|
245
|
+
@include LTR {
|
246
|
+
padding-right: $distance;
|
247
|
+
}
|
248
|
+
|
249
|
+
@include RTL {
|
250
|
+
padding-left: $distance;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
// Text-alignment.
|
255
|
+
@mixin text-align($direction) {
|
256
|
+
@if $direction == left {
|
257
|
+
@include LTR {
|
258
|
+
text-align: left;
|
259
|
+
}
|
260
|
+
|
261
|
+
@include RTL {
|
262
|
+
text-align: right;
|
263
|
+
}
|
264
|
+
} @else {
|
265
|
+
@include LTR {
|
266
|
+
text-align: right;
|
267
|
+
}
|
268
|
+
|
269
|
+
@include RTL {
|
270
|
+
text-align: left;
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
// Box-shadow.
|
276
|
+
@mixin box-shadow($left, $etc) {
|
277
|
+
@include LTR {
|
278
|
+
box-shadow: $left $etc;
|
279
|
+
}
|
280
|
+
|
281
|
+
@include RTL {
|
282
|
+
box-shadow: -$left $etc;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
// Transforms.
|
287
|
+
@mixin transform-rtl() {
|
288
|
+
@include LTR {
|
289
|
+
transform: scaleX(1);
|
290
|
+
}
|
291
|
+
|
292
|
+
@include RTL {
|
293
|
+
transform: scaleX(-1);
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
// Transitions. Only supported when ONLY left/right are declared
|
298
|
+
@mixin transition-property($direction) {
|
299
|
+
@if $direction == left {
|
300
|
+
@include LTR {
|
301
|
+
transition-property: left;
|
302
|
+
}
|
303
|
+
|
304
|
+
@include RTL {
|
305
|
+
transition-property: right;
|
306
|
+
}
|
307
|
+
} @else {
|
308
|
+
@include LTR {
|
309
|
+
transition-property: right;
|
310
|
+
}
|
311
|
+
|
312
|
+
@include RTL {
|
313
|
+
transition-property: left;
|
314
|
+
}
|
315
|
+
}
|
316
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: office-ui-fabric-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.0
|
4
|
+
version: 3.0.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig Plummer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- vendor/assets/scss/_Fabric.Color.Variables.scss
|
136
136
|
- vendor/assets/scss/_Fabric.Common.scss
|
137
137
|
- vendor/assets/scss/_Fabric.Grid.scss
|
138
|
+
- vendor/assets/scss/_Fabric.Icons.Adjustments.scss
|
138
139
|
- vendor/assets/scss/_Fabric.Icons.scss
|
139
140
|
- vendor/assets/scss/_Fabric.Mixins.RTL.scss
|
140
141
|
- vendor/assets/scss/_Fabric.Mixins.scss
|
@@ -147,6 +148,7 @@ files:
|
|
147
148
|
- vendor/assets/scss/_Fabric.Typography.scss
|
148
149
|
- vendor/assets/scss/_Fabric.Utilities.scss
|
149
150
|
- vendor/assets/scss/_Fabric.ZIndex.Variables.scss
|
151
|
+
- vendor/assets/scss/_Fabric.i18n.scss
|
150
152
|
homepage: https://github.com/craigplummer/office-ui-fabric-rails
|
151
153
|
licenses:
|
152
154
|
- MIT
|
@@ -163,9 +165,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
165
|
version: '0'
|
164
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
167
|
requirements:
|
166
|
-
- - "
|
168
|
+
- - ">="
|
167
169
|
- !ruby/object:Gem::Version
|
168
|
-
version:
|
170
|
+
version: '0'
|
169
171
|
requirements: []
|
170
172
|
rubyforge_project:
|
171
173
|
rubygems_version: 2.5.1
|