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
@@ -0,0 +1,70 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+ // toolbar styles
5
+
6
+ .toolbar {
7
+ background: $oil;
8
+ width: 100%;
9
+ font-size: 0;
10
+ display: inline-block;
11
+
12
+ &.label-bottom .tab .tab-content {
13
+ i, img { margin-bottom: 10px; }
14
+ }
15
+
16
+ &.label-right .tab .tab-content {
17
+ i, img { margin-right: 10px; display: inline-block;}
18
+ label { display: inline-block; }
19
+ }
20
+
21
+ &.vertical.label-right .tab .tab-content {
22
+ text-align: left;
23
+ }
24
+
25
+ &.vertical {
26
+ height: 100%;
27
+ width: auto;
28
+
29
+ .tab {
30
+ width: auto;
31
+ margin: auto;
32
+ float: none;
33
+ }
34
+ }
35
+
36
+ .tab {
37
+ text-align: center;
38
+ width: 25%;
39
+ margin: 0 auto;
40
+ display: block;
41
+ padding: 20px;
42
+ float: left;
43
+
44
+ &:hover {
45
+ background: rgba($white, 0.1);
46
+ }
47
+ }
48
+ }
49
+
50
+ .toolbar .tab-content {
51
+ font-size: 16px;
52
+ text-align: center;
53
+
54
+ label { color: $iron; }
55
+
56
+ i {
57
+ font-size: 30px;
58
+ display: block;
59
+ margin: 0 auto;
60
+ color: $iron;
61
+ vertical-align: middle;
62
+ }
63
+
64
+ img {
65
+ width: 30px;
66
+ height: 30px;
67
+ display: block;
68
+ margin: 0 auto;
69
+ }
70
+ }
@@ -9,26 +9,27 @@
9
9
  //
10
10
  $include-html-tooltip-classes: $include-html-classes !default;
11
11
 
12
- $has-tip-border-bottom: dotted 1px #ccc !default;
12
+ $has-tip-border-bottom: dotted 1px $iron !default;
13
13
  $has-tip-font-weight: $font-weight-bold !default;
14
- $has-tip-font-color: #333 !default;
14
+ $has-tip-font-color: $oil !default;
15
15
  $has-tip-border-bottom-hover: dotted 1px scale-color($primary-color, $lightness: -55%) !default;
16
16
  $has-tip-font-color-hover: $primary-color !default;
17
17
  $has-tip-cursor-type: help !default;
18
18
 
19
19
  $tooltip-padding: rem-calc(12) !default;
20
- $tooltip-bg: #333 !default;
20
+ $tooltip-bg: $oil !default;
21
21
  $tooltip-font-size: rem-calc(14) !default;
22
22
  $tooltip-font-weight: $font-weight-normal !default;
23
- $tooltip-font-color: #fff !default;
23
+ $tooltip-font-color: $white !default;
24
24
  $tooltip-line-height: 1.3 !default;
25
25
  $tooltip-close-font-size: rem-calc(10) !default;
26
26
  $tooltip-close-font-weight: $font-weight-normal !default;
27
- $tooltip-close-font-color: #777 !default;
27
+ $tooltip-close-font-color: $monsoon !default;
28
28
  $tooltip-font-size-sml: rem-calc(14) !default;
29
29
  $tooltip-radius: $global-radius !default;
30
30
  $tooltip-rounded: $global-rounded !default;
31
31
  $tooltip-pip-size: 5px !default;
32
+ $tooltip-max-width: 300px !default;
32
33
 
