From 9f0606f73683a0982faac694207e6ece7b848b1c Mon Sep 17 00:00:00 2001 From: bmelkani Date: Thu, 7 Sep 2017 14:22:53 +0200 Subject: [PATCH] fix(swagger-to-html): Fix issue with styling of tables --- source/style/_swagger-processor/index.less | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/source/style/_swagger-processor/index.less b/source/style/_swagger-processor/index.less index 3e788b5..9bb564c 100644 --- a/source/style/_swagger-processor/index.less +++ b/source/style/_swagger-processor/index.less @@ -196,3 +196,44 @@ font-style: initial !important; } } + +.document-formatting{ + table{ + margin: 10px 0; + + thead{ + color: #000; + text-align: left; + vertical-align: bottom; + white-space: nowrap; + } + td, th { + border: 1px solid #e1e4e5 !important; + border-collapse: collapse; + } + th { + font-weight: bold; + border-bottom: solid 2px #e1e4e5; + } + th, td { + font-size: 90%; + margin: 0; + overflow: visible; + padding: 8px 16px; + } + td { + border-bottom: 1px solid #e1e4e5; + border-left: 1px solid #e1e4e5; + } + td { + background-color: transparent; + vertical-align: middle; + } + td:first-child, th:first-child { + border-left-width: 0; + } + tr:nth-child(2n-1) td { + background-color: #f3f6f6; + } + } +}