locomotivecms_wagon 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/generators/foundation5/public/stylesheets/foundation/_functions.scss +3 -2
  3. data/generators/foundation5/public/stylesheets/foundation/_settings.scss +419 -274
  4. data/generators/foundation5/public/stylesheets/foundation/components/_accordion.scss +110 -6
  5. data/generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss +4 -2
  6. data/generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss +2 -2
  7. data/generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss +8 -3
  8. data/generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss +98 -9
  9. data/generators/foundation5/public/stylesheets/foundation/components/_buttons.scss +66 -29
  10. data/generators/foundation5/public/stylesheets/foundation/components/_clearing.scss +5 -5
  11. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss +11 -10
  12. data/generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss +49 -35
  13. data/generators/foundation5/public/stylesheets/foundation/components/_forms.scss +125 -38
  14. data/generators/foundation5/public/stylesheets/foundation/components/_global.scss +64 -38
  15. data/generators/foundation5/public/stylesheets/foundation/components/_grid.scss +19 -4
  16. data/generators/foundation5/public/stylesheets/foundation/components/_icon-bar.scss +293 -0
  17. data/generators/foundation5/public/stylesheets/foundation/components/_joyride.scss +11 -9
  18. data/generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss +4 -4
  19. data/generators/foundation5/public/stylesheets/foundation/components/_labels.scss +5 -3
  20. data/generators/foundation5/public/stylesheets/foundation/components/_magellan.scss +1 -1
  21. data/generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss +190 -33
  22. data/generators/foundation5/public/stylesheets/foundation/components/_orbit.scss +92 -147
  23. data/generators/foundation5/public/stylesheets/foundation/components/_pagination.scss +22 -10
  24. data/generators/foundation5/public/stylesheets/foundation/components/_panels.scss +12 -7
  25. data/generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss +11 -11
  26. data/generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss +2 -2
  27. data/generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss +29 -9
  28. data/generators/foundation5/public/stylesheets/foundation/components/_reveal.scss +62 -56
  29. data/generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss +3 -2
  30. data/generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss +2 -2
  31. data/generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss +4 -6
  32. data/generators/foundation5/public/stylesheets/foundation/components/_switches.scss +230 -0
  33. data/generators/foundation5/public/stylesheets/foundation/components/_tables.scss +13 -7
  34. data/generators/foundation5/public/stylesheets/foundation/components/_tabs.scss +22 -8
  35. data/generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss +2 -4
  36. data/generators/foundation5/public/stylesheets/foundation/components/_toolbar.scss +70 -0
  37. data/generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss +9 -7
  38. data/generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss +82 -56
  39. data/generators/foundation5/public/stylesheets/foundation/components/_type.scss +23 -11
  40. data/generators/foundation5/public/stylesheets/foundation/components/_visibility.scss +7 -7
  41. data/generators/foundation5/public/stylesheets/foundation.css +4327 -3587
  42. data/generators/foundation5/public/stylesheets/foundation.css.scss +38 -38
  43. data/generators/foundation5/public/stylesheets/normalize.css +71 -139
  44. data/generators/foundation5/public/stylesheets/normalize.css.scss +5 -3
  45. data/lib/locomotive/wagon/cli.rb +24 -1
  46. data/lib/locomotive/wagon/generators/content_type.rb +4 -1
  47. data/lib/locomotive/wagon/generators/page.rb +10 -5
  48. data/lib/locomotive/wagon/generators/relationship.rb +100 -0
  49. data/lib/locomotive/wagon/generators/site/foundation5.rb +2 -2
  50. data/lib/locomotive/wagon/generators/snippet.rb +3 -3
  51. data/lib/locomotive/wagon/liquid/tags/locale_switcher.rb +2 -2
  52. data/lib/locomotive/wagon/version.rb +1 -1
  53. data/lib/locomotive/wagon.rb +1 -0
  54. data/locomotivecms_wagon.gemspec +1 -1
  55. data/spec/fixtures/blog/app/content_types/comments.yml +20 -0
  56. data/spec/fixtures/blog/app/content_types/posts.yml +19 -0
  57. data/spec/fixtures/blog/app/views/pages/404.liquid +11 -0
  58. data/spec/fixtures/blog/app/views/pages/about-us.liquid.haml +29 -0
  59. data/spec/fixtures/blog/app/views/pages/index.liquid +25 -0
  60. data/spec/fixtures/blog/app/views/pages/posts/content_type_template.fr.liquid +14 -0
  61. data/spec/fixtures/blog/app/views/pages/posts/content_type_template.liquid +15 -0
  62. data/spec/fixtures/blog/app/views/pages/posts.fr.liquid +13 -0
  63. data/spec/fixtures/blog/app/views/pages/posts.liquid +13 -0
  64. data/spec/fixtures/blog/config/deploy.yml +4 -0
  65. data/spec/fixtures/blog/config/site.yml +16 -0
  66. data/spec/fixtures/blog/data/comments.yml +16 -0
  67. data/spec/fixtures/blog/data/posts.yml +7 -0
  68. data/spec/integration/generators/page_spec.rb +87 -0
  69. data/spec/integration/generators/relationship_spec.rb +102 -0
  70. data/spec/support/helpers.rb +19 -1
  71. metadata +38 -6
  72. data/generators/foundation5/public/stylesheets/foundation/components/_reveal-new.scss +0 -0
  73. data/generators/foundation5/public/stylesheets/foundation/components/_switch.scss +0 -294
