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;
}
th {
background-color: $white;
}
&.object-table, &.response-table {
caption, tr {
background-color: $table-row-default;
}
caption, tr {
background-color: $table-row-default;
}
tr:nth-child(even) {
background-color: $table-row-alternate;
}
tr:nth-child(even) {
background-color: $table-row-alternate;
th {
background-color: $white;
}
}
&.basic-info, &.basic-info th, &.basic-info td {

View file

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

View file

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