foundation-rails 5.1.1.0 → 5.2.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 (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -7
  3. data/bower.json +2 -2
  4. data/lib/foundation/rails/version.rb +1 -1
  5. data/vendor/assets/javascripts/foundation/foundation.abide.js +3 -6
  6. data/vendor/assets/javascripts/foundation/foundation.accordion.js +5 -4
  7. data/vendor/assets/javascripts/foundation/foundation.alert.js +1 -1
  8. data/vendor/assets/javascripts/foundation/foundation.clearing.js +70 -34
  9. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +121 -28
  10. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +6 -6
  11. data/vendor/assets/javascripts/foundation/foundation.interchange.js +34 -25
  12. data/vendor/assets/javascripts/foundation/foundation.joyride.js +4 -8
  13. data/vendor/assets/javascripts/foundation/foundation.js +94 -78
  14. data/vendor/assets/javascripts/foundation/foundation.magellan.js +3 -4
  15. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +19 -1
  16. data/vendor/assets/javascripts/foundation/foundation.orbit.js +151 -102
  17. data/vendor/assets/javascripts/foundation/foundation.reveal.js +43 -15
  18. data/vendor/assets/javascripts/foundation/foundation.slider.js +187 -0
  19. data/vendor/assets/javascripts/foundation/foundation.tab.js +116 -18
  20. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +112 -60
  21. data/vendor/assets/javascripts/foundation/foundation.topbar.js +47 -14
  22. data/vendor/assets/javascripts/vendor/modernizr.js +3 -3
  23. data/vendor/assets/stylesheets/foundation.scss +7 -0
  24. data/vendor/assets/stylesheets/foundation/_functions.scss +4 -0
  25. data/vendor/assets/stylesheets/foundation/_settings.scss +11 -2
  26. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +5 -1
  27. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +4 -0
  28. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +44 -12
  29. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +4 -0
  30. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +4 -0
  31. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +7 -5
  32. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +4 -0
  33. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +4 -0
  34. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +100 -11
  35. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +4 -0
  36. data/vendor/assets/stylesheets/foundation/components/_forms.scss +25 -21
  37. data/vendor/assets/stylesheets/foundation/components/_global.scss +79 -44
  38. data/vendor/assets/stylesheets/foundation/components/_grid.scss +6 -2
  39. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +4 -0
  40. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +4 -0
  41. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +5 -1
  42. data/vendor/assets/stylesheets/foundation/components/_labels.scss +4 -0
  43. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +4 -0
  44. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +51 -59
  45. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +97 -14
  46. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +7 -2
  47. data/vendor/assets/stylesheets/foundation/components/_panels.scss +5 -1
  48. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +4 -0
  49. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +4 -0
  50. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +148 -0
  51. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +36 -7
  52. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +8 -3
  53. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +4 -0
  54. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +6 -2
  55. data/vendor/assets/stylesheets/foundation/components/_switch.scss +4 -0
  56. data/vendor/assets/stylesheets/foundation/components/_tables.scss +4 -0
  57. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +12 -6
  58. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +4 -0
  59. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +9 -0
  60. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +52 -25
  61. data/vendor/assets/stylesheets/foundation/components/_type.scss +132 -75
  62. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +198 -538
  63. data/vendor/assets/stylesheets/normalize.scss +179 -166
  64. metadata +4 -2
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
  @import "buttons";
3
7
  @import "dropdown-buttons";
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
 
3
7
  //
@@ -88,7 +92,7 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
88
92
  }
89
93
 
90
94
  &.active a {
91
- @include radius($global-radius);
95
+ @include radius($sub-nav-border-radius);
92
96
  font-weight: $sub-nav-active-font-weight;
93
97
  background: $active-bg;
94
98
  padding: $sub-nav-active-padding;
@@ -118,4 +122,4 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
118
122
  @if $include-html-nav-classes {
119
123
  .sub-nav { @include sub-nav; }
120
124
  }
121
- }
125
+ }
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
 
