foundation-rails 5.5.3.2 → 6.1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +2 -8
  4. data/Rakefile +23 -0
  5. data/app/views/foundation/rails/styleguide/show.html.erb +2 -5
  6. data/bower.json +2 -2
  7. data/lib/foundation/rails/version.rb +1 -1
  8. data/lib/generators/foundation/install_generator.rb +6 -3
  9. data/lib/generators/foundation/templates/_settings.scss +546 -0
  10. data/lib/generators/foundation/templates/application.html.erb +0 -1
  11. data/lib/generators/foundation/templates/application.html.haml +0 -2
  12. data/lib/generators/foundation/templates/application.html.slim +0 -2
  13. data/lib/generators/foundation/templates/foundation_and_overrides.scss +51 -0
  14. data/vendor/assets/js/foundation.abide.js +418 -0
  15. data/vendor/assets/js/foundation.accordion.js +229 -0
  16. data/vendor/assets/js/foundation.accordionMenu.js +262 -0
  17. data/vendor/assets/js/foundation.core.js +378 -0
  18. data/vendor/assets/js/foundation.drilldown.js +321 -0
  19. data/vendor/assets/js/foundation.dropdown.js +390 -0
  20. data/vendor/assets/js/foundation.dropdownMenu.js +391 -0
  21. data/vendor/assets/js/foundation.equalizer.js +274 -0
  22. data/vendor/assets/js/foundation.interchange.js +184 -0
  23. data/vendor/assets/js/foundation.js +28 -0
  24. data/vendor/assets/js/foundation.magellan.js +212 -0
  25. data/vendor/assets/js/foundation.offcanvas.js +371 -0
  26. data/vendor/assets/js/foundation.orbit.js +419 -0
  27. data/vendor/assets/js/foundation.responsiveMenu.js +145 -0
  28. data/vendor/assets/js/foundation.responsiveToggle.js +106 -0
  29. data/vendor/assets/js/foundation.reveal.js +478 -0
  30. data/vendor/assets/js/foundation.slider.js +484 -0
  31. data/vendor/assets/js/foundation.sticky.js +436 -0
  32. data/vendor/assets/js/foundation.tabs.js +306 -0
  33. data/vendor/assets/js/foundation.toggler.js +147 -0
  34. data/vendor/assets/js/foundation.tooltip.js +429 -0
  35. data/vendor/assets/js/foundation.util.box.js +169 -0
  36. data/vendor/assets/js/foundation.util.keyboard.js +115 -0
  37. data/vendor/assets/js/foundation.util.mediaQuery.js +210 -0
  38. data/vendor/assets/js/foundation.util.motion.js +89 -0
  39. data/vendor/assets/js/foundation.util.nest.js +64 -0
  40. data/vendor/assets/js/foundation.util.timerAndImageLoader.js +78 -0
  41. data/vendor/assets/js/foundation.util.touch.js +339 -0
  42. data/vendor/assets/js/foundation.util.triggers.js +222 -0
  43. data/vendor/assets/scss/_global.scss +626 -0
  44. data/vendor/assets/scss/components/_accordion-menu.scss +32 -0
  45. data/vendor/assets/scss/components/_accordion.scss +113 -0
  46. data/vendor/assets/scss/components/_badge.scss +55 -0
  47. data/vendor/assets/scss/components/_breadcrumbs.scss +94 -0
  48. data/vendor/assets/scss/components/_button-group.scss +130 -0
  49. data/vendor/assets/scss/components/_button.scss +265 -0
  50. data/vendor/assets/scss/components/_callout.scss +105 -0
  51. data/vendor/assets/scss/components/_close-button.scss +61 -0
  52. data/vendor/assets/scss/components/_drilldown.scss +75 -0
  53. data/vendor/assets/scss/components/_dropdown-menu.scss +148 -0
  54. data/vendor/assets/scss/components/_dropdown.scss +64 -0
  55. data/vendor/assets/scss/components/_flex-video.scss +63 -0
  56. data/vendor/assets/scss/components/_float.scss +27 -0
  57. data/vendor/assets/scss/components/_label.scss +56 -0
  58. data/vendor/assets/scss/components/_media-object.scss +74 -0
  59. data/vendor/assets/scss/components/_menu.scss +209 -0
  60. data/vendor/assets/scss/components/_off-canvas.scss +180 -0
  61. data/vendor/assets/scss/components/_orbit.scss +193 -0
  62. data/vendor/assets/scss/components/_pagination.scss +158 -0
  63. data/vendor/assets/scss/components/_progress-bar.scss +83 -0
  64. data/vendor/assets/scss/components/_reveal.scss +156 -0
  65. data/vendor/assets/scss/components/_slider.scss +158 -0
  66. data/vendor/assets/scss/components/_sticky.scss +38 -0
  67. data/vendor/assets/scss/components/_switch.scss +232 -0
  68. data/vendor/assets/scss/components/_table.scss +213 -0
  69. data/vendor/assets/scss/components/_tabs.scss +170 -0
  70. data/vendor/assets/scss/components/_thumbnail.scss +54 -0
  71. data/vendor/assets/scss/components/_title-bar.scss +68 -0
  72. data/vendor/assets/scss/components/_tooltip.scss +100 -0
  73. data/vendor/assets/scss/components/_top-bar.scss +89 -0
  74. data/vendor/assets/scss/components/_visibility.scss +131 -0
  75. data/vendor/assets/scss/forms/_checkbox.scss +36 -0
  76. data/vendor/assets/scss/forms/_error.scss +82 -0
  77. data/vendor/assets/scss/forms/_fieldset.scss +53 -0
  78. data/vendor/assets/scss/forms/_forms.scss +32 -0
  79. data/vendor/assets/scss/forms/_help-text.scss +30 -0
  80. data/vendor/assets/scss/forms/_input-group.scss +91 -0
  81. data/vendor/assets/scss/forms/_label.scss +48 -0
  82. data/vendor/assets/scss/forms/_select.scss +63 -0
  83. data/vendor/assets/scss/forms/_text.scss +154 -0
  84. data/vendor/assets/scss/foundation.scss +91 -0
  85. data/vendor/assets/scss/grid/_classes.scss +153 -0
  86. data/vendor/assets/scss/grid/_column.scss +124 -0
  87. data/vendor/assets/scss/grid/_flex-grid.scss +281 -0
  88. data/vendor/assets/scss/grid/_grid.scss +48 -0
  89. data/vendor/assets/scss/grid/_gutter.scss +34 -0
  90. data/vendor/assets/scss/grid/_layout.scss +33 -0
  91. data/vendor/assets/scss/grid/_position.scss +72 -0
  92. data/vendor/assets/scss/grid/_row.scss +97 -0
  93. data/vendor/assets/scss/grid/_size.scss +24 -0
  94. data/vendor/assets/scss/settings/_settings.scss +547 -0
  95. data/vendor/assets/scss/typography/_alignment.scss +22 -0
  96. data/vendor/assets/scss/typography/_base.scss +439 -0
  97. data/vendor/assets/scss/typography/_helpers.scss +77 -0
  98. data/vendor/assets/scss/typography/_print.scss +73 -0
  99. data/vendor/assets/scss/typography/_typography.scss +28 -0
  100. data/vendor/assets/scss/util/_breakpoint.scss +266 -0
  101. data/vendor/assets/scss/util/_color.scss +41 -0
  102. data/vendor/assets/scss/util/_mixins.scss +223 -0
  103. data/vendor/assets/scss/util/_selector.scss +40 -0
  104. data/vendor/assets/scss/util/_unit.scss +90 -0
  105. data/vendor/assets/scss/util/_util.scss +15 -0
  106. data/vendor/assets/scss/util/_value.scss +126 -0
  107. metadata +97 -64
  108. data/update-gem.sh +0 -20
  109. data/vendor/assets/javascripts/foundation.js +0 -17
  110. data/vendor/assets/javascripts/foundation/foundation.abide.js +0 -426
  111. data/vendor/assets/javascripts/foundation/foundation.accordion.js +0 -125
  112. data/vendor/assets/javascripts/foundation/foundation.alert.js +0 -43
  113. data/vendor/assets/javascripts/foundation/foundation.clearing.js +0 -586
  114. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +0 -468
  115. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +0 -104
  116. data/vendor/assets/javascripts/foundation/foundation.interchange.js +0 -360
  117. data/vendor/assets/javascripts/foundation/foundation.joyride.js +0 -935
  118. data/vendor/assets/javascripts/foundation/foundation.js +0 -732
  119. data/vendor/assets/javascripts/foundation/foundation.magellan.js +0 -214
  120. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +0 -225
  121. data/vendor/assets/javascripts/foundation/foundation.orbit.js +0 -476
  122. data/vendor/assets/javascripts/foundation/foundation.reveal.js +0 -522
  123. data/vendor/assets/javascripts/foundation/foundation.slider.js +0 -296
  124. data/vendor/assets/javascripts/foundation/foundation.tab.js +0 -247
  125. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +0 -348
  126. data/vendor/assets/javascripts/foundation/foundation.topbar.js +0 -458
  127. data/vendor/assets/javascripts/vendor/modernizr.js +0 -1406
  128. data/vendor/assets/stylesheets/foundation.scss +0 -42
  129. data/vendor/assets/stylesheets/foundation/_functions.scss +0 -156
  130. data/vendor/assets/stylesheets/foundation/_settings.scss +0 -1489
  131. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +0 -161
  132. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
  133. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +0 -133
  134. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
  135. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +0 -208
  136. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +0 -261
  137. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +0 -260
  138. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
  139. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +0 -269
  140. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
  141. data/vendor/assets/stylesheets/foundation/components/_forms.scss +0 -607
  142. data/vendor/assets/stylesheets/foundation/components/_global.scss +0 -566
  143. data/vendor/assets/stylesheets/foundation/components/_grid.scss +0 -292
  144. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +0 -460
  145. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -58
  146. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -220
  147. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +0 -60
  148. data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -106
  149. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -34
  150. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +0 -606
  151. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +0 -388
  152. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +0 -163
  153. data/vendor/assets/stylesheets/foundation/components/_panels.scss +0 -107
  154. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
  155. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +0 -85
  156. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +0 -177
  157. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +0 -212
  158. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +0 -120
  159. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -203
  160. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +0 -125
  161. data/vendor/assets/stylesheets/foundation/components/_switches.scss +0 -241
  162. data/vendor/assets/stylesheets/foundation/components/_tables.scss +0 -135
  163. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +0 -142
  164. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
  165. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
  166. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +0 -745
  167. data/vendor/assets/stylesheets/foundation/components/_type.scss +0 -525
  168. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +0 -425
  169. data/vendor/assets/stylesheets/normalize.scss +0 -424
