office-ui-fabric-rails 2.5.0.0 → 2.6.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -218,7 +218,7 @@
218
218
  color: $ms-color-neutralSecondary;
219
219
  }
220
220
 
221
- @mixin ms-fontColor-neutralSecondaryAlt {
221
+ @mixin ms-fontColor-neutralSecondaryAlt {
222
222
  color: $ms-color-neutralSecondaryAlt;
223
223
  }
224
224
 
@@ -226,7 +226,7 @@
226
226
  color: $ms-color-neutralTertiary;
227
227
  }
228
228
 
229
- @mixin ms-fontColor-neutralTertiaryAlt {
229
+ @mixin ms-fontColor-neutralTertiaryAlt {
230
230
  color: $ms-color-neutralTertiaryAlt;
231
231
  }
232
232
 
@@ -348,10 +348,18 @@
348
348
  color: $ms-color-success;
349
349
  }
350
350
 
351
- @mixin ms-fontColor-alert {
351
+ @mixin ms-fontColor-alert { // Deprecated: Use ms-fontColor-severeWarning
352
352
  color: $ms-color-alert;
353
353
  }
354
354
 
355
+ @mixin ms-fontColor-warning {
356
+ color: $ms-color-warning;
357
+ }
358
+
359
+ @mixin ms-fontColor-severeWarning {
360
+ color: $ms-color-severeWarning;
361
+ }
362
+
355
363
  @mixin ms-fontColor-error {
356
364
  color: $ms-color-error;
357
365
  }
@@ -12,6 +12,11 @@
12
12
  box-sizing: border-box;
13
13
  }
14
14
 
15
+ // For setting the border base width
16
+ @mixin ms-u-borderBase {
17
+ border: 1px solid;
18
+ }
19
+
15
20
  // Ensures the block expands to the full height to enclose its floated childen.
16
21
 
17
22
  @mixin ms-u-clearfix {
@@ -34,3 +39,39 @@
34
39
  @include resetPadding;
35
40
  @include resetBoxShadow;
36
41
  }
42
+
43
+ // To set various text alignment styles
44
+ // @param [variable list] $alignments
45
+ @mixin ms-u-textAlign($alignments...) {
46
+ @each $align in $alignments {
47
+ $alignStr: inspect($align);
48
+ .ms-u-textAlign#{to-upper-case(str-slice($alignStr, 1, 1)) + str-slice($alignStr, 2)} {
49
+ text-align: $align;
50
+ }
51
+ }
52
+ }
53
+
54
+ // To hide content while still making it readable by screen readers (Accessibility)
55
+ @mixin ms-u-screenReaderOnly {
56
+ position: absolute;
57
+ width: 1px;
58
+ height: 1px;
59
+ padding: 0;
60
+ margin: -1px;
61
+ overflow: hidden;
62
+ clip: rect(0,0,0,0);
63
+ border: 0;
64
+ }
65
+
66
+ // To add truncation with ellipsis
67
+ @mixin ms-u-textTruncate {
68
+ overflow: hidden;
69
+ text-overflow: ellipsis;
70
+ white-space: nowrap;
71
+ word-wrap: normal; // Fix for IE 8/9 in case 'word-wrap: break-word' is set on parent nodes
72
+ }
73
+
74
+ // To disable text wrapping
75
+ @mixin ms-u-noWrap {
76
+ white-space: nowrap;
77
+ }
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: 2.5.0.0
4
+ version: 2.6.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-05-10 00:00:00.000000000 Z
11
+ date: 2016-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties