mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Merge of changes to responsive solutions for component power priority module.
This commit is contained in:
@@ -160,3 +160,68 @@ table.total {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
#componentPriority {
|
||||
.tablet({
|
||||
text.primary, text.warning, text.primary-bg {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
table tbody tr td {
|
||||
&:nth-child(4) {
|
||||
span {
|
||||
display: inline;
|
||||
padding:0;
|
||||
margin:0;
|
||||
font-size: 2em;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
.medPhone({
|
||||
.axis {
|
||||
font-size: 0.8em;
|
||||
|
||||
g.tick:nth-child(2n) text {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
table thead tr.main th {
|
||||
font-size: 0.8em;
|
||||
|
||||
&:nth-child(2) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
table tbody tr td {
|
||||
&:nth-child(1) {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
max-width: 0;
|
||||
width: 0;
|
||||
color: transparent;
|
||||
}
|
||||
&:nth-child(3) {
|
||||
display: none;
|
||||
}
|
||||
&:nth-child(2) {
|
||||
font-size: 0.7em;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
.smallPhone({
|
||||
table tbody tr td {
|
||||
&:nth-child(6) {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
max-width: 0;
|
||||
width: 0;
|
||||
color: transparent;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
8
app/views/page-outfit.html
Executable file → Normal file
8
app/views/page-outfit.html
Executable file → Normal file
@@ -193,8 +193,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="group dbl">
|
||||
<table style="min-width:500px;width:100%">
|
||||
<div class="group dbl" id="componentPriority">
|
||||
<table style="width:100%">
|
||||
<thead>
|
||||
<tr class="main">
|
||||
<th colspan="2" class="sortable le" ng-click="sortPwr(cName)">Component</th>
|
||||
@@ -221,7 +221,7 @@
|
||||
<td style="width:1em;" ng-click="togglePwr(c)">{{c.c.class}}{{c.c.rating}}</td>
|
||||
<td class="le shorten" ng-click="togglePwr(c)" ng-bind="cName(c)"></td>
|
||||
<td ng-click="togglePwr(c)"><u ng-bind="c.type"></u></td>
|
||||
<td><span ng-click="decPriority(c)">◀</span> {{c.priority + 1}} <span ng-click="incPriority(c)">▶</span></td>
|
||||
<td><span ng-click="decPriority(c)">◄</span> {{c.priority + 1}} <span ng-click="incPriority(c)">►</span></td>
|
||||
<td class="ri" style="width:3.25em;">{{fPwr(c.c.power)}}</td>
|
||||
<td class="ri" style="width:3em;"><u>{{f1Pct(c.c.power/ship.powerAvailable)}}</u></td>
|
||||
<td ng-if="!c.enabled" class="disabled" colspan="2">DISABLED</td>
|
||||
@@ -230,7 +230,7 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="min-width: 500px; margin-top: 1em" power-bands bands="priorityBands" available="ship.powerAvailable"></div>
|
||||
<div style="margin-top: 1em" power-bands bands="priorityBands" available="ship.powerAvailable"></div>
|
||||
</div>
|
||||
|
||||
<div class="group dbl">
|
||||
|
||||
Reference in New Issue
Block a user