catscope 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/assets/bower.json +1 -0
  3. data/assets/bower_components/foundation/LICENSE +22 -0
  4. data/assets/bower_components/foundation/README.md +46 -0
  5. data/assets/bower_components/foundation/bower.json +2 -4
  6. data/assets/bower_components/foundation/css/foundation.css +1695 -1230
  7. data/assets/bower_components/foundation/css/foundation.css.map +1 -1
  8. data/assets/bower_components/foundation/css/foundation.min.css +1 -0
  9. data/assets/bower_components/foundation/css/normalize.css +9 -12
  10. data/assets/bower_components/foundation/css/normalize.css.map +1 -1
  11. data/assets/bower_components/foundation/css/normalize.min.css +1 -0
  12. data/assets/bower_components/foundation/js/foundation/foundation.abide.js +171 -75
  13. data/assets/bower_components/foundation/js/foundation/foundation.accordion.js +70 -12
  14. data/assets/bower_components/foundation/js/foundation/foundation.alert.js +5 -5
  15. data/assets/bower_components/foundation/js/foundation/foundation.clearing.js +84 -40
  16. data/assets/bower_components/foundation/js/foundation/foundation.dropdown.js +104 -79
  17. data/assets/bower_components/foundation/js/foundation/foundation.equalizer.js +57 -26
  18. data/assets/bower_components/foundation/js/foundation/foundation.interchange.js +50 -38
  19. data/assets/bower_components/foundation/js/foundation/foundation.joyride.js +121 -110
  20. data/assets/bower_components/foundation/js/foundation/foundation.js +121 -79
  21. data/assets/bower_components/foundation/js/foundation/foundation.magellan.js +75 -59
  22. data/assets/bower_components/foundation/js/foundation/foundation.offcanvas.js +95 -22
  23. data/assets/bower_components/foundation/js/foundation/foundation.orbit.js +127 -123
  24. data/assets/bower_components/foundation/js/foundation/foundation.reveal.js +147 -69
  25. data/assets/bower_components/foundation/js/foundation/foundation.slider.js +101 -72
  26. data/assets/bower_components/foundation/js/foundation/foundation.tab.js +52 -39
  27. data/assets/bower_components/foundation/js/foundation/foundation.tooltip.js +97 -49
  28. data/assets/bower_components/foundation/js/foundation/foundation.topbar.js +70 -57
  29. data/assets/bower_components/foundation/js/foundation.js +1544 -951
  30. data/assets/bower_components/foundation/js/foundation.min.js +5 -4
  31. data/assets/bower_components/foundation/js/vendor/fastclick.js +8 -9
  32. data/assets/bower_components/foundation/js/vendor/jquery.js +6 -6
  33. data/assets/bower_components/foundation/js/vendor/modernizr.js +1 -1
  34. data/assets/bower_components/foundation/package.json +57 -0
  35. data/assets/bower_components/foundation/scss/foundation/_functions.scss +53 -43
  36. data/assets/bower_components/foundation/scss/foundation/_settings.scss +59 -37
  37. data/assets/bower_components/foundation/scss/foundation/components/_accordion.scss +12 -8
  38. data/assets/bower_components/foundation/scss/foundation/components/_alert-boxes.scss +12 -12
  39. data/assets/bower_components/foundation/scss/foundation/components/_block-grid.scss +14 -13
  40. data/assets/bower_components/foundation/scss/foundation/components/_breadcrumbs.scss +19 -19
  41. data/assets/bower_components/foundation/scss/foundation/components/_button-groups.scss +33 -25
  42. data/assets/bower_components/foundation/scss/foundation/components/_buttons.scss +30 -28
  43. data/assets/bower_components/foundation/scss/foundation/components/_clearing.scss +51 -47
  44. data/assets/bower_components/foundation/scss/foundation/components/_dropdown-buttons.scss +10 -11
  45. data/assets/bower_components/foundation/scss/foundation/components/_dropdown.scss +45 -38
  46. data/assets/bower_components/foundation/scss/foundation/components/_flex-video.scss +7 -7
  47. data/assets/bower_components/foundation/scss/foundation/components/_forms.scss +99 -62
  48. data/assets/bower_components/foundation/scss/foundation/components/_global.scss +152 -67
  49. data/assets/bower_components/foundation/scss/foundation/components/_grid.scss +39 -36
  50. data/assets/bower_components/foundation/scss/foundation/components/_icon-bar.scss +337 -235
  51. data/assets/bower_components/foundation/scss/foundation/components/_inline-lists.scss +9 -8
  52. data/assets/bower_components/foundation/scss/foundation/components/_joyride.scss +40 -42
  53. data/assets/bower_components/foundation/scss/foundation/components/_keystrokes.scss +2 -3
  54. data/assets/bower_components/foundation/scss/foundation/components/_labels.scss +6 -6
  55. data/assets/bower_components/foundation/scss/foundation/components/_magellan.scss +2 -2
  56. data/assets/bower_components/foundation/scss/foundation/components/_offcanvas.scss +259 -168
  57. data/assets/bower_components/foundation/scss/foundation/components/_orbit.scss +82 -62
  58. data/assets/bower_components/foundation/scss/foundation/components/_pagination.scss +16 -15
  59. data/assets/bower_components/foundation/scss/foundation/components/_panels.scss +21 -15
  60. data/assets/bower_components/foundation/scss/foundation/components/_pricing-tables.scss +16 -16
  61. data/assets/bower_components/foundation/scss/foundation/components/_progress-bars.scss +10 -4
  62. data/assets/bower_components/foundation/scss/foundation/components/_range-slider.scss +28 -20
  63. data/assets/bower_components/foundation/scss/foundation/components/_reveal.scss +38 -28
  64. data/assets/bower_components/foundation/scss/foundation/components/_side-nav.scss +15 -11
  65. data/assets/bower_components/foundation/scss/foundation/components/_split-buttons.scss +22 -18
  66. data/assets/bower_components/foundation/scss/foundation/components/_sub-nav.scss +14 -12
  67. data/assets/bower_components/foundation/scss/foundation/components/_switches.scss +22 -19
  68. data/assets/bower_components/foundation/scss/foundation/components/_tables.scss +8 -8
  69. data/assets/bower_components/foundation/scss/foundation/components/_tabs.scss +50 -31
  70. data/assets/bower_components/foundation/scss/foundation/components/_thumbs.scss +8 -8
  71. data/assets/bower_components/foundation/scss/foundation/components/_tooltips.scss +25 -25
  72. data/assets/bower_components/foundation/scss/foundation/components/_top-bar.scss +176 -122
  73. data/assets/bower_components/foundation/scss/foundation/components/_type.scss +38 -38
  74. data/assets/bower_components/foundation/scss/foundation/components/_visibility.scss +33 -16
  75. data/assets/bower_components/foundation/scss/foundation.scss +37 -40
  76. data/assets/bower_components/foundation/scss/normalize.scss +8 -11
  77. data/assets/bower_components/jquery/bower.json +2 -1
  78. data/assets/bower_components/jquery/dist/jquery.js +9 -4
  79. data/assets/bower_components/jquery/dist/jquery.min.js +4 -4
  80. data/assets/bower_components/jquery/dist/jquery.min.map +1 -1
  81. data/assets/bower_components/jquery/src/core.js +6 -1
  82. data/assets/scss/_settings.scss +2 -0
  83. data/assets/stylesheets/app.css +3066 -2429
  84. data/lib/catscope/version.rb +1 -1
  85. data/lib/catscope/views/layout.erb +6 -2
  86. metadata +8 -4
  87. data/assets/bower_components/foundation/scss/foundation/components/_toolbar.scss +0 -70
