Minor styling

This commit is contained in:
Roman Gotsiy 2015-10-18 20:16:40 +03:00
parent bcb2fdaea8
commit 8c54d83ee8
5 changed files with 46 additions and 32 deletions

View File

@ -17,7 +17,7 @@ side-menu {
height: 100%;
overflow-y: auto;
overflow-x: hidden;;
background-color: #E9E9F9;
background-color: #f2f2f2;
}
redoc {

View File

@ -13,6 +13,10 @@ h3 > span {
vertical-align: middle;
}
.method-description {
padding: 30px 0;
}
.http-method {
font-size: 13px;
color: white;

View File

@ -3,7 +3,7 @@
<span class="http-method" [ng-class]="data.method">{{data.method}}</span>
<span class="path">{{data.path}}</span>
</h3>
<p class="method-summary">
<p *ng-if="data.methodInfo.description" class="method-description">
{{data.methodInfo.description}}
</p>
<params-list pointer="{{pointer}}/parameters"> </params-list>

View File

@ -5,7 +5,25 @@ h4 {
}
table {
border-collapse: collapse;
border-spacing: 0;
border: 2px solid #1976D3;
}
thead tr:first-child {
background: #1976D3;
color: #fff;
border: none;
}
thead tr:last-child th {
border-bottom: 3px solid #ddd;
}
tbody tr:last-child td {
border: none;
}
tbody td {
border-bottom: 1px solid #ddd;
}
td, th {
@ -15,19 +33,7 @@ td, th {
}
th {
background-color: #DCDCDC;
color: black;
padding: 5px 15px;
text-align: left;
border-bottom: 2px solid #afafaf;
}
td {
border-bottom: 1px solid #afafaf;
}
.param-name {
font-weight: bold;
}
.param-type {

View File

@ -1,14 +1,17 @@
<h4> Parameters </h4>
<small class="no-params" *ng-if="data.noParams"> No parameters </small>
<!-- General parameters -->
<table *ng-if="!data.noParams">
<thead>
<tr>
<th colspan="3"> Parameters </th>
</tr>
<tr>
<th> Name </th>
<th> Type </th>
<th> Description </th>
</tr>
</thead>
<tbody>
<tr *ng-for="#param of data.params">
<!--<div class="param">-->
<td class="param-name">{{param.name}}</td>
@ -27,4 +30,5 @@
</td>
<td class="param-description">{{data.bodyParam.description}}</td>
</tr>
</tbody>
</table>