33
34
  @include exports("tooltip") {
34
35
  @if $include-html-tooltip-classes {
@@ -53,12 +54,12 @@ $tooltip-pip-size: 5px !default;
53
54
  .tooltip {
54
55
  display: none;
55
56
  position: absolute;
56
- z-index: 999;
57
+ z-index: 1006;
57
58
  font-weight: $tooltip-font-weight;
58
59
  font-size: $tooltip-font-size;
59
60
  line-height: $tooltip-line-height;
60
61
  padding: $tooltip-padding;
61
- max-width: 85%;
62
+ max-width: $tooltip-max-width;
62
63
  #{$default-float}: 50%;
63
64
  width: 100%;
64
65
  color: $tooltip-font-color;
@@ -73,6 +74,7 @@ $tooltip-pip-size: 5px !default;
73
74
  border: solid $tooltip-pip-size;
74
75
  border-color: transparent transparent $tooltip-bg transparent;
75
76
  top: -($tooltip-pip-size * 2);
77
+ pointer-events: none;
76
78
 
77
79
  &.rtl {
78
80
  left: auto;
@@ -5,6 +5,7 @@
5
5
  @import "global";
6
6
  @import "grid";
7
7
  @import "buttons";
8
+ @import "forms";
8
9
 
9
10
  //
10
11
  // Top Bar Variables
@@ -12,7 +13,7 @@
12
13
  $include-html-top-bar-classes: $include-html-classes !default;
13
14
 
14
15
  // Background color for the top bar
15
- $topbar-bg-color: #333 !default;
16
+ $topbar-bg-color: $oil !default;
16
17
  $topbar-bg: $topbar-bg-color !default;
17
18
 
18
19
  // Height and margin
@@ -23,49 +24,51 @@ $topbar-margin-bottom: 0 !default;
23
24
  $topbar-title-weight: $font-weight-normal !default;
24
25
  $topbar-title-font-size: rem-calc(17) !default;
25
26
 
26
- // Style the top bar dropdown elements
27
- $topbar-dropdown-bg: #333 !default;
28
- $topbar-dropdown-link-color: #fff !default;
29
- $topbar-dropdown-link-bg: #333 !default;
30
- $topbar-dropdown-link-weight: $font-weight-normal !default;
31
- $topbar-dropdown-toggle-size: 5px !default;
32
- $topbar-dropdown-toggle-color: #fff !default;
33
- $topbar-dropdown-toggle-alpha: 0.4 !default;
34
-
35
27
  // Set the link colors and styles for top-level nav
36
- $topbar-link-color: #fff !default;
37
- $topbar-link-color-hover: #fff !default;
38
- $topbar-link-color-active: #fff !default;
39
- $topbar-link-color-active-hover: #fff !default;
28
+ $topbar-link-color: $white !default;
29
+ $topbar-link-color-hover: $white !default;
30
+ $topbar-link-color-active: $white !default;
31
+ $topbar-link-color-active-hover: $white !default;
40
32
  $topbar-link-weight: $font-weight-normal !default;
41
33
  $topbar-link-font-size: rem-calc(13) !default;
42
34
  $topbar-link-hover-lightness: -10% !default; // Darken by 10%
43
35
  $topbar-link-bg: $topbar-bg !default;
44
36
  $topbar-link-bg-hover: #272727 !default;
45
- $topbar-link-bg-color-hover: #555555 !default;
37
+ $topbar-link-bg-color-hover: $charcoal !default;
46
38
  $topbar-link-bg-active: $primary-color !default;
47
39
  $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default;
48
40
  $topbar-link-font-family: $body-font-family !default;
49
41
  $topbar-link-text-transform: none !default;
50
42
  $topbar-link-padding: $topbar-height / 3 !default;
51
-
43
+ $topbar-back-link-size: rem-calc(18) !default;
44
+ $topbar-link-dropdown-padding: 20px !default;
52
45
  $topbar-button-font-size: 0.75rem !default;
53
46
  $topbar-button-top: 7px !default;
54
47
 
55
- $topbar-dropdown-label-color: #777 !default;
48
+ // Style the top bar dropdown elements
49
+ $topbar-dropdown-bg: $oil !default;
50
+ $topbar-dropdown-link-color: $white !default;
51
+ $topbar-dropdown-link-color-hover: $topbar-link-color-hover !default;
52
+ $topbar-dropdown-link-bg: $oil !default;
53
+ $topbar-dropdown-link-weight: $font-weight-normal !default;
54
+ $topbar-dropdown-toggle-size: 5px !default;
55
+ $topbar-dropdown-toggle-color: $white !default;
56
+ $topbar-dropdown-toggle-alpha: 0.4 !default;
57
+
58
+ $topbar-dropdown-label-color: $monsoon !default;
56
59
  $topbar-dropdown-label-text-transform: uppercase !default;
57
60
  $topbar-dropdown-label-font-weight: $font-weight-bold !default;
58
61
  $topbar-dropdown-label-font-size: rem-calc(10) !default;
59
- $topbar-dropdown-label-bg: #333 !default;
62
+ $topbar-dropdown-label-bg: $oil !default;
60
63
 
61
64
  // Top menu icon styles
62
65
  $topbar-menu-link-transform: uppercase !default;
63
66
  $topbar-menu-link-font-size: rem-calc(13) !default;
64
67
  $topbar-menu-link-weight: $font-weight-bold !default;
65
- $topbar-menu-link-color: #fff !default;
66
- $topbar-menu-icon-color: #fff !default;
67
- $topbar-menu-link-color-toggled: #888 !default;
68
- $topbar-menu-icon-color-toggled: #888 !default;
68
+ $topbar-menu-link-color: $white !default;
69
+ $topbar-menu-icon-color: $white !default;
70
+ $topbar-menu-link-color-toggled: $jumbo !default;
71
+ $topbar-menu-icon-color-toggled: $jumbo !default;
69
72
 
70
73
  // Transitions and breakpoint styles
71
74
  $topbar-transition-speed: 300ms !default;
@@ -80,6 +83,7 @@ $topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness:
80
83
  // Sticky Class
81
84
  $topbar-sticky-class: ".sticky" !default;
82
85
  $topbar-arrows: true !default; //Set false to remove the triangle icon from the menu item
86
+ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text from dropdown subnavigation li
83
87
 
84
88
  // Accessibility mixins for hiding and showing the menu dropdown items
85
89
  @mixin topbar-hide-dropdown {
@@ -160,16 +164,21 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
160
164
  form,
161
165
  input { margin-bottom: 0; }
162
166
 
163
- input { height: auto; padding-top: .35rem; padding-bottom: .35rem; font-size: $topbar-button-font-size; }
167
+ input { height: 1.8rem; padding-top: .35rem; padding-bottom: .35rem; font-size: $topbar-button-font-size; }
164
168
 
165
169
  .button, button {
166
- padding-top: .45rem;
167
- padding-bottom: .35rem;
170
+ padding-top: .35rem + rem-calc(1);
171
+ padding-bottom: .35rem + rem-calc(1);
168
172
  margin-bottom: 0;
169
173
  font-size: $topbar-button-font-size;
170
174
  // position: relative;
171
175
  // top: -1px;
172
176
 
177
+ // Corrects a slight misalignment when put next to an input field
178
+ @media #{$small-only} {
179
+ position: relative;
180
+ top: -1px;
181
+ }
173
182
  }
174
183
 
175
184
  // Title Area
@@ -240,9 +249,9 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
240
249
  // $thickness - thickness of lines in hamburger icon, set value in px
241
250
  // $gap - spacing between the lines in hamburger icon, set value in px
242
251
  // $color - icon color
243
- // $hover-color - icon color during hover, here it is set the same as $color because the values are changed on line 264
252
+ // $hover-color - icon color during hover, here it isn't set b/c it would override $topbar-menu-icon-color-toggled
244
253
  // $offcanvas - Set to false of @include in topbar
245
- @include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, $topbar-menu-icon-color, false);
254
+ @include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, "", false);
246
255
  }
247
256
  }
