va_common 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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,116 +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-nav-classes: $include-html-classes !default;
12
-
13
- // We use this to control padding.
14
- $side-nav-padding: rem-calc(14 0) !default;
15
-
16
- // We use these to control list styles.
17
- $side-nav-list-type: none !default;
18
- $side-nav-list-position: outside !default;
19
- $side-nav-list-margin: rem-calc(0 0 7 0) !default;
20
-
21
- // We use these to control link styles.
22
- $side-nav-link-color: $primary-color !default;
23
- $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default;
24
- $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default;
25
- $side-nav-link-bg-hover: hsla(0, 0, 0, 0.025) !default;
26
- $side-nav-link-margin: 0 !default;
27
- $side-nav-link-padding: rem-calc(7 14) !default;
28
- $side-nav-font-size: rem-calc(14) !default;
29
- $side-nav-font-weight: $font-weight-normal !default;
30
- $side-nav-font-weight-active: $side-nav-font-weight !default;
31
- $side-nav-font-family: $body-font-family !default;
32
- $side-nav-font-family-active: $side-nav-font-family !default;
33
-
34
- // We use these to control heading styles.
35
- $side-nav-heading-color: $side-nav-link-color !default;
36
- $side-nav-heading-font-size: $side-nav-font-size !default;
37
- $side-nav-heading-font-weight: bold !default;
38
- $side-nav-heading-text-transform: uppercase !default;
39
-
40
- // We use these to control border styles
41
- $side-nav-divider-size: 1px !default;
42
- $side-nav-divider-style: solid !default;
43
- $side-nav-divider-color: scale-color($white, $lightness: 10%) !default;
44
-
45
-
46
- //
47
- // @mixins
48
- //
49
-
50
-
51
- // We use this to style the side-nav
52
- //
53
- // $divider-color - Border color of divider. Default: $side-nav-divider-color.
54
- // $font-size - Font size of nav items. Default: $side-nav-font-size.
55
- // $link-color - Color of navigation links. Default: $side-nav-link-color.
56
- // $link-color-hover - Color of navigation links when hovered. Default: $side-nav-link-color-hover.
57
- @mixin side-nav(
58
- $divider-color:$side-nav-divider-color,
59
- $font-size:$side-nav-font-size,
60
- $link-color:$side-nav-link-color,
61
- $link-color-hover:$side-nav-link-color-hover,
62
- $link-bg-hover:$side-nav-link-bg-hover) {
63
- display: block;
64
- margin: 0;
65
- padding: $side-nav-padding;
66
- list-style-type: $side-nav-list-type;
67
- list-style-position: $side-nav-list-position;
68
- font-family: $side-nav-font-family;
69
-
70
- li {
71
- margin: $side-nav-list-margin;
72
- font-size: $font-size;
73
- font-weight: $side-nav-font-weight;
74
-
75
- a:not(.button) {
76
- display: block;
77
- color: $link-color;
78
- margin: $side-nav-link-margin;
79
- padding: $side-nav-link-padding;
80
- &:hover,
81
- &:focus {
82
- background: $link-bg-hover;
83
- color: $link-color-hover;
84
- }
85
- }
86
-
87
- &.active > a:first-child:not(.button) {
88
- color: $side-nav-link-color-active;
89
- font-weight: $side-nav-font-weight-active;
90
- font-family: $side-nav-font-family-active;
91
- }
92
-
93
- &.divider {
94
- border-top: $side-nav-divider-size $side-nav-divider-style;
95
- height: 0;
96
- padding: 0;
97
- list-style: none;
98
- border-top-color: $divider-color;
99
- }
100
-
101
- &.heading {
102
- color: $side-nav-heading-color;
103
- font: {
104
- size: $side-nav-heading-font-size;
105
- weight: $side-nav-heading-font-weight;
106
- }
107
- text-transform: $side-nav-heading-text-transform;
108
- }
109
- }
110
- }
111
-
112
- @include exports("side-nav") {
113
- @if $include-html-nav-classes {
114
- .side-nav { @include side-nav; }
115
- }
116
- }
@@ -1,199 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import "global";
6
- @import "buttons";
7
- @import "dropdown-buttons";
8
-
9
- //
10
- // @name _split-buttons.scss
11
- // @dependencies _buttons.scss, _global.scss
12
- //
13
-
14
- //
15
- // @variables
16
- //
17
-
18
- $include-html-button-classes: $include-html-classes !default;
19
-
20
- // We use these to control different shared styles for Split Buttons
21
- $split-button-function-factor: 10% !default;
22
- $split-button-pip-color: $white !default;
23
- $split-button-pip-color-alt: $oil !default;
24
- $split-button-active-bg-tint: rgba(0,0,0,0.1) !default;
25
-
26
- // We use these to control tiny split buttons
27
- $split-button-padding-tny: $button-pip-tny * 10 !default;
28
- $split-button-span-width-tny: $button-pip-tny * 6 !default;
29
- $split-button-pip-size-tny: $button-pip-tny !default;
30
- $split-button-pip-top-tny: $button-pip-tny * 2 !default;
31
- $split-button-pip-default-float-tny: rem-calc(-6) !default;
32
-
33
- // We use these to control small split buttons
34
- $split-button-padding-sml: $button-pip-sml * 10 !default;
35
- $split-button-span-width-sml: $button-pip-sml * 6 !default;
36
- $split-button-pip-size-sml: $button-pip-sml !default;
37
- $split-button-pip-top-sml: $button-pip-sml * 1.5 !default;
38
- $split-button-pip-default-float-sml: rem-calc(-6) !default;
39
-
40
- // We use these to control medium split buttons
41
- $split-button-padding-med: $button-pip-med * 9 !default;
42
- $split-button-span-width-med: $button-pip-med * 5.5 !default;
43
- $split-button-pip-size-med: $button-pip-med - rem-calc(3) !default;
44
- $split-button-pip-top-med: $button-pip-med * 1.5 !default;
45
- $split-button-pip-default-float-med: rem-calc(-6) !default;
46
-
47
- // We use these to control large split buttons
48
- $split-button-padding-lrg: $button-pip-lrg * 8 !default;
49
- $split-button-span-width-lrg: $button-pip-lrg * 5 !default;
50
- $split-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default;
51
- $split-button-pip-top-lrg: $button-pip-lrg + rem-calc(5) !default;
52
- $split-button-pip-default-float-lrg: rem-calc(-6) !default;
53
-
54
-
55
- //
56
- // @mixins
57
- //
58
-
59
- // We use this mixin to create split buttons that build upon the button mixins
60
- //
61
- // $padding - Type of padding to apply. Default: medium. Options: tiny, small, medium, large.
62
- // $pip-color - Color of the triangle. Default: $split-button-pip-color.
63
- // $span-border - Border color of button divider. Default: $primary-color.
64
- // $base-style - Apply base style to split button. Default: true.
65
- @mixin split-button(
66
- $padding:medium,
67
- $pip-color:$split-button-pip-color,
68
- $span-border:$primary-color,
69
- $base-style:true) {
70
-
71
- // With this, we can control whether or not the base styles come through.
72
- @if $base-style {
73
- position: relative;
74
-
75
- // Styling for the split arrow clickable area
76
- span {
77
- display: block;
78
- height: 100%;
79
- position: absolute;
80
- #{$opposite-direction}: 0;
81
- top: 0;
82
- border-#{$default-float}: solid 1px;
83
-
84
- // Building the triangle pip indicator
85
- &:after {
86
- position: absolute;
87
- content: "";
88
- width: 0;
89
- height: 0;
90
- display: block;
91
- border-style: inset;
92
- top: 50%;
93
-
94
- #{$default-float}: 50%;
95
- }
96
-
97
- &:active { background-color: $split-button-active-bg-tint; }
98
- }
99
- }
100
-
101
- // Control the border color for the span area of the split button
102
- @if $span-border {
103
- span {
104
- border-#{$default-float}-color: rgba(255,255,255,0.5);
105
- }
106
- }
107
-
108
- // Style of the button and clickable area for tiny sizes
109
- @if $padding == tiny {
110
- padding-#{$opposite-direction}: $split-button-padding-tny;
111
-
112
- span { width: $split-button-span-width-tny;
113
- &:after {
114
- border-top-style: solid;
115
- border-width: $split-button-pip-size-tny;
116
- top: 48%;
117
- margin-#{$default-float}: $split-button-pip-default-float-tny;
118
- }
119
- }
120
- }
121
-
122
- // Style of the button and clickable area for small sizes
123
- @else if $padding == small {
124
- padding-#{$opposite-direction}: $split-button-padding-sml;
125
-
126
- span { width: $split-button-span-width-sml;
127
- &:after {
128
- border-top-style: solid;
129
- border-width: $split-button-pip-size-sml;
130
- top: 48%;
131
- margin-#{$default-float}: $split-button-pip-default-float-sml;
132
- }
133
- }
134
- }
135
-
136
- // Style of the button and clickable area for default (medium) sizes
137
- @else if $padding == medium {
138
- padding-#{$opposite-direction}: $split-button-padding-med;
139
-
140
- span { width: $split-button-span-width-med;
141
- &:after {
142
- border-top-style: solid;
143
- border-width: $split-button-pip-size-med;
144
- top: 48%;
145
- margin-#{$default-float}: $split-button-pip-default-float-med;
146
- }
147
- }
148
- }
149
-
150
- // Style of the button and clickable area for large sizes
151
- @else if $padding == large {
152
- padding-#{$opposite-direction}: $split-button-padding-lrg;
153
-
154
- span { width: $split-button-span-width-lrg;
155
- &:after {
156
- border-top-style: solid;
157
- border-width: $split-button-pip-size-lrg;
158
- top: 48%;
159
- margin-#{$default-float}: $split-button-pip-default-float-lrg;
160
- }
161
- }
162
- }
163
-
164
- // Control the color of the triangle pip
165
- @if $pip-color {
166
- span:after { border-color: $pip-color transparent transparent transparent; }
167
- }
168
- }
169
-
170
- @include exports("split-button") {
171
- @if $include-html-button-classes {
172
-
173
- .split.button { @include split-button;
174
-
175
- &.secondary { @include split-button(false, $split-button-pip-color, $secondary-color, false); }
176
- &.alert { @include split-button(false, false, $alert-color, false); }
177
- &.success { @include split-button(false, false, $success-color, false); }
178
-
179
- &.tiny { @include split-button(tiny, false, false, false); }
180
- &.small { @include split-button(small, false, false, false); }
181
- &.large { @include split-button(large, false, false, false); }
182
- &.expand { padding-left: 2rem; }
183
-
184
- &.secondary { @include split-button(false, $split-button-pip-color-alt, false, false); }
185
-
186
- &.radius span { @include side-radius($opposite-direction, $global-radius); }
187
- &.round span { @include side-radius($opposite-direction, 1000px); }
188
- &.no-pip{
189
- span:before{ border-style:none; }
190
- span:after{ border-style:none; }
191
- span{padding-top:$split-button-pip-top-med;}
192
- &.tiny{ span{ padding-top:$split-button-pip-top-tny; } }
193
- &.small{ span{ padding-top:$split-button-pip-top-sml; } }
194
- &.large{ span{ padding-top:$split-button-pip-top-lrg; } }
195
- }
196
- }
197
-
198
- }
199
- }
@@ -1,123 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import "global";
6
-
7
- //
8
- // @name _sub-nav.scss
9
- // @dependencies _global.scss
10
- //
11
-
12
- //
13
- // @variables
14
- //
15
-
16
- $include-html-nav-classes: $include-html-classes !default;
17
-
18
- // We use these to control margin and padding
19
- $sub-nav-list-margin: rem-calc(-4 0 18) !default;
20
- $sub-nav-list-padding-top: rem-calc(4) !default;
21
-
22
- // We use this to control the definition
23
- $sub-nav-font-family: $body-font-family !default;
24
- $sub-nav-font-size: rem-calc(14) !default;
25
- $sub-nav-font-color: $aluminum !default;
26
- $sub-nav-font-weight: $font-weight-normal !default;
27
- $sub-nav-text-decoration: none !default;
28
- $sub-nav-padding: rem-calc(3 16) !default;
29
- $sub-nav-border-radius: 3px !default;
30
- $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default;
31
-
32
-
33
- // We use these to control the active item styles
34
-
35
- $sub-nav-active-font-weight: $font-weight-normal !default;
36
- $sub-nav-active-bg: $primary-color !default;
37
- $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
38
- $sub-nav-active-color: $white !default;
39
- $sub-nav-active-padding: $sub-nav-padding !default;
40
- $sub-nav-active-cursor: default !default;
41
-
42
- $sub-nav-item-divider: "" !default;
43
- $sub-nav-item-divider-margin: rem-calc(12) !default;
44
-
45
- //
46
- // @mixins
47
- //
48
-
49
-
50
- // Create a sub-nav item
51
- //
52
- // $font-color - Font color. Default: $sub-nav-font-color.
53
- // $font-size - Font size. Default: $sub-nav-font-size.
54
- // $active-bg - Background of active nav item. Default: $sub-nav-active-bg.
55
- // $active-bg-hover - Background of active nav item, when hovered. Default: $sub-nav-active-bg-hover.
56
- @mixin sub-nav(
57
- $font-color: $sub-nav-font-color,
58
- $font-size: $sub-nav-font-size,
59
- $active-bg: $sub-nav-active-bg,
60
- $active-bg-hover: $sub-nav-active-bg-hover) {
61
- display: block;
62
- width: auto;
63
- overflow: hidden;
64
- margin: $sub-nav-list-margin;
65
- padding-top: $sub-nav-list-padding-top;
66
-
67
- dt {
68
- text-transform: uppercase;
69
- }
70
-
71
- dt,
72
- dd,
73
- li {
74
- float: $default-float;
75
- display: inline;
76
- margin-#{$default-float}: rem-calc(16);
77
- margin-bottom: 0;
78
- font-family: $sub-nav-font-family;
79
- font-weight: $sub-nav-font-weight;
80
- font-size: $font-size;
81
- color: $font-color;
82
-
83
- a {
84
- text-decoration: $sub-nav-text-decoration;
85
- color: $sub-nav-font-color;
86
- padding: $sub-nav-padding;
87
- &:hover {
88
- color: $sub-nav-font-color-hover;
89
- }
90
- }
91
-
92
- &.active a {
93
- @include radius($sub-nav-border-radius);
94
- font-weight: $sub-nav-active-font-weight;
95
- background: $active-bg;
96
- padding: $sub-nav-active-padding;
97
- cursor: $sub-nav-active-cursor;
98
- color: $sub-nav-active-color;
99
- &:hover {
100
- background: $active-bg-hover;
101
- }
102
- }
103
- @if $sub-nav-item-divider != "" {
104
- margin-#{$default-float}: 0;
105
-
106
- &:before {
107
- content: "#{$sub-nav-item-divider}";
108
- margin: 0 $sub-nav-item-divider-margin;
109
- }
110
-
111
- &:first-child:before {
112
- content: "";
113
- margin: 0;
114
- }
115
- }
116
- }
117
- }
118
-
119
- @include exports("sub-nav") {
120
- @if $include-html-nav-classes {
121
- .sub-nav { @include sub-nav; }
122
- }
123
- }
@@ -1,238 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import "global";
6
-
7
- //
8
- // @name
9
- // @dependencies _global.scss
10
- //
11
-
12
- //
13
- // @variables
14
- //
15
-
16
- $include-html-form-classes: $include-html-classes !default;
17
-
18
- // Controlling background color for the switch container
19
- $switch-bg: $gainsboro !default;
20
-
21
- // We use these to control the switch heights for our default classes
22
- $switch-height-tny: 1.5rem !default;
23
- $switch-height-sml: 1.75rem !default;
24
- $switch-height-med: 2rem !default;
25
- $switch-height-lrg: 2.5rem !default;
26
- $switch-bottom-margin: 1.5rem !default;
27
-
28
- // We use these to style the switch-paddle
29
- $switch-paddle-bg: $white !default;
30
- $switch-paddle-transition-speed: .15s !default;
31
- $switch-paddle-transition-ease: ease-out !default;
32
- $switch-active-color: $primary-color !default;
33
-
34
-
35
- //
36
- // @mixins
37
- //
38
-
39
- // We use this mixin to create the base styles for our switch element.
40
- //
41
- // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
42
- // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
43
- @mixin switch-base(
44
- $transition-speed:$switch-paddle-transition-speed,
45
- $transition-ease:$switch-paddle-transition-ease) {
46
-
47
- padding: 0;
48
- border: none;
49
- position: relative;
50
- outline: 0;
51
- -webkit-user-select: none;
52
- -moz-user-select: none;
53
- user-select: none;
54
-
55
- // Default label styles for type and transition
56
- label {
57
- display: block;
58
- margin-bottom: ($switch-height-med / 2);
59
- position: relative;
60
- color: transparent;
61
- background: $switch-bg;
62
- text-indent: 100%;
63
- width: $switch-height-med * 2; height: $switch-height-med;
64
- cursor: pointer;
65
-
66
- // Transition for the switch label to follow paddle
67
- @include single-transition(left, $transition-speed, $transition-ease);
68
- }
69
-
70
- // So that we don't need to recreate the form with any JS, we use the
71
- // existing checkbox or radio button, but we cleverly position and hide it.
72
- input {
73
- opacity: 0;
74
- position: absolute;
75
- top: 9px;
76
- left: 10px;
77
- padding:0;
78
-
79
- & + label { margin-left: 0; margin-right: 0; }
80
- }
81
-
82
- // The paddle for the switch is created from an after psuedoclass
83
- // content element. This is sized and positioned, and reacts to
84
- // the state of the input.
85
-
86
- label:after {
87
- content: "";
88
- display: block;
89
- background: $switch-paddle-bg;
90
- position: absolute;
91
- top: .25rem;
92
- left: .25rem;
93
- width: $switch-height-med - 0.5rem;
94
- height: $switch-height-med - 0.5rem;
95
-
96
- -webkit-transition: left $transition-speed $transition-ease;
97
- -moz-transition: left $transition-speed $transition-ease;
98
- -o-transition: translate3d(0,0,0);
99
- transition: left $transition-speed $transition-ease;
100
-
101
- -webkit-transform: translate3d(0,0,0);
102
- -moz-transform: translate3d(0,0,0);
103
- -o-transform: translate3d(0,0,0);
104
- transform: translate3d(0,0,0);
105
- }
106
-
107
- input:checked + label {
108
- background: $switch-active-color;
109
- }
110
-
111
- input:checked + label:after {
112
- left: $switch-height-med + 0.25rem;
113
- }
114
- }
115
-
116
- // We use this mixin to create the size styles for switches.
117
- //
118
- // $height - Height (in px) of the switch. Default: $switch-height-med.
119
- // $font-size - Font size of text in switch. Default: $switch-font-size-med.
120
- // $line-height - Line height of switch. Default: 2.3rem.
121
- @mixin switch-size($height: $switch-height-med) {
122
-
123
- label {
124
- width: $height * 2;
125
- height: $height;
126
- }
127
-
128
- label:after {
129
- width: $height - 0.5rem;
130
- height: $height - 0.5rem;
131
- }
132
-
133
- input:checked + label:after {
134
- left: $height + 0.25rem;
135
- }
136
-
137
- }
138
-
139
- // We use this mixin to add color and other fanciness to the switches.
140
- //
141
- // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
142
- // $active-color - Background color of positive side of switch. Default: $switch-positive-color.
143
- // $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
144
- // $radius - Radius to apply to switch. Default: false.
145
- // $base-style - Apply base styles? Default: true.
146
- @mixin switch-style(
147
- $paddle-bg:$switch-paddle-bg,
148
- $active-color:$switch-active-color,
149
- $radius:false,
150
- $base-style:true) {
151
-
152
- @if $base-style {
153
-
154
- label {
155
- color: transparent;
156
- background: $switch-bg;
157
- }
158
-
159
- label:after {
160
- background: $paddle-bg;
161
- }
162
-
163
- input:checked + label {
164
- background: $active-color;
165
- }
166
- }
167
-
168
- // Setting up the radius for switches
169
- @if $radius == true {
170
- label {
171
- border-radius: 2rem;
172
- }
173
- label:after {
174
- border-radius: 2rem;
175
- }
176
- }
177
- @else if $radius {
178
- label {
179
- border-radius: $radius;
180
- }
181
- label:after {
182
- border-radius: $radius;
183
- }
184
- }
185
-
186
- }
187
-
188
- // We use this to quickly create switches with a single mixin
189
- //
190
- // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
191
- // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
192
- // $height - Height (in px) of the switch. Default: $switch-height-med.
193
- // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
194
- // $active-color - Background color of an active switch. Default: $switch-active-color.
195
- // $radius - Radius to apply to switch. Default: false.
196
- // $base-style - Apply base styles? Default: true.
197
- @mixin switch(
198
- $transition-speed: $switch-paddle-transition-speed,
199
- $transition-ease: $switch-paddle-transition-ease,
200
- $height: $switch-height-med,
201
- $paddle-bg: $switch-paddle-bg,
202
- $active-color: $switch-active-color,
203
- $radius:false,
204
- $base-style:true) {
205
- @include switch-base($transition-speed, $transition-ease);
206
- @include switch-size($height);
207
- @include switch-style($paddle-bg, $active-color, $radius, $base-style);
208
- }
209
-
210
- @include exports("switch") {
211
- @if $include-html-form-classes {
212
- .switch {
213
- @include switch;
214
-
215
- // Large radio switches
216
- &.large { @include switch-size($switch-height-lrg); }
217
-
218
- // Small radio switches
219
- &.small { @include switch-size($switch-height-sml); }
220
-
221
- // Tiny radio switches
222
- &.tiny { @include switch-size($switch-height-tny); }
223
-
224
- // Add a radius to the switch
225
- &.radius {
226
- label { @include radius(4px); }
227
- label:after { @include radius(3px); }
228
- }
229
-
230
- // Make the switch completely round, like a pill
231
- &.round { @include radius(1000px);
232
- label { @include radius(2rem); }
233
- label:after { @include radius(2rem); }
234
- }
235
-
236
- }
237
- }
238
- }