foundation-rails 5.3.0.1 → 5.3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/bower.json +2 -2
  3. data/lib/foundation/rails/templates/application.html.slim +6 -6
  4. data/lib/foundation/rails/version.rb +1 -1
  5. data/vendor/assets/_settings.scss +47 -25
  6. data/vendor/assets/javascripts/foundation/foundation.abide.js +1 -1
  7. data/vendor/assets/javascripts/foundation/foundation.accordion.js +2 -2
  8. data/vendor/assets/javascripts/foundation/foundation.alert.js +1 -1
  9. data/vendor/assets/javascripts/foundation/foundation.clearing.js +9 -1
  10. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +1 -1
  11. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +1 -1
  12. data/vendor/assets/javascripts/foundation/foundation.interchange.js +1 -1
  13. data/vendor/assets/javascripts/foundation/foundation.joyride.js +3 -2
  14. data/vendor/assets/javascripts/foundation/foundation.js +1 -1
  15. data/vendor/assets/javascripts/foundation/foundation.magellan.js +4 -2
  16. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +1 -1
  17. data/vendor/assets/javascripts/foundation/foundation.orbit.js +3 -3
  18. data/vendor/assets/javascripts/foundation/foundation.reveal.js +9 -3
  19. data/vendor/assets/javascripts/foundation/foundation.slider.js +10 -5
  20. data/vendor/assets/javascripts/foundation/foundation.tab.js +1 -1
  21. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +1 -1
  22. data/vendor/assets/javascripts/foundation/foundation.topbar.js +1 -1
  23. data/vendor/assets/javascripts/vendor/modernizr.js +2 -2
  24. data/vendor/assets/stylesheets/foundation/_settings.scss +47 -25
  25. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +17 -28
  26. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +10 -3
  27. data/vendor/assets/stylesheets/foundation/components/_forms.scss +5 -2
  28. data/vendor/assets/stylesheets/foundation/components/_global.scss +1 -14
  29. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +29 -27
  30. data/vendor/assets/stylesheets/foundation/components/_labels.scss +1 -0
  31. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +17 -5
  32. data/vendor/assets/stylesheets/foundation/components/_toolbar.scss +1 -1
  33. metadata +2 -3
  34. data/vendor/assets/stylesheets/foundation/components/_iconbar.scss +0 -67
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3542247b7c8a1ec5fb0c7c50fafac37030cd99d2
4
- data.tar.gz: af0db775322ecd5f0e990cb002c74409e3f2593d
3
+ metadata.gz: 99c9a57d4882000585736126594fbef8ead8e268
4
+ data.tar.gz: cf11312c10d4a4c95d6b9c759273050e1ebe838d
5
5
  SHA512:
6
- metadata.gz: 1b055aca2c1e102134762c17510bb7c41c6315dd40050b09acddfe3b445e94bca41a6b6a55e710d53cf2ee86a32869f2dc1a04f43be8d3f9610ec04e0cde990b
7
- data.tar.gz: a13ce3de0681702659bdad4d3c6fb1af066fc54e297507f24d5b0ce9968c4e071ed801714c9e97d806c2aa56f894d56ee3534610255ebc512e01a1be1963fb92
6
+ metadata.gz: 05d7dea86668e4c6934c51b2d394390aaf75b804864a81f8274ded77b5c916cd9e589ae112ff6020c61f64a255840f906657232331ede98add34deebd74c302c
7
+ data.tar.gz: 18b5c463f31fbc0110cd4a96947077335d87ed61d4ee464355d252467e98ab414473b6f214c7ea3f3ed30f2f9b8e12d7864dd5336f62eef38b7ebbcbb0bbc63d
data/bower.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "foundation-rails",
3
- "version": "5.3.0.0",
3
+ "version": "5.3.1.0",
4
4
  "dependencies": {
5
- "foundation": "5.3.0"
5
+ "foundation": "5.3.1"
6
6
  }
7
7
  }
@@ -6,12 +6,12 @@ html lang="en"
6
6
 
7
7
  title == content_for?(:title) ? yield(:title) : "Untitled"
8
8
 
9
- = stylesheet_link_tag "application"
10
- = javascript_include_tag "vendor/modernizr"
11
- = csrf_meta_tag
9
+ = stylesheet_link_tag "application"
10
+ = javascript_include_tag "vendor/modernizr"
11
+ = csrf_meta_tag
12
12
 
13
- body
13
+ body
14
14
 
15
- == yield
15
+ == yield
16
16
 
17
- = javascript_include_tag "application"
17
+ = javascript_include_tag "application"
@@ -1,5 +1,5 @@
1
1
  module Foundation
2
2
  module Rails
3
- VERSION = "5.3.0.1"
3
+ VERSION = "5.3.1.0"
4
4
  end
5
5
  end
@@ -12,8 +12,6 @@
12
12
  // Allows the use of rem-calc() or lower-bound() in your settings
13
13
  @import "foundation/functions";
14
14
 
15
- // $experimental: true;
16
-
17
15
  // The default font-size is set to 100% of the browser style sheet (usually 16px)
18
16
  // for compatibility with browser-based text zoom or user-set defaults.
19
17
 
@@ -26,13 +24,13 @@
26
24
  // $base-line-height: 150%;
27
25
 
28
26
  // We use this to control whether or not CSS classes come through in the gem files.
29
- // $include-html-classes: true;
27
+ $include-html-classes: true;
30
28
  // $include-print-styles: true;
31
- // $include-html-global-classes: $include-html-classes;
29
+ $include-html-global-classes: $include-html-classes;
32
30
 
33
- // Grid
31
+ // Grid
34
32
 
35
- // $include-html-block-grid-classes: $include-html-classes;
33
+ // $include-html-grid-classes: $include-html-classes;
36
34
  // $include-xl-html-grid-classes: false;
37
35
 
38
36
  // $row-width: rem-calc(1000);