3
7
  //
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
 
3
7
  //
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
  @import "grid";
3
7
 
@@ -28,16 +32,12 @@ $tabs-vertical-navigation-margin-bottom: 1.25rem !default;
28
32
  dd {
29
33
  position: relative;
30
34
  margin-bottom: 0 !important;
31
- top: 1px;
32
35
  float: $default-float;
33
36
  > a {
34
37
  display: block;
35
38
  background: $tabs-navigation-bg-color;
36
39
  color: $tabs-navigation-font-color;
37
- padding-top: $tabs-navigation-padding;
38
- padding-#{$opposite-direction}: $tabs-navigation-padding * 2;
39
- padding-bottom: $tabs-navigation-padding + rem-calc(1);
40
- padding-#{$default-float}: $tabs-navigation-padding * 2;
40
+ padding: $tabs-navigation-padding $tabs-navigation-padding * 2;
41
41
  font-family: $tabs-navigation-font-family;
42
42
  font-size: $tabs-navigation-font-size;
43
43
  &:hover { background: $tabs-navigation-hover-bg-color; }
@@ -95,5 +95,11 @@ $tabs-vertical-navigation-margin-bottom: 1.25rem !default;
95
95
  }
96
96
  }
97
97
  }
98
+ .no-js {
99
+ .tabs-content > .content {
100
+ display: block;
101
+ float: none;
102
+ }
103
+ }
98
104
  }
99
- }
105
+ }
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
 
3
7
 
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
 
3
7
  //
@@ -69,6 +73,11 @@ $tooltip-pip-size: 5px !default;
69
73
  border: solid $tooltip-pip-size;
70
74
  border-color: transparent transparent $tooltip-bg transparent;
71
75
  top: -($tooltip-pip-size * 2);
76
+
77
+ &.rtl {
78
+ left: auto;
79
+ #{$opposite-direction}: $tooltip-pip-size;
80
+ }
72
81
  }
73
82
 
