Apply table stripes to the tables that need it

... rather than all tables.
This commit is contained in:
Richard van der Hoff 2022-08-02 16:28:21 +01:00
parent b58c7a5839
commit 017d348d73
3 changed files with 12 additions and 10 deletions

View file

@ -342,16 +342,18 @@ footer {
padding: 1rem; padding: 1rem;
} }
th { &.object-table, &.response-table {
background-color: $white; caption, tr {
} background-color: $table-row-default;
}
caption, tr { tr:nth-child(even) {
background-color: $table-row-default; background-color: $table-row-alternate;
} }
tr:nth-child(even) { th {
background-color: $table-row-alternate; background-color: $white;
}
} }
&.basic-info, &.basic-info th, &.basic-info td { &.basic-info, &.basic-info th, &.basic-info td {

View file

@ -21,7 +21,7 @@
{{ if $properties }} {{ if $properties }}
<table{{ if .anchor }} id="{{ .anchor }}"{{ end }}> <table{{ if .anchor }} id="{{ .anchor }}"{{ end }} class="object-table">
{{ with $title }} {{ with $title }}
<caption>{{ . }}</caption> <caption>{{ . }}</caption>
{{ end }} {{ end }}

View file

@ -20,7 +20,7 @@
<h2>Responses</h2> <h2>Responses</h2>
<table class> <table class="response-table">
<thead> <thead>
<th class="col-status">Status</th> <th class="col-status">Status</th>
<th class="col-status-description">Description</th> <th class="col-status-description">Description</th>