248
257
  }
@@ -257,18 +266,16 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
257
266
 
258
267
  .toggle-topbar {
259
268
  a { color: $topbar-menu-link-color-toggled;
260
- &::after {
269
+ span::after {
261
270
  // Shh, don't tell, but box-shadows create the menu icon :)
262
- box-shadow: 0 10px 0 1px $topbar-menu-icon-color-toggled,
263
- 0 16px 0 1px $topbar-menu-icon-color-toggled,
264
- 0 22px 0 1px $topbar-menu-icon-color-toggled;
271
+ // Change the color of the bars when the menu is expanded, using given thickness from hamburger() above
272
+ box-shadow: 0 0px 0 1px $topbar-menu-icon-color-toggled,
273
+ 0 7px 0 1px $topbar-menu-icon-color-toggled,
274
+ 0 14px 0 1px $topbar-menu-icon-color-toggled;
265
275
  }
266
276
  }
267
277
  }
268
278
  }
269
-
270
-
271
-
272
279
  }
273
280
 
274
281
  // Right and Left Navigation that stacked by default
@@ -318,6 +325,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
318
325
  &.button.secondary { @include button-style($bg:$secondary-color); }
319
326
  &.button.success { @include button-style($bg:$success-color); }
320
327
  &.button.alert { @include button-style($bg:$alert-color); }
