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%; height: 100%;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden;; overflow-x: hidden;;
background-color: #E9E9F9; background-color: #f2f2f2;
} }
redoc { redoc {

View File

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

View File

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

View File

@ -5,7 +5,25 @@ h4 {
} }
table { 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 { td, th {
@ -15,19 +33,7 @@ td, th {
} }
th { th {
background-color: #DCDCDC;
color: black;
padding: 5px 15px;
text-align: left; text-align: left;
border-bottom: 2px solid #afafaf;
}
td {
border-bottom: 1px solid #afafaf;
}
.param-name {
font-weight: bold;
} }
.param-type { .param-type {

View File

@ -1,30 +1,34 @@
<h4> Parameters </h4>
<small class="no-params" *ng-if="data.noParams"> No parameters </small> <small class="no-params" *ng-if="data.noParams"> No parameters </small>
<!-- General parameters --> <!-- General parameters -->
<table *ng-if="!data.noParams"> <table *ng-if="!data.noParams">
<thead> <thead>
<tr>
<th colspan="3"> Parameters </th>
</tr>
<tr> <tr>
<th> Name </th> <th> Name </th>
<th> Type </th> <th> Type </th>
<th> Description </th> <th> Description </th>
</tr> </tr>
</thead> </thead>
<tr *ng-for="#param of data.params"> <tbody>
<!--<div class="param">--> <tr *ng-for="#param of data.params">
<td class="param-name">{{param.name}}</td> <!--<div class="param">-->
<td class="param-name">{{param.name}}</td>
<td>
<span class="param-type" [ng-class]="param.type">{{param.type}}</span>
</td>
<td class="param-description">{{param.description}}</td>
<!--</div>-->
</tr>
<!-- in-body parameter -->
<tr class="param body-param" *ng-if="data.bodyParam">
<td class="param-name">{{data.bodyParam.name}}</td>
<td> <td>
<span class="param-type" [ng-class]="param.type">{{param.type}}</span> <schema class="body-schema param-type" pointer="{{data.bodyParam.pointer}}/schema">
</schema>
</td> </td>
<td class="param-description">{{param.description}}</td> <td class="param-description">{{data.bodyParam.description}}</td>
<!--</div>--> </tr>
</tr> </tbody>
<!-- in-body parameter -->
<tr class="param body-param" *ng-if="data.bodyParam">
<td class="param-name">{{data.bodyParam.name}}</td>
<td>
<schema class="body-schema param-type" pointer="{{data.bodyParam.pointer}}/schema">
</schema>
</td>
<td class="param-description">{{data.bodyParam.description}}</td>
</tr>
</table> </table>