Skip to content

Commit

Permalink
Style call to action blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
edds committed Jul 31, 2012
1 parent 0ae2af1 commit d658664
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
10 changes: 7 additions & 3 deletions app/assets/stylesheets/frontend/views/_document-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,19 @@
}
}

.information-block,
.call-to-action {
margin: $gutter 0;
background: $cool-grey url(/government/assets/call-to-action-icon.png) no-repeat 98% $gutter-two-thirds;
padding: $gutter-two-thirds 55px $gutter-two-thirds $gutter-two-thirds;
margin: $gutter 0 $gutter $gutter-half*-1;
background: $light-warm-grey none no-repeat 98% $gutter-two-thirds;
padding: $gutter-one-third 55px $gutter-one-third $gutter-half;
p {
margin: 0;
padding: 0;
}
}
.information-block {
background-image: url(/government/assets/information-icon.png);
}

.notice p {
@include sans-12;
Expand Down
10 changes: 0 additions & 10 deletions app/assets/stylesheets/frontend/views/_specialist_guides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,6 @@
}
}

.related-mainstream-content {
margin: $gutter 0 $gutter $gutter-half*-1;
background: $light-warm-grey url(/government/assets/information-icon.png) no-repeat 98% $gutter-two-thirds;
padding: $gutter-one-third 55px $gutter-one-third $gutter-half;
p {
margin: 0;
padding: 0;
}
}

.meta {
@include core-14;
@include media(desktop) {
Expand Down
7 changes: 5 additions & 2 deletions app/views/specialist_guides/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
</section>

<% if @document.has_related_mainstream_content? %>
<aside class="related-mainstream-content" role="complementary">
<p>Too much information? Check out our quick guide: <%= link_to @document.related_mainstream_content_title, @document.related_mainstream_content_url %></p>
<aside class="related-mainstream-content information-block" role="complementary">
<p>
Too much information? Check out our quick guide:<br>
<%= link_to @document.related_mainstream_content_title, @document.related_mainstream_content_url %>
</p>
</aside>
<% end %>

Expand Down

1 comment on commit d658664

@lazyatom
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem Neil outlines here is that this style still only applies to the frontend, and not the admin preview. @edds, can you think of a non-crappy way to also include this styling in the admin?

Please sign in to comment.