Skip to content

Commit

Permalink
Merge pull request #818 from alphagov/add-missing-example-styles
Browse files Browse the repository at this point in the history
Add missing govspeak example callout styles
  • Loading branch information
robinwhittleton authored Aug 4, 2016
2 parents 29006fa + 2b3f587 commit 9ece073
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/assets/stylesheets/govuk-component/_govspeak.scss
Original file line number Diff line number Diff line change
Expand Up @@ -530,4 +530,14 @@
margin-right: (($thumbnail-width * -1) - $gutter-half);
}
}

.example {
border-left: 10px solid $panel-colour;
padding-left: 1.5em;
margin: 2.5em 0;

strong {
display: block;
}
}
}
8 changes: 8 additions & 0 deletions app/views/govuk_component/docs/govspeak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -507,3 +507,11 @@ fixtures:
</div>
</div>
</section>
example:
content: |
<div class="example">
<p>
This is an indented example block.<br/>
It may span multiple lines, <a href="#">contain links</a>.
</p>
</div>

0 comments on commit 9ece073

Please sign in to comment.