@@ -3,6 +3,7 @@
3
3
  // Licensed under MIT Open Source
4
4
 
5
5
  @import "global";
6
+ @import "grid";
6
7
 
7
8
  //
8
9
  // @name _reveal.scss
@@ -12,21 +13,22 @@
12
13
  $include-html-reveal-classes: $include-html-classes !default;
13
14
 
14
15
  // We use these to control the style of the reveal overlay.
15
- $reveal-overlay-bg: rgba(#000, .45) !default;
16
- $reveal-overlay-bg-old: #000 !default;
16
+ $reveal-overlay-bg: rgba($black, .45) !default;
17
+ $reveal-overlay-bg-old: $black !default;
17
18
 
18
19
  // We use these to control the style of the modal itself.
19
- $reveal-modal-bg: #fff !default;
20
+ $reveal-modal-bg: $white !default;
20
21
  $reveal-position-top: rem-calc(100) !default;
21
22
  $reveal-default-width: 80% !default;
23
+ $reveal-max-width: $row-width !default;
22
24
  $reveal-modal-padding: rem-calc(20) !default;
23
- $reveal-box-shadow: 0 0 10px rgba(#000,.4) !default;
25
+ $reveal-box-shadow: 0 0 10px rgba($black,.4) !default;
24
26
 
25
27
  // We use these to style the reveal close button
26
28
  $reveal-close-font-size: rem-calc(40) !default;
27
29
  $reveal-close-top: rem-calc(8) !default;
28
30
  $reveal-close-side: rem-calc(11) !default;
29
- $reveal-close-color: #aaa !default;
31
+ $reveal-close-color: $base !default;
30
32
  $reveal-close-weight: $font-weight-bold !default;
31
33
 
32
34
  // We use this to set the default radius used throughout the core.
@@ -36,7 +38,7 @@ $reveal-round: $global-rounded !default;
36
38
  // We use these to control the modal border
37
39
  $reveal-border-style: solid !default;
38
40
  $reveal-border-width: 1px !default;
39
- $reveal-border-color: #666 !default;
41
+ $reveal-border-color: $steel !default;
40
42
 
41
43
  $reveal-modal-class: "reveal-modal" !default;
42
44
  $close-reveal-modal-class: "close-reveal-modal" !default;
@@ -46,15 +48,16 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
46
48
  //
47
49
 
48
50
  // We use this to create the reveal background overlay styles
49
- @mixin reveal-bg {
51
+ @mixin reveal-bg( $include-z-index-value: true ) {
50
52
  position: fixed;
51
- height: 100%;
52
- width: 100%;
53
- background: $reveal-overlay-bg-old;
53
+ top: 0;
54
+ bottom: 0;
55
+ left: 0;
56
+ right: 0;
57
+ background: $reveal-overlay-bg-old; // Autoprefixer should be used to avoid such variables needed when Foundation for Sites can do so in the near future.
54
58
  background: $reveal-overlay-bg;
55
- z-index: 99;
59
+ z-index: if( $include-z-index-value, 1004, auto );
56
60
  display: none;
57
- top: 0;
58
61
  #{$default-float}: 0;
59
62
  }
60
63
 
@@ -63,44 +66,44 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
63
66
  // $base-style - Provides reveal base styles, can be set to false to override. Default: true, Options: false
64
67
  // $width - Sets reveal width Default: $reveal-default-width || 80%
65
68
  //
66
- @mixin reveal-modal-base(
67
- $base-style:true,
68
- $width:$reveal-default-width) {
69
+ @mixin reveal-modal-base( $base-style: true, $width:$reveal-default-width, $max-width:$reveal-max-width, $border-radius: $reveal-radius) {
69
70
  @if $base-style {
70
71
  visibility: hidden;
71
72
  display: none;
72
73
  position: absolute;
73
- z-index: 100;
74
+ z-index: 1005;
74
75
  width: 100vw;
75
76
  top:0;
77
+ border-radius: $border-radius;
76
78
  #{$default-float}: 0;
79
+
77
80
  @media #{$small-only} {
78
81
  min-height:100vh;
79
82
  }
80
- @media #{$medium-up} {
81
- #{$default-float}: 50%;
82
- }
83
83
 
84
84
  // Make sure rows don't have a min-width on them
85
- .column,
86
- .columns { min-width: 0; }
85
+ .column, .columns { min-width: 0; }
87
86
 
88
87
  // Get rid of margin from first and last element inside modal
89
88
  & > :first-child { margin-top: 0; }
89
+
90
90
  & > :last-child { margin-bottom: 0; }
91
91
  }
92
92
 
93
93
  @if $width {
94
94
  @media #{$medium-up} {
95
- margin-#{$default-float}: -($width / 2);
96
95
  width: $width;
96
+ max-width: $max-width;
97
+ left: 0;
98
+ right: 0;
99
+ margin: 0 auto;
97
100
  }
98
101
  }
99
102
  }
100
103
 
101
104
  // We use this to style the reveal modal defaults
102
105
  //
103
- // $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || #fff
106
+ // $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || $white
104
107
  // $padding - Padding to apply to reveal modal. Default: $reveal-modal-padding.
105
108
  // $border - Choose whether reveal uses a border. Default: true, Options: false
106
109
  // $border-style - Set reveal border style. Default: $reveal-border-style || solid
@@ -143,7 +146,7 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
143
146
 
144
147
  // We use this to create a close button for the reveal modal
145
148
  //
146
- // $color - Default: $reveal-close-color || #aaa
149
+ // $color - Default: $reveal-close-color || $base
147
150
  @mixin reveal-close($color:$reveal-close-color) {
148
151
  font-size: $reveal-close-font-size;
149
152
  line-height: 1;
@@ -161,7 +164,7 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
161
164
  // Reveal Modals
162
165
  .reveal-modal-bg { @include reveal-bg; }
163
166
 
164
- dialog, .#{$reveal-modal-class} {
167
+ .#{$reveal-modal-class} {
165
168
  @include reveal-modal-base;
166
169
  @include reveal-modal-style(
167
170
  $bg:$reveal-modal-bg,
@@ -169,48 +172,51 @@ $close-reveal-modal-class: "close-reveal-modal" !default;
169
172
  $border:true,
170
173
  $box-shadow:true,
171
174
  $radius:false,
172
- $top-offset:$reveal-position-top);
175
+ $top-offset:$reveal-position-top
176
+ );
177
+ @include reveal-modal-style($padding:$reveal-modal-padding * 1.5);
178
+
179
+ &.radius { @include reveal-modal-style($radius:true); }
180
+ &.round { @include reveal-modal-style($radius:$reveal-round); }
181
+ &.collapse { @include reveal-modal-style($padding:0); }
182
+ &.tiny { @include reveal-modal-base(false, 30%); }
183
+ &.small { @include reveal-modal-base(false, 40%); }
184
+ &.medium { @include reveal-modal-base(false, 60%); }
185
+ &.large { @include reveal-modal-base(false, 70%); }
186
+ &.xlarge { @include reveal-modal-base(false, 95%); }
187
+ &.full {
188
+ @include reveal-modal-base(false, 100vw);
189
+ top:0;
190
+ left:0;
191
+ height:100%;
192
+ height: 100vh;
193
+ min-height:100vh;
194
+ max-width: none !important;
195
+ margin-left: 0 !important;
196
+ }
173
197
 
174
198
  .#{$close-reveal-modal-class} { @include reveal-close; }
175
199
  }