@@ -41,14 +39,15 @@
41
39
  // Global
42
40
 
43
41
  // We use these to define default font weights
44
- // $font-weight-normal: normal !default
45
- // $font-weight-bold: bold !default
42
+ // $font-weight-normal: normal !default;
43
+ // $font-weight-bold: bold !default;
46
44
 
47
45
  // We use these to control various global styles
48
46
  // $body-bg: #fff;
49
47
  // $body-font-color: #222;
50
48
  // $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
51
- // $body-font-weight: $font-weight-normal;
49
+ $font-weight-normal:normal;
50
+ $body-font-weight: $font-weight-normal;
52
51
  // $body-font-style: normal;
53
52
 
54
53
  // We use this to control font-smoothing
@@ -60,7 +59,7 @@
60
59
  // $default-float: left;
61
60
 
62
61
  // We use these as default colors throughout
63
- // $primary-color: #008CBA;
62
+ $primary-color: #008CBA;
64
63
  // $secondary-color: #e7e7e7;
65
64
  // $alert-color: #f04124;
66
65
  // $success-color: #43AC6A;
@@ -294,7 +293,7 @@
294
293
 
295
294
  // Block Grid
296
295
 
297
- // $include-html-grid-classes: $include-html-classes;
296
+ // $include-html-block-grid-classes: $include-html-classes;
298
297
  // $include-xl-html-block-grid-classes: false;
299
298
 
300
299
  // We use this to control the maximum number of block grid elements per row
@@ -370,7 +369,7 @@
370
369
  // $button-border-width: 0px;
371
370
  // $button-border-style: solid;
372
371
  // $button-bg: $primary-color;
373
- // $button-border-color: scale-color($bg, $lightness: $button-function-factor);
372
+ // $button-border-color: scale-color($button-bg, $lightness: $button-function-factor);
374
373
 
375
374
  // We use this to set the default radius used throughout the core.
376
375
  // $button-radius: $global-radius;
@@ -674,7 +673,7 @@
674
673
  // $include-html-magellan-classes: $include-html-classes;
675
674
 
676
675
  // $magellan-bg: #fff;
677
- // $magellan-padding: 10px;
676
+ $magellan-padding: 0 !important;
678
677
 
679
678
  // Off-canvas
680
679
 
@@ -963,13 +962,20 @@
963
962
  // $side-nav-link-color: $primary-color;
964
963
  // $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%);
965
964
  // $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%);
965
+ // $side-nav-link-bg-hover: hsla(0, 0, 0, 0.025);
966
+ // $side-nav-link-margin: 0;
967
+ // $side-nav-link-padding: rem-calc(7 14);
966
968
  // $side-nav-font-size: rem-calc(14);
967
969
  // $side-nav-font-weight: $font-weight-normal;
968
970
  // $side-nav-font-weight-active: $side-nav-font-weight;
969
971
  // $side-nav-font-family: $body-font-family;
970
972
  // $side-nav-active-font-family: $side-nav-font-family;
971
973
 
972
-
974
+ // We use these to control heading styles.
975
+ // $side-nav-heading-color: $side-nav-link-color;
976
+ // $side-nav-heading-font-size: $side-nav-font-size;
977
+ // $side-nav-heading-font-weight: bold;
978
+ // $side-nav-heading-text-transform: uppercase;
973
979
 
974
980
  // We use these to control border styles
975
981
  // $side-nav-divider-size: 1px;
@@ -1028,18 +1034,18 @@
1028
1034
  // $sub-nav-font-color: #999;
1029
1035
  // $sub-nav-font-weight: $font-weight-normal;
1030
1036
  // $sub-nav-text-decoration: none;
1031
- // $sub-nav-padding: rem-calc(3 16);
1037
+ $sub-nav-padding: rem-calc(3 16);
1032
1038
  // $sub-nav-border-radius: 3px;
1033
1039
  // $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%);
1034
1040
 
1035
1041
 
1036
1042
  // We use these to control the active item styles
1037
- // $sub-nav-active-font-weight: $font-weight-normal;
1038
- // $sub-nav-active-bg: $primary-color;
1039
- // $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%);
1040
- // $sub-nav-active-color: #fff;
1041
- // $sub-nav-active-padding: $sub-nav-padding;
1042
- // $sub-nav-active-cursor: default;
1043
+ $sub-nav-active-font-weight: $font-weight-normal;
1044
+ $sub-nav-active-bg: $primary-color;
1045
+ $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%);
1046
+ $sub-nav-active-color: #fff;
1047
+ $sub-nav-active-padding: $sub-nav-padding;
1048
+ $sub-nav-active-cursor: default;
1043
1049
 
1044
1050
  // $sub-nav-item-divider: "";
1045
1051
  // $sub-nav-item-divider-margin: rem-calc(12);
@@ -1057,10 +1063,10 @@
1057
1063
  // $switch-bg: #fff;
1058
1064
 
1059
1065
  // We use these to control the switch heights for our default classes
1060
- // $switch-height-tny: 22px;
1061
- // $switch-height-sml: 28px;
1062
- // $switch-height-med: 36px;
1063
- // $switch-height-lrg: 44px;
1066
+ // $switch-height-tny: rem-calc(22);
1067
+ // $switch-height-sml: rem-calc(28);
1068
+ // $switch-height-med: rem-calc(36);
1069
+ // $switch-height-lrg: rem-calc(44);
1064
1070
  // $switch-bottom-margin: rem-calc(20);
1065
1071
 
1066
1072
  // We use these to control default font sizes for our classes.
@@ -1255,6 +1261,21 @@
1255
1261
  // $topbar-sticky-class: ".sticky";
1256
1262
  // $topbar-arrows: true; //Set false to remove the triangle icon from the menu item
1257
1263
 
