foundation-sass-rails 5.5.3.2

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 (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +37 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +62 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/foundation-sass-rails.gemspec +29 -0
  13. data/lib/foundation-sass-rails.rb +8 -0
  14. data/lib/foundation/version.rb +5 -0
  15. data/lib/generators/foundation/overrides_generator.rb +39 -0
  16. data/vendor/assets/stylesheets/foundation.scss +42 -0
  17. data/vendor/assets/stylesheets/foundation/_functions.scss +156 -0
  18. data/vendor/assets/stylesheets/foundation/_settings.scss +1489 -0
  19. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +161 -0
  20. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
  21. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +133 -0
  22. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
  23. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +208 -0
  24. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +261 -0
  25. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +260 -0
  26. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +130 -0
  27. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +269 -0
  28. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
  29. data/vendor/assets/stylesheets/foundation/components/_forms.scss +607 -0
  30. data/vendor/assets/stylesheets/foundation/components/_global.scss +566 -0
  31. data/vendor/assets/stylesheets/foundation/components/_grid.scss +292 -0
  32. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +460 -0
  33. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +58 -0
  34. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
  35. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +60 -0
  36. data/vendor/assets/stylesheets/foundation/components/_labels.scss +106 -0
  37. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +34 -0
  38. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +606 -0
  39. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +388 -0
  40. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +163 -0
  41. data/vendor/assets/stylesheets/foundation/components/_panels.scss +107 -0
  42. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
  43. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +85 -0
  44. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +177 -0
  45. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +212 -0
  46. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +120 -0
  47. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +203 -0
  48. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +125 -0
  49. data/vendor/assets/stylesheets/foundation/components/_switches.scss +241 -0
  50. data/vendor/assets/stylesheets/foundation/components/_tables.scss +135 -0
  51. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +142 -0
  52. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
  53. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
  54. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +745 -0
  55. data/vendor/assets/stylesheets/foundation/components/_type.scss +525 -0
  56. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +425 -0
  57. data/vendor/assets/stylesheets/normalize.scss +424 -0
  58. metadata +163 -0
@@ -0,0 +1,107 @@
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($white, $lightness: -5%) !default;
14
+ $panel-border-style: solid !default;
15
+ $panel-border-size: 1px !default;
16
+ $callout-panel-bg: scale-color($primary-color, $lightness: 94%) !default;
17
+
18
+ // We use this % to control how much we darken things on hover
19
+ $panel-border-color: scale-color($panel-bg, $lightness: -11%) !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: $oil !default;
27
+ $panel-font-color-alt: $white !default;
28
+
29
+ $panel-header-adjust: true !default;
30
+ $callout-panel-link-color: $primary-color !default;
31
+ $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightness: -14%) !default;
32
+ //
33
+ // @mixins
34
+ //
35
+ // We use this mixin to create panels.
36
+ // $bg - Sets the panel background color. Default: $panel-pg || scale-color($white, $lightness: -5%) !default
37
+ // $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20)
38
+ // $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true
39
+ @mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust, $border:true) {
40
+
41
+ @if $bg {
42
+ $bg-lightness: lightness($bg);
43
+
44
+ @if $border {
45
+ border-style: $panel-border-style;
46
+ border-width: $panel-border-size;
47
+ border-color: $panel-border-color;
48
+ } @else {
49
+ border-style: none;
50
+ border-width: 0;
51
+ }
52
+
53
+ margin-bottom: $panel-margin-bottom;
54
+ padding: $padding;
55
+
56
+ background: $bg;
57
+ @if $bg-lightness >= 50% { color: $panel-font-color; }
58
+ @else { color: $panel-font-color-alt; }
59
+
60
+ // Respect the padding, fool.
61
+ > :first-child { margin-top: 0; }
62
+ > :last-child { margin-bottom: 0; }
63
+
64
+ @if $adjust {
65
+ // We set the font color based on the darkness of the bg.
66
+ @if $bg-lightness >= 50% {
67
+ h1, h2, h3, h4, h5, h6, p, li, dl { color: $panel-font-color; }
68
+ }
69
+ @else {
70
+ h1, h2, h3, h4, h5, h6, p, li, dl { color: $panel-font-color-alt; }
71
+ }
72
+
73
+ // reset header line-heights for panels
74
+ h1, h2, h3, h4, h5, h6 {
75
+ line-height: 1; margin-bottom: rem-calc(20) / 2;
76
+ &.subheader { line-height: 1.4; }
77
+ }
78
+ }
79
+ }
80
+ }
81
+
82
+ @include exports("panel") {
83
+ @if $include-html-panel-classes {
84
+
85
+ /* Panels */
86
+ .panel { @include panel;
87
+
88
+ &.callout {
89
+ @include panel($callout-panel-bg);
90
+ a:not(.button) {
91
+ color: $callout-panel-link-color;
92
+
93
+ &:hover,
94
+ &:focus {
95
+ color: $callout-panel-link-color-hover;
96
+ }
97
+ }
98
+ }
99
+
100
+ &.radius {
101
+ @include radius;
102
+ }
103
+
104
+ }
105
+
106
+ }
107
+ }
@@ -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 $gainsboro !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: $oil !default;
20
+ $price-title-padding: rem-calc(15 20) !default;
21
+ $price-title-align: center !default;
22
+ $price-title-color: $smoke !default;
23
+ $price-title-weight: $font-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: $vapor !default;
29
+ $price-money-padding: rem-calc(15 20) !default;
30
+ $price-money-align: center !default;
31
+ $price-money-color: $oil !default;
32
+ $price-money-weight: $font-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: $white !default;
39
+ $price-desc-color: $monsoon !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: $font-weight-normal !default;
44
+ $price-desc-line-height: 1.4 !default;
45
+ $price-desc-bottom-border: dotted 1px $gainsboro !default;
46
+
47
+ // We use these to control the list item styles
48
+ $price-item-color: $oil !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: $font-weight-normal !default;
53
+ $price-item-bottom-border: dotted 1px $gainsboro !default;
54
+
55
+ // We use these to control the CTA area styles
56
+ $price-cta-bg: $white !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
+ color: $price-title-color;
79
+ font-family: $price-title-font-family;
80
+ font-size: $price-title-size;
81
+ font-weight: $price-title-weight;
82
+ padding: $price-title-padding;
83
+ text-align: $price-title-align;
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
+ color: $price-money-color;
92
+ font-family: $price-money-font-family;
93
+ font-size: $price-money-size;
94
+ font-weight: $price-money-weight;
95
+ padding: $price-money-padding;
96
+ text-align: $price-money-align;
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
+ border-bottom: $price-desc-bottom-border;
105
+ color: $price-desc-color;
106
+ font-size: $price-desc-font-size;
107
+ font-weight: $price-desc-weight;
108
+ line-height: $price-desc-line-height;
109
+ padding: $price-desc-padding;
110
+ text-align: $price-desc-align;
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
+ border-bottom: $price-item-bottom-border;
119
+ color: $price-item-color;
120
+ font-size: $price-item-font-size;
121
+ font-weight: $price-item-weight;
122
+ padding: $price-item-padding;
123
+ text-align: $price-item-align;
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
+ padding: $price-cta-padding;
132
+ text-align: $price-cta-align;
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,85 @@
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: $vapor !default;
15
+
16
+ // We use these to control the border styles
17
+ $progress-bar-border-color: scale-color($white, $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
+ border: $progress-bar-border-size $progress-bar-border-style $progress-bar-border-color;
38
+ height: $progress-bar-height;
39
+ margin-bottom: $progress-bar-margin-bottom;
40
+ padding: $progress-bar-pad;
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
+ display: block;
49
+ height: 100%;
50
+ float: left;
51
+ width: 0%;
52
+ }
53
+
54
+
55
+ @include exports("progress-bar") {
56
+ @if $include-html-media-classes {
57
+
58
+ /* Progress Bar */
59
+ .progress {
60
+ @include progress-container;
61
+
62
+ // Meter
63
+ .meter {
64
+ @include progress-meter;
65
+
66
+ &.secondary { @include progress-meter($bg:$progress-meter-secondary-color); }
67
+ &.success { @include progress-meter($bg:$progress-meter-success-color); }
68
+ &.alert { @include progress-meter($bg:$progress-meter-alert-color); }
69
+ }
70
+ &.secondary .meter { @include progress-meter($bg:$progress-meter-secondary-color); }
71
+ &.success .meter { @include progress-meter($bg:$progress-meter-success-color); }
72
+ &.alert .meter { @include progress-meter($bg:$progress-meter-alert-color); }
73
+
74
+ &.radius { @include radius($progress-bar-border-radius);
75
+ .meter { @include radius($progress-bar-border-radius - 1); }
76
+ }
77
+
78
+ &.round { @include radius(1000px);
79
+ .meter { @include radius(999px); }
80
+ }
81
+
82
+ }
83
+
84
+ }
85
+ }
@@ -0,0 +1,177 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import 'global';
6
+
7
+ //
8
+ // @name _range-slider.scss
9
+ // @dependencies _global.scss
10
+ //
11
+
12
+ //
13
+ // @variables
14
+ //
15
+
16
+ $include-html-range-slider-classes: $include-html-classes !default;
17
+
18
+ // These variables define the slider bar styles
19
+ $range-slider-bar-width: 100% !default;
20
+ $range-slider-bar-height: rem-calc(16) !default;
21
+
22
+ $range-slider-bar-border-width: 1px !default;
23
+ $range-slider-bar-border-style: solid !default;
24
+ $range-slider-bar-border-color: $gainsboro !default;
25
+ $range-slider-radius: $global-radius !default;
26
+ $range-slider-round: $global-rounded !default;
27
+ $range-slider-bar-bg-color: $ghost !default;
28
+ $range-slider-active-segment-bg-color: scale-color($secondary-color, $lightness: -1%) !default;
29
+
30
+ // Vertical bar styles
31
+ $range-slider-vertical-bar-width: rem-calc(16) !default;
32
+ $range-slider-vertical-bar-height: rem-calc(200) !default;
33
+
34
+ // These variables define the slider handle styles
35
+ $range-slider-handle-width: rem-calc(32) !default;
36
+ $range-slider-handle-height: rem-calc(22) !default;
37
+ $range-slider-handle-position-top: rem-calc(-5) !default;
38
+ $range-slider-handle-bg-color: $primary-color !default;
39
+ $range-slider-handle-border-width: 1px !default;
40
+ $range-slider-handle-border-style: solid !default;
41
+ $range-slider-handle-border-color: none !default;
42
+ $range-slider-handle-radius: $global-radius !default;
43
+ $range-slider-handle-round: $global-rounded !default;
44
+ $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%) !default;
45
+ $range-slider-handle-cursor: pointer !default;
46
+
47
+ $range-slider-disabled-opacity: .7 !default;
48
+ $range-slider-disabled-cursor: $cursor-disabled-value !default;
49
+
50
+ //
51
+ // @mixins
52
+ //
53
+
54
+ @mixin range-slider-bar-base($vertical: false) {
55
+ border: $range-slider-bar-border-width $range-slider-bar-border-style $range-slider-bar-border-color;
56
+ margin: rem-calc(20 0);
57
+ position: relative;
58
+ -ms-touch-action: none;
59
+ touch-action: none;
60
+ @if $vertical == true {
61
+ display: inline-block;
62
+ height: $range-slider-vertical-bar-height;
63
+ width: $range-slider-vertical-bar-width;
64
+ } @else {
65
+ display: block;
66
+ height: $range-slider-bar-height;
67
+ width: $range-slider-bar-width;
68
+ }
69
+ }
70
+ @mixin range-slider-bar-style(
71
+ $bg: true,
72
+ $radius: false,
73
+ $round: false,
74
+ $disabled: false) {
75
+ @if $bg == true { background: $range-slider-bar-bg-color; }
76
+ @if $radius == true { @include radius($range-slider-radius); }
77
+ @if $round == true { @include radius($range-slider-round); }
78
+ @if $disabled == true {
79
+ cursor: $range-slider-disabled-cursor;
80
+ opacity: $range-slider-disabled-opacity;
81
+ }
82
+ }
83
+
84
+ @mixin range-slider-bar(
85
+ $bg: $range-slider-bar-bg-color,
86
+ $radius:false) {
87
+ @include range-slider-bar-base;
88
+ @include range-slider-bar-style;
89
+ }
90
+
91
+ @mixin range-slider-handle-base() {
92
+ border: $range-slider-handle-border-width $range-slider-handle-border-style $range-slider-handle-border-color;
93
+ cursor: $range-slider-handle-cursor;
94
+ display: inline-block;
95
+ height: $range-slider-handle-height;
96
+ position: absolute;
97
+ top: $range-slider-handle-position-top;
98
+ width: $range-slider-handle-width;
99
+ z-index: 1;
100
+
101
+ // This removes the 300ms touch delay on Windows 8
102
+ -ms-touch-action: manipulation;
103
+ touch-action: manipulation;
104
+ }
105
+
106
+ @mixin range-slider-handle-style(
107
+ $bg: true,
108
+ $radius: false,
109
+ $round: false,
110
+ $disabled: false) {
111
+ @if $bg == true { background: $range-slider-handle-bg-color; }
112
+ @if $radius == true { @include radius($range-slider-radius); }
113
+ @if $round == true { @include radius($range-slider-round); }
114
+ @if $disabled == true {
115
+ cursor: $cursor-default-value;
116
+ opacity: $range-slider-disabled-opacity;
117
+ }
118
+ &:hover {
119
+ background: $range-slider-handle-bg-hover-color;
120
+ }
121
+ }
122
+
123
+ @mixin range-slider-handle() {
124
+ @include range-slider-handle-base;
125
+ @include range-slider-handle-style;
126
+ }
127
+
128
+ // CSS Generation
129
+ @include exports("range-slider-bar") {
130
+ @if $include-html-range-slider-classes {
131
+ .range-slider {
132
+ @include range-slider-bar-base;
133
+ @include range-slider-bar-style($bg:true, $radius:false);
134
+ &.vertical-range {
135
+ @include range-slider-bar-base($vertical: true);
136
+ .range-slider-handle {
137
+ bottom: -($range-slider-vertical-bar-height - $range-slider-handle-width);
138
+ margin-#{$default-float}: -($range-slider-handle-width / 4);
139
+ margin-top: 0;
140
+ position: absolute;
141
+ }
142
+ .range-slider-active-segment {
143
+ border-bottom-left-radius: inherit;
144
+ border-bottom-right-radius: inherit;
145
+ border-top-left-radius: initial;
146
+ bottom: 0;
147
+ height: auto;
148
+ width: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
149
+ }
150
+ }
151
+ &.radius {
152
+ @include range-slider-bar-style($radius:true);
153
+ .range-slider-handle { @include range-slider-handle-style($radius: true); }
154
+ }
155
+ &.round {
156
+ @include range-slider-bar-style($round:true);
157
+ .range-slider-handle { @include range-slider-handle-style($round: true); }
158
+ }
159
+ &.disabled, &[disabled] {
160
+ @include range-slider-bar-style($disabled:true);
161
+ .range-slider-handle { @include range-slider-handle-style($disabled: true); }
162
+ }
163
+ }
164
+ .range-slider-active-segment {
165
+ background: $range-slider-active-segment-bg-color;
166
+ border-bottom-left-radius: inherit;
167
+ border-top-left-radius: inherit;
168
+ display: inline-block;
169
+ height: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
170
+ position: absolute;
171
+ }
172
+ .range-slider-handle {
173
+ @include range-slider-handle-base;
174
+ @include range-slider-handle-style($bg:true, $radius: false);
175
+ }
176
+ }
177
+ }