176
200
 
177
- dialog[open] {
178
- display:block;
179
- visibility: visible;
180
- }
181
-
182
- @media #{$medium-up} {
201
+ dialog {
202
+ @extend .#{$reveal-modal-class};
203
+ display: none;
183
204
 
184
- dialog, .#{$reveal-modal-class} {
185
- @include reveal-modal-style($padding:$reveal-modal-padding * 1.5);
186
-
187
- &.radius { @include reveal-modal-style($radius:true); }
188
- &.round { @include reveal-modal-style($radius:$reveal-round); }
189
-
190
- &.collapse { @include reveal-modal-style($padding:0); }
191
-
192
- &.tiny { @include reveal-modal-base(false, 30%); }
193
- &.small { @include reveal-modal-base(false, 40%); }
194
- &.medium { @include reveal-modal-base(false, 60%); }
195
- &.large { @include reveal-modal-base(false, 70%); }
196
- &.xlarge { @include reveal-modal-base(false, 95%); }
205
+ &::backdrop, & + .backdrop {
206
+ @include reveal-bg(false);
197
207
  }
198
208
 
199
- dialog, .#{$reveal-modal-class} {
200
- &.full {
201
- @include reveal-modal-base(false, 100vw);
202
- top:0;
203
- left:0;
204
- height: 100vh;
205
- min-height:100vh;
206
- margin-left: 0 !important;
207
- }
209
+ &[open]{
210
+ display: block;
208
211
  }
209
212
  }
