zurb-foundation-5 5.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +7 -0
  2. data/.bowerrc +3 -0
  3. data/.editorconfig +9 -0
  4. data/.gitignore +46 -0
  5. data/.travis.yml +34 -0
  6. data/CONTRIBUTING.md +55 -0
  7. data/Gemfile +3 -0
  8. data/Gemfile.lock +16 -0
  9. data/Gruntfile.js +222 -0
  10. data/LICENSE +22 -0
  11. data/README.md +44 -0
  12. data/bower.json +20 -0
  13. data/composer.json +9 -0
  14. data/foundation.gemspec +21 -0
  15. data/humans.txt +8 -0
  16. data/js/foundation/foundation.abide.js +299 -0
  17. data/js/foundation/foundation.accordion.js +54 -0
  18. data/js/foundation/foundation.alert.js +43 -0
  19. data/js/foundation/foundation.clearing.js +531 -0
  20. data/js/foundation/foundation.dropdown.js +306 -0
  21. data/js/foundation/foundation.equalizer.js +68 -0
  22. data/js/foundation/foundation.interchange.js +331 -0
  23. data/js/foundation/foundation.joyride.js +849 -0
  24. data/js/foundation/foundation.js +609 -0
  25. data/js/foundation/foundation.magellan.js +173 -0
  26. data/js/foundation/foundation.offcanvas.js +50 -0
  27. data/js/foundation/foundation.orbit.js +606 -0
  28. data/js/foundation/foundation.reveal.js +427 -0
  29. data/js/foundation/foundation.slider.js +200 -0
  30. data/js/foundation/foundation.tab.js +168 -0
  31. data/js/foundation/foundation.tooltip.js +272 -0
  32. data/js/foundation/foundation.topbar.js +422 -0
  33. data/karma.conf.js +114 -0
  34. data/lib/foundation/engine.rb +20 -0
  35. data/lib/foundation/generators/USAGE +15 -0
  36. data/lib/foundation/generators/install_generator.rb +54 -0
  37. data/lib/foundation/generators/templates/application.html.erb +47 -0
  38. data/lib/foundation/generators/templates/application.html.haml +31 -0
  39. data/lib/foundation/generators/templates/application.html.slim +35 -0
  40. data/lib/foundation/sprockets.rb +4 -0
  41. data/lib/foundation/version.rb +3 -0
  42. data/lib/scss.js +114 -0
  43. data/lib/zurb-foundation.rb +33 -0
  44. data/package.json +48 -0
  45. data/robots.txt +4 -0
  46. data/run-tests.sh +83 -0
  47. data/sache.json +5 -0
  48. data/scss/foundation.scss +45 -0
  49. data/scss/foundation/_functions.scss +101 -0
  50. data/scss/foundation/_settings.scss +1279 -0
  51. data/scss/foundation/components/_accordion.scss +52 -0
  52. data/scss/foundation/components/_alert-boxes.scss +126 -0
  53. data/scss/foundation/components/_block-grid.scss +132 -0
  54. data/scss/foundation/components/_breadcrumbs.scss +127 -0
  55. data/scss/foundation/components/_button-groups.scss +108 -0
  56. data/scss/foundation/components/_buttons.scss +222 -0
  57. data/scss/foundation/components/_clearing.scss +247 -0
  58. data/scss/foundation/components/_dropdown-buttons.scss +129 -0
  59. data/scss/foundation/components/_dropdown.scss +248 -0
  60. data/scss/foundation/components/_flex-video.scss +51 -0
  61. data/scss/foundation/components/_forms.scss +496 -0
  62. data/scss/foundation/components/_global.scss +365 -0
  63. data/scss/foundation/components/_grid.scss +261 -0
  64. data/scss/foundation/components/_inline-lists.scss +56 -0
  65. data/scss/foundation/components/_joyride.scss +220 -0
  66. data/scss/foundation/components/_keystrokes.scss +61 -0
  67. data/scss/foundation/components/_labels.scss +104 -0
  68. data/scss/foundation/components/_magellan.scss +34 -0
  69. data/scss/foundation/components/_offcanvas.scss +381 -0
  70. data/scss/foundation/components/_orbit.scss +415 -0
  71. data/scss/foundation/components/_pagination.scss +150 -0
  72. data/scss/foundation/components/_panels.scss +91 -0
  73. data/scss/foundation/components/_pricing-tables.scss +150 -0
  74. data/scss/foundation/components/_progress-bars.scss +79 -0
  75. data/scss/foundation/components/_range-slider.scss +148 -0
  76. data/scss/foundation/components/_reveal-new.scss +0 -0
  77. data/scss/foundation/components/_reveal.scss +216 -0
  78. data/scss/foundation/components/_side-nav.scss +93 -0
  79. data/scss/foundation/components/_split-buttons.scss +191 -0
  80. data/scss/foundation/components/_sub-nav.scss +125 -0
  81. data/scss/foundation/components/_switch.scss +294 -0
  82. data/scss/foundation/components/_tables.scss +97 -0
  83. data/scss/foundation/components/_tabs.scss +105 -0
  84. data/scss/foundation/components/_thumbs.scss +68 -0
  85. data/scss/foundation/components/_tooltips.scss +140 -0
  86. data/scss/foundation/components/_top-bar.scss +640 -0
  87. data/scss/foundation/components/_type.scss +493 -0
  88. data/scss/foundation/components/_visibility.scss +345 -0
  89. data/scss/foundation/test.html +0 -0
  90. data/scss/normalize.scss +423 -0
  91. data/spec/abide/abide.js +173 -0
  92. data/spec/abide/advanced.html +22 -0
  93. data/spec/abide/basic.html +13 -0
  94. data/spec/accordion/accordion.js +94 -0
  95. data/spec/accordion/basic.html +39 -0
  96. data/spec/accordion/grid.html +44 -0
  97. data/spec/accordion/multiexpand.html +20 -0
  98. data/spec/alert/alert.js +35 -0
  99. data/spec/alert/basic.html +4 -0
  100. data/spec/clearing/222.gif +0 -0
  101. data/spec/clearing/777.gif +0 -0
  102. data/spec/clearing/basic.html +5 -0
  103. data/spec/clearing/ccc.gif +0 -0
  104. data/spec/clearing/clearing.js +55 -0
  105. data/spec/dropdown/basic.html +10 -0
  106. data/spec/dropdown/dropdown.js +65 -0
  107. data/spec/equalizer/basic.html +24 -0
  108. data/spec/equalizer/equalizer.js +30 -0
  109. data/spec/framework/framework.js +14 -0
  110. data/spec/helpers.js +37 -0
  111. data/spec/interchange/basic.html +3 -0
  112. data/spec/interchange/interchange.js +60 -0
  113. data/spec/joyride/joyride.js +14 -0
  114. data/spec/magellan/magellan.js +14 -0
  115. data/spec/offcanvas/offcanvas.js +14 -0
  116. data/spec/orbit/orbit.js +14 -0
  117. data/spec/reveal/reveal.js +14 -0
  118. data/spec/tab/tab.js +14 -0
  119. data/spec/tooltip/tooltip.js +14 -0
  120. data/spec/topbar/multidropdown.html +60 -0
  121. data/spec/topbar/sticky.html +31 -0
  122. data/spec/topbar/topbar.js +96 -0
  123. metadata +238 -0
