Skip to content

Commit

Permalink
Merge pull request #265 from alphagov/fix-ogl-link
Browse files Browse the repository at this point in the history
Make OGL logo clickable
  • Loading branch information
KushalP committed Jul 2, 2013
2 parents 265d09c + ee0dcf0 commit 4ebff3e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
Binary file removed app/assets/images/open-government-licence.png
Binary file not shown.
31 changes: 23 additions & 8 deletions app/assets/stylesheets/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -226,25 +226,40 @@

.open-government-licence {
clear: left;
background: transparent image-url("open-government-licence.png") no-repeat 0 center;
padding: 8px 0 0 53px;

@include media(mobile) {
background-image: image-url("open-government-licence_2x.png");
background-size: 41px 17px;
}
position: relative;
padding-left: 53px;

h2 {
position: absolute;
left: -9999em;
left: 0;
top: 0;
width: 41px;
height: 100%;

@include media-down(mobile) {
position: static;
width: auto;
margin-bottom: 1em;
}

a, img {
display: block;
width: 43px;
height: 17px;
}
}

p {
@include core-16;
margin: 0;
padding-top: 0.1em;

a {
@include core-14;

@include media-down(mobile) {
font-size: 1em;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/views/root/_footer_meta.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


<div class="open-government-licence">
<h2><a href="http://www.nationalarchives.gov.uk/doc/open-government-licence/"><%= image_tag 'open-government-licence_2x.png', alt: 'OGL' %></a></h2>
<h2><a href="http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2"><%= image_tag 'open-government-licence_2x.png', alt: 'OGL' %></a></h2>
<p>All content is available under the <a href="http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2">Open Government Licence v2.0</a>, except where otherwise stated</p>
</div>
</div>
Expand Down

0 comments on commit 4ebff3e

Please sign in to comment.