210
213
 
211
- // Reveal Print Styles
214
+ // Reveal Print Styles: It should be invisible, adds no value being printed.
212
215
  @media print {
213
- dialog, .#{$reveal-modal-class} {background: #fff !important;}
216
+ dialog, .#{$reveal-modal-class} {
217
+ display: none;
218
+ background: $white !important;
219
+ }
214
220
  }
215
221
  }
216
222
  }
@@ -15,7 +15,7 @@ $side-nav-padding: rem-calc(14 0) !default;
15
15
 
16
16
  // We use these to control list styles.
17
17
  $side-nav-list-type: none !default;
18
- $side-nav-list-position: inside !default;
18
+ $side-nav-list-position: outside !default;
19
19
  $side-nav-list-margin: rem-calc(0 0 7 0) !default;
20
20
 
21
21
  // We use these to control link styles.
@@ -40,7 +40,7 @@ $side-nav-heading-text-transform: uppercase !default;
40
40
  // We use these to control border styles
41
41
  $side-nav-divider-size: 1px !default;
42
42
  $side-nav-divider-style: solid !default;
43
- $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
43
+ $side-nav-divider-color: scale-color($white, $lightness: 10%) !default;
44
44
 
45
45
 
46
46
  //
@@ -70,6 +70,7 @@ $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
70
70
  li {
71
71
  margin: $side-nav-list-margin;
72
72
  font-size: $font-size;
73
+ font-weight: $side-nav-font-weight;
73
74
 
74
75
  a:not(.button) {
75
76
  display: block;
@@ -19,8 +19,8 @@ $include-html-button-classes: $include-html-classes !default;
19
19
 
20
20
  // We use these to control different shared styles for Split Buttons
21
21
  $split-button-function-factor: 10% !default;
22
- $split-button-pip-color: #fff !default;
23
- $split-button-pip-color-alt: #333 !default;
22
+ $split-button-pip-color: $white !default;
23
+ $split-button-pip-color-alt: $oil !default;
24
24
  $split-button-active-bg-tint: rgba(0,0,0,0.1) !default;
25
25
 
26
26
  // We use these to control tiny split buttons
@@ -22,7 +22,7 @@ $sub-nav-list-padding-top: rem-calc(4) !default;
22
22
  // We use this to control the definition
23
23
  $sub-nav-font-family: $body-font-family !default;
24
24
  $sub-nav-font-size: rem-calc(14) !default;
25
- $sub-nav-font-color: #999 !default;
25
+ $sub-nav-font-color: $aluminum !default;
26
26
  $sub-nav-font-weight: $font-weight-normal !default;
27
27
  $sub-nav-text-decoration: none !default;
28
28
  $sub-nav-padding: rem-calc(3 16) !default;
@@ -35,7 +35,7 @@ $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !d
35
35
  $sub-nav-active-font-weight: $font-weight-normal !default;
36
36
  $sub-nav-active-bg: $primary-color !default;
37
37
  $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default;
38
- $sub-nav-active-color: #fff !default;
38
+ $sub-nav-active-color: $white !default;
39
39
  $sub-nav-active-padding: $sub-nav-padding !default;
40
40
  $sub-nav-active-cursor: default !default;
41
41
 
@@ -61,10 +61,8 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
61
61
  display: block;
62
62
  width: auto;
63
63
  overflow: hidden;
64
- margin: $sub-nav-list-margin;
64
+ margin-bottom: $sub-nav-list-margin;
65
65
  padding-top: $sub-nav-list-padding-top;
66
- margin-#{$opposite-direction}: 0;
67
- margin-#{$default-float}: rem-calc(-12);
68
66
 
69
67
  dt {
70
68
  text-transform: uppercase;
@@ -76,7 +74,7 @@ $sub-nav-item-divider-margin: rem-calc(12) !default;
76
74
  float: $default-float;
77
75
  display: inline;
78
76
  margin-#{$default-float}: rem-calc(16);
79
- margin-bottom: rem-calc(10);
77
+ margin-bottom: 0;
80
78
  font-family: $sub-nav-font-family;
81
79
  font-weight: $sub-nav-font-weight;
82
80
  font-size: $font-size;
@@ -0,0 +1,230 @@
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; top: .25rem; left: .25rem;
91
+ width: $switch-height-med - 0.5rem; height: $switch-height-med - 0.5rem;
92
+
93
+ -webkit-transition: left $transition-speed $transition-ease;
94
+ -moz-transition: left $transition-speed $transition-ease;
95
+ transition: left $transition-speed $transition-ease;
96
+
97
+ -webkit-transform: translate3d(0,0,0);
98
+ -moz-transform: translate3d(0,0,0);
99
+ transform: translate3d(0,0,0);
100
+ }
101
+
102
+ input:checked + label {
103
+ background: $switch-active-color;
104
+ }
105
+
106
+ input:checked + label:after {
107
+ left: $switch-height-med + 0.25rem;
108
+ }
109
+ }
110
+
111
+ // We use this mixin to create the size styles for switches.
112
+ //
113
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
114
+ // $font-size - Font size of text in switch. Default: $switch-font-size-med.
115
+ // $line-height - Line height of switch. Default: 2.3rem.
116
+ @mixin switch-size($height: $switch-height-med) {
117
+
118
+ label {
119
+ width: $height * 2; height: $height;
120
+ }
121
+
122
+ label:after {
123
+ width: $height - 0.5rem; height: $height - 0.5rem;
124
+ }
125
+
126
+ input:checked + label:after {
127
+ left: $height + 0.25rem;
128
+ }
129
+
130
+ }
131
+
132
+ // We use this mixin to add color and other fanciness to the switches.
133
+ //
134
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
135
+ // $active-color - Background color of positive side of switch. Default: $switch-positive-color.
136
+ // $negative-color - Background color of negative side of switch. Default: $switch-negative-color.
137
+ // $radius - Radius to apply to switch. Default: false.
138
+ // $base-style - Apply base styles? Default: true.
139
+ @mixin switch-style(
140
+ $paddle-bg:$switch-paddle-bg,
141
+ $radius:false,
142
+ $base-style:true) {
143
+
144
+ @if $base-style {
145
+
146
+ label {
147
+ color: transparent;
148
+ background: $switch-bg;
149
+ }
150
+
151
+ label:after {
152
+ background: $paddle-bg;
153
+ }
154
+
155
+ input:checked + label {
156
+ background: $switch-active-color;
157
+ }
158
+ }
159
+
160
+ // Setting up the radius for switches
161
+ @if $radius == true {
162
+ label {
163
+ border-radius: 2rem;
164
+ }
165
+ label:after {
166
+ border-radius: 2rem;
167
+ }
168
+ }
169
+ @else if $radius {
170
+ label {
171
+ border-radius: $radius;
172
+ }
173
+ label:after {
174
+ border-radius: $radius;
175
+ }
176
+ }
177
+
178
+ }
179
+
180
+ // We use this to quickly create switches with a single mixin
181
+ //
182
+ // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed.
183
+ // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease.
184
+ // $height - Height (in px) of the switch. Default: $switch-height-med.
185
+ // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg.
186
+ // $active-color - Background color of an active switch. Default: $switch-active-color.
187
+ // $radius - Radius to apply to switch. Default: false.
188
+ // $base-style - Apply base styles? Default: true.
189
+ @mixin switch(
190
+ $transition-speed: $switch-paddle-transition-speed,
191
+ $transition-ease: $switch-paddle-transition-ease,
192
+ $height: $switch-height-med,
193
+ $paddle-bg: $switch-paddle-bg,
194
+ $active-color: $switch-active-color,
195
+ $radius:false,
196
+ $base-style:true) {
197
+ @include switch-base($transition-speed, $transition-ease);
198
+ @include switch-size($height);
199
+ @include switch-style($paddle-bg, $radius, $base-style);
200
+ }
201
+
202
+ @include exports("switch") {
203
+ @if $include-html-form-classes {
204
+ .switch {
205
+ @include switch;
206
+
207
+ // Large radio switches
208
+ &.large { @include switch-size($switch-height-lrg); }
209
+
210
+ // Small radio switches
211
+ &.small { @include switch-size($switch-height-sml); }
212
+
213
+ // Tiny radio switches
214
+ &.tiny { @include switch-size($switch-height-tny); }
215
+
216
+ // Add a radius to the switch
217
+ &.radius {
218
+ label { @include radius(4px); }
219
+ label:after { @include radius(3px); }
220
+ }
221
+
222
+ // Make the switch completely round, like a pill
223
+ &.round { @include radius(1000px);
224
+ label { @include radius(2rem); }
225
+ label:after { @include radius(2rem); }
226
+ }
227
+
228
+ }
229
+ }
230
+ }
@@ -1,3 +1,7 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
1
5
  @import "global";
2
6
 
3
7
  //
@@ -12,18 +16,18 @@
12
16
  $include-html-table-classes: $include-html-classes !default;
13
17
 
14
18
  // These control the background color for the table and even rows
15
- $table-bg: #fff !default;
16
- $table-even-row-bg: #f9f9f9 !default;
19
+ $table-bg: $white !default;
20
+ $table-even-row-bg: $snow !default;
17
21
 
18
22
  // These control the table cell border style
19
23
  $table-border-style: solid !default;
20
24
  $table-border-size: 1px !default;
21
- $table-border-color: #ddd !default;
25
+ $table-border-color: $gainsboro !default;
22
26
 
23
27
  // These control the table head styles
24
- $table-head-bg: #f5f5f5 !default;
28
+ $table-head-bg: $white-smoke !default;
25
29
  $table-head-font-size: rem-calc(14) !default;
26
- $table-head-font-color: #222 !default;
30
+ $table-head-font-color: $jet !default;
27
31
  $table-head-font-weight: $font-weight-bold !default;
28
32
  $table-head-padding: rem-calc(8 10 10) !default;
29
33
 
@@ -43,10 +47,11 @@ $table-caption-font-weight: bold !default;
43
47
  // These control the row padding and font styles
44
48
  $table-row-padding: rem-calc(9 10) !default;
45
49
  $table-row-font-size: rem-calc(14) !default;
46
- $table-row-font-color: #222 !default;
50
+ $table-row-font-color: $jet !default;
47
51
  $table-line-height: rem-calc(18) !default;
48
52
 
49
- // These are for controlling the display and margin of tables
53
+ // These are for controlling the layout, display and margin of tables
54
+ $table-layout: auto !default;
50
55
  $table-display: table-cell !default;
51
56
  $table-margin-bottom: rem-calc(20) !default;
52
57
 
@@ -59,6 +64,7 @@ $table-margin-bottom: rem-calc(20) !default;
59
64
  background: $table-bg;
60
65
  margin-bottom: $table-margin-bottom;
61
66
  border: $table-border-style $table-border-size $table-border-color;
67
+ table-layout: $table-layout;
62
68
 
63
69
  caption {
64
70
  background: $table-caption-bg;
@@ -4,7 +4,6 @@
4
4
 
5
5
  @import "global";
6
6
  @import "grid";
7
- @import "type";
8
7
 
9
8
  //
10
9
  // @variables
@@ -13,10 +12,10 @@
13
12
  $include-html-tabs-classes: $include-html-classes !default;
14
13
 
15
14
  $tabs-navigation-padding: rem-calc(16) !default;
16
- $tabs-navigation-bg-color: #efefef !default;
17
- $tabs-navigation-active-bg-color: #fff !default;
15
+ $tabs-navigation-bg-color: $silver !default;
16
+ $tabs-navigation-active-bg-color: $white !default;
18
17
  $tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%) !default;
19
- $tabs-navigation-font-color: #222 !default;
18
+ $tabs-navigation-font-color: $jet !default;
20
19
  $tabs-navigation-active-font-color: $tabs-navigation-font-color !default;
21
20
  $tabs-navigation-font-size: rem-calc(16) !default;
22
21
  $tabs-navigation-font-family: $body-font-family !default;
@@ -38,15 +37,27 @@ $tabs-vertical-navigation-margin-bottom: 1.25rem !default;
38
37
  list-style: none;
39
38
  float: $default-float;
40
39
  > a {
40
+ outline: none;
41
41
  display: block;
42
- background: $tabs-navigation-bg-color;
42
+ background: {
43
+ color: $tabs-navigation-bg-color;
44
+ }
43
45
  color: $tabs-navigation-font-color;
44
46
  padding: $tabs-navigation-padding $tabs-navigation-padding * 2;
45
47
  font-family: $tabs-navigation-font-family;
46
48
  font-size: $tabs-navigation-font-size;
47
- &:hover { background: $tabs-navigation-hover-bg-color; }
49
+ &:hover {
50
+ background: {
51
+ color: $tabs-navigation-hover-bg-color;
52
+ }
53
+ }
48
54
  }
49
- &.active a { background: $tabs-navigation-active-bg-color; color:$tabs-navigation-active-font-color; }
55
+ &.active a {
56
+ background: {
57
+ color: $tabs-navigation-active-bg-color;
58
+ }
59
+ color:$tabs-navigation-active-font-color;
60
+ }
50
61
  }
