Skip to content

Commit

Permalink
Merge pull request #1002 from alphagov/tweak-address-styles
Browse files Browse the repository at this point in the history
Style address blocks with margins
  • Loading branch information
NickColley authored Apr 19, 2017
2 parents 905cea7 + 468c3d4 commit 2bda3f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/assets/stylesheets/govuk-component/govspeak/_contact.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@
// - alphagov/govspeak: ✔︎

.govuk-govspeak {
// No obvious signs of the address class being used in alphagov/whitehall or
// alphagov/govspeak.
// .address is used by the `$A` markdown pattern
.address,
.contact {
border-left: 1px solid $border-colour;
padding-left: $gutter-half;
margin-bottom: $gutter;
margin-top: $gutter;
}

.contact {
@extend %contain-floats;
margin-bottom: $gutter;
margin-top: $gutter;
position: relative;

.content {
Expand Down
15 changes: 15 additions & 0 deletions app/views/govuk_component/docs/govspeak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,21 @@ fixtures:
</tr>
</tbody>
</table>
address:
content: |
<div class="address">
<div class="adr org fn">
<p>
First line of address
<br>Second line of address
<br>75 This street
<br>United Kindom
<br>Phone: 07123456789
<br>
</p>
</div>
</div>
<p>Addresses are generated when using the `$A` markdown pattern.</p>
contact:
content: |
<div class="contact" id="contact_1017">
Expand Down

0 comments on commit 2bda3f3

Please sign in to comment.