mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +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>
|
</div>
|
||||||
|
|
||||||
<div class="group dbl">
|
<div class="group dbl" id="componentPriority">
|
||||||
<table style="min-width:500px;width:100%">
|
<table style="width:100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="main">
|
<tr class="main">
|
||||||
<th colspan="2" class="sortable le" ng-click="sortPwr(cName)">Component</th>
|
<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 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 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 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:3.25em;">{{fPwr(c.c.power)}}</td>
|
||||||
<td class="ri" style="width:3em;"><u>{{f1Pct(c.c.power/ship.powerAvailable)}}</u></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>
|
<td ng-if="!c.enabled" class="disabled" colspan="2">DISABLED</td>
|
||||||
@@ -230,7 +230,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</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>
|
||||||
|
|
||||||
<div class="group dbl">
|
<div class="group dbl">
|
||||||
|
|||||||
Reference in New Issue
Block a user