51
62
  &.radius {
52
63
  dd:first-child, .tab:first-child {
@@ -87,15 +98,18 @@ $tabs-vertical-navigation-margin-bottom: 1.25rem !default;
87
98
  .tabs {
88
99
  &.vertical {
89
100
  width: 20%;
101
+ max-width: 20%;
90
102
  float: $default-float;
91
- margin-bottom: $tabs-vertical-navigation-margin-bottom;
103
+ margin: 0 0 $tabs-vertical-navigation-margin-bottom;
92
104
  }
93
105
  }
94
106
  .tabs-content {
95
107
  &.vertical {
96
108
  width: 80%;
109
+ max-width: 80%;
97
110
  float: $default-float;
98
111
  margin-#{$default-float}: -1px;
112
+ padding-#{$default-float}: 1rem;
99
113
  }
100
114
  }
101
115
  }
@@ -4,8 +4,6 @@
4
4
 
5
5
  @import "global";
6
6
 
7
-
8
-
9
7
  //
10
8
  // @name _thumbs.scss
11
9
  // @dependencies _globals.scss
@@ -20,8 +18,8 @@ $include-html-media-classes: $include-html-classes !default;
20
18
  // We use these to control border styles
21
19
  $thumb-border-style: solid !default;
22
20
  $thumb-border-width: 4px !default;
23
- $thumb-border-color: #fff !default;
24
- $thumb-box-shadow: 0 0 0 1px rgba(#000,.2) !default;
21
+ $thumb-border-color: $white !default;
22
+ $thumb-box-shadow: 0 0 0 1px rgba($black,.2) !default;
25
23
  $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5) !default;
26
24
 
27
25
  // Radius and transition speed for thumbs