328
+ &.button.warning { @include button-style($bg:$warning-color); }
321
329
  }
322
330
 
323
331
  > button {
@@ -329,6 +337,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
329
337
  &.secondary { @include button-style($bg:$secondary-color); }
330
338
  &.success { @include button-style($bg:$success-color); }
331
339
  &.alert { @include button-style($bg:$alert-color); }
340
+ &.warning { @include button-style($bg:$warning-color); }
332
341
  }
333
342
 
334
343
  // Apply the hover link color when it has that class
@@ -404,13 +413,16 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
404
413
  }
405
414
  }
406
415
 
407
- &.title h5 {
416
+ &.title h5, &.parent-link {
417
+ // Back Button
408
418
  margin-bottom: 0;
409
419
  margin-top: 0;
420
+ font-size: $topbar-back-link-size;
410
421
  a {
411
422
  color: $topbar-link-color;
412
- line-height: $topbar-height / 2;
423
+ // line-height: $topbar-height / 2;
413
424
  display: block;
425
+ &:hover { background:none; }
414
426
  }
415
427
  }
416
428
  &.has-form { padding: 8px $topbar-link-padding; }
@@ -504,7 +516,10 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
504
516
  line-height: $topbar-height;
505
517
  color: $topbar-link-color-active;
506
518
  background: $topbar-link-bg-active;
507
- &:hover { background: $topbar-link-bg-active-hover; }
519
+ &:hover {
520
+ background: $topbar-link-bg-active-hover;
521
+ color: $topbar-link-color-active-hover;
522
+ }
508
523
  }
509
524
  }
510
525
  }
@@ -514,7 +529,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
514
529
  @if($topbar-arrows){
515
530
 
516
531
  & > a {
517
- padding-#{$opposite-direction}: $topbar-link-padding + 20 !important;
532
+ padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important;
518
533
  &:after {
519
534
  @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top);
520
535
  margin-top: -($topbar-dropdown-toggle-size / 2);
@@ -535,16 +550,21 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
535
550
  @include topbar-show-dropdown();
536
551
  }
537
552
  }
553
+ > a:focus + .dropdown {
554
+ @include topbar-show-dropdown();
555
+ }
538
556
 
539
557
  .dropdown li.has-dropdown {
540
558
  & > a {
541
- &:after {
542
- border: none;
543
- content: "\00bb";
544
- top: 1rem;
545
- margin-top: -1px;
546
- #{$opposite-direction}: 5px;
547
- line-height: 1.2;
559
+ @if ($topbar-dropdown-arrows){
560
+ &:after {
561
+ border: none;
562
+ content: "\00bb";
563
+ top: 1rem;
564
+ margin-top: -1px;
565
+ #{$opposite-direction}: 5px;
566
+ line-height: 1.2;
567
+ }
548
568
  }
549
569
  }
550
570
  }
@@ -566,15 +586,18 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
566
586
  background: $topbar-dropdown-link-bg;
567
587
  }
568
588
 
569
- &:not(.has-form) a:not(.button) {
570
- color: $topbar-dropdown-link-color;
571
- background: $topbar-dropdown-link-bg;
572
- }
573
- &:not(.has-form):hover > a:not(.button) {
574
- color: $topbar-link-color-hover;
575
- background-color: $topbar-link-bg-color-hover;
576
- @if ($topbar-link-bg-hover) {
577
- background: $topbar-link-bg-hover;
589
+ &:not(.has-form):not(.active) {
590
+ & > a:not(.button) {
591
+ color: $topbar-dropdown-link-color;
592
+ background: $topbar-dropdown-link-bg;
593
+ }
594
+
595
+ &:hover > a:not(.button) {
596
+ color: $topbar-dropdown-link-color-hover;
597
+ background-color: $topbar-link-bg-color-hover;
598
+ @if ($topbar-link-bg-hover) {
599
+ background: $topbar-link-bg-hover;
600
+ }
578
601
  }
579
602
  }
580
603
 
@@ -608,7 +631,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
608
631
  }
609
632
 
610
633
  // Position overrides for ul.right and ul.left
611
- .right {
634
+ .#{$opposite-direction} {
612
635
  li .dropdown {
613
636
  #{$default-float}: auto;
614
637
  #{$opposite-direction}: 0;
@@ -616,7 +639,7 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
616
639
  li .dropdown { #{$opposite-direction}: 100%; }
617
640
  }
618
641
  }
619
- .left {
642
+ .#{$default-float} {
620
643
  li .dropdown {
621
644
  #{$opposite-direction}: auto;
622
645
  #{$default-float}: 0;
@@ -652,6 +675,9 @@ $topbar-arrows: true !default; //Set false to remove the triangle icon from the
652
675
  @include topbar-show-dropdown();
653
676
  }
654
677
  }
678
+ > a:focus + .dropdown {
679
+ @include topbar-show-dropdown();
680
+ }
655
681
  }
656
682
  }