@@ -0,0 +1,150 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-nav-classes: $include-html-classes !default;
11
+
12
+ // We use these to control the pagination container
13
+ $pagination-height: rem-calc(24) !default;
14
+ $pagination-margin: rem-calc(-5) !default;
15
+
16
+ // We use these to set the list-item properties
17
+ $pagination-li-float: $default-float;
18
+ $pagination-li-height: rem-calc(24) !default;
19
+ $pagination-li-font-color: #222 !default;
20
+ $pagination-li-font-size: rem-calc(14) !default;
21
+ $pagination-li-margin: rem-calc(5) !default;
22
+
23
+ // We use these for the pagination anchor links
24
+ $pagination-link-pad: rem-calc(1 10 1) !default;
25
+ $pagination-link-font-color: #999 !default;
26
+ $pagination-link-active-bg: scale-color(#fff, $lightness: -10%) !default;
27
+
28
+ // We use these for disabled anchor links
29
+ $pagination-link-unavailable-cursor: default !default;
30
+ $pagination-link-unavailable-font-color: #999 !default;
31
+ $pagination-link-unavailable-bg-active: transparent !default;
32
+
33
+ // We use these for currently selected anchor links
34
+ $pagination-link-current-background: $primary-color !default;
35
+ $pagination-link-current-font-color: #fff !default;
36
+ $pagination-link-current-font-weight: bold !default;
37
+ $pagination-link-current-cursor: default !default;
38
+ $pagination-link-current-active-bg: $primary-color !default;
39
+
40
+ // @mixins
41
+ //
42
+ // Style the pagination container. Currently only used when centering elements.
43
+ // $center - Default: false, Options: true
44
+ @mixin pagination-container($center:false) {
45
+ @if $center { text-align: center; }
46
+ }
47
+
48
+ // @mixins
49
+ // Style unavailable list items
50
+ @mixin pagination-unavailable-item {
51
+ a {
52
+ cursor: $pagination-link-unavailable-cursor;
53
+ color: $pagination-link-unavailable-font-color;
54
+ }
55
+ &:hover a,
56
+ & a:focus { background: $pagination-link-unavailable-bg-active; }
57
+ }
58
+ // @mixins
59
+ // Style the current list item. Do not assume that the current item has
60
+ // an anchor <a> element.
61
+ // $has-anchor - Default: true, Options: false
62
+ @mixin pagination-current-item($has-anchor: true) {
63
+ @if $has-anchor {
64
+ a {
65
+ background: $pagination-link-current-background;
66
+ color: $pagination-link-current-font-color;
67
+ font-weight: $pagination-link-current-font-weight;
68
+ cursor: $pagination-link-current-cursor;
69
+
70
+ &:hover,
71
+ &:focus { background: $pagination-link-current-active-bg; }
72
+ }
73
+ } @else {
74
+ height: auto;
75
+ padding: $pagination-link-pad;
76
+ background: $pagination-link-current-background;
77
+ color: $pagination-link-current-font-color;
78
+ font-weight: $pagination-link-current-font-weight;
79
+ cursor: $pagination-link-current-cursor;
80
+ @include radius;
81
+
82
+ &:hover,
83
+ &:focus { background: $pagination-link-current-active-bg; }
84
+ }
85
+ }
86
+
87
+ // @mixins
88
+ //
89
+ // We use this mixin to set the properties for the creating Foundation pagination
90
+ // $center - Left or center align the li elements. Default: false
91
+ // $base-style - Sets base styles for pagination. Default: true, Options: false
92
+ // $use-default-classes - Makes unavailable & current classes available for use. Default: true
93
+ @mixin pagination($center:false, $base-style:true, $use-default-classes:true) {
94
+
95
+ @if $base-style {
96
+ display: block;
97
+ height: $pagination-height;
98
+ margin-#{$default-float}: $pagination-margin;
99
+
100
+ li {
101
+ height: $pagination-li-height;
102
+ color: $pagination-li-font-color;
103
+ font-size: $pagination-li-font-size;
104
+ margin-#{$default-float}: $pagination-li-margin;
105
+
106
+ a {
107
+ display: block;
108
+ padding: $pagination-link-pad;
109
+ color: $pagination-link-font-color;
110
+ @include radius;
111
+ }
112
+
113
+ &:hover a,
114
+ a:focus { background: $pagination-link-active-bg; }
115
+
116
+ @if $use-default-classes {
117
+ &.unavailable { @include pagination-unavailable-item(); }
118
+ &.current { @include pagination-current-item(); }
119
+ }
120
+ }
121
+ }
122
+
123
+ // Left or center align the li elements
124
+ li {
125
+ @if $center {
126
+ float: none;
127
+ display: inline-block;
128
+ } @else {
129
+ float: $pagination-li-float;
130
+ display: block;
131
+ }
132
+ }
133
+ }
134
+
135
+ @include exports("pagination") {
136
+ @if $include-html-nav-classes {
137
+ ul.pagination {
138
+ @include pagination;
139
+ }
140
+
141
+ /* Pagination centred wrapper */
142
+ .pagination-centered {
143
+ @include pagination-container(true);
144
+
145
+ ul.pagination {
146
+ @include pagination(true, false);
147
+ }
148
+ }
149
+ }
150
+ }
@@ -0,0 +1,91 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-panel-classes: $include-html-classes !default;
11
+
12
+ // We use these to control the background and border styles
13
+ $panel-bg: scale-color(#fff, $lightness: -5%) !default;
14
+ $panel-border-style: solid !default;
15
+ $panel-border-size: 1px !default;
16
+
17
+ // We use this % to control how much we darken things on hover
18
+ $panel-function-factor: -11% !default;
19
+ $panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor) !default;
20
+
21
+ // We use these to set default inner padding and bottom margin
22
+ $panel-margin-bottom: rem-calc(20) !default;
23
+ $panel-padding: rem-calc(20) !default;
24
+
25
+ // We use these to set default font colors
26
+ $panel-font-color: #333 !default;
27
+ $panel-font-color-alt: #fff !default;
28
+
29
+ $panel-header-adjust: true !default;
30
+ $callout-panel-link-color: $primary-color !default;
31
+ //
32
+ // @mixins
33
+ //
34
+ // We use this mixin to create panels.
35
+ // $bg - Sets the panel background color. Default: $panel-pg || scale-color(#fff, $lightness: -5%) !default
36
+ // $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
37
+ // $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
38
+ @mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust) {
39
+
40
+ @if $bg {
41
+ $bg-lightness: lightness($bg);
42
+
43
+ border-style: $panel-border-style;
44
+ border-width: $panel-border-size;
45
+ border-color: scale-color($bg, $lightness: $panel-function-factor);
46
+ margin-bottom: $panel-margin-bottom;
47
+ padding: $padding;
48
+
49
+ background: $bg;
50
+
51
+ // Respect the padding, fool.
52
+ &>:first-child { margin-top: 0; }
53
+ &>:last-child { margin-bottom: 0; }
54
+
55
+ @if $adjust {
56
+ // We set the font color based on the darkness of the bg.
57
+ @if $bg-lightness >= 50% and $bg == blue { h1,h2,h3,h4,h5,h6,p { color: $panel-font-color-alt; } }
58
+ @else if $bg-lightness >= 50% { h1,h2,h3,h4,h5,h6,p { color: $panel-font-color; } }
59
+ @else { h1,h2,h3,h4,h5,h6,p { color: $panel-font-color-alt; } }
60
+
61
+ // reset header line-heights for panels
62
+ h1,h2,h3,h4,h5,h6 {
63
+ line-height: 1; margin-bottom: rem-calc(20) / 2;
64
+ &.subheader { line-height: 1.4; }
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ @include exports("panel") {
71
+ @if $include-html-panel-classes {
72
+
73
+ /* Panels */
74
+ .panel { @include panel;
75
+
76
+ &.callout {
77
+ @include panel(scale-color($primary-color, $lightness: 94%));
78
+ a:not(.button) {
79
+ color: $callout-panel-link-color;
80
+ }
81
+ }
82
+
83
+ &.radius {
84
+ @include panel($bg:false);
85
+ @include radius;
86
+ }
87
+
88
+ }
89
+
90
+ }
91
+ }
@@ -0,0 +1,150 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-pricing-classes: $include-html-classes !default;
11
+
12
+ // We use this to control the border color
13
+ $price-table-border: solid 1px #ddd !default;
14
+
15
+ // We use this to control the bottom margin of the pricing table
16
+ $price-table-margin-bottom: rem-calc(20) !default;
17
+
18
+ // We use these to control the title styles
19
+ $price-title-bg: #333 !default;
20
+ $price-title-padding: rem-calc(15 20) !default;
21
+ $price-title-align: center !default;
22
+ $price-title-color: #eee !default;
23
+ $price-title-weight: normal !default;
24
+ $price-title-size: rem-calc(16) !default;
25
+ $price-title-font-family: $body-font-family !default;
26
+
27
+ // We use these to control the price styles
28
+ $price-money-bg: #f6f6f6 !default;
29
+ $price-money-padding: rem-calc(15 20) !default;
30
+ $price-money-align: center !default;
31
+ $price-money-color: #333 !default;
32
+ $price-money-weight: normal !default;
33
+ $price-money-size: rem-calc(32) !default;
34
+ $price-money-font-family: $body-font-family !default;
35
+
36
+
37
+ // We use these to control the description styles
38
+ $price-bg: #fff !default;
39
+ $price-desc-color: #777 !default;
40
+ $price-desc-padding: rem-calc(15) !default;
41
+ $price-desc-align: center !default;
42
+ $price-desc-font-size: rem-calc(12) !default;
43
+ $price-desc-weight: normal !default;
44
+ $price-desc-line-height: 1.4 !default;
45
+ $price-desc-bottom-border: dotted 1px #ddd !default;
46
+
47
+ // We use these to control the list item styles
48
+ $price-item-color: #333 !default;
49
+ $price-item-padding: rem-calc(15) !default;
50
+ $price-item-align: center !default;
51
+ $price-item-font-size: rem-calc(14) !default;
52
+ $price-item-weight: normal !default;
53
+ $price-item-bottom-border: dotted 1px #ddd !default;
54
+
55
+ // We use these to control the CTA area styles
56
+ $price-cta-bg: #fff !default;
57
+ $price-cta-align: center !default;
58
+ $price-cta-padding: rem-calc(20 20 0) !default;
59
+
60
+ // @mixins
61
+ //
62
+ // We use this to create the container element for the pricing tables
63
+ @mixin pricing-table-container {
64
+ border: $price-table-border;
65
+ margin-#{$default-float}: 0;
66
+ margin-bottom: $price-table-margin-bottom;
67
+
68
+ & * {
69
+ list-style: none;
70
+ line-height: 1;
71
+ }
72
+ }
73
+ // @mixins
74
+ //
75
+ // We use this mixin to create the pricing table title styles
76
+ @mixin pricing-table-title {
77
+ background-color: $price-title-bg;
78
+ padding: $price-title-padding;
79
+ text-align: $price-title-align;
80
+ color: $price-title-color;
81
+ font-weight: $price-title-weight;
82
+ font-size: $price-title-size;
83
+ font-family: $price-title-font-family;
84
+ }
85
+
86
+ // @mixins
87
+ //
88
+ // We use this mixin to control the pricing table price styles
89
+ @mixin pricing-table-price {
90
+ background-color: $price-money-bg;
91
+ padding: $price-money-padding;
92
+ text-align: $price-money-align;
93
+ color: $price-money-color;
94
+ font-weight: $price-money-weight;
95
+ font-size: $price-money-size;
96
+ font-family: $price-money-font-family;
97
+ }
98
+
99
+ // @mixins
100
+ //
101
+ // We use this mixin to create the description styles for the pricing table
102
+ @mixin pricing-table-description {
103
+ background-color: $price-bg;
104
+ padding: $price-desc-padding;
105
+ text-align: $price-desc-align;
106
+ color: $price-desc-color;
107
+ font-size: $price-desc-font-size;
108
+ font-weight: $price-desc-weight;
109
+ line-height: $price-desc-line-height;
110
+ border-bottom: $price-desc-bottom-border;
111
+ }
112
+
113
+ // @mixins
114
+ //
115
+ // We use this mixin to style the bullet items in the pricing table
116
+ @mixin pricing-table-bullet {
117
+ background-color: $price-bg;
118
+ padding: $price-item-padding;
119
+ text-align: $price-item-align;
120
+ color: $price-item-color;
121
+ font-size: $price-item-font-size;
122
+ font-weight: $price-item-weight;
123
+ border-bottom: $price-item-bottom-border;
124
+ }
125
+
126
+ // @mixins
127
+ //
128
+ // We use this mixin to style the CTA area of the pricing tables
129
+ @mixin pricing-table-cta {
130
+ background-color: $price-cta-bg;
131
+ text-align: $price-cta-align;
132
+ padding: $price-cta-padding;
133
+ }
134
+
135
+ @include exports("pricing-table") {
136
+ @if $include-html-pricing-classes {
137
+
138
+ /* Pricing Tables */
139
+ .pricing-table {
140
+ @include pricing-table-container;
141
+
142
+ .title { @include pricing-table-title; }
143
+ .price { @include pricing-table-price; }
144
+ .description { @include pricing-table-description; }
145
+ .bullet-item { @include pricing-table-bullet; }
146
+ .cta-button { @include pricing-table-cta; }
147
+ }
148
+
149
+ }
150
+ }
@@ -0,0 +1,79 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-media-classes: $include-html-classes !default;
11
+
12
+ // We use this to set the progress bar height
13
+ $progress-bar-height: rem-calc(25) !default;
14
+ $progress-bar-color: #f6f6f6 !default;
15
+
16
+ // We use these to control the border styles
17
+ $progress-bar-border-color: scale-color(#fff, $lightness: 20%) !default;
18
+ $progress-bar-border-size: 1px !default;
19
+ $progress-bar-border-style: solid !default;
20
+ $progress-bar-border-radius: $global-radius !default;
21
+
22
+ // We use these to control the margin & padding
23
+ $progress-bar-pad: rem-calc(2) !default;
24
+ $progress-bar-margin-bottom: rem-calc(10) !default;
25
+
26
+ // We use these to set the meter colors
27
+ $progress-meter-color: $primary-color !default;
28
+ $progress-meter-secondary-color: $secondary-color !default;
29
+ $progress-meter-success-color: $success-color !default;
30
+ $progress-meter-alert-color: $alert-color !default;
31
+
32
+ // @mixins
33
+ //
34
+ // We use this to set up the progress bar container
35
+ @mixin progress-container {
36
+ background-color: $progress-bar-color;
37
+ height: $progress-bar-height;
38
+ border: $progress-bar-border-size $progress-bar-border-style $progress-bar-border-color;
39
+ padding: $progress-bar-pad;
40
+ margin-bottom: $progress-bar-margin-bottom;
41
+ }
42
+
43
+ // @mixins
44
+ //
45
+ // $bg - Default: $progress-meter-color || $primary-color
46
+ @mixin progress-meter($bg:$progress-meter-color) {
47
+ background: $bg;
48
+ height: 100%;
49
+ display: block;
50
+ }
51
+
52
+
53
+ @include exports("progress-bar") {
54
+ @if $include-html-media-classes {
55
+
56
+ /* Progress Bar */
57
+ .progress {
58
+ @include progress-container;
59
+
60
+ // Meter
61
+ .meter {
62
+ @include progress-meter;
63
+ }
64
+ &.secondary .meter { @include progress-meter($bg:$progress-meter-secondary-color); }
65
+ &.success .meter { @include progress-meter($bg:$progress-meter-success-color); }
66
+ &.alert .meter { @include progress-meter($bg:$progress-meter-alert-color); }
67
+
68
+ &.radius { @include radius($global-radius);
69
+ .meter { @include radius($global-radius - 1); }
70
+ }
71
+
72
+ &.round { @include radius(1000px);
73
+ .meter { @include radius(999px); }
74
+ }
75
+
76
+ }
77
+
78
+ }
79
+ }