Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #276 from AmericanMedicalAssociation/feature/wayfi…
Browse files Browse the repository at this point in the history
…nder-tweak

Removes extra padding and height to the wayfinder.
  • Loading branch information
froboy committed Dec 20, 2017
2 parents afb8442 + 1d72881 commit 1dcc1b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
}

.wayfinder_logo .logo-outer {
margin: $gutter auto;
align-self: center;
margin: 0 auto;
align-items: center;
display: flex;
}

.wayfinder_referrer {
Expand All @@ -27,7 +28,7 @@
}

@include breakpoint($bp-med) {
padding: $gutter 0 $gutter ($gutter / 2);
padding: ($gutter / 2) 0;
}

.link-back {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
Drupal.behaviors.wayfinder = {
attach: function (context, settings) {
(function ($) {

// Read wayfinder cookies set from ama-assn domains
$.cookie.json = true;
var ama_wayfinder_cookie = $.cookie('ama_wayfinder_cookie');

if (typeof ama_wayfinder_cookie !== 'undefined') {
$('.wayfinder_referrer .link-back').show();
$('.wayfinder_referrer .link-back').show().css('display', 'flex');
$('.link-back').attr("href", ama_wayfinder_cookie[1]);
$('.link-back .link-back_text').text(ama_wayfinder_cookie[0]);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,5 @@
{% set href = wayfinder.logo.href %}
{% include 'atoms-logo' %}
</div>
{# Use an empty div here to take up space so the logo can be centered. #}
<div class="col-width-4"></div>
</div>
</section>

0 comments on commit 1dcc1b9

Please sign in to comment.