@@ -2,10 +2,10 @@
2
2
  // foundation.zurb.com
3
3
  // Licensed under MIT Open Source
4
4
 
5
- @import "global";
6
- @import "grid";
7
- @import "buttons";
8
- @import "forms";
5
+ @import 'global';
6
+ @import 'grid';
7
+ @import 'buttons';
8
+ @import 'forms';
9
9
 
10
10
  //
11
11
  // Top Bar Variables
@@ -33,7 +33,7 @@ $topbar-link-weight: $font-weight-normal !default;
33
33
  $topbar-link-font-size: rem-calc(13) !default;
34
34
  $topbar-link-hover-lightness: -10% !default; // Darken by 10%
35
35
  $topbar-link-bg: $topbar-bg !default;
36
- $topbar-link-bg-hover: $oil !default;
36
+ $topbar-link-bg-hover: $jet !default;
37
37
  $topbar-link-bg-color-hover: $charcoal !default;
38
38
  $topbar-link-bg-active: $primary-color !default;
39
39
  $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default;
@@ -42,7 +42,7 @@ $topbar-link-text-transform: none !default;
42
42
  $topbar-link-padding: ($topbar-height / 3) !default;
43
43
  $topbar-back-link-size: rem-calc(18) !default;
44
44
  $topbar-link-dropdown-padding: rem-calc(20) !default;
