va_common 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -4
  3. data/app/assets/js/va_common_main.js +16 -1
  4. data/lib/va_common/version.rb +1 -1
  5. data/lib/va_common.rb +4 -0
  6. data/va_common.gemspec +15 -0
  7. metadata +200 -177
  8. data/app/assets/js/foundation/foundation.abide.js +0 -408
  9. data/app/assets/js/foundation/foundation.accordion.js +0 -88
  10. data/app/assets/js/foundation/foundation.alert.js +0 -43
  11. data/app/assets/js/foundation/foundation.clearing.js +0 -586
  12. data/app/assets/js/foundation/foundation.dropdown.js +0 -463
  13. data/app/assets/js/foundation/foundation.equalizer.js +0 -104
  14. data/app/assets/js/foundation/foundation.interchange.js +0 -359
  15. data/app/assets/js/foundation/foundation.joyride.js +0 -932
  16. data/app/assets/js/foundation/foundation.js +0 -725
  17. data/app/assets/js/foundation/foundation.magellan.js +0 -215
  18. data/app/assets/js/foundation/foundation.offcanvas.js +0 -152
  19. data/app/assets/js/foundation/foundation.orbit.js +0 -476
  20. data/app/assets/js/foundation/foundation.reveal.js +0 -498
  21. data/app/assets/js/foundation/foundation.slider.js +0 -281
  22. data/app/assets/js/foundation/foundation.tab.js +0 -249
  23. data/app/assets/js/foundation/foundation.tooltip.js +0 -339
  24. data/app/assets/js/foundation/foundation.topbar.js +0 -458
  25. data/app/assets/js/foundation.min.js +0 -6376
  26. data/app/assets/js/vendor/html5shiv.js +0 -8
  27. data/app/assets/js/vendor/jquery-1.11.0.min.js +0 -4
  28. data/app/assets/js/vendor/jquery.js +0 -9789
  29. data/app/assets/js/vendor/jquery.smooth-scroll.js +0 -255
  30. data/app/assets/js/vendor/jquery.stellar.js +0 -651
  31. data/app/assets/js/vendor/jquery.tipsy.js +0 -258
  32. data/app/assets/js/vendor/menu.js +0 -40
  33. data/app/assets/js/vendor/modernizr.custom.js +0 -4
  34. data/app/assets/js/vendor/respond.min.js +0 -6
  35. data/app/assets/js/vendor/selectivizr-1.0.3b.js +0 -560
  36. data/app/assets/js/vendor/tota11y.min.js +0 -28
  37. data/app/assets/js/vendor/wow.min.js +0 -2
  38. data/app/assets/stylesheets/foundation/_functions.scss +0 -146
  39. data/app/assets/stylesheets/foundation/_settings.scss +0 -1467
  40. data/app/assets/stylesheets/foundation/_variables.scss +0 -1286
  41. data/app/assets/stylesheets/foundation/components/_accordion.scss +0 -157
  42. data/app/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
  43. data/app/assets/stylesheets/foundation/components/_block-grid.scss +0 -132
  44. data/app/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
  45. data/app/assets/stylesheets/foundation/components/_button-groups.scss +0 -200
  46. data/app/assets/stylesheets/foundation/components/_buttons.scss +0 -259
  47. data/app/assets/stylesheets/foundation/components/_clearing.scss +0 -256
  48. data/app/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -131
  49. data/app/assets/stylesheets/foundation/components/_dropdown.scss +0 -262
  50. data/app/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
  51. data/app/assets/stylesheets/foundation/components/_forms.scss +0 -570
  52. data/app/assets/stylesheets/foundation/components/_global.scss +0 -481
  53. data/app/assets/stylesheets/foundation/components/_grid.scss +0 -289
  54. data/app/assets/stylesheets/foundation/components/_icon-bar.scss +0 -358
  55. data/app/assets/stylesheets/foundation/components/_inline-lists.scss +0 -57
  56. data/app/assets/stylesheets/foundation/components/_joyride.scss +0 -222
  57. data/app/assets/stylesheets/foundation/components/_keystrokes.scss +0 -61
  58. data/app/assets/stylesheets/foundation/components/_labels.scss +0 -106
  59. data/app/assets/stylesheets/foundation/components/_magellan.scss +0 -34
  60. data/app/assets/stylesheets/foundation/components/_offcanvas.scss +0 -515
  61. data/app/assets/stylesheets/foundation/components/_orbit.scss +0 -368
  62. data/app/assets/stylesheets/foundation/components/_pagination.scss +0 -162
  63. data/app/assets/stylesheets/foundation/components/_panels.scss +0 -101
  64. data/app/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
  65. data/app/assets/stylesheets/foundation/components/_progress-bars.scss +0 -79
  66. data/app/assets/stylesheets/foundation/components/_range-slider.scss +0 -169
  67. data/app/assets/stylesheets/foundation/components/_reveal.scss +0 -202
  68. data/app/assets/stylesheets/foundation/components/_side-nav.scss +0 -116
  69. data/app/assets/stylesheets/foundation/components/_split-buttons.scss +0 -199
  70. data/app/assets/stylesheets/foundation/components/_sub-nav.scss +0 -123
  71. data/app/assets/stylesheets/foundation/components/_switches.scss +0 -238
  72. data/app/assets/stylesheets/foundation/components/_tables.scss +0 -135
  73. data/app/assets/stylesheets/foundation/components/_tabs.scss +0 -123
  74. data/app/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
  75. data/app/assets/stylesheets/foundation/components/_toolbar.scss +0 -70
  76. data/app/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
  77. data/app/assets/stylesheets/foundation/components/_top-bar.scss +0 -691
  78. data/app/assets/stylesheets/foundation/components/_type.scss +0 -525
  79. data/app/assets/stylesheets/foundation/components/_visibility.scss +0 -408
  80. data/app/assets/stylesheets/lib/_normalize.scss +0 -427
  81. data/app/assets/stylesheets/lib/bourbon/_bourbon-deprecated-upcoming.scss +0 -411
  82. data/app/assets/stylesheets/lib/bourbon/_bourbon.scss +0 -87
  83. data/app/assets/stylesheets/lib/bourbon/addons/_border-color.scss +0 -26
  84. data/app/assets/stylesheets/lib/bourbon/addons/_border-radius.scss +0 -48
  85. data/app/assets/stylesheets/lib/bourbon/addons/_border-style.scss +0 -25
  86. data/app/assets/stylesheets/lib/bourbon/addons/_border-width.scss +0 -25
  87. data/app/assets/stylesheets/lib/bourbon/addons/_buttons.scss +0 -64
  88. data/app/assets/stylesheets/lib/bourbon/addons/_clearfix.scss +0 -25
  89. data/app/assets/stylesheets/lib/bourbon/addons/_ellipsis.scss +0 -30
  90. data/app/assets/stylesheets/lib/bourbon/addons/_font-stacks.scss +0 -31
  91. data/app/assets/stylesheets/lib/bourbon/addons/_hide-text.scss +0 -27
  92. data/app/assets/stylesheets/lib/bourbon/addons/_margin.scss +0 -26
  93. data/app/assets/stylesheets/lib/bourbon/addons/_padding.scss +0 -26
  94. data/app/assets/stylesheets/lib/bourbon/addons/_position.scss +0 -48
  95. data/app/assets/stylesheets/lib/bourbon/addons/_prefixer.scss +0 -66
  96. data/app/assets/stylesheets/lib/bourbon/addons/_retina-image.scss +0 -25
  97. data/app/assets/stylesheets/lib/bourbon/addons/_size.scss +0 -51
  98. data/app/assets/stylesheets/lib/bourbon/addons/_text-inputs.scss +0 -112
  99. data/app/assets/stylesheets/lib/bourbon/addons/_timing-functions.scss +0 -34
  100. data/app/assets/stylesheets/lib/bourbon/addons/_triangle.scss +0 -63
  101. data/app/assets/stylesheets/lib/bourbon/addons/_word-wrap.scss +0 -29
  102. data/app/assets/stylesheets/lib/bourbon/css3/_animation.scss +0 -43
  103. data/app/assets/stylesheets/lib/bourbon/css3/_appearance.scss +0 -3
  104. data/app/assets/stylesheets/lib/bourbon/css3/_backface-visibility.scss +0 -3
  105. data/app/assets/stylesheets/lib/bourbon/css3/_background-image.scss +0 -42
  106. data/app/assets/stylesheets/lib/bourbon/css3/_background.scss +0 -55
  107. data/app/assets/stylesheets/lib/bourbon/css3/_border-image.scss +0 -59
  108. data/app/assets/stylesheets/lib/bourbon/css3/_calc.scss +0 -4
  109. data/app/assets/stylesheets/lib/bourbon/css3/_columns.scss +0 -47
  110. data/app/assets/stylesheets/lib/bourbon/css3/_filter.scss +0 -4
  111. data/app/assets/stylesheets/lib/bourbon/css3/_flex-box.scss +0 -287
  112. data/app/assets/stylesheets/lib/bourbon/css3/_font-face.scss +0 -24
  113. data/app/assets/stylesheets/lib/bourbon/css3/_font-feature-settings.scss +0 -4
  114. data/app/assets/stylesheets/lib/bourbon/css3/_hidpi-media-query.scss +0 -10
  115. data/app/assets/stylesheets/lib/bourbon/css3/_hyphens.scss +0 -4
  116. data/app/assets/stylesheets/lib/bourbon/css3/_image-rendering.scss +0 -14
  117. data/app/assets/stylesheets/lib/bourbon/css3/_keyframes.scss +0 -36
  118. data/app/assets/stylesheets/lib/bourbon/css3/_linear-gradient.scss +0 -38
  119. data/app/assets/stylesheets/lib/bourbon/css3/_perspective.scss +0 -8
  120. data/app/assets/stylesheets/lib/bourbon/css3/_placeholder.scss +0 -8
  121. data/app/assets/stylesheets/lib/bourbon/css3/_radial-gradient.scss +0 -39
  122. data/app/assets/stylesheets/lib/bourbon/css3/_selection.scss +0 -42
  123. data/app/assets/stylesheets/lib/bourbon/css3/_text-decoration.scss +0 -19
  124. data/app/assets/stylesheets/lib/bourbon/css3/_transform.scss +0 -15
  125. data/app/assets/stylesheets/lib/bourbon/css3/_transition.scss +0 -71
  126. data/app/assets/stylesheets/lib/bourbon/css3/_user-select.scss +0 -3
  127. data/app/assets/stylesheets/lib/bourbon/functions/_assign-inputs.scss +0 -11
  128. data/app/assets/stylesheets/lib/bourbon/functions/_contains-falsy.scss +0 -20
  129. data/app/assets/stylesheets/lib/bourbon/functions/_contains.scss +0 -26
  130. data/app/assets/stylesheets/lib/bourbon/functions/_is-length.scss +0 -11
  131. data/app/assets/stylesheets/lib/bourbon/functions/_is-light.scss +0 -21
  132. data/app/assets/stylesheets/lib/bourbon/functions/_is-number.scss +0 -11
  133. data/app/assets/stylesheets/lib/bourbon/functions/_is-size.scss +0 -13
  134. data/app/assets/stylesheets/lib/bourbon/functions/_modular-scale.scss +0 -69
  135. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-em.scss +0 -13
  136. data/app/assets/stylesheets/lib/bourbon/functions/_px-to-rem.scss +0 -15
  137. data/app/assets/stylesheets/lib/bourbon/functions/_shade.scss +0 -24
  138. data/app/assets/stylesheets/lib/bourbon/functions/_strip-units.scss +0 -17
  139. data/app/assets/stylesheets/lib/bourbon/functions/_tint.scss +0 -24
  140. data/app/assets/stylesheets/lib/bourbon/functions/_transition-property-name.scss +0 -22
  141. data/app/assets/stylesheets/lib/bourbon/functions/_unpack.scss +0 -27
  142. data/app/assets/stylesheets/lib/bourbon/helpers/_convert-units.scss +0 -21
  143. data/app/assets/stylesheets/lib/bourbon/helpers/_directional-values.scss +0 -96
  144. data/app/assets/stylesheets/lib/bourbon/helpers/_font-source-declaration.scss +0 -43
  145. data/app/assets/stylesheets/lib/bourbon/helpers/_gradient-positions-parser.scss +0 -13
  146. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-angle-parser.scss +0 -25
  147. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-gradient-parser.scss +0 -41
  148. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-positions-parser.scss +0 -61
  149. data/app/assets/stylesheets/lib/bourbon/helpers/_linear-side-corner-parser.scss +0 -31
  150. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-arg-parser.scss +0 -69
  151. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-gradient-parser.scss +0 -50
  152. data/app/assets/stylesheets/lib/bourbon/helpers/_radial-positions-parser.scss +0 -18
  153. data/app/assets/stylesheets/lib/bourbon/helpers/_render-gradients.scss +0 -26
  154. data/app/assets/stylesheets/lib/bourbon/helpers/_shape-size-stripper.scss +0 -10
  155. data/app/assets/stylesheets/lib/bourbon/helpers/_str-to-num.scss +0 -50
  156. data/app/assets/stylesheets/lib/bourbon/settings/_asset-pipeline.scss +0 -7
  157. data/app/assets/stylesheets/lib/bourbon/settings/_prefixer.scss +0 -9
  158. data/app/assets/stylesheets/lib/bourbon/settings/_px-to-em.scss +0 -1
  159. data/app/assets/stylesheets/lib/neat/_neat-helpers.scss +0 -8
  160. data/app/assets/stylesheets/lib/neat/_neat.scss +0 -23
  161. data/app/assets/stylesheets/lib/neat/functions/_new-breakpoint.scss +0 -49
  162. data/app/assets/stylesheets/lib/neat/functions/_private.scss +0 -114
  163. data/app/assets/stylesheets/lib/neat/grid/_box-sizing.scss +0 -15
  164. data/app/assets/stylesheets/lib/neat/grid/_direction-context.scss +0 -33
  165. data/app/assets/stylesheets/lib/neat/grid/_display-context.scss +0 -28
  166. data/app/assets/stylesheets/lib/neat/grid/_fill-parent.scss +0 -22
  167. data/app/assets/stylesheets/lib/neat/grid/_media.scss +0 -92
  168. data/app/assets/stylesheets/lib/neat/grid/_omega.scss +0 -87
  169. data/app/assets/stylesheets/lib/neat/grid/_outer-container.scss +0 -38
  170. data/app/assets/stylesheets/lib/neat/grid/_pad.scss +0 -25
  171. data/app/assets/stylesheets/lib/neat/grid/_private.scss +0 -35
  172. data/app/assets/stylesheets/lib/neat/grid/_row.scss +0 -52
  173. data/app/assets/stylesheets/lib/neat/grid/_shift.scss +0 -50
  174. data/app/assets/stylesheets/lib/neat/grid/_span-columns.scss +0 -94
  175. data/app/assets/stylesheets/lib/neat/grid/_to-deprecate.scss +0 -97
  176. data/app/assets/stylesheets/lib/neat/grid/_visual-grid.scss +0 -42
  177. data/app/assets/stylesheets/lib/neat/settings/_disable-warnings.scss +0 -13
  178. data/app/assets/stylesheets/lib/neat/settings/_grid.scss +0 -51
  179. data/app/assets/stylesheets/lib/neat/settings/_visual-grid.scss +0 -27
  180. data/app/assets/stylesheets/va_common_main.css.scss +0 -18
  181. /data/app/assets/js/{vendor/scroll-settings.js → scroll-settings.js} +0 -0
  182. /data/app/assets/js/{vendor/stellar-settings.js → stellar-settings.js} +0 -0
