code clean

Signed-off-by: 王邈 <shankerwangmiao@gmail.com>
This commit is contained in:
王邈 2017-11-30 05:22:46 +08:00
parent b770abbb2e
commit fd7c701b95
No known key found for this signature in database
GPG Key ID: B031E3CA7BFED96E
2 changed files with 21 additions and 15 deletions

View File

@ -203,14 +203,16 @@ body {
.text-right-md {
text-align: right;
}
.no-float-md {
float: none;
}
.no-before-md:before {
content: none;
}
.no-after-md:after {
content: none;
.table.flat-md {
td,tr,th {
float: none;
}
td:before, th:before, td:after, th:after, tr:before, tr:after {
content: none;
}
td:nth-child(odd) {
display: none;
}
}
}
@ -224,7 +226,7 @@ body {
@media (max-width: 992px) {
.table.flat-md {
display: block;
* {
td,th,tr,tbody,thead {
display: block;
}
td,th {
@ -240,5 +242,9 @@ body {
float: left;
position: relative;
}
td:nth-child(odd) {
text-align: right;
font-weight: bold;
}
}
}

View File

@ -76,16 +76,16 @@ permalink: /status/
{% raw %}
<script id="template" type="x-tmpl-markup">
{{mirrors}}
<tr class="status-{{status}} row no-before-md no-after-md">
<td class="col-xs-4 text-right hidden-md hidden-lg"><strong>Name</strong></td>
<tr class="status-{{status}} row">
<td class="col-xs-4">Name</td>
<td class="col-md-2 col-xs-8">{{name}}{{if is_master|falsy}}[slave]{{/if}}</td>
<td class="col-xs-4 text-right hidden-md hidden-lg"><strong>Last Update</strong></td>
<td class="col-xs-4">Last Update</td>
<td class="col-md-2 col-xs-8">{{last_update}}</td>
<td class="col-xs-4 text-right hidden-md hidden-lg"><strong>Upstream</strong></td>
<td class="col-xs-4">Upstream</td>
<td class="col-md-5 col-xs-8">{{upstream}}</td>
<td class="col-xs-4 text-right hidden-md hidden-lg"><strong>Status</strong></td>
<td class="col-xs-4">Status</td>
<td class="col-md-1 col-xs-8">{{status}}</td>
<td class="col-xs-4 text-right hidden-md hidden-lg"><strong>Size</strong></td>
<td class="col-xs-4">Size</td>
<td class="col-md-2 col-xs-8">{{size}}</td>
</tr>
{{/mirrors}}