45
- $topbar-button-font-size: 0.75rem !default;
45
+ $topbar-button-font-size: .75rem !default;
46
46
  $topbar-button-top: 7px !default;
47
47
 
48
48
  // Style the top bar dropdown elements
@@ -50,11 +50,11 @@ $topbar-dropdown-bg: $oil !default;
50
50
  $topbar-dropdown-link-color: $white !default;
51
51
  $topbar-dropdown-link-color-hover: $topbar-link-color-hover !default;
52
52
  $topbar-dropdown-link-bg: $oil !default;
53
- $topbar-dropdown-link-bg-hover: $oil !default;
53
+ $topbar-dropdown-link-bg-hover: $jet !default;
54
54
  $topbar-dropdown-link-weight: $font-weight-normal !default;
55
55
  $topbar-dropdown-toggle-size: 5px !default;
56
56
  $topbar-dropdown-toggle-color: $white !default;
57
- $topbar-dropdown-toggle-alpha: 0.4 !default;
57
+ $topbar-dropdown-toggle-alpha: .4 !default;
58
58
 
59
59
  $topbar-dropdown-label-color: $monsoon !default;
60
60
  $topbar-dropdown-label-text-transform: uppercase !default;
@@ -76,7 +76,7 @@ $topbar-menu-icon-position: $opposite-direction !default; // Change to $default-
76
76
  $topbar-transition-speed: 300ms !default;
77
77
  // Using rem-calc for the below breakpoint causes issues with top bar
78
78
  $topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout
79
- $topbar-media-query: $medium-up !default;
79
+ $topbar-media-query: "#{$screen} and (min-width:#{lower-bound($topbar-breakpoint)})" !default;
80
80
 
81
81
  // Top-bar input styles
82
82
  $topbar-input-height: rem-calc(28) !default;
@@ -93,13 +93,13 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
93
93
  // Accessibility mixins for hiding and showing the menu dropdown items
94
94
  @mixin topbar-hide-dropdown {
95
95
  // Makes an element visually hidden by default, but visible when focused.
96
- display: block;
97
96
  @include element-invisible();
97
+ display: block;
98
98
  }
99
99
 
100
100
  @mixin topbar-show-dropdown {
101
- display: block;
102
101
  @include element-invisible-off();
102
+ display: block;
103
103
  position: absolute !important; // Reset the position from static to absolute
104
104
  }
105
105
 
@@ -120,67 +120,76 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
120
120
  width: 100%;
121
121
  background: $topbar-bg;
122
122
 
123
- .top-bar { margin-bottom: $topbar-margin-bottom; }
123
+ .top-bar {
124
+ margin-bottom: $topbar-margin-bottom;
125
+ }
124
126
  }
125
127
 
126
128
  // Wrapped around .top-bar to make it stick to the top
127
129
  .fixed {
128
- width: 100%;
129
- #{$default-float}: 0;
130
130
  position: fixed;
131
131
  top: 0;
132
+ width: 100%;
132
133
  z-index: 99;
134
+ #{$default-float}: 0;
133
135
 
134
136
  &.expanded:not(.top-bar) {
135
- overflow-y: auto;
136
137
  height: auto;
137
- width: 100%;
138
138
  max-height: 100%;
139
+ overflow-y: auto;
140
+ width: 100%;
139
141
 
140
142
  .title-area {
141
143
  position: fixed;
142
144
  width: 100%;
143
145
  z-index: 99;
144
146
  }
147
+
145
148
  // Ensure you can scroll the menu on small screens
146
149
  .top-bar-section {
147
- z-index: 98;
148
150
  margin-top: $topbar-height;
151
+ z-index: 98;
149
152
  }
150
153
  }
151
154
  }