@@ -1,157 +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-font-color: $jet !default;
18
- $accordion-navigation-font-size: rem-calc(16) !default;
19
- $accordion-navigation-font-family: $body-font-family !default;
20
-
21
- $accordion-content-padding: ($column-gutter/2) !default;
22
- $accordion-content-active-bg-color: $white !default;
23
-
24
-
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
29
-
30
- @mixin accordion-container() {
31
- @include clearfix;
32
- margin-bottom: 0;
33
- }
34
-
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
43
-
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 ){
45
- display: block;
46
- margin-bottom: 0 !important;
47
- @if type-of($active_class) != "string" {
48
- @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."
49
- }
50
- @else {
51
- &.#{ $active_class } > a {
52
- background: $active-bg;
53
- }
54
- }
55
- > a {
56
- background: $bg;
57
- color: $font-color;
58
- @if type-of($padding) != number {
59
- @warn "`#{$padding}` was read as #{type-of($padding)}";
60
- @if $accordion-navigation-padding != null {
61
- @warn "#{$padding} was read as a #{type-of($padding)}";
62
- @warn "`#{$padding}` isn't a valid number. $accordion-navigation-padding (#{$accordion-navigation-padding}) will be used instead.)";
63
- padding: $accordion-navigation-padding;
64
- }
65
- @else {
66
- @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";
67
- padding: null;
68
- }
69
- }
70
- @else {
71
- padding: $padding;
72
- }
73
- display: block;
74
- font-family: $font-family;
75
- @if type-of($font-size) != number {
76
- @warn "`#{$font-size}` was read as a #{type-of($font-size)}";
77
- @if $accordion-navigation-font-size != null {
78
- @warn "`#{$font-size}` is not a valid number. The value of $accordion-navigation-font-size will be used instead (#{$accordion-navigation-font-size}).";
79
- font-size: $accordion-navigation-font-size;
80
- }
81
- @else{
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.";
83
- font-size: null;
84
-
85
- }
86
- }
87
- @else {
88
- font-size: $font-size;
89
- }
90
- &:hover {
91
- background: $hover-bg;
92
- }
93
- }
94
- }
95
-
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.
100
-
101
- @mixin accordion-content($bg: $accordion-content-active-bg-color, $padding: $accordion-content-padding, $active_class: 'active'){
102
- display: none;
103
- @if type-of($padding) != "number" {
104
- @warn "#{$padding} was read as a #{type-of($padding)}";
105
- @if $accordion-content-padding != null {
106
- @warn "`#{$padding}` isn't a valid number. $accordion-content-padding used instead";
107
- padding: $accordion-content-padding;
108
- } @else {
109
- @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.";
110
- padding: null;
111
- }
112
- } @else {
113
- padding: $padding;
114
- }
115
-
116
- @if type-of($active_class) != "string" {
117
- @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. "
118
- }
119
- @else {
120
- &.#{$active_class} {
121
- display: block;
122
- background: $bg;
123
- }
124
- }
125
- }
126
-
127
- @include exports("accordion") {
128
- @if $include-html-accordion-classes {
129
- .accordion {
130
- @include clearfix;
131
- margin-bottom: 0;
132
- .accordion-navigation, dd {
133
- display: block;
134
- margin-bottom: 0 !important;
135
- &.active > a { background: $accordion-navigation-active-bg-color; }
136
- > a {
137
- background: $accordion-navigation-bg-color;
138
- color: $accordion-navigation-font-color;
139
- padding: $accordion-navigation-padding;
140
- display: block;
141
- font-family: $accordion-navigation-font-family;
142
- font-size: $accordion-navigation-font-size;
143
- &:hover { background: $accordion-navigation-hover-bg-color; }
144
- }
145
-
146
- > .content {
147
- display: none;
148
- padding: $accordion-content-padding;
149
- &.active {
150
- display: block;
151
- background: $accordion-content-active-bg-color;
152
- }
153
- }
154
- }
155
- }
156
- }
157
- }
@@ -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: 0.3 !default;
39
- $alert-close-opacity-hover: 0.5 !default;
40
- $alert-close-padding: 9px 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-weight: $alert-font-weight;
59
- margin-bottom: $alert-bottom-margin;
60
- position: relative;
61
- padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float;
62
- font-size: $alert-font-size;
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
- font-size: $alert-close-font-size;
87
- padding: $alert-close-padding;
88
- line-height: 0;
89
- position: absolute;
90
- top: $alert-close-top;
91
- margin-top: -($alert-close-font-size / 2);
92
- #{$opposite-direction}: $alert-close-position;
93
- color: $alert-close-color;
94
- opacity: $alert-close-opacity;
95
- background: $alert-close-background;
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,132 +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
- // $base-style - Apply a base style to block grid. Default: true.
34
- @mixin block-grid(
35
- $per-row:false,
36
- $spacing:$block-grid-default-spacing,
37
- $include-spacing:true,
38
- $base-style:true) {
39
-
40
- @if $base-style {
41
- display: block;
42
- padding: 0;
43
- @if $align-block-grid-to-grid {
44
- margin: 0;
45
- } @else {
46
- margin: 0 (-$spacing/2);
47
- }
48
- @include clearfix;
49
-
50
- &>li {
51
- display: block;
52
- height: auto;
53
- float: $default-float;
54
- @if $include-spacing {
55
- padding: 0 ($spacing/2) $spacing;
56
- }
57
- }
58
- }
59
-
60
- @if $per-row {
61
- &>li {
62
- width: 100%/$per-row;
63
- @if $include-spacing {
64
- padding: 0 ($spacing/2) $spacing;
65
- }
66
- list-style: none;
67
-
68
- &:nth-of-type(1n) { clear: none; }
69
- &:nth-of-type(#{$per-row}n+1) { clear: both; }
70
- @if $align-block-grid-to-grid {
71
- @include block-grid-aligned($per-row, $spacing);
72
- }
73
- }
74
- }
75
- }
76
-
77
- @mixin block-grid-aligned($per-row, $spacing) {
78
- @for $i from 1 through $block-grid-elements {
79
- @if $per-row >= $i {
80
- $grid-column: '+' + $i;
81
- @if $per-row == $i {
82
- $grid-column: '';
83
- }
84
- &:nth-of-type(#{$per-row}n#{unquote($grid-column)}) {
85
- padding-left: ($spacing - (($spacing / $per-row) * ($per-row - ($i - 1))));
86
- padding-right: ($spacing - (($spacing / $per-row) * $i));
87
- }
88
- }
89
- }
90
- }
91
-
92
- // Generate presentational markup for block grid.
93
- //
94
- // $size - Name of class to use, i.e. "large" will generate .large-block-grid-1, .large-block-grid-2, etc.
95
- @mixin block-grid-html-classes($size,$include-spacing) {
96
- @for $i from 1 through $block-grid-elements {
97
- .#{$size}-block-grid-#{($i)} {
98
- @include block-grid($i,$block-grid-default-spacing,$include-spacing,false);
99
- }
100
- }
101
- }
102
-
103
- @include exports("block-grid") {
104
- @if $include-html-block-grid-classes {
105
-
106
- [class*="block-grid-"] { @include block-grid; }
107
-
108
- @if $block-grid-media-queries {
109
- @media #{$small-up} {
110
- @include block-grid-html-classes($size:small,$include-spacing:false);
111
- }
112
-
113
- @media #{$medium-up} {
114
- @include block-grid-html-classes($size:medium,$include-spacing:false);
115
- }
116
-
117
- @media #{$large-up} {
118
- @include block-grid-html-classes($size:large,$include-spacing:false);
119
- }
120
-
121
- @if $include-xl-html-block-grid-classes {
122
- @media #{$xlarge-up} {
123
- @include block-grid-html-classes($size:xlarge,$include-spacing:false);
124
- }
125
-
126
- @media #{$xxlarge-up} {
127
- @include block-grid-html-classes($size:xxlarge,$include-spacing:false);
128
- }
129
- }
130
- }
131
- }
132
- }
@@ -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
-
38
- //
39
- // Breadcrumb Mixins
40
- //
41
-
42
- // We use this mixin to create a container around our breadcrumbs
43
- @mixin crumb-container {
44
- display: block;
45
- padding: $crumb-padding;
46
- overflow: hidden;
47
- margin-#{$default-float}: 0;
48
- list-style: none;
49
- border-style: $crumb-border-style;
50
- border-width: $crumb-border-size;
51
-
52
- // We control which background color and border come through.
53
- background-color: $crumb-bg;
54
- border-color: $crumb-border-color;
55
- }
56
-
57
- // We use this mixin to create breadcrumb styles from list items.
58
- @mixin crumbs {
59
-
60
- // A normal state will make the links look and act like clickable breadcrumbs.
61
- margin: 0;
62
- float: $default-float;
63
- font-size: $crumb-font-size;
64
- line-height: $crumb-font-size;
65
- text-transform: $crumb-font-transform;
66
- color: $crumb-font-color;
67
-
68
- &:hover a, &:focus a { text-decoration: $crumb-link-decor; }
69
-
70
- a {
71
- color: $crumb-font-color;
72
- }
73
-
74
- // Current is for the link of the current page
75
- &.current {
76
- cursor: $cursor-default-value;
77
- color: $crumb-font-color-current;
78
- a {
79
- cursor: $cursor-default-value;
80
- color: $crumb-font-color-current;
81
- }
82
-
83
- &:hover, &:hover a,
84
- &:focus, &:focus a { text-decoration: none; }
85
- }
86
-
87
- // Unavailable removed color and link styles so it looks inactive.
88
- &.unavailable {
89
- color: $crumb-font-color-unavailable;
90
- a { color: $crumb-font-color-unavailable; }
91
-
92
- &:hover,
93
- &:hover a,
94
- &:focus,
95
- a:focus {
96
- text-decoration: none;
97
- color: $crumb-font-color-unavailable;
98
- cursor: $cursor-disabled-value;
99
- }
100
- }
101
-
102
- &:before {
103
- content: "#{$crumb-slash}";
104
- color: $crumb-slash-color;
105
- margin: 0 $crumb-side-padding;
106
- position: relative;
107
- top: 1px;
108
- }
109
-
110
- &:first-child:before {
111
- content: " ";
112
- margin: 0;
113
- }
114
- }
115
-
116
- @include exports("breadcrumbs") {
117
- @if $include-html-nav-classes {
118
- .breadcrumbs {
119
- @include crumb-container;
120
- @include radius($crumb-radius);
121
-
122
- &>* {
123
- @include crumbs;
124
- }
125
- }
126
- }
127
- }
128
-
129
- /* Accessibility - hides the forward slash */
130
- [aria-label="breadcrumbs"] [aria-hidden="true"]:after {
131
- content: "/";
132
- }