Skip to content

Commit

Permalink
Merge pull request #437 from alphagov/standardise-tables-format
Browse files Browse the repository at this point in the history
Standardise table layouts
  • Loading branch information
edds committed Aug 14, 2014
2 parents ceb47ff + 56b30d8 commit bfc7c37
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions app/assets/stylesheets/helpers/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ article dd {
article table {
border-collapse: collapse;
border-spacing: 0;
margin: 1em -1em 2em -1em;
margin: 1em 0 2em;
width: 105.95%;

caption {
Expand All @@ -195,9 +195,9 @@ article table {
}

article th, article td {
@include core-16;
@include core-14;
vertical-align: top;
padding: 0.7em 0.5em 0.7em 1em;
padding: 0.7em 0.5em 0.7em 0;

a[rel="external"] {
@include external-link-16;
Expand All @@ -207,13 +207,8 @@ article th, article td {
}
}

article tr:nth-child(even) td {
background-color: #fff;
}

article td {
background: $grey-9;
border: dotted 1px $grey-7;
border-bottom: solid 1px $border-colour;

small {
@include core-16;
Expand All @@ -230,10 +225,8 @@ article td {
article th {
line-height: 1.25em;
text-align: left;
color: $grey-0;
font-weight: 700;
background-color: $grey-8;
border: solid 1px $grey-6;
border-bottom: solid 1px $border-colour;
}

/*
Expand Down

0 comments on commit bfc7c37

Please sign in to comment.