152
155
 
153
156
  .top-bar {
154
- overflow: hidden;
157
+ background: $topbar-bg;
155
158
  height: $topbar-height;
156
159
  line-height: $topbar-height;
157
- position: relative;
158
- background: $topbar-bg;
159
160
  margin-bottom: $topbar-margin-bottom;
161
+ overflow: hidden;
162
+ position: relative;
160
163
 
161
164
  // Topbar Global list Styles
162
165
  ul {
163
- margin-bottom: 0;
164
166
  list-style: none;
167
+ margin-bottom: 0;
165
168
  }
166
169
 
167
- .row { max-width: none; }
170
+ .row {
171
+ max-width: none;
172
+ }
168
173
 
169
174
  form,
170
- input { margin-bottom: 0; }
175
+ input,
176
+ select {
177
+ margin-bottom: 0;
178
+ }
171
179
 
172
- input {
173
- height: $topbar-input-height;
174
- padding-top: .35rem;
175
- padding-bottom: .35rem;
176
- font-size: $topbar-button-font-size;
180
+ input,
181
+ select {
182
+ font-size: $topbar-button-font-size;
183
+ height: $topbar-input-height;
184
+ padding-bottom: .35rem;
185
+ padding-top: .35rem;
177
186
  }
178
187
 
179
188
  .button, button {
180
- padding-top: .35rem + rem-calc(1);
181
- padding-bottom: .35rem + rem-calc(1);
182
- margin-bottom: 0;
183
189
  font-size: $topbar-button-font-size;
190
+ margin-bottom: 0;
191
+ padding-bottom: .35rem + rem-calc(1);
192
+ padding-top: .35rem + rem-calc(1);
184
193
  // position: relative;
185
194
  // top: -1px;
186
195
 
@@ -193,26 +202,26 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
193
202
 
194
203
  // Title Area
195
204
  .title-area {
196
- position: relative;
197
205
  margin: 0;
206
+ position: relative;
198
207
  }
199
208
 
200
209
  .name {
210
+ font-size: $rem-base;
201
211
  height: $topbar-height;
202
212
  margin: 0;
203
- font-size: $rem-base;
204
- // @if $topbar-menu-icon-position == $default-float {float: $opposite-direction;}
205
213
 
206
214
  h1, h2, h3, h4, p, span {
207
- line-height: $topbar-height;
208
215
  font-size: $topbar-title-font-size;
216
+ line-height: $topbar-height;
209
217
  margin: 0;
218
+
210
219
  a {
211
- font-weight: $topbar-title-weight;
212
220
  color: $topbar-link-color;
213
- width: 75%;
214
221
  display: block;
222
+ font-weight: $topbar-title-weight;
215
223
  padding: 0 $topbar-link-padding;
224
+ width: 75%;
216
225
  }
217
226
  }
218
227
  }
@@ -225,59 +234,50 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
225
234
 
226
235
  a {
227
236
  color: $topbar-link-color;
228
- text-transform: $topbar-menu-link-transform;
237
+ display: block;
229
238
  font-size: $topbar-menu-link-font-size;
230
239
  font-weight: $topbar-menu-link-weight;
231
- position: relative;
232
- display: block;
233
- padding: 0 $topbar-link-padding;
234
240
  height: $topbar-height;
235
241
  line-height: $topbar-height;
242
+ padding: 0 $topbar-link-padding;
243
+ position: relative;
244
+ text-transform: $topbar-menu-link-transform;
236
245
  }
237
246
 
238
247
  // Adding the class "menu-icon" will add the 3-line icon people love and adore.
239
248
  &.menu-icon {
240
- top: 50%;
241
249
  margin-top: -16px;
250
+ top: 50%;
242
251
 
243
252
  a {
253
+ @include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, "", false);
254
+
244
255
  @if $text-direction == rtl {
245
256
  text-indent: -58px;
246
257
  }
258
+ color: $topbar-menu-link-color;
247
259
  height: 34px;
248
260
  line-height: 33px;
249
261
  padding: 0 $topbar-link-padding+rem-calc(25) 0 $topbar-link-padding;
250
- color: $topbar-menu-link-color;
251
262
  position: relative;
252
-
253
- & {
254
- // @include hamburger icon
255
- //
256
- // We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon
257
- // $width - Width of hamburger icon
258
- // $left - If false, icon will be centered horizontally || explicitly set value in rem
259
- // $top - If false, icon will be centered vertically || explicitly set value in rem
260
- // $thickness - thickness of lines in hamburger icon, set value in px
261
- // $gap - spacing between the lines in hamburger icon, set value in px
262
- // $color - icon color
263
- // $hover-color - icon color during hover, here it isn't set b/c it would override $topbar-menu-icon-color-toggled
264
- // $offcanvas - Set to false of @include in topbar
265
- @include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, "", false);
266
- }
267
263
  }
268
264
  }
269
265
  }
