﻿/* swagger-ui-md-table.css */

/* 
    css reset 
*/
.swagger-ui .renderedMarkdown table,
.swagger-ui .renderedMarkdown table thead,
.swagger-ui .renderedMarkdown table tbody,
.swagger-ui .renderedMarkdown table tfoot,
.swagger-ui .renderedMarkdown table thead th,
.swagger-ui .renderedMarkdown table tbody tr,
.swagger-ui .renderedMarkdown table tbody td {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    vertical-align: top;
    font-size: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

/*
    table styles
*/
.swagger-ui .renderedMarkdown table {
    width: auto;
    margin: 1em 0;
}

.swagger-ui .renderedMarkdown table thead tr th,
.swagger-ui .renderedMarkdown table tbody tr td {
    padding: 8px;
}

.swagger-ui .renderedMarkdown table thead tr th:first-of-type,
.swagger-ui .renderedMarkdown table tbody tr td:first-of-type {
    /* first column bold */
    font-weight: bold;
}

/*
header row background color
*/
.swagger-ui .renderedMarkdown table thead tr th {
    background-color: #e0e0ff;
    text-align: left;
    font-weight: bold;
}

/*
alternating row colors
*/
.swagger-ui .renderedMarkdown table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.swagger-ui .renderedMarkdown table tbody tr:nth-child(even) {
    background-color: #f8f8ff;
}

/*
   rounded table with inner cell borders
*/
.swagger-ui .renderedMarkdown table {
    border-radius: 4px;
    border-spacing: 0px;
    border-collapse: separate;
}

.swagger-ui .renderedMarkdown table thead:first-child tr:first-child th:first-child {
    border-radius: 4px 0 0 0;
}

.swagger-ui .renderedMarkdown table thead:first-child tr:last-child th:last-child {
    border-radius: 0 4px 0 0;
}

.swagger-ui .renderedMarkdown table tbody:last-child tr:last-child td:last-child {
    border-radius: 0 0 4px 0;
}

.swagger-ui .renderedMarkdown table tbody:last-child tr:last-child td:first-child {
    border-radius: 0 0 0 4px;
}

.swagger-ui .renderedMarkdown table thead tr th,
.swagger-ui .renderedMarkdown table tbody tr td {
    /* By default, each cell only has top and left borders */
    border-top: 1px solid #d0d0f0;
    border-left: 1px solid #d0d0f0;
    border-right: none;
    border-bottom: none;
}

.swagger-ui .renderedMarkdown table thead tr th:last-child,
.swagger-ui .renderedMarkdown table tbody tr td:last-child {
    /* The rightmost column gets a full border on all sides */
    border-right: 1px solid #d0d0f0;
}

.swagger-ui .renderedMarkdown table tbody tr:last-child td {
    /* The bottom row gets a full border on all sides */
    border-bottom: 1px solid #d0d0f0;
}