657
683
  }
@@ -10,7 +10,7 @@ $include-html-type-classes: $include-html-classes !default;
10
10
  $header-font-family: $body-font-family !default;
11
11
  $header-font-weight: $font-weight-normal !default;
12
12
  $header-font-style: $font-weight-normal !default;
13
- $header-font-color: #222 !default;
13
+ $header-font-color: $jet !default;
14
14
  $header-line-height: 1.4 !default;
15
15
  $header-top-margin: .2rem !default;
16
16
  $header-bottom-margin: .5rem !default;
@@ -55,9 +55,14 @@ $paragraph-aside-font-style: italic !default;
55
55
  $paragraph-text-rendering: optimizeLegibility !default;
56
56
 
57
57
  // We use these to style <code> tags
58
- $code-color: scale-color($alert-color, $lightness: -27%) !default;
59
- $code-font-family: Consolas, 'Liberation Mono', Courier, monospace !default;
60
- $code-font-weight: $font-weight-bold !default;
58
+ $code-color: $oil !default;
59
+ $code-font-family: $font-family-monospace !default;
60
+ $code-font-weight: $font-weight-normal !default;
61
+ $code-background-color: scale-color($secondary-color, $lightness: 70%) !default;
62
+ $code-border-size: 1px !default;
63
+ $code-border-style: solid !default;
64
+ $code-border-color: scale-color($code-background-color, $lightness: -10%) !default;
65
+ $code-padding: rem-calc(2) rem-calc(5) rem-calc(1) !default;
61
66
 
62
67
  // We use these to style anchors
63
68
  $anchor-text-decoration: none !default;
@@ -68,7 +73,7 @@ $anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%) !def
68
73
  // We use these to style the <hr> element
69
74
  $hr-border-width: 1px !default;
70
75
  $hr-border-style: solid !default;
71
- $hr-border-color: #ddd !default;
76
+ $hr-border-color: $gainsboro !default;
72
77
  $hr-margin: rem-calc(20) !default;
73
78
 
74
79
  // We use these to style lists
@@ -88,13 +93,13 @@ $definition-list-margin-bottom: rem-calc(12) !default;
88
93
  // We use these to style blockquotes
89
94
  $blockquote-font-color: scale-color($header-font-color, $lightness: 35%) !default;
90
95
  $blockquote-padding: rem-calc(9 20 0 19) !default;
91
- $blockquote-border: 1px solid #ddd !default;
96
+ $blockquote-border: 1px solid $gainsboro !default;
92
97
  $blockquote-cite-font-size: rem-calc(13) !default;
93
98
  $blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%) !default;
94
99
  $blockquote-cite-link-color: $blockquote-cite-font-color !default;
95
100
 
96
101
  // Acronym styles
97
- $acronym-underline: 1px dotted #ddd !default;
102
+ $acronym-underline: 1px dotted $gainsboro !default;
98
103
 
99
104
  // We use these to control padding and margin
100
105
  $microformat-padding: rem-calc(10 12) !default;
@@ -103,7 +108,7 @@ $microformat-margin: rem-calc(0 0 20 0) !default;
103
108
  // We use these to control the border styles
104
109
  $microformat-border-width: 1px !default;
105
110
  $microformat-border-style: solid !default;
106
- $microformat-border-color: #ddd !default;
111
+ $microformat-border-color: $gainsboro !default;
107
112
 
108
113
  // We use these to control full name font styles
109
114
  $microformat-fullname-font-weight: $font-weight-bold !default;