74
83
  &.radius {
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
  @import "grid";
3
7
 
@@ -35,10 +39,12 @@ $topbar-link-color-active-hover: #fff !default;
35
39
  $topbar-link-weight: normal !default;
36
40
  $topbar-link-font-size: rem-calc(13) !default;
37
41
  $topbar-link-hover-lightness: -10% !default; // Darken by 10%
42
+ $topbar-link-bg: $topbar-bg !default;
38
43
  $topbar-link-bg-hover: #272727 !default;
39
44
  $topbar-link-bg-active: $primary-color !default;
40
45
  $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default;
41
46
  $topbar-link-font-family: $body-font-family !default;
47
+ $topbar-link-text-transform: none !default;
42
48
  $topbar-link-padding: $topbar-height / 3 !default;
43
49
 
44
50
  $topbar-button-font-size: 0.75rem;
@@ -73,17 +79,31 @@ $topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness:
73
79
  $topbar-sticky-class: ".sticky" !default;
74
80
  $topbar-arrows: true !default; //Set false to remove the triangle icon from the menu item
75
81
 
82
+ // Accessibility mixins for hiding and showing the menu dropdown items
83
+ @mixin topbar-hide-dropdown {
84
+ // Makes an element visually hidden by default, but visible when focused.
85
+ display: block;
86
+ @include element-invisible();
87
+ }
88
+
89
+ @mixin topbar-show-dropdown {
90
+ display: block;
91
+ @include element-invisible-off();
92
+ position: absolute !important; // Reset the position from static to absolute
93
+ }
94
+
76
95
  @include exports("top-bar") {
77
- // Used to provide media query values for javascript components.
78
- // This class is generated despite the value of $include-html-top-bar-classes
79
- // to ensure width calculations work correctly.
80
- meta.foundation-mq-topbar {
81
- font-family: "/" + unquote($topbar-media-query) + "/";
82
- width: $topbar-breakpoint;
83
- }
84
96
 
85
97
  @if $include-html-top-bar-classes {
86
98
 
99
+ // Used to provide media query values for javascript components.
100
+ // This class is generated despite the value of $include-html-top-bar-classes
101
+ // to ensure width calculations work correctly.
102
+ meta.foundation-mq-topbar {
103
+ font-family: "/" + unquote($topbar-media-query) + "/";
104
+ width: $topbar-breakpoint;
105
+ }
106
+
87
107
  /* Wrapped around .top-bar to contain to grid width */
88
108
  .contain-to-grid {
89
109
  width: 100%;
@@ -221,9 +241,9 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
221
241
  height: 0;
222
242
  // Shh, don't tell, but box-shadows create the menu icon :)
223
243
  @if $experimental {
224
- -webkit-box-shadow: 0 10px 0 1px $topbar-menu-icon-color,
225
- 0 16px 0 1px $topbar-menu-icon-color,
226
- 0 22px 0 1px $topbar-menu-icon-color;
244
+ -webkit-box-shadow: 1px 10px 1px 1px $topbar-menu-icon-color,
245
+ 1px 16px 1px 1px $topbar-menu-icon-color,
246
+ 1px 22px 1px 1px $topbar-menu-icon-color;
227
247
  }
228
248
  box-shadow: 0 10px 0 1px $topbar-menu-icon-color,
229
249
  0 16px 0 1px $topbar-menu-icon-color,
@@ -242,12 +262,12 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
242
262
 
243
263
  .toggle-topbar {
244
264
  a { color: $topbar-menu-link-color-toggled;
245
- span {
265
+ &::after {
246
266
  // Shh, don't tell, but box-shadows create the menu icon :)
247
267
  @if $experimental {
248
- -webkit-box-shadow: 0 10px 0 1px $topbar-menu-icon-color-toggled,
249
- 0 16px 0 1px $topbar-menu-icon-color-toggled,
250
- 0 22px 0 1px $topbar-menu-icon-color-toggled;
268
+ -webkit-box-shadow: 1px 10px 1px 1px $topbar-menu-icon-color-toggled,
269
+ 1px 16px 1px 1px $topbar-menu-icon-color-toggled,
270
+ 1px 22px 1px 1px $topbar-menu-icon-color-toggled;
251
271
  }
252
272
  box-shadow: 0 10px 0 1px $topbar-menu-icon-color-toggled,
253
273
  0 16px 0 1px $topbar-menu-icon-color-toggled,
@@ -295,6 +315,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
295
315
  font-family: $topbar-link-font-family;
296
316
  font-size: $topbar-link-font-size;
297
317
  font-weight: $topbar-link-weight;
318
+ text-transform: $topbar-link-text-transform;
298
319
  background: $topbar-dropdown-bg;
299
320
 
300
321
  &.button {
@@ -328,7 +349,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
328
349
  }
329
350
 
330
351
  // Apply the hover link color when it has that class
331
- &:hover > a {
352
+ &:hover:not(.has-form) > a {
332
353
  background: $topbar-link-bg-hover;
333
354
  color: $topbar-link-color-hover;
334
355
 
@@ -367,7 +388,11 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
367
388
 
368
389
  &.moved { position: static;
369
390
  & > .dropdown {
370
- display: block;
391
+ @include topbar-show-dropdown();
392
+ width: 100%;
393
+ }
394
+ & > a:after {
395
+ display: none;
371
396
  }
372
397
  }
373
398
  }
@@ -377,8 +402,8 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
377
402
  position: absolute;
378
403
  #{$default-float}: 100%;
379
404
  top: 0;
380
- display: none;
381
405
  z-index: 99;
406
+ @include topbar-hide-dropdown();
382
407
 
383
408
  li {
384
409
  width: 100%;
@@ -471,13 +496,13 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
471
496
  a:not(.button) {
472
497
  padding: 0 $topbar-link-padding;
473
498
  line-height: $topbar-height;
474
- background: $topbar-bg;
499
+ background: $topbar-link-bg;
475
500
  &:hover { background: $topbar-link-bg-hover; }
476
501
  }
477
502
  }
478
503
  &.active:not(.has-form) {
479
504
  a:not(.button) {
480
- padding: 0 $topbar-height / 3;
505
+ padding: 0 $topbar-link-padding;
481
506
  line-height: $topbar-height;
482
507
  color: $topbar-link-color-active;
483
508
  background: $topbar-link-bg-active;
@@ -502,12 +527,14 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
502
527
  }
503
528
 
504
529
  &.moved { position: relative;
505
- & > .dropdown { display: none; }
530
+ & > .dropdown {
531
+ @include topbar-hide-dropdown();
532
+ }
506
533
  }
507
534
 
508
535
  &.hover, &.not-click:hover {
509
536
  & > .dropdown {
510
- display: block;
537
+ @include topbar-show-dropdown();
511
538
  }
512
539
  }
513
540
 
@@ -517,7 +544,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
517
544
  border: none;
518
545
  content: "\00bb";
519
546
  top: 1rem;
520
- margin-top: -2px;
547
+ margin-top: -1px;
521
548
  #{$opposite-direction}: 5px;
522
549
  line-height: 1.2;
523
550
  }
@@ -565,8 +592,8 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
565
592
  }
566
593
 
567
594
  .has-form {
568
- background: $topbar-bg;
569
- padding: 0 $topbar-link-padding;
595
+ background: $topbar-link-bg;
596
+ padding: 0 $topbar-height / 3;
570
597
  height: $topbar-height;
571
598
  }
572
599
 
@@ -609,7 +636,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
609
636
  .has-dropdown {
610
637
  &:hover {
611
638
  & > .dropdown {
612
- display: block;
639
+ @include topbar-show-dropdown();
613
640
  }
614
641
  }
615
642
  }
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
 
3
7
  $include-html-type-classes: $include-html-classes !default;
@@ -50,7 +54,7 @@ $code-font-weight: bold !default;
50
54
  // We use these to style anchors
51
55
  $anchor-text-decoration: none !default;
52
56
  $anchor-font-color: $primary-color !default;
53
- $anchor-font-color-hover: scale-color($primary-color, $lightness: -14%) !default;
57
+ $anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%) !default;
54
58
 
55
59
  // We use these to style the <hr> element
56
60
  $hr-border-width: 1px !default;
@@ -106,81 +110,58 @@ $microformat-abbr-font-decoration: none !default;
106
110
  // Responsive Text alignment
107
111
  //
108
112
 
109
- // Global Text Styles
110
- .text-left { text-align: left !important; }
111
- .text-right { text-align: right !important; }
112
- .text-center { text-align: center !important; }
113
- .text-justify { text-align: justify !important; }
114
-
115
- @media #{$small-only} {
116
- .small-only-text-left { text-align: left !important; }
117
- .small-only-text-right { text-align: right !important; }
118
- .small-only-text-center { text-align: center !important; }
119
- .small-only-text-justify { text-align: justify !important; }
120
- }
121
-
122
- @media #{$small-up} {
123
- .small-text-left { text-align: left !important; }
124
- .small-text-right { text-align: right !important; }
125
- .small-text-center { text-align: center !important; }
126
- .small-text-justify { text-align: justify !important; }
127
- }
128
-
129
- @media #{$medium-only} {
130
- .medium-only-text-left { text-align: left !important; }
131
- .medium-only-text-right { text-align: right !important; }
132
- .medium-only-text-center { text-align: center !important; }
133
- .medium-only-text-justify { text-align: justify !important; }
134
- }
135
-
136
- @media #{$medium-up} {
137
- .medium-text-left { text-align: left !important; }
138
- .medium-text-right { text-align: right !important; }
139
- .medium-text-center { text-align: center !important; }
140
- .medium-text-justify { text-align: justify !important; }
141
- }
142
-
143
- @media #{$large-only} {
144
- .large-only-text-left { text-align: left !important; }
145
- .large-only-text-right { text-align: right !important; }
146
- .large-only-text-center { text-align: center !important; }
147
- .large-only-text-justify { text-align: justify !important; }
148
- }
149
-
150
- @media #{$large-up} {
151
- .large-text-left { text-align: left !important; }
152
- .large-text-right { text-align: right !important; }
153
- .large-text-center { text-align: center !important; }
154
- .large-text-justify { text-align: justify !important; }
155
- }
156
-
157
- @media #{$xlarge-only} {
158
- .xlarge-only-text-left { text-align: left !important; }
159
- .xlarge-only-text-right { text-align: right !important; }
160
- .xlarge-only-text-center { text-align: center !important; }
161
- .xlarge-only-text-justify { text-align: justify !important; }
162
- }
163
-
164
- @media #{$xlarge-up} {
165
- .xlarge-text-left { text-align: left !important; }
166
- .xlarge-text-right { text-align: right !important; }
167
- .xlarge-text-center { text-align: center !important; }
168
- .xlarge-text-justify { text-align: justify !important; }
169
- }
170
-
171
- @media #{$xxlarge-only} {
172
- .xxlarge-only-text-left { text-align: left !important; }
173
- .xxlarge-only-text-right { text-align: right !important; }
174
- .xxlarge-only-text-center { text-align: center !important; }
175
- .xxlarge-only-text-justify { text-align: justify !important; }
113
+ // Text Breakpoints
114
+ $text-breakpoint-sizes:
115
+ small,
116
+ medium,
117
+ large,
118
+ xlarge,
119
+ xxlarge
120
+ ;
121
+ $text-breakpoint-only-queries:
122
+ unquote($small-only),
123
+ unquote($medium-only),
124
+ unquote($large-only),
125
+ unquote($xlarge-only),
126
+ unquote($xxlarge-only)
127
+ ;
128
+ $text-breakpoint-up-queries:
129
+ unquote($small-up),
130
+ unquote($medium-up),
131
+ unquote($large-up),
132
+ unquote($xlarge-up),
133
+ unquote($xxlarge-up)
134
+ ;
135
+
136
+ @mixin text-alignment-loop {
137
+ $text-alignments: left, right, center, justify;
138
+
139
+ // Global Text Styles
140
+ @each $alignment in $text-alignments {
141
+ .text-#{$alignment} {
142
+ text-align: #{$alignment} !important;
143
+ }
144
+ }
145
+
146
+ @each $current-text-breakpoint in $text-breakpoint-sizes {
147
+ @media #{nth($text-breakpoint-only-queries, index($text-breakpoint-sizes, $current-text-breakpoint))} {
148
+ @each $alignment in $text-alignments {
149
+ .#{$current-text-breakpoint}-only-text-#{$alignment} {
150
+ text-align: #{$alignment} !important;
151
+ }
152
+ }
153
+ }
154
+ @media #{nth($text-breakpoint-up-queries, index($text-breakpoint-sizes, $current-text-breakpoint))} {
155
+ @each $alignment in $text-alignments {
156
+ .#{$current-text-breakpoint}-text-#{$alignment} {
157
+ text-align: #{$alignment} !important;
158
+ }
159
+ }
160
+ }
161
+ }
176
162
  }
