From 017d348d736ef51fbefe236a5e9d36c01c98d5dd Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 2 Aug 2022 16:28:21 +0100 Subject: [PATCH] Apply table stripes to the tables that need it ... rather than all tables. --- assets/scss/custom.scss | 18 ++++++++++-------- .../partials/openapi/render-object-table.html | 2 +- layouts/partials/openapi/render-responses.html | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index 898b9808..fcf9341b 100644 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -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 { diff --git a/layouts/partials/openapi/render-object-table.html b/layouts/partials/openapi/render-object-table.html index 7de88071..b5e332dd 100644 --- a/layouts/partials/openapi/render-object-table.html +++ b/layouts/partials/openapi/render-object-table.html @@ -21,7 +21,7 @@ {{ if $properties }} - + {{ with $title }} {{ . }} {{ end }} diff --git a/layouts/partials/openapi/render-responses.html b/layouts/partials/openapi/render-responses.html index c6556fbb..9c59b0f2 100644 --- a/layouts/partials/openapi/render-responses.html +++ b/layouts/partials/openapi/render-responses.html @@ -20,7 +20,7 @@

Responses

- +
Status Description