270
266
 
271
267
  // Change things up when the top-bar is expanded
272
268
  &.expanded {
273
- height: auto;
274
269
  background: transparent;
270
+ height: auto;
275
271
 
276
- .title-area { background: $topbar-bg; }
272
+ .title-area {
273
+ background: $topbar-bg;
274
+ }
277
275
 
278
276
  .toggle-topbar {
279
- a { color: $topbar-menu-link-color-toggled;
280
- span::after {
277
+ a {
278
+ color: $topbar-menu-link-color-toggled;
279
+
280
+ span::after {
281
281
  // Shh, don't tell, but box-shadows create the menu icon :)
282
282
  // Change the color of the bars when the menu is expanded, using given thickness from hamburger() above
283
283
  box-shadow: 0 0 0 1px $topbar-menu-icon-color-toggled,
@@ -286,6 +286,21 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
286
286
  }
287
287
  }
288
288
  }
289
+
290
+ // Fixes an issue with Desktop and Mobile Safari where deeply-nested menus don't appear
291
+ @media screen and (-webkit-min-device-pixel-ratio:0) {
292
+ .top-bar-section {
293
+ .has-dropdown.moved > .dropdown,
294
+ .dropdown {
295
+ clip: initial;
296
+ }
297
+
298
+ // This was needed as parent ul's had padding, and the clip: was allowing content to peak through
299
+ .has-dropdown:not(.moved) > ul {
300
+ padding: 0;
301
+ }
302
+ }
303
+ }
289
304
  }
290
305
  }
291
306
 
@@ -297,12 +312,12 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
297
312
  @include single-transition($default-float, $topbar-transition-speed);
298
313
 
299
314
  ul {
300
- padding: 0;
301
- width: 100%;
302
- height: auto;
303
315
  display: block;
304
316
  font-size: $rem-base;
317
+ height: auto;
305
318
  margin: 0;
319
+ padding: 0;
320
+ width: 100%;
306
321
  }
307
322
 
308
323
  .divider,
@@ -314,55 +329,61 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
314
329
  }
315
330
 