177
163
 
178
- @media #{$xxlarge-up} {
179
- .xxlarge-text-left { text-align: left !important; }
180
- .xxlarge-text-right { text-align: right !important; }
181
- .xxlarge-text-center { text-align: center !important; }
182
- .xxlarge-text-justify { text-align: justify !important; }
183
- }
164
+ @include text-alignment-loop;
184
165
 
185
166
  //
186
167
  // Typography Placeholders
@@ -202,6 +183,82 @@ $microformat-abbr-font-decoration: none !default;
202
183
  @include exports("type") {
203
184
  @if $include-html-type-classes {
204
185
 
186
+ // Global Text Styles
187
+ .text-left { text-align: left !important; }
188
+ .text-right { text-align: right !important; }
189
+ .text-center { text-align: center !important; }
190
+ .text-justify { text-align: justify !important; }
191
+
192
+ @media #{$small-only} {
193
+ .small-only-text-left { text-align: left !important; }
194
+ .small-only-text-right { text-align: right !important; }
195
+ .small-only-text-center { text-align: center !important; }
196
+ .small-only-text-justify { text-align: justify !important; }
197
+ }
198
+
199
+ @media #{$small-up} {
200
+ .small-text-left { text-align: left !important; }
201
+ .small-text-right { text-align: right !important; }
202
+ .small-text-center { text-align: center !important; }
203
+ .small-text-justify { text-align: justify !important; }
204
+ }
205
+
206
+ @media #{$medium-only} {
207
+ .medium-only-text-left { text-align: left !important; }
208
+ .medium-only-text-right { text-align: right !important; }
209
+ .medium-only-text-center { text-align: center !important; }
210
+ .medium-only-text-justify { text-align: justify !important; }
211
+ }
212
+
213
+ @media #{$medium-up} {
214
+ .medium-text-left { text-align: left !important; }
215
+ .medium-text-right { text-align: right !important; }
216
+ .medium-text-center { text-align: center !important; }
217
+ .medium-text-justify { text-align: justify !important; }
218
+ }
219
+
220
+ @media #{$large-only} {
221
+ .large-only-text-left { text-align: left !important; }
222
+ .large-only-text-right { text-align: right !important; }
223
+ .large-only-text-center { text-align: center !important; }
224
+ .large-only-text-justify { text-align: justify !important; }
225
+ }
226
+
227
+ @media #{$large-up} {
228
+ .large-text-left { text-align: left !important; }
229
+ .large-text-right { text-align: right !important; }
230
+ .large-text-center { text-align: center !important; }
231
+ .large-text-justify { text-align: justify !important; }
232
+ }
233
+
234
+ @media #{$xlarge-only} {
235
+ .xlarge-only-text-left { text-align: left !important; }
236
+ .xlarge-only-text-right { text-align: right !important; }
237
+ .xlarge-only-text-center { text-align: center !important; }
238
+ .xlarge-only-text-justify { text-align: justify !important; }
239
+ }
240
+
241
+ @media #{$xlarge-up} {
242
+ .xlarge-text-left { text-align: left !important; }
243
+ .xlarge-text-right { text-align: right !important; }
244
+ .xlarge-text-center { text-align: center !important; }
245
+ .xlarge-text-justify { text-align: justify !important; }
246
+ }
247
+
248
+ @media #{$xxlarge-only} {
249
+ .xxlarge-only-text-left { text-align: left !important; }
250
+ .xxlarge-only-text-right { text-align: right !important; }
251
+ .xxlarge-only-text-center { text-align: center !important; }
252
+ .xxlarge-only-text-justify { text-align: justify !important; }
253
+ }
254
+
255
+ @media #{$xxlarge-up} {
256
+ .xxlarge-text-left { text-align: left !important; }
257
+ .xxlarge-text-right { text-align: right !important; }
258
+ .xxlarge-text-center { text-align: center !important; }
259
+ .xxlarge-text-justify { text-align: justify !important; }
260
+ }
261
+
205
262
  /* Typography resets */
206
263
  div,
207
264
  dl,
@@ -287,7 +344,7 @@ $microformat-abbr-font-decoration: none !default;
287
344
  border: $hr-border-style $hr-border-color;
288
345
  border-width: $hr-border-width 0 0;
289
346
  clear: both;
290
- margin: $hr-margin 0 ($hr-margin - rem-calc(1));
347
+ margin: $hr-margin 0 ($hr-margin - em-calc(strip-unit($hr-border-width)));
291
348
  height: 0;
292
349
  }
293
350