1264
+ // ICON BAR
1265
+
1266
+ // We use these to style the icon-bar and items
1267
+ // $include-html-icon-bar-classes: $include-html-classes;
1268
+ // $icon-bar-bg: #333;
1269
+ // $icon-bar-font-color: #fff;
1270
+ // $icon-bar-font-size: 1rem;
1271
+ // $icon-bar-hover-color: $primary-color;
1272
+ // $icon-bar-icon-color: #fff;
1273
+ // $icon-bar-icon-size: 1.875rem;
1274
+ // $icon-bar-image-width: 1.875rem;
1275
+ // $icon-bar-image-height: 1.875rem;
1276
+ // $icon-bar-active-color: $primary-color;
1277
+ // $icon-bar-item-padding: 1.25rem;
1278
+
1258
1279
  //
1259
1280
  // VISIBILITY CLASSES
1260
1281
  //
@@ -1262,6 +1283,7 @@
1262
1283
  // $include-html-visibility-classes: $include-html-classes;
1263
1284
  // $include-table-visibility-classes: true;
1264
1285
  // $include-legacy-visibility-classes: true;
1286
+ // $include-accessibility-classes: true;
1265
1287
 
1266
1288
  //
1267
1289
  // RANGE SLIDER
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.abide = {
5
5
  name : 'abide',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  live_validate : true,
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.accordion = {
5
5
  name : 'accordion',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  active_class: 'active',
@@ -26,7 +26,7 @@
26
26
  var accordion = S(this).closest('[' + self.attr_name() + ']'),
27
27
  target = S('#' + this.href.split('#')[1]),
28
28
  siblings = S('dd > .content', accordion),
29
- aunts = $('dd', accordion),
29
+ aunts = $('>dd', accordion),
30
30
  groupSelector = self.attr_name() + '=' + accordion.attr(self.attr_name()),
31
31
  settings = accordion.data(self.attr_name(true) + '-init'),
32
32
  active_content = S('dd > .content.' + settings.active_class, accordion);
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.alert = {
5
5
  name : 'alert',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  callback: function (){}
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.clearing = {
5
5
  name : 'clearing',
6
6
 
7
- version: '5.3.0',
7
+ version: '5.3.1',
8
8
 
9
9
  settings : {
10
10
  templates : {
@@ -196,6 +196,11 @@
196
196
  label = self.S('.clearing-touch-label', container),
197
197
  error = false;
198
198
 
199
+ // Event to disable scrolling on touch devices when Clearing is activated
200
+ $('body').on('touchmove',function(e){
201
+ e.preventDefault();
202
+ });
203
+
199
204
  image.error(function () {
200
205
  error = true;
201
206
  });
@@ -267,6 +272,9 @@
267
272
  visible_image.trigger('closed.fndtn.clearing');
268
273
  }
269
274
 
275
+ // Event to re-enable scrolling on touch devices
276
+ $('body').off('touchmove');
277
+
270
278
  return false;
271
279
  },
272
280
 
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.dropdown = {
5
5
  name : 'dropdown',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  active_class: 'open',
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.equalizer = {
5
5
  name : 'equalizer',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  use_tallest: true,
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.interchange = {
5
5
  name : 'interchange',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  cache : {},
10
10
 
@@ -6,7 +6,7 @@
6
6
  Foundation.libs.joyride = {
7
7
  name : 'joyride',
8
8
 
9
- version : '5.3.0',
9
+ version : '5.3.1',
10
10
 
11
11
  defaults : {
12
12
  expose : false, // turn on or off the expose feature
@@ -196,7 +196,7 @@
196
196
  },
197
197
 
198
198
  button_text : function (txt) {
199
- if (this.settings.next_button) {
199
+ if (this.settings.tip_settings.next_button) {
200
200
  txt = $.trim(txt) || 'Next';
201
201
  txt = $(this.settings.template.button).append(txt)[0].outerHTML;
202
202
  } else {
@@ -206,6 +206,7 @@
206
206
  },
207
207
 
208
208
  create : function (opts) {
209
+ this.settings.tip_settings = $.extend({}, this.settings, this.data_options(opts.$li));
209
210
  var buttonText = opts.$li.attr(this.add_namespace('data-button'))
210
211
  || opts.$li.attr(this.add_namespace('data-text')),
211
212
  tipClass = opts.$li.attr('class'),
@@ -278,7 +278,7 @@
278
278
  window.Foundation = {
279
279
  name : 'Foundation',
280
280
 
281
- version : '5.3.0',
281
+ version : '5.3.1',
282
282
 
283
283
  media_queries : {
284
284
  small : S('.foundation-mq-small').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''),
@@ -4,7 +4,7 @@
4
4
  Foundation.libs['magellan-expedition'] = {
5
5
  name : 'magellan-expedition',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  active_class: 'active',
@@ -38,10 +38,12 @@
38
38
 
39
39
  if (target.length === 0) {
40
40
  target = $('#'+hash);
41
+
41
42
  }
42
43
 
44
+
43
45
  // Account for expedition height if fixed position
44
- var scroll_top = target.offset().top - settings.destination_threshold;
46
+ var scroll_top = target.offset().top - settings.destination_threshold + 1;
45
47
  scroll_top = scroll_top - expedition.outerHeight();
46
48
 
47
49
  $('html, body').stop().animate({
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.offcanvas = {
5
5
  name : 'offcanvas',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  open_method: 'move',
@@ -40,7 +40,7 @@
40
40
  };
41
41
 
42
42
  self.update_active_link = function(index) {
43
- var link = $('a[data-orbit-link="'+self.slides().eq(index).attr('data-orbit-slide')+'"]');
43
+ var link = $('[data-orbit-link="'+self.slides().eq(index).attr('data-orbit-slide')+'"]');
44
44
  link.siblings().removeClass(settings.bullets_active_class);
45
45
  link.addClass(settings.bullets_active_class);
46
46
  };
@@ -402,7 +402,7 @@
402
402
  Foundation.libs.orbit = {
403
403
  name: 'orbit',
404
404
 
405
- version: '5.3.0',
405
+ version: '5.3.1',
406
406
 
407
407
  settings: {
408
408
  animation: 'slide',
@@ -469,4 +469,4 @@
469
469
  };
470
470
 
471
471
 
472
- }(jQuery, window, window.document));
472
+ }(jQuery, window, window.document));
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.reveal = {
5
5
  name : 'reveal',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  locked : false,
10
10
 
@@ -48,7 +48,7 @@
48
48
  .off('.reveal')
49
49
  .on('click.fndtn.reveal', '[' + this.add_namespace('data-reveal-id') + ']:not([disabled])', function (e) {
50
50
  e.preventDefault();
51
-
51
+
52
52
  if (!self.locked) {
53
53
  var element = S(this),
54
54
  ajax = element.data(self.data_attr('reveal-ajax'));
@@ -134,6 +134,7 @@
134
134
  return true;
135
135
  },
136
136
 
137
+
137
138
  open : function (target, ajax_settings) {
138
139
  var self = this,
139
140
  modal;
@@ -154,6 +155,11 @@
154
155
  var settings = modal.data(self.attr_name(true) + '-init');
155
156
  settings = settings || this.settings;
156
157
 
158
+
159
+ if (modal.hasClass('open') && target.attr('data-reveal-id') == modal.attr('id')) {
160
+ return self.close(modal);
161
+ }
162
+
157
163
  if (!modal.hasClass('open')) {
158
164
  var open_modal = self.S('[' + self.attr_name() + '].open');
159
165
 
@@ -373,7 +379,7 @@
373
379
 
374
380
  if (iframe.length > 0) {
375
381
  iframe.attr('data-src', iframe[0].src);
376
- iframe.attr('src', 'about:blank');
382
+ iframe.attr('src', iframe.attr('src'));
377
383
  video.hide();
378
384
  }
379
385
  },
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.slider = {
5
5
  name : 'slider',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings: {
10
10
  start: 0,
@@ -40,10 +40,15 @@
40
40
  if (!!self.cache.active) {
41
41
  e.preventDefault();
42
42
  if ($.data(self.cache.active[0], 'settings').vertical) {
43
- self.calculate_position(self.cache.active, e.pageY ||
44
- e.originalEvent.clientY ||
45
- e.originalEvent.touches[0].clientY ||
46
- e.currentPoint.y);
43
+ var scroll_offset = 0;
44
+ if (!e.pageY) {
45
+ scroll_offset = window.scrollY;
46
+ }
47
+ self.calculate_position(self.cache.active, (e.pageY ||
48
+ e.originalEvent.clientY ||
49
+ e.originalEvent.touches[0].clientY ||
50
+ e.currentPoint.y)
51
+ + scroll_offset);
47
52
  } else {
48
53
  self.calculate_position(self.cache.active, e.pageX ||
49
54
  e.originalEvent.clientX ||
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.tab = {
5
5
  name : 'tab',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  active_class: 'active',
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.tooltip = {
5
5
  name : 'tooltip',
6
6
 
7
- version : '5.3.0',
7
+ version : '5.3.1',
8
8
 
9
9
  settings : {
10
10
  additional_inheritable_classes : [],
@@ -4,7 +4,7 @@
4
4
  Foundation.libs.topbar = {
5
5
  name : 'topbar',
6
6
 
7
- version: '5.3.0',
7
+ version: '5.3.1',
8
8
 
9
9
  settings : {
10
10
  index : 0,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Modernizr v2.8.2
2
+ * Modernizr v2.8.3
3
3
  * www.modernizr.com
4
4
  *
5
5
  * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
@@ -24,7 +24,7 @@
24
24
 
25
25
  window.Modernizr = (function( window, document, undefined ) {
26
26
 
27
- var version = '2.8.2',
27
+ var version = '2.8.3',
28
28
 
29
29
  Modernizr = {},
30
30
 
@@ -12,8 +12,6 @@
12
12
  // Allows the use of rem-calc() or lower-bound() in your settings
13
13
  @import "foundation/functions";
14
14
 
15
- // $experimental: true;
16
-
17
15
  // The default font-size is set to 100% of the browser style sheet (usually 16px)
18
16
  // for compatibility with browser-based text zoom or user-set defaults.
19
17
 
@@ -26,13 +24,13 @@
26
24
  // $base-line-height: 150%;
27
25
 
28
26
  // We use this to control whether or not CSS classes come through in the gem files.
29
- // $include-html-classes: true;
27
+ $include-html-classes: true;
30
28
  // $include-print-styles: true;
31
- // $include-html-global-classes: $include-html-classes;
29
+ $include-html-global-classes: $include-html-classes;
32
30
 
33
- // Grid
31
+ // Grid
34
32
 
35
- // $include-html-block-grid-classes: $include-html-classes;
33
+ // $include-html-grid-classes: $include-html-classes;
36
34
  // $include-xl-html-grid-classes: false;
37
35
 
38
36
  // $row-width: rem-calc(1000);
@@ -41,14 +39,15 @@
41
39
  // Global
42
40
 
43
41
  // We use these to define default font weights
44
- // $font-weight-normal: normal !default
45
- // $font-weight-bold: bold !default
42
+ // $font-weight-normal: normal !default;
43
+ // $font-weight-bold: bold !default;
46
44
 
47
45
  // We use these to control various global styles
48
46
  // $body-bg: #fff;
49
47
  // $body-font-color: #222;
50
48
  // $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
51
- // $body-font-weight: $font-weight-normal;
49
+ $font-weight-normal:normal;
50
+ $body-font-weight: $font-weight-normal;
52
51
  // $body-font-style: normal;
53
52
 
54
53
  // We use this to control font-smoothing
@@ -60,7 +59,7 @@
60
59
  // $default-float: left;
61
60
 
62
61
  // We use these as default colors throughout
63
- // $primary-color: #008CBA;
62
+ $primary-color: #008CBA;
64
63
  // $secondary-color: #e7e7e7;
65
64
  // $alert-color: #f04124;
66
65
  // $success-color: #43AC6A;
@@ -294,7 +293,7 @@
294
293
 
295
294
  // Block Grid
296
295
 
297
- // $include-html-grid-classes: $include-html-classes;
296
+ // $include-html-block-grid-classes: $include-html-classes;
298
297
  // $include-xl-html-block-grid-classes: false;
299
298
 
300
299
  // We use this to control the maximum number of block grid elements per row
@@ -370,7 +369,7 @@
370
369
  // $button-border-width: 0px;
371
370
  // $button-border-style: solid;
372
371
  // $button-bg: $primary-color;
373
- // $button-border-color: scale-color($bg, $lightness: $button-function-factor);
372
+ // $button-border-color: scale-color($button-bg, $lightness: $button-function-factor);
374
373
 
375
374
  // We use this to set the default radius used throughout the core.
376
375
  // $button-radius: $global-radius;
@@ -674,7 +673,7 @@
674
673
  // $include-html-magellan-classes: $include-html-classes;
675
674
 
676
675
  // $magellan-bg: #fff;
677
- // $magellan-padding: 10px;
676
+ $magellan-padding: 0 !important;
678
677
 
679
678
  // Off-canvas
680
679
 
@@ -963,13 +962,20 @@
963
962
  // $side-nav-link-color: $primary-color;
964
963
  // $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%);
965
964
  // $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%);
965
+ // $side-nav-link-bg-hover: hsla(0, 0, 0, 0.025);
966
+ // $side-nav-link-margin: 0;
967
+ // $side-nav-link-padding: rem-calc(7 14);
966
968
  // $side-nav-font-size: rem-calc(14);
967
969
  // $side-nav-font-weight: $font-weight-normal;
968
970
  // $side-nav-font-weight-active: $side-nav-font-weight;
969
971
  // $side-nav-font-family: $body-font-family;
970
972
  // $side-nav-active-font-family: $side-nav-font-family;
971
973
 
972
-
974
+ // We use these to control heading styles.
975
+ // $side-nav-heading-color: $side-nav-link-color;
976
+ // $side-nav-heading-font-size: $side-nav-font-size;
977
+ // $side-nav-heading-font-weight: bold;
978
+ // $side-nav-heading-text-transform: uppercase;
973
979
 
974
980
  // We use these to control border styles
975
981
  // $side-nav-divider-size: 1px;
@@ -1028,18 +1034,18 @@
1028
1034
  // $sub-nav-font-color: #999;
1029
1035
  // $sub-nav-font-weight: $font-weight-normal;
1030
1036
  // $sub-nav-text-decoration: none;
1031
- // $sub-nav-padding: rem-calc(3 16);
1037
+ $sub-nav-padding: rem-calc(3 16);
1032
1038
  // $sub-nav-border-radius: 3px;
1033
1039
  // $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%);
1034
1040
 
1035
1041
 
1036
1042
  // We use these to control the active item styles
1037
- // $sub-nav-active-font-weight: $font-weight-normal;
1038
- // $sub-nav-active-bg: $primary-color;
1039
- // $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%);
1040
- // $sub-nav-active-color: #fff;
1041
- // $sub-nav-active-padding: $sub-nav-padding;
1042
- // $sub-nav-active-cursor: default;
1043
+ $sub-nav-active-font-weight: $font-weight-normal;
1044
+ $sub-nav-active-bg: $primary-color;
1045
+ $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%);
1046
+ $sub-nav-active-color: #fff;
1047
+ $sub-nav-active-padding: $sub-nav-padding;
1048
+ $sub-nav-active-cursor: default;
1043
1049
 
1044
1050
  // $sub-nav-item-divider: "";
1045
1051
  // $sub-nav-item-divider-margin: rem-calc(12);
@@ -1057,10 +1063,10 @@
1057
1063
  // $switch-bg: #fff;
1058
1064
 
1059
1065
  // We use these to control the switch heights for our default classes
1060
- // $switch-height-tny: 22px;
1061
- // $switch-height-sml: 28px;
1062
- // $switch-height-med: 36px;
1063
- // $switch-height-lrg: 44px;
1066
+ // $switch-height-tny: rem-calc(22);
1067
+ // $switch-height-sml: rem-calc(28);
1068
+ // $switch-height-med: rem-calc(36);
1069
+ // $switch-height-lrg: rem-calc(44);
1064
1070
  // $switch-bottom-margin: rem-calc(20);
1065
1071
 
1066
1072
  // We use these to control default font sizes for our classes.
@@ -1255,6 +1261,21 @@
1255
1261
  // $topbar-sticky-class: ".sticky";
1256
1262
  // $topbar-arrows: true; //Set false to remove the triangle icon from the menu item
1257
1263
 
1264
+ // ICON BAR
1265
+
1266
+ // We use these to style the icon-bar and items
1267
+ // $include-html-icon-bar-classes: $include-html-classes;
1268
+ // $icon-bar-bg: #333;
1269
+ // $icon-bar-font-color: #fff;
1270
+ // $icon-bar-font-size: 1rem;
1271
+ // $icon-bar-hover-color: $primary-color;
1272
+ // $icon-bar-icon-color: #fff;
1273
+ // $icon-bar-icon-size: 1.875rem;
1274
+ // $icon-bar-image-width: 1.875rem;
1275
+ // $icon-bar-image-height: 1.875rem;
1276
+ // $icon-bar-active-color: $primary-color;
1277
+ // $icon-bar-item-padding: 1.25rem;
1278
+
1258
1279
  //
1259
1280
  // VISIBILITY CLASSES
1260
1281
  //
@@ -1262,6 +1283,7 @@
1262
1283
  // $include-html-visibility-classes: $include-html-classes;
1263
1284
  // $include-table-visibility-classes: true;
1264
1285
  // $include-legacy-visibility-classes: true;
1286
+ // $include-accessibility-classes: true;
1265
1287
 
1266
1288
  //
1267
1289
  // RANGE SLIDER
@@ -21,33 +21,25 @@ $accordion-navigation-font-family: $body-font-family !default;
21
21
  $accordion-content-padding: $column-gutter/2 !default;
22
22
  $accordion-content-active-bg-color: #fff !default;
23
23
 
24
- /*
25
- Mixin: accordion-container()
26
24
 
27
- Decription: Responsible for the container component of accordions, generating styles relating to a margin of zero and a clearfix
28
-
29
- Explicit Dependencies: a clearfix mixin *is* defined.
30
-
31
- Implicit Dependencies: None
32
-
33
- */
25
+ // Mixin: accordion-container()
26
+ // Decription: Responsible for the container component of accordions, generating styles relating to a margin of zero and a clearfix
27
+ // Explicit Dependencies: a clearfix mixin *is* defined.
28
+ // Implicit Dependencies: None
34
29
 
35
30
  @mixin accordion-container() {
36
31
  @include clearfix;
37
32
  margin-bottom: 0;
38
33
  }
39
34
 
40
- /*
41
- Mixin: accordion-navigation( $bg, $hover-bg, $active-bg, $padding, $active_class, $font-color, $font-size, $font-family){
42
-
43
- @params $bg-color: [ color or string ]: Specify the background color for the navigation element
44
- @params $hover-bg-color [ color or string ]: Specify the background color for the navigation element when hovered
45
- @params $active-bg [ color or string ]: Specify the background color for the navigation element when clicked and not released.
46
- @params $active_class [ string ]: Specify the class name used to keep track of which accordion tab should be visible
47
- @params $font-color [ color or string ]: Color of the font for accordion
48
- @params $font-size [ number ]: Specifiy the font-size of the text inside the navigation element
49
- @params $font-family [ string ]: Specify the font family for the text of the navigation of the accorion
50
- */
35
+ // Mixin: accordion-navigation( $bg, $hover-bg, $active-bg, $padding, $active_class, $font-color, $font-size, $font-family){
36
+ // @params $bg-color: [ color or string ]: Specify the background color for the navigation element
37
+ // @params $hover-bg-color [ color or string ]: Specify the background color for the navigation element when hovered
38
+ // @params $active-bg [ color or string ]: Specify the background color for the navigation element when clicked and not released.
39
+ // @params $active_class [ string ]: Specify the class name used to keep track of which accordion tab should be visible
40
+ // @params $font-color [ color or string ]: Color of the font for accordion
41
+ // @params $font-size [ number ]: Specifiy the font-size of the text inside the navigation element
42
+ // @params $font-family [ string ]: Specify the font family for the text of the navigation of the accorion
51
43
 
52
44
  @mixin accordion-navigation( $bg: $accordion-navigation-bg-color, $hover-bg: $accordion-navigation-hover-bg-color, $active-bg: $accordion-navigation-active-bg-color, $padding: $accordion-navigation-padding, $active_class: 'active', $font-color: $accordion-navigation-font-color, $font-size: $accordion-navigation-font-size, $font-family: $accordion-navigation-font-family ){
53
45
  display: block;
@@ -87,7 +79,7 @@ $accordion-content-active-bg-color: #fff !default;
87
79
  font-size: $accordion-navigation-font-size;
88
80
  }
89
81
  @else{
90
- @warn "`#{$font-size}` is not a valid number and the default value of $accordion-navigation-font-size is not defined. A value of `null` will be returned to not generate a value for font-size.";
82
+ @warn "`#{$font-size}` is not a valid number and the default value of $accordion-navigation-font-size is not defined. A value of `null` will be returned to not generate an invalid value for font-size.";
91
83
  font-size: null;
92
84
 
93
85
  }
@@ -101,13 +93,10 @@ $accordion-content-active-bg-color: #fff !default;
101
93
  }
102
94
  }
103
95
 
104
- /*
105
-
106
- Mixin: accordion-content($bg, $padding, $active-class)
107
- @params $padding [ number ]: Padding for the content of the container
108
- @params $bg [ color ]: Background color for the content when it's visible
109
- @params $active_class [ string ]: Class name used to keep track of which accordion tab should be visible.
110
- */
96
+ // Mixin: accordion-content($bg, $padding, $active-class)
97
+ // @params $padding [ number ]: Padding for the content of the container
98
+ // @params $bg [ color ]: Background color for the content when it's visible
99
+ // @params $active_class [ string ]: Class name used to keep track of which accordion tab should be visible.
111
100
 
112
101
  @mixin accordion-content($bg: $accordion-content-active-bg-color, $padding: $accordion-content-padding, $active_class: 'active'){
113
102
  display: none;
@@ -38,6 +38,8 @@ $button-border-width: 0px !default;
38
38
  $button-border-style: solid !default;
39
39
  $button-bg: $primary-color !default;
40
40
  $button-border-color: scale-color($button-bg, $lightness: $button-function-factor) !default;
41
+ $button-hover-color: scale-color($button-bg, $lightness: $button-function-factor) !default;
42
+
41
43
 
42
44
  // We use this to set the default radius used throughout the core.
43
45
  $button-radius: $global-radius !default;
@@ -118,9 +120,11 @@ $button-disabled-opacity: 0.7 !default;
118
120
  // We use this mixin to add button color styles
119
121
  //
120
122
  // $bg - Primary color set in settings file. Default: $button-bg.
123
+ // $bc - Button Border Color. Default: $button-border-color
124
+ // $bh - Button Hover Color. Default: $button-hover-color
121
125
  // $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: true
122
126
  // $disabled - We can set $disabled:true to create a disabled transparent button. Default: false
123
- @mixin button-style($bg:$button-bg, $radius:false, $disabled:false) {
127
+ @mixin button-style($bg:$button-bg, $radius:false, $disabled:false, $bc:$button-border-color, $bh:$button-hover-color) {
124
128
 
125
129
  // We control which background styles are used,
126
130
  // these can be removed by setting $bg:false
@@ -129,9 +133,9 @@ $button-disabled-opacity: 0.7 !default;
129
133
  $bg-lightness: lightness($bg);
130
134
 
131
135
  background-color: $bg;
132
- border-color: scale-color($bg, $lightness: $button-function-factor);
136
+ border-color: $bc;
133
137
  &:hover,
134
- &:focus { background-color: scale-color($bg, $lightness: $button-function-factor); }
138
+ &:focus { background-color: $bh; }
135
139
 
136
140
  // We control the text color for you based on the background color.
137
141
  @if $bg-lightness > 70% {
@@ -212,6 +216,9 @@ $button-disabled-opacity: 0.7 !default;
212
216
  }
213
217
  }
214
218
 
219
+ //firefox 2px fix
220
+ button::-moz-focus-inner {border:0; padding:0;}
221
+
215
222
  @media #{$medium-up} {
216
223
  button, .button {
217
224
  @include button-base($style:false, $display:inline-block);
@@ -128,7 +128,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
128
128
  }
129
129
 
130
130
  // Disabled background input background color
131
- &[disabled], fieldset[disabled] & { background-color: $input-disabled-bg; }
131
+ &[disabled], &[readonly], fieldset[disabled] & { background-color: $input-disabled-bg; }
132
132
  }
133
133
 
134
134
  // @MIXIN
@@ -305,6 +305,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
305
305
  // We use this mixin to style select elements
306
306
  @mixin form-select {
307
307
  -webkit-appearance: none !important;
308
+ -webkit-border-radius: 0px;
308
309
  background-color: $select-bg-color;
309
310
 
310
311
  // The custom arrow have some fake horizontal padding so we can align it
@@ -388,6 +389,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
388
389
  input[type="url"],
389
390
  textarea {
390
391
  -webkit-appearance: none;
392
+ -webkit-border-radius: 0px;
391
393
  @include form-element;
392
394
  @if $input-include-glowing-effect == false {
393
395
  @include single-transition(all, 0.15s, linear);
@@ -399,6 +401,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
399
401
 
400
402
  input[type="submit"] {
401
403
  -webkit-appearance: none;
404
+ -webkit-border-radius: 0px;
402
405
  }
403
406
 
404
407
  /* Respect enforced amount of rows for textarea */
@@ -442,7 +445,7 @@ $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default;
442
445
  /* Error Handling */
443
446
 
444
447
  #{data('abide')} {
445
- .error small.error, span.error, small.error {
448
+ .error small.error, .error span.error, span.error, small.error {
446
449
  @include form-error-message;
447
450
  }
448
451
  span.error, small.error { display: none; }
@@ -11,9 +11,6 @@
11
11
  // styles get applied to [data-mysite-plugin], etc
12
12
  $namespace: false !default;
13
13
 
14
- // Control the inclusion of experimental properties
15
- $experimental: true !default;
16
-
17
14
  // The default font-size is set to 100% of the browser style sheet (usually 16px)
18
15
  // for compatibility with browser-based text zoom or user-set defaults.
19
16
 
@@ -29,16 +26,6 @@ $base-line-height: 150% !default;
29
26
  // Global Foundation Mixins
30
27
  //
31
28
 
32
- // @mixins
33
- //
34
- // We use this to optionally include experimental or
35
- // explicitly vendor prefixed properties
36
- @mixin experimental() {
37
- @if $experimental {
38
- @content;
39
- }
40
- }
41
-
42
29
  // @mixins
43
30
  //
44
31
  // We use this to control border radius.
@@ -327,7 +314,7 @@ $cursor-text-value: text !default;
327
314
  // Forward slash placed around everything to convince PhantomJS to read the value.
328
315
 
329
316
  meta.foundation-version {
330
- font-family: "/5.2.3/";
317
+ font-family: "/5.3.1/";
331
318
  }
332
319
 
333
320
  meta.foundation-mq-small {
@@ -8,7 +8,7 @@
8
8
  // @name
9
9
  // @dependencies _global.scss
10
10
 
11
-
11
+ $include-html-icon-bar-classes: $include-html-classes !default;
12
12
 
13
13
  // @variables
14
14
 
@@ -188,42 +188,44 @@ $icon-bar-item-padding: 1.25rem !default;
188
188
  $base-style:true) {
189
189
  @include icon-bar-base();
190
190
  @include icon-bar-size($padding, $font-size, $icon-size, $image-width, $image-height);
191
- @include icon-bar-style($bar-bg, $bar-font-color, $bar-hover-color, $bar-icon-color, $bar-active-color, $base-style: true);
191
+ @include icon-bar-style($bar-bg, $bar-font-color, $bar-hover-color, $bar-icon-color, $bar-active-color, $base-style);
192
192
  }
193
193
 
194
194
  @include exports("icon-bar") {
195
- @if $include-html-form-classes {
196
- div.icon-bar {
195
+ @if $include-html-icon-bar-classes {
196
+ .icon-bar {
197
197
  @include icon-bar;
198
198
  }
199
199
  }
200
200
  }
201
201
 
202
+ @if $include-html-icon-bar-classes {
202
203
 
203
- /* toolbar styles */
204
+ // toolbar styles
204
205
 
205
- .icon-bar {
206
+ .icon-bar {
206
207
 
207
- // Counts
208
+ // Counts
208
209
 
209
- &.two-up {
210
- .item { width: 50%; }
211
- &.vertical .item { width: auto; }
212
- }
213
- &.three-up {
214
- .item { width: 33.3333%; }
215
- &.vertical .item { width: auto; }
216
- }
217
- &.four-up {
218
- .item { width: 25%; }
219
- &.vertical .item { width: auto; }
220
- }
221
- &.five-up {
222
- .item { width: 20%; }
223
- &.vertical .item { width: auto; }
224
- }
225
- &.six-up {
226
- .item { width: 16.66667%; }
227
- &.vertical .item { width: auto; }
210
+ &.two-up {
211
+ .item { width: 50%; }
212
+ &.vertical .item { width: auto; }
213
+ }
214
+ &.three-up {
215
+ .item { width: 33.3333%; }
216
+ &.vertical .item { width: auto; }
217
+ }
218
+ &.four-up {
219
+ .item { width: 25%; }
220
+ &.vertical .item { width: auto; }
221
+ }
222
+ &.five-up {
223
+ .item { width: 20%; }
224
+ &.vertical .item { width: auto; }
225
+ }
226
+ &.six-up {
227
+ .item { width: 16.66667%; }
228
+ &.vertical .item { width: auto; }
229
+ }
228
230
  }
229
- }
231
+ }
@@ -97,6 +97,7 @@ $label-font-family: $body-font-family !default;
97
97
  &.round { @include label-style(false, $radius:1000px); }
98
98
 
99
99
  &.alert { @include label-style($alert-color); }
100
+ &.warning { @include label-style($warning-color); }
100
101
  &.success { @include label-style($success-color); }
101
102
  &.secondary { @include label-style($secondary-color); }
102
103
  }
@@ -48,12 +48,16 @@ $pagination-link-current-active-bg: $primary-color !default;
48
48
  // @mixins
49
49
  // Style unavailable list items
50
50
  @mixin pagination-unavailable-item {
51
- a {
51
+ a, button {
52
52
  cursor: $pagination-link-unavailable-cursor;
53
53
  color: $pagination-link-unavailable-font-color;
54
54
  }
55
55
  &:hover a,
56
- & a:focus { background: $pagination-link-unavailable-bg-active; }
56
+ & a:focus,
57
+
58
+ &:hover button,
59
+ & button:focus
60
+ { background: $pagination-link-unavailable-bg-active; }
57
61
  }
58
62
  // @mixins
59
63
  // Style the current list item. Do not assume that the current item has
@@ -61,7 +65,7 @@ $pagination-link-current-active-bg: $primary-color !default;
61
65
  // $has-anchor - Default: true, Options: false
62
66
  @mixin pagination-current-item($has-anchor: true) {
63
67
  @if $has-anchor {
64
- a {
68
+ a, button {
65
69
  background: $pagination-link-current-background;
66
70
  color: $pagination-link-current-font-color;
67
71
  font-weight: $pagination-link-current-font-weight;
@@ -103,15 +107,23 @@ $pagination-link-current-active-bg: $primary-color !default;
103
107
  font-size: $pagination-li-font-size;
104
108
  margin-#{$default-float}: $pagination-li-margin;
105
109
 
106
- a {
110
+ a, button {
107
111
  display: block;
108
112
  padding: $pagination-link-pad;
109
113
  color: $pagination-link-font-color;
114
+ background: none;
110
115
  @include radius;
116
+ font-weight: normal;
117
+ font-size: 1em;
118
+ line-height: inherit;
119
+ @include single-transition(background-color);
111
120
  }
112
121
 
113
122
  &:hover a,
114
- a:focus { background: $pagination-link-active-bg; }
123
+ a:focus,
124
+ &:hover button,
125
+ button:focus
126
+ { background: $pagination-link-active-bg; }
115
127
 
116
128
  @if $use-default-classes {
117
129
  &.unavailable { @include pagination-unavailable-item(); }
@@ -1,4 +1,4 @@
1
- /* toolbar styles */
1
+ // toolbar styles
2
2
 
3
3
  .toolbar {
4
4
  background: #333;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foundation-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.0.1
4
+ version: 5.3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ZURB
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -188,7 +188,6 @@ files:
188
188
  - vendor/assets/stylesheets/foundation/components/_global.scss
189
189
  - vendor/assets/stylesheets/foundation/components/_grid.scss
190
190
  - vendor/assets/stylesheets/foundation/components/_icon-bar.scss
191
- - vendor/assets/stylesheets/foundation/components/_iconbar.scss
192
191
  - vendor/assets/stylesheets/foundation/components/_inline-lists.scss
193
192
  - vendor/assets/stylesheets/foundation/components/_joyride.scss
194
193
  - vendor/assets/stylesheets/foundation/components/_keystrokes.scss
@@ -1,67 +0,0 @@
1
- /* toolbar styles */
2
-
3
- .iconbar {
4
- background: #333;
5
- width: 100%;
6
- font-size: 0;
7
- display: inline-block;
8
-
9
- &.label-bottom .tab .tab-content {
10
- i, img { margin-bottom: 10px; }
11
- }
12
-
13
- &.label-right .tab .tab-content {
14
- i, img { margin-right: 10px; display: inline-block;}
15
- label { display: inline-block; }
16
- }
17
-
18
- &.vertical.label-right .tab .tab-content {
19
- text-align: left;
20
- }
21
-
22
- &.vertical {
23
- height: 100%;
24
- width: auto;
25
-
26
- .tab {
27
- width: auto;
28
- margin: auto;
29
- float: none;
30
- }
31
- }
32
-
33
- .tab {
34
- text-align: center;
35
- width: 25%;
36
- margin: 0 auto;
37
- display: block;
38
- padding: 20px;
39
- float: left;
40
-
41
- &:hover {
42
- background: rgba(#fff, 0.1);
43
- }
44
- }
45
- }
46
-
47
- .toolbar .tab-content {
48
- font-size: 16px;
49
- text-align: center;
50
-
51
- label { color: #ccc; }
52
-
53
- i {
54
- font-size: 30px;
55
- display: block;
56
- margin: 0 auto;
57
- color: #ccc;
58
- vertical-align: middle;
59
- }
60
-
61
- img {
62
- width: 30px;
63
- height: 30px;
64
- display: block;
65
- margin: 0 auto;
66
- }
67
- }