Skip to content

Commit

Permalink
Apply borders to table.campl-table-bordered only
Browse files Browse the repository at this point in the history
The existing rule applied a bottom border to all tables regardless of class, which looked unintentional.

Fixes cambridgeuniversity#63, cambridgeuniversity#81
  • Loading branch information
A. Tombs authored May 30, 2019
1 parent 796f39b commit d0cf4bd
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions stylesheets/full-stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -1446,8 +1446,7 @@ caption{background:#fff;padding:5px 0}
.campl-main-content h1,
.campl-main-content h2 {color:#106470 }

table,
.campl-table-bordered {border-bottom:2px solid #28828a;}
table.campl-table-bordered {border-bottom:2px solid #28828a;}
th{background:#28828a;color:#fff}
th.campl-alt{background:#fff;color:#28828a}
.campl-table-striped tbody tr:nth-child(odd) td,
Expand Down Expand Up @@ -1507,8 +1506,7 @@ th.campl-alt{background:#fff;color:#28828a}
.campl-theme-1 .campl-main-content h1,
.campl-theme-1 .campl-main-content h2 {color:#003e74 }

.campl-theme-1 table,
.campl-theme-1 .campl-table-bordered {border-bottom:2px solid #0072cf;}
.campl-theme-1 table.campl-table-bordered {border-bottom:2px solid #0072cf;}
.campl-theme-1 th{background:#0072cf;color:#fff}
.campl-theme-1 th.campl-alt{background:#fff;color:#0072cf}
.campl-theme-1 .campl-table-striped tbody tr:nth-child(odd) td,
Expand Down Expand Up @@ -1567,8 +1565,7 @@ th.campl-alt{background:#fff;color:#28828a}
.campl-theme-2 .campl-main-content h1,
.campl-theme-2 .campl-main-content h2 {color:#106470 }

.campl-theme-2 table,
.campl-theme-2 .campl-table-bordered {border-bottom:2px solid #28828a;}
.campl-theme-2 table.campl-table-bordered {border-bottom:2px solid #28828a;}
.campl-theme-2 th{background:#28828a;color:#fff}
.campl-theme-2 th.campl-alt{background:#fff;color:#28828a}
.campl-theme-2 .campl-table-striped tbody tr:nth-child(odd) td,
Expand Down Expand Up @@ -1627,8 +1624,7 @@ th.campl-alt{background:#fff;color:#28828a}
.campl-theme-3 .campl-main-content h1,
.campl-theme-3 .campl-main-content h2 {color:#422e5d }

.campl-theme-3 table,
.campl-theme-3 .campl-table-bordered {border-bottom:2px solid #8f2b8c;}
.campl-theme-3 table.campl-table-bordered {border-bottom:2px solid #8f2b8c;}
.campl-theme-3 th{background:#8f2b8c;color:#fff}
.campl-theme-3 th.campl-alt{background:#fff;color:#8f2b8c}
.campl-theme-3 .campl-table-striped tbody tr:nth-child(odd) td,
Expand Down Expand Up @@ -1687,8 +1683,7 @@ th.campl-alt{background:#fff;color:#28828a}
.campl-theme-4 .campl-main-content h1,
.campl-theme-4 .campl-main-content h2 {color:#304220 }

.campl-theme-4 table,
.campl-theme-4 .campl-table-bordered {border-bottom:2px solid #57831a;}
.campl-theme-4 table.campl-table-bordered {border-bottom:2px solid #57831a;}
.campl-theme-4 th{background:#57831a;color:#fff}
.campl-theme-4 th.campl-alt{background:#fff;color:#57831a}
.campl-theme-4 .campl-table-striped tbody tr:nth-child(odd) td,
Expand Down Expand Up @@ -1746,8 +1741,7 @@ th.campl-alt{background:#fff;color:#28828a}
.campl-theme-5 .campl-main-content h1,
.campl-theme-5 .campl-main-content h2 {color:#c44101 }

.campl-theme-5 table,
.campl-theme-5 .campl-table-bordered {border-bottom:2px solid #df671d;}
.campl-theme-5 table.campl-table-bordered {border-bottom:2px solid #df671d;}
.campl-theme-5 th{background:#df671d;color:#fff}
.campl-theme-5 th.campl-alt{background:#fff;color:#df671d}
.campl-theme-5 .campl-table-striped tbody tr:nth-child(odd) td,
Expand Down Expand Up @@ -1806,8 +1800,7 @@ th.campl-alt{background:#fff;color:#28828a}
.campl-theme-6 .campl-main-content h1,
.campl-theme-6 .campl-main-content h2 {color:#851735 }

.campl-theme-6 table,
.campl-theme-6 .campl-table-bordered {border-bottom:2px solid #d61746;}
.campl-theme-6 table.campl-table-bordered {border-bottom:2px solid #d61746;}
.campl-theme-6 th{background:#d61746;color:#fff}
.campl-theme-6 th.campl-alt{background:#fff;color:#d61746}
.campl-theme-6 .campl-table-striped tbody tr:nth-child(odd) td,
Expand Down Expand Up @@ -1864,8 +1857,7 @@ th.campl-alt{background:#fff;color:#28828a}
.campl-theme-7 .campl-main-content h1,
.campl-theme-7 .campl-main-content h2 {color:#404040 }

.campl-theme-7 table,
.campl-theme-7 .campl-table-bordered {border-bottom:2px solid #8C8989;}
.campl-theme-7 table.campl-table-bordered {border-bottom:2px solid #8C8989;}
.campl-theme-7 th{background:#8C8989;color:#fff}
.campl-theme-7 th.campl-alt{background:#fff;color:#8C8989}
.campl-theme-7 .campl-table-striped tbody tr:nth-child(odd) td,
Expand Down

0 comments on commit d0cf4bd

Please sign in to comment.