nesta-contentfocus-extensions 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +53 -0
  3. data/Rakefile +1 -2
  4. data/assets/stylesheets/bitters/_base.scss +24 -0
  5. data/assets/stylesheets/bitters/_buttons.scss +10 -0
  6. data/assets/stylesheets/bitters/_forms.scss +78 -0
  7. data/assets/stylesheets/bitters/_grid-settings.scss +14 -0
  8. data/assets/stylesheets/bitters/_lists.scss +31 -0
  9. data/assets/stylesheets/bitters/_tables.scss +24 -0
  10. data/assets/stylesheets/bitters/_typography.scss +93 -0
  11. data/assets/stylesheets/bitters/_variables.scss +65 -0
  12. data/assets/stylesheets/bitters/extends/_button.scss +22 -0
  13. data/assets/stylesheets/bitters/extends/_clearfix.scss +3 -0
  14. data/assets/stylesheets/bitters/extends/_errors.scss +11 -0
  15. data/assets/stylesheets/bitters/extends/_flashes.scss +38 -0
  16. data/assets/stylesheets/bitters/extends/_hide-text.scss +3 -0
  17. data/assets/stylesheets/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
  18. data/assets/stylesheets/bourbon/_bourbon.scss +87 -0
  19. data/assets/stylesheets/bourbon/addons/_border-color.scss +26 -0
  20. data/assets/stylesheets/bourbon/addons/_border-radius.scss +48 -0
  21. data/assets/stylesheets/bourbon/addons/_border-style.scss +25 -0
  22. data/assets/stylesheets/bourbon/addons/_border-width.scss +25 -0
  23. data/assets/stylesheets/bourbon/addons/_buttons.scss +64 -0
  24. data/assets/stylesheets/bourbon/addons/_clearfix.scss +25 -0
  25. data/assets/stylesheets/bourbon/addons/_ellipsis.scss +30 -0
  26. data/assets/stylesheets/bourbon/addons/_font-stacks.scss +31 -0
  27. data/assets/stylesheets/bourbon/addons/_hide-text.scss +27 -0
  28. data/assets/stylesheets/bourbon/addons/_margin.scss +26 -0
  29. data/assets/stylesheets/bourbon/addons/_padding.scss +26 -0
  30. data/assets/stylesheets/bourbon/addons/_position.scss +48 -0
  31. data/assets/stylesheets/bourbon/addons/_prefixer.scss +66 -0
  32. data/assets/stylesheets/bourbon/addons/_retina-image.scss +25 -0
  33. data/assets/stylesheets/bourbon/addons/_size.scss +51 -0
  34. data/assets/stylesheets/bourbon/addons/_text-inputs.scss +112 -0
  35. data/assets/stylesheets/bourbon/addons/_timing-functions.scss +34 -0
  36. data/assets/stylesheets/bourbon/addons/_triangle.scss +63 -0
  37. data/assets/stylesheets/bourbon/addons/_word-wrap.scss +29 -0
  38. data/assets/stylesheets/bourbon/css3/_animation.scss +43 -0
  39. data/assets/stylesheets/bourbon/css3/_appearance.scss +3 -0
  40. data/assets/stylesheets/bourbon/css3/_backface-visibility.scss +3 -0
  41. data/assets/stylesheets/bourbon/css3/_background-image.scss +42 -0
  42. data/assets/stylesheets/bourbon/css3/_background.scss +55 -0
  43. data/assets/stylesheets/bourbon/css3/_border-image.scss +59 -0
  44. data/assets/stylesheets/bourbon/css3/_calc.scss +4 -0
  45. data/assets/stylesheets/bourbon/css3/_columns.scss +47 -0
  46. data/assets/stylesheets/bourbon/css3/_filter.scss +4 -0
  47. data/assets/stylesheets/bourbon/css3/_flex-box.scss +287 -0
  48. data/assets/stylesheets/bourbon/css3/_font-face.scss +24 -0
  49. data/assets/stylesheets/bourbon/css3/_font-feature-settings.scss +4 -0
  50. data/assets/stylesheets/bourbon/css3/_hidpi-media-query.scss +10 -0
  51. data/assets/stylesheets/bourbon/css3/_hyphens.scss +4 -0
  52. data/assets/stylesheets/bourbon/css3/_image-rendering.scss +14 -0
  53. data/assets/stylesheets/bourbon/css3/_keyframes.scss +36 -0
  54. data/assets/stylesheets/bourbon/css3/_linear-gradient.scss +38 -0
  55. data/assets/stylesheets/bourbon/css3/_perspective.scss +8 -0
  56. data/assets/stylesheets/bourbon/css3/_placeholder.scss +8 -0
  57. data/assets/stylesheets/bourbon/css3/_radial-gradient.scss +39 -0
  58. data/assets/stylesheets/bourbon/css3/_selection.scss +42 -0
  59. data/assets/stylesheets/bourbon/css3/_text-decoration.scss +19 -0
  60. data/assets/stylesheets/bourbon/css3/_transform.scss +15 -0
  61. data/assets/stylesheets/bourbon/css3/_transition.scss +71 -0
  62. data/assets/stylesheets/bourbon/css3/_user-select.scss +3 -0
  63. data/assets/stylesheets/bourbon/functions/_assign-inputs.scss +11 -0
  64. data/assets/stylesheets/bourbon/functions/_contains-falsy.scss +20 -0
  65. data/assets/stylesheets/bourbon/functions/_contains.scss +26 -0
  66. data/assets/stylesheets/bourbon/functions/_is-length.scss +11 -0
  67. data/assets/stylesheets/bourbon/functions/_is-light.scss +21 -0
  68. data/assets/stylesheets/bourbon/functions/_is-number.scss +11 -0
  69. data/assets/stylesheets/bourbon/functions/_is-size.scss +13 -0
  70. data/assets/stylesheets/bourbon/functions/_modular-scale.scss +69 -0
  71. data/assets/stylesheets/bourbon/functions/_px-to-em.scss +13 -0
  72. data/assets/stylesheets/bourbon/functions/_px-to-rem.scss +15 -0
  73. data/assets/stylesheets/bourbon/functions/_shade.scss +24 -0
  74. data/assets/stylesheets/bourbon/functions/_strip-units.scss +17 -0
  75. data/assets/stylesheets/bourbon/functions/_tint.scss +24 -0
  76. data/assets/stylesheets/bourbon/functions/_transition-property-name.scss +22 -0
  77. data/assets/stylesheets/bourbon/functions/_unpack.scss +27 -0
  78. data/assets/stylesheets/bourbon/helpers/_convert-units.scss +21 -0
  79. data/assets/stylesheets/bourbon/helpers/_directional-values.scss +96 -0
  80. data/assets/stylesheets/bourbon/helpers/_font-source-declaration.scss +43 -0
  81. data/assets/stylesheets/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  82. data/assets/stylesheets/bourbon/helpers/_linear-angle-parser.scss +25 -0
  83. data/assets/stylesheets/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  84. data/assets/stylesheets/bourbon/helpers/_linear-positions-parser.scss +61 -0
  85. data/assets/stylesheets/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  86. data/assets/stylesheets/bourbon/helpers/_radial-arg-parser.scss +69 -0
  87. data/assets/stylesheets/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  88. data/assets/stylesheets/bourbon/helpers/_radial-positions-parser.scss +18 -0
  89. data/assets/stylesheets/bourbon/helpers/_render-gradients.scss +26 -0
  90. data/assets/stylesheets/bourbon/helpers/_shape-size-stripper.scss +10 -0
  91. data/assets/stylesheets/bourbon/helpers/_str-to-num.scss +50 -0
  92. data/assets/stylesheets/bourbon/settings/_asset-pipeline.scss +7 -0
  93. data/assets/stylesheets/bourbon/settings/_prefixer.scss +9 -0
  94. data/assets/stylesheets/bourbon/settings/_px-to-em.scss +1 -0
  95. data/assets/stylesheets/contentfocus/_animations.scss +9 -0
  96. data/assets/stylesheets/contentfocus/_breadcrumb.scss +83 -0
  97. data/assets/stylesheets/contentfocus/_browser.scss +146 -0
  98. data/assets/stylesheets/contentfocus/_bullets.scss +63 -0
  99. data/assets/stylesheets/contentfocus/_comments.scss +59 -0
  100. data/assets/stylesheets/contentfocus/_device.scss +84 -0
  101. data/assets/stylesheets/contentfocus/_flashes.scss +30 -0
  102. data/assets/stylesheets/contentfocus/_footer.scss +78 -0
  103. data/assets/stylesheets/contentfocus/_forms.scss +110 -0
  104. data/assets/stylesheets/contentfocus/_geometric_typography.scss +104 -0
  105. data/assets/stylesheets/contentfocus/_hero.scss +108 -0
  106. data/assets/stylesheets/contentfocus/_hover_tile.scss +51 -0
  107. data/assets/stylesheets/contentfocus/_nav.scss +396 -0
  108. data/assets/stylesheets/contentfocus/_progress_bar.scss +92 -0
  109. data/assets/stylesheets/contentfocus/_variables.scss +84 -0
  110. data/assets/stylesheets/neat/_neat-helpers.scss +8 -0
  111. data/assets/stylesheets/neat/_neat.scss +23 -0
  112. data/assets/stylesheets/neat/functions/_new-breakpoint.scss +49 -0
  113. data/assets/stylesheets/neat/functions/_private.scss +114 -0
  114. data/assets/stylesheets/neat/grid/_box-sizing.scss +15 -0
  115. data/assets/stylesheets/neat/grid/_direction-context.scss +33 -0
  116. data/assets/stylesheets/neat/grid/_display-context.scss +28 -0
  117. data/assets/stylesheets/neat/grid/_fill-parent.scss +22 -0
  118. data/assets/stylesheets/neat/grid/_media.scss +92 -0
  119. data/assets/stylesheets/neat/grid/_omega.scss +87 -0
  120. data/assets/stylesheets/neat/grid/_outer-container.scss +38 -0
  121. data/assets/stylesheets/neat/grid/_pad.scss +25 -0
  122. data/assets/stylesheets/neat/grid/_private.scss +35 -0
  123. data/assets/stylesheets/neat/grid/_row.scss +52 -0
  124. data/assets/stylesheets/neat/grid/_shift.scss +50 -0
  125. data/assets/stylesheets/neat/grid/_span-columns.scss +94 -0
  126. data/assets/stylesheets/neat/grid/_to-deprecate.scss +97 -0
  127. data/assets/stylesheets/neat/grid/_visual-grid.scss +42 -0
  128. data/assets/stylesheets/neat/settings/_disable-warnings.scss +13 -0
  129. data/assets/stylesheets/neat/settings/_grid.scss +51 -0
  130. data/assets/stylesheets/neat/settings/_visual-grid.scss +27 -0
  131. data/lib/nesta-contentfocus-extensions.rb +14 -4
  132. data/lib/nesta-contentfocus-extensions/app.rb +8 -0
  133. data/lib/nesta-contentfocus-extensions/helpers.rb +21 -0
  134. data/lib/nesta-contentfocus-extensions/kramdown.rb +91 -0
  135. data/lib/nesta-contentfocus-extensions/menu.rb +4 -1
  136. data/lib/nesta-contentfocus-extensions/overrides.rb +17 -0
  137. data/lib/nesta-contentfocus-extensions/page.rb +29 -54
  138. data/lib/nesta-contentfocus-extensions/path.rb +13 -7
  139. data/lib/nesta-contentfocus-extensions/paths.rb +52 -0
  140. data/lib/nesta-contentfocus-extensions/renderer.rb +46 -0
  141. data/lib/nesta-contentfocus-extensions/routes.rb +15 -0
  142. data/lib/nesta-contentfocus-extensions/theme.rb +36 -0
  143. data/lib/nesta-contentfocus-extensions/version.rb +1 -1
  144. data/nesta-contentfocus-extensions.gemspec +14 -11
  145. metadata +184 -6
