Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
fix(swagger-to-html): Fix issue with styling of tables
Browse files Browse the repository at this point in the history
  • Loading branch information
bhaskarmelkani committed Sep 7, 2017
1 parent 63ce577 commit 9f0606f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions source/style/_swagger-processor/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit 9f0606f

Please # to comment.