@@ -1,161 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import 'global';
6
-
7
- //
8
- // @variables
9
- //
10
-
11
- $include-html-accordion-classes: $include-html-classes !default;
12
-
13
- $accordion-navigation-padding: rem-calc(16) !default;
14
- $accordion-navigation-bg-color: $silver !default;
15
- $accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%) !default;
16
- $accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%) !default;
17
- $accordion-navigation-active-font-color: $jet !default;
18
- $accordion-navigation-font-color: $jet !default;
19
- $accordion-navigation-font-size: rem-calc(16) !default;
20
- $accordion-navigation-font-family: $body-font-family !default;
21
-
22
- $accordion-content-padding: ($column-gutter/2) !default;
23
- $accordion-content-active-bg-color: $white !default;
24
-
25
-
26
- // Mixin: accordion-container()
27
- // Decription: Responsible for the container component of accordions, generating styles relating to a margin of zero and a clearfix
28
- // Explicit Dependencies: a clearfix mixin *is* defined.
29
- // Implicit Dependencies: None
30
-
31
- @mixin accordion-container() {
32
- @include clearfix;
33
- margin-bottom: 0;
34
- }
35
-
36
- // Mixin: accordion-navigation( $bg, $hover-bg, $active-bg, $padding, $active_class, $font-color, $font-size, $font-family) {
37
- // @params $bg-color: [ color or string ]: Specify the background color for the navigation element
38
- // @params $hover-bg-color [ color or string ]: Specify the background color for the navigation element when hovered
39
- // @params $active-bg [ color or string ]: Specify the background color for the navigation element when clicked and not released.
40
- // @params $active_class [ string ]: Specify the class name used to keep track of which accordion tab should be visible
41
- // @params $font-color [ color or string ]: Color of the font for accordion
42
- // @params $font-size [ number ]: Specifiy the font-size of the text inside the navigation element
43
- // @params $font-family [ string ]: Specify the font family for the text of the navigation of the accorion
44
- // @params $active-font [ color or string ]: Specify the font color for the navigation element when active.
45
-
46
- @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, $active-font: $accordion-navigation-active-font-color ) {
47
- display: block;
48
- margin-bottom: 0 !important;
49
- @if type-of($active_class) != "string" {
50
- @warn "`#{$active_class}` isn't a valid string. A valid string is needed to correctly be interpolated as a CSS class. CSS classes cannot start with a number or consist of only numbers. CSS will not be generated for the active state of this navigation component."
51
- }
52
- @else {
53
- &.#{ $active_class } > a {
54
- background: $active-bg;
55
- color: $active-font;
56
- }
57
- }
58
- > a {
59
- background: $bg;
60
- color: $font-color;
61
- @if type-of($padding) != number {
62
- @warn "`#{$padding}` was read as #{type-of($padding)}";
63
- @if $accordion-navigation-padding != null {
64
- @warn "#{$padding} was read as a #{type-of($padding)}";
65
- @warn "`#{$padding}` isn't a valid number. $accordion-navigation-padding (#{$accordion-navigation-padding}) will be used instead.)";
66
- padding: $accordion-navigation-padding;
67
- }
68
- @else {
69
- @warn "`#{$padding}` isn't a valid number and $accordion-navigation-padding is missing. A value of `null` is returned to not output an invalid value for padding";
70
- padding: null;
71
- }
72
- }
73
- @else {
74
- padding: $padding;
75
- }
76
- display: block;
77
- font-family: $font-family;
78
- @if type-of($font-size) != number {
79
- @warn "`#{$font-size}` was read as a #{type-of($font-size)}";
80
- @if $accordion-navigation-font-size != null {
81
- @warn "`#{$font-size}` is not a valid number. The value of $accordion-navigation-font-size will be used instead (#{$accordion-navigation-font-size}).";
82
- font-size: $accordion-navigation-font-size;
83
- }
84
- @else{
85
- @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.";
86
- font-size: null;
87
-
88
- }
89
- }
90
- @else {
91
- font-size: $font-size;
92
- }
93
- &:hover {
94
- background: $hover-bg;
95
- }
96
- }
97
- }
98
-
99
- // Mixin: accordion-content($bg, $padding, $active-class)
100
- // @params $padding [ number ]: Padding for the content of the container
101
- // @params $bg [ color ]: Background color for the content when it's visible
102
- // @params $active_class [ string ]: Class name used to keep track of which accordion tab should be visible.
103
-
104
- @mixin accordion-content($bg: $accordion-content-active-bg-color, $padding: $accordion-content-padding, $active_class: 'active') {
105
- display: none;
106
- @if type-of($padding) != "number" {
107
- @warn "#{$padding} was read as a #{type-of($padding)}";
108
- @if $accordion-content-padding != null {
109
- @warn "`#{$padding}` isn't a valid number. $accordion-content-padding used instead";
110
- padding: $accordion-content-padding;
111
- } @else {
112
- @warn "`#{$padding}` isn't a valid number and the default value of $accordion-content-padding is not defined. A value of `null` is returned to not output an invalid value for padding.";
113
- padding: null;
114
- }
115
- } @else {
116
- padding: $padding;
117
- }
118
-
119
- @if type-of($active_class) != "string" {
120
- @warn "`#{$active_class}` isn't a valid string. A valid string is needed to correctly be interpolated as a CSS class. CSS classes cannot start with a number or consist of only numbers. CSS will not be generated for the active state of the content. "
121
- }
122
- @else {
123
- &.#{$active_class} {
124
- background: $bg;
125
- display: block;
126
- }
127
- }
128
- }
129
-
130
- @include exports("accordion") {
131
- @if $include-html-accordion-classes {
132
- .accordion {
133
- @include clearfix;
134
- margin-bottom: 0;
135
- margin-left: 0;
136
- .accordion-navigation, dd {
137
- display: block;
138
- margin-bottom: 0 !important;
139
- &.active > a { background: $accordion-navigation-active-bg-color; color: $accordion-navigation-active-font-color; }
140
- > a {
141
- background: $accordion-navigation-bg-color;
142
- color: $accordion-navigation-font-color;
143
- display: block;
144
- font-family: $accordion-navigation-font-family;
145
- font-size: $accordion-navigation-font-size;
146
- padding: $accordion-navigation-padding;
147
- &:hover { background: $accordion-navigation-hover-bg-color; }
148
- }
149
-
150
- > .content {
151
- display: none;
152
- padding: $accordion-content-padding;
153
- &.active {
154
- background: $accordion-content-active-bg-color;
155
- display: block;
156
- }
157
- }
158
- }
159
- }
160
- }
161
- }
@@ -1,128 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import 'global';
6
-
7
- //
8
- // Alert Box Variables
9
- //
10
- $include-html-alert-classes: $include-html-classes !default;
11
-
12
- // We use this to control alert padding.
13
- $alert-padding-top: rem-calc(14) !default;
14
- $alert-padding-default-float: $alert-padding-top !default;
15
- $alert-padding-opposite-direction: $alert-padding-top + rem-calc(10) !default;
16
- $alert-padding-bottom: $alert-padding-top !default;
17
-
18
- // We use these to control text style.
19
- $alert-font-weight: $font-weight-normal !default;
20
- $alert-font-size: rem-calc(13) !default;
21
- $alert-font-color: $white !default;
22
- $alert-font-color-alt: scale-color($secondary-color, $lightness: -66%) !default;
23
-
24
- // We use this for close hover effect.
25
- $alert-function-factor: -14% !default;
26
-
27
- // We use these to control border styles.
28
- $alert-border-style: solid !default;
29
- $alert-border-width: 1px !default;
30
- $alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor) !default;
31
- $alert-bottom-margin: rem-calc(20) !default;
32
-
33
- // We use these to style the close buttons
34
- $alert-close-color: $oil !default;
35
- $alert-close-top: 50% !default;
36
- $alert-close-position: rem-calc(4) !default;
37
- $alert-close-font-size: rem-calc(22) !default;
38
- $alert-close-opacity: .3 !default;
39
- $alert-close-opacity-hover: .5 !default;
40
- $alert-close-padding: 0 6px 4px !default;
41
- $alert-close-background: inherit !default;
42
-
43
- // We use this to control border radius
44
- $alert-radius: $global-radius !default;
45
-
46
- $alert-transition-speed: 300ms !default;
47
- $alert-transition-ease: ease-out !default;
48
-
49
- //
50
- // Alert Mixins
51
- //
52
-
53
- // We use this mixin to create a default alert base.
54
- @mixin alert-base {
55
- border-style: $alert-border-style;
56
- border-width: $alert-border-width;
57
- display: block;
58
- font-size: $alert-font-size;
59
- font-weight: $alert-font-weight;
60
- margin-bottom: $alert-bottom-margin;
61
- padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float;
62
- position: relative;
63
- @include single-transition(opacity, $alert-transition-speed, $alert-transition-ease)
64
- }
65
-
66
- // We use this mixin to add alert styles
67
- //
68
- // $bg - The background of the alert. Default: $primary-color.
69
- @mixin alert-style($bg:$primary-color) {
70
-
71
- // This finds the lightness percentage of the background color.
72
- $bg-lightness: lightness($bg);
73
-
74
- // We control which background color and border come through.
75
- background-color: $bg;
76
- border-color: scale-color($bg, $lightness: $alert-function-factor);
77
-
78
- // We control the text color for you based on the background color.
79
- @if $bg-lightness > 70% { color: $alert-font-color-alt; }
80
- @else { color: $alert-font-color; }
81
-
82
- }
83
-
84
- // We use this to create the close button.
85
- @mixin alert-close {
86
- #{$opposite-direction}: $alert-close-position;
87
- background: $alert-close-background;
88
- color: $alert-close-color;
89
- font-size: $alert-close-font-size;
90
- line-height: .9;
91
- margin-top: -($alert-close-font-size / 2);
92
- opacity: $alert-close-opacity;
93
- padding: $alert-close-padding;
94
- position: absolute;
95
- top: $alert-close-top;
96
- &:hover,
97
- &:focus { opacity: $alert-close-opacity-hover; }
98
- }
99
-
100
- // We use this to quickly create alerts with a single mixin.
101
- //
102
- // $bg - Background of alert. Default: $primary-color.
103
- // $radius - Radius of alert box. Default: false.
104
- @mixin alert($bg:$primary-color, $radius:false) {
105
- @include alert-base;
106
- @include alert-style($bg);
107
- @include radius($radius);
108
- }
109
-
110
- @include exports("alert-box") {
111
- @if $include-html-alert-classes {
112
- .alert-box {
113
- @include alert;
114
-
115
- .close { @include alert-close; }
116
-
117
- &.radius { @include radius($alert-radius); }
118
- &.round { @include radius($global-rounded); }
119
-
120
- &.success { @include alert-style($success-color); }
121
- &.alert { @include alert-style($alert-color); }
122
- &.secondary { @include alert-style($secondary-color); }
123
- &.warning { @include alert-style($warning-color); }
124
- &.info { @include alert-style($info-color); }
125
- &.alert-close { opacity: 0}
126
- }
127
- }
128
- }
@@ -1,133 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import 'global';
6
-
7
- //
8
- // Block Grid Variables
9
- //
10
- $include-html-block-grid-classes: $include-html-classes !default;
11
- $include-xl-html-block-grid-classes: false !default;
12
-
13
- // We use this to control the maximum number of block grid elements per row
14
- $block-grid-elements: 12 !default;
15
- $block-grid-default-spacing: rem-calc(20) !default;
16
-
17
- $align-block-grid-to-grid: false !default;
18
- @if $align-block-grid-to-grid {
19
- $block-grid-default-spacing: $column-gutter;
20
- }
21
-
22
- // Enables media queries for block-grid classes. Set to false if writing semantic HTML.
23
- $block-grid-media-queries: true !default;
24
-
25
- //
26
- // Block Grid Mixins
27
- //
28
-
29
- // Create a custom block grid
30
- //
31
- // $per-row - # of items to display per row. Default: false.
32
- // $spacing - # of ems to use as padding on each block item. Default: rem-calc(20).
33
- // $include-spacing - Adds padding to our list item. Default: true.
34
- // $base-style - Apply a base style to block grid. Default: true.
35
- @mixin block-grid(
36
- $per-row:false,
37
- $spacing:$block-grid-default-spacing,
38
- $include-spacing:true,
39
- $base-style:true) {
40
-
41
- @if $base-style {
42
- display: block;
43
- padding: 0;
44
- @if $align-block-grid-to-grid {
45
- margin: 0;
46
- } @else {
47
- margin: 0 (-$spacing/2);
48
- }
49
- @include clearfix;
50
-
51
- > li {
52
- display: block;
53
- float: $default-float;
54
- height: auto;
55
- @if $include-spacing {
56
- padding: 0 ($spacing/2) $spacing;
57
- }
58
- }
59
- }
60
-
61
- @if $per-row {
62
- > li {
63
- list-style: none;
64
- @if $include-spacing {
65
- padding: 0 ($spacing/2) $spacing;
66
- }
67
- width: 100%/$per-row;
68
-
69
- &:nth-of-type(1n) { clear: none; }
70
- &:nth-of-type(#{$per-row}n+1) { clear: both; }
71
- @if $align-block-grid-to-grid {
72
- @include block-grid-aligned($per-row, $spacing);
73
- }
74
- }
75
- }
76
- }
77
-
78
- @mixin block-grid-aligned($per-row, $spacing) {
79
- @for $i from 1 through $block-grid-elements {
80
- @if $per-row >= $i {
81
- $grid-column: '+' + $i;
82
- @if $per-row == $i {
83
- $grid-column: '';
84
- }
85
- &:nth-of-type(#{$per-row}n#{unquote($grid-column)}) {
86
- padding-left: ($spacing - (($spacing / $per-row) * ($per-row - ($i - 1))));
87
- padding-right: ($spacing - (($spacing / $per-row) * $i));
88
- }
89
- }
90
- }
91
- }
92
-
93
- // Generate presentational markup for block grid.
94
- //
95
- // $size - Name of class to use, i.e. "large" will generate .large-block-grid-1, .large-block-grid-2, etc.
96
- @mixin block-grid-html-classes($size, $include-spacing) {
97
- @for $i from 1 through $block-grid-elements {
98
- .#{$size}-block-grid-#{($i)} {
99
- @include block-grid($i, $block-grid-default-spacing, $include-spacing, false);
100
- }
101
- }
102
- }
103
-
104
- @include exports("block-grid") {
105
- @if $include-html-block-grid-classes {
106
-
107
- [class*="block-grid-"] { @include block-grid; }
108
-
109
- @if $block-grid-media-queries {
110
- @media #{$small-up} {
111
- @include block-grid-html-classes($size:small, $include-spacing:false);
112
- }
113
-
114
- @media #{$medium-up} {
115
- @include block-grid-html-classes($size:medium, $include-spacing:false);
116
- }
117
-
118
- @media #{$large-up} {
119
- @include block-grid-html-classes($size:large, $include-spacing:false);
120
- }
121
-
122
- @if $include-xl-html-block-grid-classes {
123
- @media #{$xlarge-up} {
124
- @include block-grid-html-classes($size:xlarge, $include-spacing:false);
125
- }
126
-
127
- @media #{$xxlarge-up} {
128
- @include block-grid-html-classes($size:xxlarge, $include-spacing:false);
129
- }
130
- }
131
- }
132
- }
133
- }
@@ -1,132 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import 'global';
6
-
7
- //
8
- // Breadcrumb Variables
9
- //
10
- $include-html-nav-classes: $include-html-classes !default;
11
-
12
- // We use this to set the background color for the breadcrumb container.
13
- $crumb-bg: scale-color($secondary-color, $lightness: 55%) !default;
14
-
15
- // We use these to set the padding around the breadcrumbs.
16
- $crumb-padding: rem-calc(9 14 9) !default;
17
- $crumb-side-padding: rem-calc(12) !default;
18
-
19
- // We use these to control border styles.
20
- $crumb-function-factor: -10% !default;
21
- $crumb-border-size: 1px !default;
22
- $crumb-border-style: solid !default;
23
- $crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor) !default;
24
- $crumb-radius: $global-radius !default;
25
-
26
- // We use these to set various text styles for breadcrumbs.
27
- $crumb-font-size: rem-calc(11) !default;
28
- $crumb-font-color: $primary-color !default;
29
- $crumb-font-color-current: $oil !default;
30
- $crumb-font-color-unavailable: $aluminum !default;
31
- $crumb-font-transform: uppercase !default;
32
- $crumb-link-decor: underline !default;
33
-
34
- // We use these to control the slash between breadcrumbs
35
- $crumb-slash-color: $base !default;
36
- $crumb-slash: "/" !default;
37
- $crumb-slash-position: 1px !default;
38
-
39
- //
40
- // Breadcrumb Mixins
41
- //
42
-
43
- // We use this mixin to create a container around our breadcrumbs
44
- @mixin crumb-container {
45
- border-style: $crumb-border-style;
46
- border-width: $crumb-border-size;
47
- display: block;
48
- list-style: none;
49
- margin-#{$default-float}: 0;
50
- overflow: hidden;
51
- padding: $crumb-padding;
52
-
53
- // We control which background color and border come through.
54
- background-color: $crumb-bg;
55
- border-color: $crumb-border-color;
56
- }
57
-
58
- // We use this mixin to create breadcrumb styles from list items.
59
- @mixin crumbs {
60
-
61
- // A normal state will make the links look and act like clickable breadcrumbs.
62
- color: $crumb-font-color;
63
- float: $default-float;
64
- font-size: $crumb-font-size;
65
- line-height: $crumb-font-size;
66
- margin: 0;
67
- text-transform: $crumb-font-transform;
68
-
69
- &:hover a, &:focus a { text-decoration: $crumb-link-decor; }
70
-
71
- a {
72
- color: $crumb-font-color;
73
- }
74
-
75
- // Current is for the link of the current page
76
- &.current {
77
- color: $crumb-font-color-current;
78
- cursor: $cursor-default-value;
79
- a {
80
- color: $crumb-font-color-current;
81
- cursor: $cursor-default-value;
82
- }
83
-
84
- &:hover, &:hover a,
85
- &:focus, &:focus a { text-decoration: none; }
86
- }
87
-
88
- // Unavailable removed color and link styles so it looks inactive.
89
- &.unavailable {
90
- color: $crumb-font-color-unavailable;
91
- a { color: $crumb-font-color-unavailable; }
92
-
93
- &:hover,
94
- &:hover a,
95
- &:focus,
96
- a:focus {
97
- color: $crumb-font-color-unavailable;
98
- cursor: $cursor-disabled-value;
99
- text-decoration: none;
100
- }
101
- }
102
-
103
- &:before {
104
- color: $crumb-slash-color;
105
- content: "#{$crumb-slash}";
106
- margin: 0 $crumb-side-padding;
107
- position: relative;
108
- top: $crumb-slash-position;
109
- }
110
-
111
- &:first-child:before {
112
- content: " ";
113
- margin: 0;
114
- }
115
- }
116
-
117
- @include exports("breadcrumbs") {
118
- @if $include-html-nav-classes {
119
- .breadcrumbs {
120
- @include crumb-container;
121
- @include radius($crumb-radius);
122
-
123
- > * {
124
- @include crumbs;
125
- }
126
- }
127
- /* Accessibility - hides the forward slash */
128
- [aria-label="breadcrumbs"] [aria-hidden="true"]:after {
129
- content: "/";
130
- }
131
- }
132
- }