@@ -0,0 +1,110 @@
1
+ @import "animations";
2
+ @import "bitters/forms";
3
+ @import "bitters/buttons";
4
+
5
+ form {
6
+ width: 100%;
7
+ max-width: 100%;
8
+ padding: 0;
9
+ font-size: 85%;
10
+ margin: $base-spacing 0;
11
+
12
+ .input {
13
+ display: block;
14
+ clear: both;
15
+ width: 100%;
16
+ text-align: left;
17
+
18
+ label {
19
+ width: 45%;
20
+ display: inline-block;
21
+ text-align: right;
22
+ vertical-align: middle;
23
+ margin: 0 $base-spacing/2 0 0;
24
+ }
25
+
26
+ input[type=text] {
27
+ padding: .5em .6em;
28
+ margin: 0;
29
+ display: inline-block;
30
+ vertical-align: middle;
31
+ width: 50%;
32
+ }
33
+
34
+ &.checkbox {
35
+ label {
36
+ width: auto;
37
+ text-align: left;
38
+ }
39
+ }
40
+
41
+ body.bare & {
42
+ width: 100%;
43
+ font-size: 14px;
44
+
45
+ label {
46
+ }
47
+ input[type=text] {
48
+ }
49
+ }
50
+ }
51
+
52
+ .input-group {
53
+ display: inline-block;
54
+ }
55
+ input[type="checkbox"] {
56
+ margin-left: 45%;
57
+ }
58
+ .actions {
59
+ body.bare & {
60
+ padding-left: $base-spacing/2;
61
+ }
62
+ }
63
+ .actions {
64
+ text-align: left;
65
+ margin-top: $base-spacing/2;
66
+ margin-left: 45%;
67
+ padding-left: $base-spacing/2;
68
+
69
+ button.save {
70
+ background: $action-color;
71
+ &:focus, &:hover, &:active {
72
+ outline: none;
73
+ color: lighten($action-color, 40%);
74
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 5px lighten($action-color, 10%);
75
+ }
76
+ &:active {
77
+ background: darken($action-color, 10%);
78
+ cursor:progress;
79
+ }
80
+ }
81
+ }
82
+ }
83
+
84
+ button {
85
+ span.spinner {
86
+ @include transition(opacity 0.15s, width 0.15s, margin 0.15s);
87
+ font-family: FontAwesome;
88
+ font-size: 14px;
89
+ display: inline-block;
90
+ width: 0;
91
+ opacity: 0;
92
+
93
+ &:after {
94
+ @include animation(spin 2.0s linear infinite);
95
+ content: "\f1ce";
96
+ display: none;
97
+ }
98
+ }
99
+
100
+ &:active, &.active {
101
+ span.spinner {
102
+ margin: 0 5px 0 0;
103
+ width: 14px;
104
+ opacity: 1;
105
+ &:after {
106
+ display: inline;
107
+ }
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,104 @@
1
+ article.type-system-geometric {
2
+ $sans-serif: 'Questrial', sans-serif;
3
+ $serif: 'Sanchez', serif;
4
+
5
+ @include clearfix;
6
+ text-align: left;
7
+
8
+ .type {
9
+ border-bottom: 1px solid;
10
+ display: inline-block;
11
+ font-family: $sans-serif;
12
+ font-size: .7em;
13
+ font-weight: 800;
14
+ margin-bottom: 2em;
15
+ padding: .3em 0;
16
+ text-align: left;
17
+ text-transform: uppercase;
18
+ }
19
+
20
+ h1 {
21
+ font-family: $serif;
22
+ font-size: 1.8em;
23
+ font-weight: 700;
24
+ margin-bottom: .5em;
25
+
26
+ @include media($medium-screen) {
27
+ font-size: 2.6em;
28
+ }
29
+ }
30
+
31
+ h2 {
32
+ font-family: $serif;
33
+ font-style: italic;
34
+ font-size: 1.2em;
35
+ font-weight: 400;
36
+ line-height: 1.4em;
37
+ margin-bottom: 1.1em;
38
+
39
+ @include media($medium-screen) {
40
+ font-size: 1.3em;
41
+ }
42
+ }
43
+
44
+ code {
45
+ white-space: nowrap;
46
+ background: #F7F7F7;
47
+ border: 1px solid #E0E0E0;
48
+ border-radius: $base-border-radius * 1.5;
49
+ padding: .1em .4em;
50
+ font-size: .7em;
51
+ font-style: normal;
52
+ }
53
+
54
+ h3 {
55
+ font-family: $serif;
56
+ font-size: 1.4em;
57
+ font-weight: 400;
58
+ line-height: 1.3em;
59
+ margin-bottom: .4em;
60
+ }
61
+
62
+ p.date {
63
+ color: transparentize($base-font-color, .6);
64
+ font-family: $serif;
65
+ font-style: italic;
66
+ font-size: .9em;
67
+ margin-bottom: .3em;
68
+ }
69
+
70
+ p {
71
+ font-family: $sans-serif;
72
+ line-height: 1.5em;
73
+ font-size: 1.05em;
74
+ margin-bottom: 1.5em;
75
+ }
76
+
77
+ a.read-more {
78
+ display: inline-block;
79
+ font-family: $sans-serif;
80
+ font-weight: 700;
81
+ font-size: .8em;
82
+ text-transform: uppercase;
83
+ margin-left: .2em;
84
+ position: relative;
85
+
86
+ span {
87
+ font-family: $sans-serif;
88
+ font-style: normal;
89
+ position: absolute;
90
+ font-size: 1.5em;
91
+ top: -1px;
92
+ right: -12px;
93
+ }
94
+ }
95
+
96
+ hr {
97
+ width: 3em;
98
+ }
99
+
100
+ p.author {
101
+ font-family: $sans-serif;
102
+ }
103
+ }
104
+
@@ -0,0 +1,108 @@
1
+ @import "bitters/extends/button";
2
+
3
+ .hero {
4
+ $base-border-radius: 3px !default;
5
+ $action-color: #477DCA !default;
6
+ $large-screen: em(860) !default;
7
+ $hero-background-color: $base-background-color !default;
8
+ $hero-color: $base-font-color !default;
9
+ $gradient-angle: 10deg !default;
10
+
11
+ @if variable-exists(hero-image) {
12
+ @include background(url($hero-image), linear-gradient($gradient-angle, $hero-background-bottom, $hero-background-top), no-repeat $hero-background-top scroll);
13
+ background-size: auto,auto,100% 1000px,100% 1000px;
14
+ } @else if variable-exists(hero-background-top) and variable-exists(hero-background-bottom) {
15
+ @include background(linear-gradient($gradient-angle, $hero-background-bottom, $hero-background-top), no-repeat $hero-background-top scroll);
16
+ background-size: auto,auto,100% 1000px,100% 1000px;
17
+ } @else {
18
+ background-color: $hero-background-color;
19
+ }
20
+ background-position: top;
21
+ background-repeat: no-repeat;
22
+ background-size: cover;
23
+ padding-bottom: 4em;
24
+ color: $hero-color;
25
+ display: table;
26
+ width: 100%;
27
+ position: relative;
28
+ height: 28em;
29
+ height: 95vh;
30
+ padding: $gutter;
31
+ margin-bottom: 3em;
32
+
33
+ .hero-logo img {
34
+ height: 3em;
35
+ margin-bottom: 2.5em;
36
+ }
37
+
38
+ .hero-inner {
39
+ @include outer-container;
40
+ @include clearfix;
41
+ color: $hero-color;
42
+ margin: auto;
43
+ padding: 3em;
44
+ text-align: center;
45
+ position: relative;
46
+ width: 100%;
47
+ display: table-cell;
48
+ vertical-align: middle;
49
+
50
+ .hero-copy p, .hero-copy h1 {
51
+ text-align: center;
52
+ width: 100%;
53
+ margin-left: auto;
54
+ margin-right: auto;
55
+ }
56
+ .hero-copy p {
57
+ font-family: $base-font-family;
58
+ font-weight: normal;
59
+ }
60
+
61
+ .hero-copy {
62
+ text-align: center;
63
+
64
+ h1 {
65
+ font-size: 1.6em;
66
+ margin-bottom: .5em;
67
+ @include media($large-screen) {
68
+ font-size: 1.8em;
69
+ }
70
+ }
71
+
72
+ p {
73
+ margin: 0 auto 3em auto;
74
+ font-weight: 200;
75
+ line-height: 1.4em;
76
+ @include media($large-screen) {
77
+ font-size: 1.1em;
78
+ }
79
+ }
80
+ }
81
+ a.call-to-action {
82
+ @extend %button;
83
+ font-family: $heading-font-family;
84
+ font-weight: 700;
85
+ letter-spacing: $heading-letter-spacing;
86
+ @if variable-exists(hero-background-top) {
87
+ color: $hero-background-top;
88
+ } @else {
89
+ color: $hero-background-color;
90
+ }
91
+ background: $action-color;
92
+ padding: 0.75em 1em;
93
+ border-radius: 5px;
94
+ margin: 0.75em 0;
95
+ display: inline-block;
96
+ text-decoration: none;
97
+ &:focus, &:hover, &:active {
98
+ outline: none;
99
+ color: lighten($action-color, 40%);
100
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 5px lighten($action-color, 10%);
101
+ }
102
+ &:active {
103
+ background: darken($action-color, 10%);
104
+ cursor:progress;
105
+ }
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,51 @@
1
+ .hover-tile-outer {
2
+ $hover-tile-height: 10em;
3
+
4
+ background-size: cover;
5
+ background-position: bottom;
6
+ background: url("/images/mountains.png");
7
+ background-color: $base-accent-color;
8
+ border: 1px solid $base-border-color;
9
+ height: $hover-tile-height;
10
+ margin-bottom: $base-line-height;
11
+ cursor: pointer;
12
+
13
+ @include media($medium-screen) {
14
+ width: 40%;
15
+ }
16
+
17
+ .hover-tile-container {
18
+ height: $hover-tile-height;
19
+ overflow: hidden;
20
+ }
21
+
22
+ .hover-tile-container:hover > .hover-tile {
23
+ @include transform(translate(0, -100%));
24
+ }
25
+
26
+ .hover-tile {
27
+ @include transition(all, .2s ease-in-out);
28
+ background: inherit;
29
+ color: white;
30
+ height: inherit;
31
+ padding: 1em 1.5em;
32
+ }
33
+
34
+ .hover-tile-visible {
35
+ color: transparentize(white, .3);
36
+ font-size: 2em;
37
+ font-weight: 200;
38
+ padding-top: 1.5em;
39
+ text-align: center;
40
+ }
41
+
42
+ .hover-tile-hidden {
43
+ background: transparentize(black, .5);
44
+ h4 {
45
+ margin-bottom: .5em;
46
+ }
47
+ p {
48
+ color: transparentize(white, .3);
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,396 @@
1
+ @import "bitters/extends/button";
2
+
3
+ header.navigation {
4
+ $navigation-font-size: 16px !default;
5
+ $navigation-padding: 1em !default;
6
+ $navigation-background-color: $dark-gray !default;
7
+ $navigation-color: transparentize(white, 0.3) !default;
8
+ $navigation-color-hover: white !default;
9
+ $navigation-height: 60px !default;
10
+ $navigation-nav-button-background: $base-accent-color !default;
11
+ $navigation-nav-button-background-hover: lighten($navigation-background-color, 10) !default;
12
+ $navigation-nav-button-border: 1px solid lighten($navigation-nav-button-background, 20) !default;
13
+ $navigation-search-background: lighten($navigation-background-color, 5) !default;
14
+ $navigation-search-border: 1px solid darken($navigation-background-color, 5) !default;
15
+ $navigation-active-link-color: transparentize(white, 0.5) !default;
16
+ $navigation-submenu-padding: 1em !default;
17
+ $navigation-submenu-width: 12em !default;
18
+ $horizontal-bar-mode: $large-screen !default;
19
+
20
+ font-size: $navigation-font-size;
21
+ background-color: $navigation-background-color;
22
+ border-bottom: 1px solid darken($navigation-background-color, 10);
23
+ height: $navigation-height;
24
+ width: 100%;
25
+ z-index: 999;
26
+ position: fixed;
27
+ top: 0;
28
+ transition: opacity 0.5s ease, background-color 0.2s linear;
29
+ overflow: hidden;
30
+ font-family: $navigation-font-family;
31
+ -webkit-font-smoothing: auto;
32
+ letter-spacing: -1px;
33
+
34
+ .navigation-wrapper {
35
+ @include clearfix;
36
+ @include outer-container;
37
+ position: relative;
38
+ z-index: 9999;
39
+ }
40
+
41
+ .logo {
42
+ float: left;
43
+ max-height: $navigation-height;
44
+ padding-left: $navigation-padding;
45
+ padding-right: 2em;
46
+
47
+ img {
48
+ max-height: $navigation-height;
49
+ padding: .8em 0;
50
+ }
51
+ }
52
+
53
+ // Mobile view
54
+
55
+ .navigation-menu-button {
56
+ color: $navigation-color;
57
+ display: block;
58
+ float: right;
59
+ font-weight: 700;
60
+ line-height: $navigation-height;
61
+ margin: 0;
62
+ padding-right: 1em;
63
+ text-transform: uppercase;
64
+
65
+ @include media ($horizontal-bar-mode) {
66
+ display: none;
67
+ }
68
+
69
+ &:hover {
70
+ color: $navigation-color-hover;
71
+ }
72
+ }
73
+
74
+ // Nav menu
75
+
76
+ .nav {
77
+ z-index: 9999999;
78
+ float: none;
79
+ @include media ($horizontal-bar-mode) {
80
+ float: left;
81
+ }
82
+ }
83
+
84
+ ul#navigation-menu {
85
+ -webkit-transform-style: preserve-3d; // stop webkit flicker
86
+ clear: both;
87
+ display: none;
88
+ margin: 0 auto;
89
+ overflow: visible;
90
+ padding: 0;
91
+ width: 100%;
92
+ z-index: 9999;
93
+
94
+ @include media ($horizontal-bar-mode) {
95
+ display: inline;
96
+ margin: 0;
97
+ padding: 0;
98
+ }
99
+ }
100
+
101
+ // The nav items
102
+
103
+ ul li.nav-link {
104
+ background: $navigation-background-color;
105
+ display: block;
106
+ line-height: $navigation-height;
107
+ overflow: hidden;
108
+ padding-right: .8em;
109
+ text-align: right;
110
+ width: 100%;
111
+ z-index: 9999;
112
+ @include media ($horizontal-bar-mode) {
113
+ background: transparent;
114
+ display: inline;
115
+ line-height: $navigation-height;
116
+ text-decoration: none;
117
+ width: auto;
118
+ }
119
+
120
+ a {
121
+ transition: color 0.2s linear;
122
+ color: $navigation-color;
123
+ display: inline-block;
124
+ font-weight: 400;
125
+ text-decoration: none;
126
+
127
+ @include media ($horizontal-bar-mode) {
128
+ padding-right: 1em;
129
+ }
130
+
131
+ &:hover {
132
+ color: $navigation-color-hover;
133
+ }
134
+ }
135
+ }
136
+
137
+ .active-nav-item a {
138
+ border-bottom: 1px solid $navigation-active-link-color;
139
+ padding-bottom: 3px;
140
+ }
141
+
142
+ // Sub menus
143
+
144
+ li.more.nav-link {
145
+ padding-right: 0;
146
+
147
+ @include media($large-screen) {
148
+ padding-right: $navigation-submenu-padding;
149
+ }
150
+
151
+ > ul > li:first-child a {
152
+ padding-top: 1em;
153
+ }
154
+
155
+ a {
156
+ margin-right: $navigation-submenu-padding;
157
+ }
158
+
159
+ > a {
160
+ padding-right: 0.6em;
161
+ }
162
+
163
+ > a:after {
164
+ @include position(absolute, auto -.4em auto auto);
165
+ content: '\25BE';
166
+ color: $navigation-color;
167
+ }
168
+ }
169
+
170
+ li.more {
171
+ overflow: visible;
172
+ padding-right: 0;
173
+
174
+ a {
175
+ padding-right: .8em;
176
+ }
177
+
178
+ > a {
179
+ padding-right: 1.6em;
180
+ position: relative;
181
+
182
+ @include media($large-screen) {
183
+ margin-right: $navigation-submenu-padding;
184
+ }
185
+
186
+ &:after {
187
+ content: '›';
188
+ font-size: 1.2em;
189
+ position: absolute;
190
+ right: $navigation-submenu-padding / 2;
191
+ }
192
+ }
193
+
194
+ &:hover > .submenu {
195
+ display: block;
196
+ }
197
+
198
+ @include media($horizontal-bar-mode) {
199
+ padding-right: .8em;
200
+ position: relative;
201
+ }
202
+ }
203
+
204
+ ul.submenu {
205
+ display: none;
206
+ padding-left: 0;
207
+
208
+ @include media($horizontal-bar-mode) {
209
+ left: -$navigation-submenu-padding;
210
+ position: absolute;
211
+ top: 1.5em;
212
+ }
213
+
214
+ .submenu {
215
+ @include media($horizontal-bar-mode) {
216
+ left: $navigation-submenu-width - .2em;
217
+ top: 0;
218
+ }
219
+ }
220
+
221
+ li {
222
+ display: block;
223
+ padding-right: 0;
224
+
225
+ @include media($horizontal-bar-mode) {
226
+ line-height: $navigation-height / 1.3;
227
+
228
+ &:first-child > a {
229
+ border-top-left-radius: $base-border-radius;
230
+ border-top-right-radius: $base-border-radius;
231
+ }
232
+
233
+ &:last-child > a {
234
+ border-bottom-left-radius: $base-border-radius;
235
+ border-bottom-right-radius: $base-border-radius;
236
+ padding-bottom: .7em;
237
+ }
238
+ }
239
+
240
+ a {
241
+ background-color: darken($navigation-background-color, 3);
242
+ display: inline-block;
243
+ text-align: right;
244
+ width: 100%;
245
+
246
+ @include media($horizontal-bar-mode) {
247
+ background-color: $navigation-background-color;
248
+ padding-left: $navigation-submenu-padding;
249
+ text-align: left;
250
+ width: $navigation-submenu-width;
251
+ }
252
+ }
253
+ }
254
+ }
255
+
256
+ // Elements on the far right
257
+
258
+ .navigation-tools {
259
+ @include clearfix;
260
+ display: block;
261
+ padding-right: $navigation-padding;
262
+ padding-left: $navigation-padding/2;
263
+ clear: both;
264
+ background: #505050;
265
+
266
+ @include media($large-screen) {
267
+ background: transparent;
268
+ float: right;
269
+ clear: none;
270
+ }
271
+ }
272
+
273
+ .sign-up {
274
+ @extend button;
275
+ margin-top: 1.2em;
276
+ float: right;
277
+ display: inline;
278
+ font-size: .8em;
279
+ text-transform: uppercase;
280
+ padding: .75em 1em;
281
+ }
282
+
283
+ // Search bar
284
+
285
+ .search-bar {
286
+ $search-bar-border-color: $base-border-color;
287
+ $search-bar-border: 1px solid $search-bar-border-color;
288
+ $search-bar-background: lighten($search-bar-border-color, 10%);
289
+
290
+ padding: 0.85em 0.85em 0.7em 0.6em;
291
+ width: 60%;
292
+
293
+ form {
294
+ position: relative;
295
+
296
+ input[type=search] {
297
+ @include box-sizing(border-box);
298
+ background: $navigation-search-background;
299
+ border-radius: $base-border-radius * 2;
300
+ border: $navigation-search-border;
301
+ color: $navigation-color;
302
+ font-size: 0.9em;
303
+ font-style: italic;
304
+ margin: 0;
305
+ padding: 0.5em 0.8em;
306
+ width: 100%;
307
+ height: auto !important;
308
+
309
+ @include media($horizontal-bar-mode) {
310
+ width: 100%;
311
+ }
312
+ }
313
+
314
+ button[type=submit] {
315
+ background: $navigation-search-background;
316
+ border: none;
317
+ bottom: 0.3em;
318
+ left: auto;
319
+ outline: none;
320
+ padding: 0 9px;
321
+ position: absolute;
322
+ right: 0.3em;
323
+ top: 0.3em;
324
+
325
+ img {
326
+ height: 12px;
327
+ opacity: 0.7;
328
+ padding: 1px;
329
+ }
330
+ }
331
+ }
332
+
333
+ @include media($horizontal-bar-mode) {
334
+ display: inline-block;
335
+ position: relative;
336
+ width: 16em;
337
+
338
+ input {
339
+ @include box-sizing(border-box);
340
+ display: block;
341
+ }
342
+ }
343
+ }
344
+
345
+ a.button {
346
+ @extend %button;
347
+ transition: background-color 0.2s linear;
348
+ font-size: $navigation-font-size;
349
+ font-family: $heading-font-family;
350
+ font-weight: 700;
351
+ letter-spacing: $heading-letter-spacing;
352
+ color: $navigation-background-color;
353
+ background: $navigation-color;
354
+ padding: 0.75em 1em;
355
+ border-radius: 5px;
356
+ margin: 0.75em 0;
357
+ display: inline-block;
358
+ text-decoration: none;
359
+ &:focus, &:hover, &:active {
360
+ color: lighten($navigation-background-color, 40%);
361
+ background: lighten($navigation-color, 40%);
362
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 5px lighten($navigation-background-color, 10%);
363
+ }
364
+ &:active {
365
+ background: darken($navigation-background-color, 10%);
366
+ cursor:progress;
367
+ }
368
+ }
369
+ &.invert {
370
+ background-color: invert($navigation-background-color);
371
+ border-bottom: 1px solid lighten(invert($navigation-background-color), 10);
372
+ ul li.nav-link a {
373
+ color: invert($navigation-color);
374
+ }
375
+ a.button {
376
+ background-color: $navigation-background-color;
377
+ color: $navigation-color;
378
+ &:focus, &:hover, &:active {
379
+ color: lighten($navigation-color, 40%);
380
+ background-color: lighten($navigation-background-color, 40%);
381
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 5px lighten($navigation-color, 10%);
382
+ }
383
+ &:active {
384
+ background: darken($navigation-color, 10%);
385
+ cursor:progress;
386
+ }
387
+ }
388
+ }
389
+ &.hide {
390
+ opacity: 0;
391
+ }
392
+
393
+ body.bare & {
394
+ display: none;
395
+ }
396
+ }