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,200 +0,0 @@
1
- // Foundation by ZURB
2
- // foundation.zurb.com
3
- // Licensed under MIT Open Source
4
-
5
- @import "global";
6
- @import "buttons";
7
-
8
- //
9
- // Button Group Variables
10
- //
11
- $include-html-button-classes: $include-html-classes !default;
12
-
13
- // Sets the margin for the right side by default, and the left margin if right-to-left direction is used
14
- $button-bar-margin-opposite: rem-calc(10) !default;
15
- $button-group-border-width: 1px !default;
16
-
17
- //
18
- // Button Group Mixins
19
- //
20
-
21
- // We use this to add styles for a button group container
22
- @mixin button-group-container($styles:true, $float:false) {
23
- @if $styles {
24
- list-style: none;
25
- margin: 0;
26
- #{$default-float}: 0;
27
- @include clearfix();
28
- }
29
- @if $float {
30
- float: #{$default-float};
31
- margin-#{$opposite-direction}: $button-bar-margin-opposite;
32
- & div { overflow: hidden; }
33
- }
34
- }
35
-
36
- // We use this to control styles for button groups
37
- @mixin button-group-style($radius:false, $even:false, $float:false, $orientation:horizontal) {
38
-
39
- > button, .button {
40
- border-#{$default-float}: $button-group-border-width solid;
41
- border-color: rgba(255, 255, 255, 0.5);
42
- }
43
-
44
- &:first-child {
45
- button, .button {
46
- border-#{$default-float}: 0;
47
- }
48
- }
49
-
50
- // We use this to control the flow, or remove those styles completely.
51
- @if $float {
52
- margin: 0;
53
- float: $float;
54
- display: list-item;
55
- // Make sure the first child doesn't get the negative margin.
56
- &:first-child { margin-#{$default-float}: 0; }
57
- }
58
- @else {
59
- margin: 0 -2px;
60
- display: inline-block;
61
- }
62
-
63
- @if $orientation == vertical {
64
- display:block;
65
- margin:0;
66
- > button, .button {
67
- border-top: $button-group-border-width solid;
68
- border-color: rgba(255, 255, 255, 0.5);
69
- border-left-width: 0;
70
- margin:0;
71
- display: block;
72
- }
73
- > button {
74
- width: 100%;
75
- }
76
-
77
- &:first-child {
78
- button, .button {
79
- border-top: 0;
80
- }
81
- }
82
- }
83
-
84
- // We use these to control left and right radius on first/last buttons in the group.
85
- @if $radius == true {
86
- &,
87
- & > a,
88
- & > button,
89
- & > .button { @include radius(0); }
90
- &:first-child,
91
- &:first-child > a,
92
- &:first-child > button,
93
- &:first-child > .button {
94
- @if $orientation == vertical {
95
- @include side-radius(top, $button-radius);
96
- }
97
- @else {
98
- @include side-radius($default-float, $button-radius);
99
- }
100
- }
101
- &:last-child,
102
- &:last-child > a,
103
- &:last-child > button,
104
- &:last-child > .button {
105
- @if $orientation == vertical {
106
- @include side-radius(bottom, $button-radius);
107
- }
108
- @else {
109
- @include side-radius($opposite-direction, $button-radius);
110
- }
111
- }
112
- }
113
- @else if $radius {
114
- &,
115
- & > a,
116
- & > button,
117
- & > .button { @include radius(0); }
118
- &:first-child,
119
- &:first-child > a,
120
- &:first-child > button,
121
- &:first-child > .button {
122
- @if $orientation == vertical {
123
- @include side-radius(top, $radius);
124
- }
125
- @else {
126
- @include side-radius($default-float, $radius);
127
- }
128
- }
129
- &:last-child,
130
- &:last-child > a,
131
- &:last-child > button,
132
- &:last-child > .button {
133
- @if $orientation == vertical {
134
- @include side-radius(bottom, $radius);
135
- }
136
- @else {
137
- @include side-radius($opposite-direction, $radius);
138
- }
139
- }
140
- }
141
-
142
- // We use this to make the buttons even width across their container
143
- @if $even {
144
- width: percentage((100/$even) / 100);
145
- button, .button { width: 100%; }
146
- }
147
- }
148
-
149
- @include exports("button-group") {
150
- @if $include-html-button-classes {
151
- .button-group { @include button-group-container;
152
-
153
- & > li { @include button-group-style(); }
154
-
155
- &.stack {
156
- & > li { @include button-group-style($orientation:vertical); float: none; }
157
- }
158
-
159
- &.stack-for-small {
160
- & > li {
161
- @include button-group-style($orientation:horizontal);
162
- @media #{$small-only} {
163
- @include button-group-style($orientation:vertical);
164
- }
165
- }
166
- }
167
-
168
- &.radius > * { @include button-group-style($radius:$button-radius, $float:null); }
169
- &.radius.stack > * { @include button-group-style($radius:$button-radius, $float:null, $orientation:vertical); }
170
- &.radius.stack-for-small > * {
171
- @media #{$medium-up} {
172
- @include button-group-style($radius:$button-radius, $orientation:horizontal);
173
- }
174
- @media #{$small-only} {
175
- @include button-group-style($radius:$button-radius, $orientation:vertical);
176
- }
177
- }
178
-
179
- &.round > * { @include button-group-style($radius:$button-round, $float:null); }
180
- &.round.stack > * { @include button-group-style($radius:$button-med, $float:null, $orientation:vertical); }
181
- &.round.stack-for-small > * {
182
- @media #{$medium-up} {
183
- @include button-group-style($radius:$button-round, $orientation:horizontal);
184
- }
185
- @media #{$small-only} {
186
- @include button-group-style($radius:$button-med, $orientation:vertical);
187
- }
188
- }
189
-
190
- @for $i from 2 through 8 {
191
- &.even-#{$i} li { @include button-group-style($even:$i, $float:null); }
192
- }
193
- }
194
-
195
- .button-bar {
196
- @include clearfix;
197
- .button-group { @include button-group-container($styles:false, $float:true); }
198
- }
199
- }
200
- }
@@ -1,259 +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
- $include-html-button-classes: $include-html-classes !default;
11
-
12
- // We use these to build padding for buttons.
13
- $button-tny: rem-calc(10) !default;
14
- $button-sml: rem-calc(14) !default;
15
- $button-med: rem-calc(16) !default;
16
- $button-lrg: rem-calc(18) !default;
17
-
18
- // We use this to control the display property.
19
- $button-display: inline-block !default;
20
- $button-margin-bottom: rem-calc(20) !default;
21
-
22
- // We use these to control button text styles.
23
- $button-font-family: $body-font-family !default;
24
- $button-font-color: $white !default;
25
- $button-font-color-alt: $oil !default;
26
- $button-font-tny: rem-calc(11) !default;
27
- $button-font-sml: rem-calc(13) !default;
28
- $button-font-med: rem-calc(16) !default;
29
- $button-font-lrg: rem-calc(20) !default;
30
- $button-font-weight: $font-weight-normal !default;
31
- $button-font-align: center !default;
32
-
33
- // We use these to control various hover effects.
34
- $button-function-factor: -20% !default;
35
-
36
- // We use these to control button border styles.
37
- $button-border-width: 0 !default;
38
- $button-border-style: solid !default;
39
- $button-bg-color: $primary-color !default;
40
- $button-bg-hover: scale-color($button-bg-color, $lightness: $button-function-factor) !default;
41
- $button-border-color: $button-bg-hover !default;
42
- $secondary-button-bg-hover: scale-color($secondary-color, $lightness: $button-function-factor) !default;
43
- $secondary-button-border-color: $secondary-button-bg-hover !default;
44
- $success-button-bg-hover: scale-color($success-color, $lightness: $button-function-factor) !default;
45
- $success-button-border-color: $success-button-bg-hover !default;
46
- $alert-button-bg-hover: scale-color($alert-color, $lightness: $button-function-factor) !default;
47
- $alert-button-border-color: $alert-button-bg-hover !default;
48
- $warning-button-bg-hover: scale-color($warning-color, $lightness: $button-function-factor) !default;
49
- $warning-button-border-color: $warning-button-bg-hover !default;
50
- $info-button-bg-hover: scale-color($info-color, $lightness: $button-function-factor) !default;
51
- $info-button-border-color: $info-button-bg-hover !default;
52
-
53
- // We use this to set the default radius used throughout the core.
54
- $button-radius: $global-radius !default;
55
- $button-round: $global-rounded !default;
56
-
57
- // We use this to set default opacity and cursor for disabled buttons.
58
- $button-disabled-opacity: 0.7 !default;
59
- $button-disabled-cursor: $cursor-default-value !default;
60
-
61
-
62
- //
63
- // @MIXIN
64
- //
65
- // We use this mixin to create a default button base.
66
- //
67
- // $style - Sets base styles. Can be set to false. Default: true.
68
- // $display - Used to control display property. Default: $button-display || inline-block
69
-
70
- @mixin button-base($style:true, $display:$button-display) {
71
- @if $style {
72
- border-style: $button-border-style;
73
- border-width: $button-border-width;
74
- cursor: $cursor-pointer-value;
75
- font-family: $button-font-family;
76
- font-weight: $button-font-weight;
77
- line-height: normal;
78
- margin: 0 0 $button-margin-bottom;
79
- position: relative;
80
- text-decoration: none;
81
- text-align: $button-font-align;
82
- -webkit-appearance: none;
83
- border-radius:0;
84
- }
85
- @if $display { display: $display; }
86
- }
87
-
88
- // @MIXIN
89
- //
90
- // We use this mixin to add button size styles
91
- //
92
- // $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12)
93
- // $full-width - We can set $full-width:true to remove side padding extend width - Default: false
94
-
95
- @mixin button-size($padding:$button-med, $full-width:false) {
96
-
97
- // We control which padding styles come through,
98
- // these can be turned off by setting $padding:false
99
- @if $padding {
100
- padding-top: $padding;
101
- padding-#{$opposite-direction}: $padding * 2;
102
- padding-bottom: $padding + rem-calc(1);
103
- padding-#{$default-float}: $padding * 2;
104
-
105
- // We control the font-size based on mixin input.
106
- @if $padding == $button-med { font-size: $button-font-med; }
107
- @else if $padding == $button-tny { font-size: $button-font-tny; }
108
- @else if $padding == $button-sml { font-size: $button-font-sml; }
109
- @else if $padding == $button-lrg { font-size: $button-font-lrg; }
110
- }
111
-
112
- // We can set $full-width:true to remove side padding extend width.
113
- @if $full-width {
114
- // We still need to check if $padding is set.
115
- @if $padding {
116
- padding-top: $padding;
117
- padding-bottom: $padding + rem-calc(1);
118
- } @else if $padding == false {
119
- padding-top:0;
120
- padding-bottom:0;
121
- }
122
- padding-right: 0;
123
- padding-left: 0;
124
- width: 100%;
125
- }
126
- }
127
-
128
- // @MIXIN
129
- //
130
- // we use this mixin to create the button hover and border colors
131
-
132
- // @MIXIN
133
- //
134
- // We use this mixin to add button color styles
135
- //
136
- // $bg - Background color. We can set $bg:false for a transparent background. Default: $primary-color.
137
- // $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: true
138
- // $disabled - We can set $disabled:true to create a disabled transparent button. Default: false
139
- // $bg-hover - Button Hover Background Color. Default: $button-bg-hover
140
- // $border-color - Button Border Color. Default: $button-border-color
141
- @mixin button-style($bg:$button-bg-color, $radius:false, $disabled:false, $bg-hover:null, $border-color:null) {
142
-
143
- // We control which background styles are used,
144
- // these can be removed by setting $bg:false
145
- @if $bg {
146
-
147
- @if $bg-hover == null {
148
- $bg-hover: if($bg == $button-bg-color, $button-bg-hover, scale-color($bg, $lightness: $button-function-factor));
149
- }
150
-
151
- @if $border-color == null {
152
- $border-color: if($bg == $button-bg-color, $button-border-color, scale-color($bg, $lightness: $button-function-factor));
153
- }
154
-
155
- // This find the lightness percentage of the background color.
156
- $bg-lightness: lightness($bg);
157
- $bg-hover-lightness: lightness($bg-hover);
158
-
159
- background-color: $bg;
160
- border-color: $border-color;
161
- &:hover,
162
- &:focus { background-color: $bg-hover; }
163
-
164
- // We control the text color for you based on the background color.
165
- color: if($bg-lightness > 70%, $button-font-color-alt, $button-font-color);
166
-
167
- &:hover,
168
- &:focus {
169
- color: if($bg-hover-lightness > 70%, $button-font-color-alt, $button-font-color);
170
- }
171
- }
172
-
173
- // We can set $disabled:true to create a disabled transparent button.
174
- @if $disabled {
175
- cursor: $button-disabled-cursor;
176
- opacity: $button-disabled-opacity;
177
- box-shadow: none;
178
- &:hover,
179
- &:focus { background-color: $bg; }
180
- }
181
-
182
- // We can control how much button radius is used.
183
- @if $radius == true { @include radius($button-radius); }
184
- @else if $radius { @include radius($radius); }
185
-
186
- }
187
-
188
- // @MIXIN
189
- //
190
- // We use this to quickly create buttons with a single mixin. As @jaredhardy puts it, "the kitchen sink mixin"
191
- //
192
- // $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12)
193
- // $bg - Primary color set in settings file. Default: $button-bg.
194
- // $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default:false.
195
- // $full-width - We can set $full-width:true to remove side padding extend width. Default:false.
196
- // $disabled - We can set $disabled:true to create a disabled transparent button. Default:false.
197
- // $is-prefix - Not used? Default:false.
198
- // $bg-hover - Button Hover Color - Default null - see button-style mixin
199
- // $border-color - Button Border Color - Default null - see button-style mixin
200
- // $transition - We can control whether or not to include the background-color transition property - Default:true.
201
- @mixin button($padding:$button-med, $bg:$button-bg-color, $radius:false, $full-width:false, $disabled:false, $is-prefix:false, $bg-hover:null, $border-color:null, $transition: true) {
202
- @include button-base;
203
- @include button-size($padding, $full-width);
204
- @include button-style($bg, $radius, $disabled, $bg-hover, $border-color);
205
-
206
- @if $transition {
207
- @include single-transition(background-color);
208
- }
209
- }
210
-
211
-
212
- @include exports("button") {
213
- @if $include-html-button-classes {
214
-
215
- // Default styles applied outside of media query
216
- button, .button {
217
- @include button-base;
218
- @include button-size;
219
- @include button-style;
220
-
221
- @include single-transition(background-color);
222
-
223
- &.secondary { @include button-style($bg:$secondary-color, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
224
- &.success { @include button-style($bg:$success-color, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
225
- &.alert { @include button-style($bg:$alert-color, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
226
- &.warning { @include button-style($bg:$warning-color, $bg-hover:$warning-button-bg-hover, $border-color:$warning-button-border-color); }
227
- &.info { @include button-style($bg:$info-color, $bg-hover:$info-button-bg-hover, $border-color:$info-button-border-color); }
228
-
229
- &.large { @include button-size($padding:$button-lrg); }
230
- &.small { @include button-size($padding:$button-sml); }
231
- &.tiny { @include button-size($padding:$button-tny); }
232
- &.expand { @include button-size($padding:null,$full-width:true); }
233
-
234
- &.left-align { text-align: left; text-indent: rem-calc(12); }
235
- &.right-align { text-align: right; padding-right: rem-calc(12); }
236
-
237
- &.radius { @include button-style($bg:false, $radius:true); }
238
- &.round { @include button-style($bg:false, $radius:$button-round); }
239
-
240
- &.disabled, &[disabled] { @include button-style($bg:$button-bg-color, $disabled:true, $bg-hover:$button-bg-hover, $border-color:$button-border-color);
241
- &.secondary { @include button-style($bg:$secondary-color, $disabled:true, $bg-hover:$secondary-button-bg-hover, $border-color:$secondary-button-border-color); }
242
- &.success { @include button-style($bg:$success-color, $disabled:true, $bg-hover:$success-button-bg-hover, $border-color:$success-button-border-color); }
243
- &.alert { @include button-style($bg:$alert-color, $disabled:true, $bg-hover:$alert-button-bg-hover, $border-color:$alert-button-border-color); }
244
- &.warning { @include button-style($bg:$warning-color, $disabled:true, $bg-hover:$warning-button-bg-hover, $border-color:$warning-button-border-color); }
245
- &.info { @include button-style($bg:$info-color, $disabled:true, $bg-hover:$info-button-bg-hover, $border-color:$info-button-border-color); }
246
- }
247
- }
248
-
249
- //firefox 2px fix
250
- button::-moz-focus-inner {border:0; padding:0;}
251
-
252
- @media #{$medium-up} {
253
- button, .button {
254
- @include button-base($style:false, $display:inline-block);
255
- @include button-size($padding:false, $full-width:false);
256
- }
257
- }
258
- }
259
- }
@@ -1,256 +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
- $include-html-clearing-classes: $include-html-classes !default;
11
-
12
- // We use these to set the background colors for parts of Clearing.
13
- $clearing-bg: $oil !default;
14
- $clearing-caption-bg: $clearing-bg !default;
15
- $clearing-carousel-bg: rgba(51,51,51,0.8) !default;
16
- $clearing-img-bg: $clearing-bg !default;
17
-
18
- // We use these to style the close button
19
- $clearing-close-color: $iron !default;
20
- $clearing-close-size: 30px !default;
21
-
22
- // We use these to style the arrows
23
- $clearing-arrow-size: 12px !default;
24
- $clearing-arrow-color: $clearing-close-color !default;
25
-
26
- // We use these to style captions
27
- $clearing-caption-font-color: $iron !default;
28
- $clearing-caption-font-size: 0.875em !default;
29
- $clearing-caption-padding: 10px 30px 20px !default;
30
-
31
- // We use these to make the image and carousel height and style
32
- $clearing-active-img-height: 85% !default;
33
- $clearing-carousel-height: 120px !default;
34
- $clearing-carousel-thumb-width: 120px !default;
35
- $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default;
36
-
37
- @include exports("clearing") {
38
- @if $include-html-clearing-classes {
39
- // We decided to not create a mixin for Clearing because it relies
40
- // on predefined classes and structure to work properly.
41
- // The variables above should give enough control.
42
-
43
- /* Clearing Styles */
44
- .clearing-thumbs, #{data('clearing')} {
45
- @include clearfix;
46
- margin-bottom: 0;
47
- margin-#{$default-float}: 0;
48
- list-style: none;
49
-
50
- li {
51
- float: $default-float;
52
- margin-#{$opposite-direction}: 10px;
53
- }
54
-
55
- &[class*="block-grid-"] li {
56
- margin-#{$opposite-direction}: 0;
57
- }
58
- }
59
-
60
- .clearing-blackout {
61
- background: $clearing-bg;
62
- position: fixed;
63
- width: 100%;
64
- height: 100%;
65
- top: 0;
66
- #{$default-float}: 0;
67
- z-index: 998;
68
-
69
- .clearing-close { display: block; }
70
- }
71
-
72
- .clearing-container {
73
- position: relative;
74
- z-index: 998;
75
- height: 100%;
76
- overflow: hidden;
77
- margin: 0;
78
- }
79
-
80
- .clearing-touch-label {
81
- position: absolute;
82
- top: 50%;
83
- left: 50%;
84
- color: $base;
85
- font-size: 0.6em;
86
- }
87
-
88
- .visible-img {
89
- height: 95%;
90
- position: relative;
91
-
92
- img {
93
- position: absolute;
94
- #{$default-float}: 50%;
95
- top: 50%;
96
- @if $default-float == left {
97
- transform: translateY(-50%) translateX(-50%);
98
- -webkit-transform: translateY(-50%) translateX(-50%);
99
- -ms-transform: translateY(-50%) translateX(-50%);
100
- }
101
- @else {
102
- transform: translateY(-50%) translateX(50%);
103
- -webkit-transform: translateY(-50%) translateX(50%);
104
- -ms-transform: translateY(-50%) translateX(50%);
105
- };
106
- max-height: 100%;
107
- max-width: 100%;
108
- }
109
- }
110
-
111
- .clearing-caption {
112
- color: $clearing-caption-font-color;
113
- font-size: $clearing-caption-font-size;
114
- line-height: 1.3;
115
- margin-bottom: 0;
116
- text-align: center;
117
- bottom: 0;
118
- background: $clearing-caption-bg;
119
- width: 100%;
120
- padding: $clearing-caption-padding;
121
- position: absolute;
122
- #{$default-float}: 0;
123
- }
124
-
125
- .clearing-close {
126
- z-index: 999;
127
- padding-#{$default-float}: 20px;
128
- padding-top: 10px;
129
- font-size: $clearing-close-size;
130
- line-height: 1;
131
- color: $clearing-close-color;
132
- display: none;
133
-
134
- &:hover,
135
- &:focus { color: $iron; }
136
- }
137
-
138
- .clearing-assembled .clearing-container { height: 100%;
139
- .carousel > ul { display: none; }
140
- }
141
-
142
- // If you want to show a lightbox, but only have a single image come through as the thumbnail
143
- .clearing-feature li {
144
- display: none;
145
- &.clearing-featured-img {
146
- display: block;
147
- }
148
- }
149
-
150
- // Large screen overrides
151
- @media #{$medium-up} {
152
- .clearing-main-prev,
153
- .clearing-main-next {
154
- position: absolute;
155
- height: 100%;
156
- width: 40px;
157
- top: 0;
158
- & > span {
159
- position: absolute;
160
- top: 50%;
161
- display: block;
162
- width: 0;
163
- height: 0;
164
- border: solid $clearing-arrow-size;
165
- &:hover { opacity: 0.8; }
166
- }
167
- }
168
- .clearing-main-prev {
169
- #{$default-float}: 0;
170
- & > span {
171
- #{$default-float}: 5px;
172
- border-color: transparent;
173
- border-#{$opposite-direction}-color: $clearing-arrow-color;
174
- }
175
- }
176
- .clearing-main-next {
177
- #{$opposite-direction}: 0;
178
- & > span {
179
- border-color: transparent;
180
- border-#{$default-float}-color: $clearing-arrow-color;
181
- }
182
- }
183
-
184
- .clearing-main-prev.disabled,
185
- .clearing-main-next.disabled { opacity: 0.3; }
186
-
187
- .clearing-assembled .clearing-container {
188
-
189
- .carousel {
190
- background: $clearing-carousel-bg;
191
- height: $clearing-carousel-height;
192
- margin-top: 10px;
193
- text-align: center;
194
-
195
- & > ul {
196
- display: inline-block;
197
- z-index: 999;
198
- height: 100%;
199
- position: relative;
200
- float: none;
201
-
202
- li {
203
- display: block;
204
- width: $clearing-carousel-thumb-width;
205
- min-height: inherit;
206
- float: $default-float;
207
- overflow: hidden;
208
- margin-#{$opposite-direction}: 0;
209
- padding: 0;
210
- position: relative;
211
- cursor: $cursor-pointer-value;
212
- opacity: 0.4;
213
- clear: none;
214
-
215
- &.fix-height {
216
- img {
217
- height: 100%;
218
- max-width: none;
219
- }
220
- }
221
-
222
- a.th {
223
- border: none;
224
- box-shadow: none;
225
- display: block;
226
- }
227
-
228
- img {
229
- cursor: $cursor-pointer-value !important;
230
- width: 100% !important;
231
- }
232
-
233
- &.visible { opacity: 1; }
234
- &:hover { opacity: 0.8; }
235
- }
236
- }
237
- }
238
-
239
- .visible-img {
240
- background: $clearing-img-bg;
241
- overflow: hidden;
242
- height: $clearing-active-img-height;
243
- }
244
- }
245
-
246
- .clearing-close {
247
- position: absolute;
248
- top: 10px;
249
- #{$opposite-direction}: 20px;
250
- padding-#{$default-float}: 0;
251
- padding-top: 0;
252
- }
253
- }
254
-
255
- }
256
- }