@@ -300,6 +305,11 @@ $align-class-breakpoints:
300
305
  font-family: $code-font-family;
301
306
  font-weight: $code-font-weight;
302
307
  color: $code-color;
308
+ background-color: $code-background-color;
309
+ border-width: $code-border-size;
310
+ border-style: $code-border-style;
311
+ border-color: $code-border-color;
312
+ padding: $code-padding;
303
313
  }
304
314
 
305
315
  /* Lists */
@@ -376,11 +386,13 @@ $align-class-breakpoints:
376
386
  text-transform: uppercase;
377
387
  font-size: 90%;
378
388
  color: $body-font-color;
379
- border-bottom: $acronym-underline;
380
389
  cursor: $cursor-help-value;
381
390
  }
382
391
  abbr {
383
392
  text-transform: none;
393
+ &[title] {
394
+ border-bottom: $acronym-underline;
395
+ }
384
396
  }
385
397
 
386
398
  /* Blockquotes */
@@ -461,7 +473,7 @@ $align-class-breakpoints:
461
473
  @media print {
462
474
  * {
463
475
  background: transparent !important;
464
- color: #000 !important; /* Black prints faster: h5bp.com/s */
476
+ color: $black !important; /* Black prints faster: h5bp.com/s */
465
477
  box-shadow: none !important;
466
478
  text-shadow: none !important;
467
479
  }
@@ -479,7 +491,7 @@ $align-class-breakpoints:
479
491
 
480
492
  pre,
481
493
  blockquote {
482
- border: 1px solid #999;
494
+ border: 1px solid $aluminum;
483
495
  page-break-inside: avoid;
484
496
  }
485
497
 
@@ -257,7 +257,7 @@ $visibility-breakpoint-queries:
257
257
  }
258
258
  @if $include-table-visibility-classes != false {
259
259
  #{$visibility-table-list} {
260
- display: table;
260
+ display: table !important;
261
261
  }
262
262
  #{$visibility-table-header-group-list} {
263
263
  display: table-header-group !important;
@@ -290,7 +290,7 @@ $visibility-breakpoint-queries:
290
290
  /* Specific visibility for tables */
291
291
  table {
292
292
  &.hide-for-landscape,
293
- &.show-for-portrait { display: table; }
293
+ &.show-for-portrait { display: table !important; }
294
294
  }
295
295
  thead {
296
296
  &.hide-for-landscape,
@@ -319,7 +319,7 @@ $visibility-breakpoint-queries:
319
319
  /* Specific visibility for tables */
320
320
  table {
321
321
  &.show-for-landscape,
322
- &.hide-for-portrait { display: table; }
322
+ &.hide-for-portrait { display: table !important; }
323
323
  }
324
324
  thead {
325
325
  &.show-for-landscape,
@@ -349,7 +349,7 @@ $visibility-breakpoint-queries:
349
349
  /* Specific visibility for tables */
350
350
  table {
351
351
  &.show-for-portrait,
352
- &.hide-for-landscape { display: table; }
352
+ &.hide-for-landscape { display: table !important; }
353
353
  }
354
354
  thead {
355
355
  &.show-for-portrait,
@@ -377,8 +377,8 @@ $visibility-breakpoint-queries:
377
377
  .touch .hide-for-touch { display: none !important; }
378
378
 
379
379
  /* Specific visibility for tables */
380
- table.hide-for-touch { display: table; }
381
- .touch table.show-for-touch { display: table; }
380
+ table.hide-for-touch { display: table !important; }
381
+ .touch table.show-for-touch { display: table !important; }
382
382
  thead.hide-for-touch { display: table-header-group !important; }
383
383
  .touch thead.show-for-touch { display: table-header-group !important; }
384
384
  tbody.hide-for-touch { display: table-row-group !important; }
@@ -396,7 +396,7 @@ $visibility-breakpoint-queries:
396
396
  .show-for-print { display: block; }
397
397
  .hide-for-print { display: none; }
398
398
 
399
- table.show-for-print { display: table; }
399
+ table.show-for-print { display: table !important; }
400
400
  thead.show-for-print { display: table-header-group !important; }
401
401
  tbody.show-for-print { display: table-row-group !important; }
402
402
  tr.show-for-print { display: table-row !important; }