316
331
  ul li {
317
- background: $topbar-dropdown-bg;
318
- & > a {
319
- display: block;
320
- width: 100%;
332
+ background: $topbar-dropdown-bg;
333
+
334
+ > a {
321
335
  color: $topbar-link-color;
322
- padding: 12px 0 12px 0;
323
- padding-#{$default-float}: $topbar-link-padding;
336
+ display: block;
324
337
  font-family: $topbar-link-font-family;
325
338
  font-size: $topbar-link-font-size;
326
339
  font-weight: $topbar-link-weight;
340
+ padding-#{$default-float}: $topbar-link-padding;
341
+ padding: 12px 0 12px $topbar-link-padding;
327
342
  text-transform: $topbar-link-text-transform;
343
+ width: 100%;
328
344
 
329
345
  &.button {
330
346
  font-size: $topbar-link-font-size;
331
- padding-#{$opposite-direction}: $topbar-link-padding;
332
347
  padding-#{$default-float}: $topbar-link-padding;
348
+ padding-#{$opposite-direction}: $topbar-link-padding;
333
349
  @include button-style($bg:$primary-color);
334
350
  }
351
+
335
352
  &.button.secondary { @include button-style($bg:$secondary-color); }
336
353
  &.button.success { @include button-style($bg:$success-color); }
337
354
  &.button.alert { @include button-style($bg:$alert-color); }
338
355
  &.button.warning { @include button-style($bg:$warning-color); }
356
+ &.button.info { @include button-style($bg:$info-color); }
339
357
  }
340
358
 
341
359
  > button {
342
360
  font-size: $topbar-link-font-size;
343
- padding-#{$opposite-direction}: $topbar-link-padding;
344
361
  padding-#{$default-float}: $topbar-link-padding;
362
+ padding-#{$opposite-direction}: $topbar-link-padding;
345
363
  @include button-style($bg:$primary-color);
346
364
 
347
365
  &.secondary { @include button-style($bg:$secondary-color); }
348
366
  &.success { @include button-style($bg:$success-color); }
349
367
  &.alert { @include button-style($bg:$alert-color); }
350
368
  &.warning { @include button-style($bg:$warning-color); }
369
+ &.info { @include button-style($bg:$info-color); }
351
370
  }
352
371
 
353
372
  // Apply the hover link color when it has that class
354
373
  &:hover:not(.has-form) > a {
355
374
  background-color: $topbar-link-bg-color-hover;
375
+ color: $topbar-link-color-hover;
376
+
356
377
  @if ($topbar-link-bg-hover) {
357
378
  background: $topbar-link-bg-hover;
358
379
  }
359
- color: $topbar-link-color-hover;
360
380
  }
361
381
 
362
382
  // Apply the active link color when it has that class
363
383
  &.active > a {
364
384
  background: $topbar-link-bg-active;
365
385
  color: $topbar-link-color-active;
386
+
366
387
  &:hover {
367
388
  background: $topbar-link-bg-active-hover;
368
389
  color: $topbar-link-color-active-hover;
@@ -371,17 +392,20 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
371
392
  }
372
393
 
373
394
  // Add some extra padding for list items contains buttons
374
- .has-form { padding: $topbar-link-padding; }
395
+ .has-form {
396
+ padding: $topbar-link-padding;
397
+ }
375
398
 
376
399
  // Styling for list items that have a dropdown within them.
377
400
  .has-dropdown {
378
401
  position: relative;
379
402
 
380
- & > a {
403
+ > a {
381
404
  &:after {
382
- @if ($topbar-arrows){
405
+ @if ($topbar-arrows) {
383
406
  @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float);
384
407
  }
408
+
385
409
  margin-#{$opposite-direction}: $topbar-link-padding;
386
410
  margin-top: -($topbar-dropdown-toggle-size / 2) - 2;
387
411
  position: absolute;
@@ -390,12 +414,15 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
390
414
  }
391
415
  }
392
416
 
393
- &.moved { position: static;
394
- & > .dropdown {
417
+ &.moved {
418
+ position: static;
419
+
420
+ > .dropdown {
395
421
  @include topbar-show-dropdown();
396
422
  width: 100%;
397
423
  }
398
- & > a:after {
424
+
425
+ > a:after {
399
426
  display: none;
400
427
  }
401
428
  }
@@ -403,16 +430,16 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
403
430
 
404
431
  // Styling elements inside of dropdowns
405
432
  .dropdown {
433
+ @include topbar-hide-dropdown();
406
434
  padding: 0;
407
435
  position: absolute;
408
- #{$default-float}: 100%;
409
436
  top: 0;
410
437
  z-index: 99;
411
- @include topbar-hide-dropdown();
438
+ #{$default-float}: 100%;
412
439
 
413
440
  li {
414
- width: 100%;
415
441
  height: auto;
442
+ width: 100%;
416
443
 
417
444
  a {
418
445
  font-weight: $topbar-dropdown-link-weight;
@@ -422,7 +449,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
422
449
  }
423
450
  }
424
451
 
425
- &.title h5, &.parent-link {
452
+ &.title h5,
453
+ &.parent-link {
426
454
  // Back Button
427
455
  margin-bottom: 0;
428
456
  margin-top: 0;
@@ -434,17 +462,24 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
434
462
  &:hover { background:none; }
435
463
  }
436
464
  }
437
- &.has-form { padding: 8px $topbar-link-padding; }
438
- .button, button { top: auto; }
465
+
466
+ &.has-form {
467
+ padding: 8px $topbar-link-padding;
468
+ }
469
+
470
+ .button,
471
+ button {
472
+ top: auto;
473
+ }
439
474
  }
440
475
 
441
476
  label {
442
- padding: 8px $topbar-link-padding 2px;
443
- margin-bottom: 0;
444
- text-transform: $topbar-dropdown-label-text-transform;
445
477
  color: $topbar-dropdown-label-color;
446
- font-weight: $topbar-dropdown-label-font-weight;
447
478
  font-size: $topbar-dropdown-label-font-size;
479
+ font-weight: $topbar-dropdown-label-font-weight;
480
+ margin-bottom: 0;
481
+ padding: 8px $topbar-link-padding 2px;
482
+ text-transform: $topbar-dropdown-label-text-transform;
448
483
  }
449
484
  }
450
485
  }
@@ -455,31 +490,47 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
455
490
  // Top Bar styles intended for screen sizes above the breakpoint.
456
491
  @media #{$topbar-media-query} {
457
492
  .top-bar {
458
- background: $topbar-bg;
459
493
  @include clearfix;
494
+ background: $topbar-bg;
460
495
  overflow: visible;
461
496
 
462
497
  .toggle-topbar { display: none; }
463
498
 
464
499
  .title-area { float: $default-float; }
465
- .name h1 a { width: auto; }
500
+ .name h1 a,
501
+ .name h2 a,
502
+ .name h3 a,
503
+ .name h4 a,
504
+ .name h5 a,
505
+ .name h6 a { width: auto; }
466
506
 
467
507
  input,
508
+ select,
468
509
  .button,
469
510
  button {
470
511
  font-size: rem-calc(14);
512
+ height: $topbar-input-height;
471
513
  position: relative;
514
+ top: (($topbar-height - $topbar-input-height) / 2);
515
+ }
516
+
517
+ .has-form > .button,
518
+ .has-form > button {
519
+ font-size: rem-calc(14);
472
520
  height: $topbar-input-height;
521
+ position: relative;
473
522
  top: (($topbar-height - $topbar-input-height) / 2);
474
523
  }
475
524
 
476
- &.expanded { background: $topbar-bg; }
525
+ &.expanded {
526
+ background: $topbar-bg;
527
+ }
477
528
  }
478
529
 
479
530
  .contain-to-grid .top-bar {
480
- max-width: $row-width;
481
531
  margin: 0 auto;
482
532
  margin-bottom: $topbar-margin-bottom;
533
+ max-width: $row-width;
483
534
  }
484
535
 
485
536
  .top-bar-section {
@@ -487,9 +538,9 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
487
538
  #{$default-float}: 0 !important;
488
539
 
489
540
  ul {
490
- width: auto;
491
- height: auto !important;
492
541
  display: inline;
542
+ height: auto !important;
543
+ width: auto;
493
544
 
494
545
  li {
495
546
  float: $default-float;
@@ -507,11 +558,12 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
507
558
  color: $topbar-link-color-hover;
508
559
  }
509
560
  }
561
+
510
562
  &:not(.has-form) {
511
563
  a:not(.button) {
512
- padding: 0 $topbar-link-padding;
513
- line-height: $topbar-height;
514
564
  background: $topbar-link-bg;
565
+ line-height: $topbar-height;
566
+ padding: 0 $topbar-link-padding;
515
567
  &:hover {
516
568
  background-color: $topbar-link-bg-color-hover;
517
569
  @if ($topbar-link-bg-hover) {
@@ -520,12 +572,13 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
520
572
  }
521
573
  }
522
574
  }
575
+
523
576
  &.active:not(.has-form) {
524
577
  a:not(.button) {
525
- padding: 0 $topbar-link-padding;
526
- line-height: $topbar-height;
527
- color: $topbar-link-color-active;
528
578
  background: $topbar-link-bg-active;
579
+ color: $topbar-link-color-active;
580
+ line-height: $topbar-height;
581
+ padding: 0 $topbar-link-padding;
529
582
  &:hover {
530
583
  background: $topbar-link-bg-active-hover;
531
584
  color: $topbar-link-color-active-hover;
@@ -535,8 +588,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
535
588
  }
536
589
 
537
590
  .has-dropdown {
538
- @if($topbar-arrows){
539
- & > a {
591
+ @if $topbar-arrows {
592
+ > a {
540
593
  padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important;
541
594
  &:after {
542
595
  @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top);
@@ -547,30 +600,30 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
547
600
  }
548
601
 
549
602
  &.moved { position: relative;
550
- & > .dropdown {
603
+ > .dropdown {
551
604
  @include topbar-hide-dropdown();
552
605
  }
553
606
  }
554
607
 
555
608
  &.hover, &.not-click:hover {
556
- & > .dropdown {
609
+ > .dropdown {
557
610
  @include topbar-show-dropdown();
558
611
  }
559
612
  }
613
+
560
614
  > a:focus + .dropdown {
561
615
  @include topbar-show-dropdown();
562
616
  }
563
617
 
564
618
  .dropdown li.has-dropdown {
565
- & > a {
566
- @if ($topbar-dropdown-arrows){
619
+ > a {
620
+ @if ($topbar-dropdown-arrows) {
567
621
  &:after {
568
622
  border: none;
569
623
  content: "\00bb";
570
- top: 1rem;
571
- margin-top: -1px;
624
+ top: rem-calc(3);
625
+
572
626
  #{$opposite-direction}: 5px;
573
- line-height: 1.2;
574
627
  }
575
628
  }
576
629
  }
@@ -579,28 +632,28 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
579
632
 
580
633
  .dropdown {
581
634
  #{$default-float}: 0;
582
- top: auto;
583
635
  background: transparent;
584
636
  min-width: 100%;
637
+ top: auto;
585
638
 
586
639
  li {
587
640
  a {
641
+ background: $topbar-dropdown-link-bg;
588
642
  color: $topbar-dropdown-link-color;
589
643
  line-height: $topbar-height;
590
- white-space: nowrap;
591
644
  padding: 12px $topbar-link-padding;
592
- background: $topbar-dropdown-link-bg;
645
+ white-space: nowrap;
593
646
  }
594
647
 
595
648
  &:not(.has-form):not(.active) {
596
- & > a:not(.button) {
597
- color: $topbar-dropdown-link-color;
649
+ > a:not(.button) {
598
650
  background: $topbar-dropdown-link-bg;
651
+ color: $topbar-dropdown-link-color;
599
652
  }
600
653
 
601
654
  &:hover > a:not(.button) {
602
- color: $topbar-dropdown-link-color-hover;
603
655
  background-color: $topbar-link-bg-color-hover;
656
+ color: $topbar-dropdown-link-color-hover;
604
657
  @if ($topbar-dropdown-link-bg-hover) {
605
658
  background: $topbar-dropdown-link-bg-hover;
606
659
  }
@@ -608,8 +661,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
608
661
  }
609
662
 
610
663
  label {
611
- white-space: nowrap;
612
664
  background: $topbar-dropdown-label-bg;
665
+ white-space: nowrap;
613
666
  }
614
667
 
615
668
  // Second Level Dropdowns
@@ -620,11 +673,11 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
620
673
  }
621
674
  }
622
675
 
623
- & > ul > .divider,
624
- & > ul > [role="separator"] {
676
+ > ul > .divider,
677
+ > ul > [role="separator"] {
678
+ border-#{$opposite-direction}: $topbar-divider-border-bottom;
625
679
  border-bottom: none;
626
680
  border-top: none;
627
- border-#{$opposite-direction}: $topbar-divider-border-bottom;
628
681
  clear: none;
629
682
  height: $topbar-height;
630
683
  width: 0;
@@ -632,8 +685,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
632
685
 
633
686
  .has-form {
634
687
  background: $topbar-link-bg;
635
- padding: 0 $topbar-link-padding;
636
688
  height: $topbar-height;
689
+ padding: 0 $topbar-link-padding;
637
690
  }
638
691
 
639
692
  // Position overrides for ul.right and ul.left
@@ -677,10 +730,11 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text
677
730
 
678
731
  .has-dropdown {
679
732
  &:hover {
680
- & > .dropdown {
733
+ > .dropdown {
681
734
  @include topbar-show-dropdown();
682
735
  }
683
736
  }
737
+
684
738
  > a:focus + .dropdown {
685
739
  @include topbar-show-dropdown();
686
740
  }