mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Improve font size responsiveness, add ship size
This commit is contained in:
@@ -160,7 +160,6 @@ angular.module('app').service('Persist', ['$window','lodash', function ($window,
|
|||||||
localStorage.removeItem(LS_KEY_BUILDS);
|
localStorage.removeItem(LS_KEY_BUILDS);
|
||||||
localStorage.removeItem(LS_KEY_COMPARISONS);
|
localStorage.removeItem(LS_KEY_COMPARISONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getInsurance = function () {
|
this.getInsurance = function () {
|
||||||
|
|||||||
@@ -35,20 +35,6 @@ div, a, li {
|
|||||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// iPads Landscape
|
|
||||||
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
|
|
||||||
body {
|
|
||||||
font-size: 0.9em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// iPads Portrait
|
|
||||||
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
|
|
||||||
body {
|
|
||||||
font-size: 0.9em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0.5em 0.25em;
|
padding: 0.5em 0.25em;
|
||||||
|
|||||||
@@ -1,5 +1,14 @@
|
|||||||
|
|
||||||
#outfit {
|
#outfit {
|
||||||
|
font-size: 1.1em;
|
||||||
|
|
||||||
|
// iPads Landscape
|
||||||
|
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
|
||||||
|
& {
|
||||||
|
font-size: 0.95em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
width: 64em;
|
width: 64em;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
.user-select-none();
|
.user-select-none();
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="outfit">
|
<div id="outfit">
|
||||||
|
|
||||||
<div id="overview">
|
<div id="overview">
|
||||||
<h1 ng-bind="ship.name"></h1>
|
<h1 ng-bind="ship.name"></h1>
|
||||||
<div id="build">
|
<div id="build">
|
||||||
<input ng-model="buildName" ng-change="bnChange()" placeholder="Enter Build Name" maxlength="50" />
|
<input ng-model="buildName" ng-change="bnChange()" placeholder="Enter Build Name" maxlength="50" />
|
||||||
<button ng-click="saveBuild()" ng-disabled="!buildName || savedCode && code == savedCode || !canSave">
|
<button ng-click="saveBuild()" ng-disabled="!buildName || savedCode && code == savedCode || !canSave">
|
||||||
@@ -22,8 +22,15 @@
|
|||||||
<table id="summary">
|
<table id="summary">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="main">
|
<tr class="main">
|
||||||
<th colspan="3">Maneouverability</th><th colspan="2">Mass</th><th rowspan="2">Cargo</th><th rowspan="2">Fuel</th>
|
<th rowspan="2">Size</th>
|
||||||
<th rowspan="2">Armour</th><th rowspan="2">Shields</th><th colspan="2">Power</th><th colspan="2">Jump Range</th><th rowspan="2">Cost</th>
|
<th colspan="3">Maneouverability</th>
|
||||||
|
<th colspan="2">Mass</th>
|
||||||
|
<th rowspan="2">Cargo</th>
|
||||||
|
<th rowspan="2">Fuel</th>
|
||||||
|
<th rowspan="2">Armour</th>
|
||||||
|
<th rowspan="2">Shields</th>
|
||||||
|
<th colspan="2">Power</th>
|
||||||
|
<th colspan="2">Jump Range</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Agility</th><th>Speed</th><th>Boost</th>
|
<th>Agility</th><th>Speed</th><th>Boost</th>
|
||||||
@@ -34,6 +41,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td ng-bind="SZ[ship.class]"></td>
|
||||||
<td>{{ship.agility}}/10</td>
|
<td>{{ship.agility}}/10</td>
|
||||||
<td>{{fRound(ship.speed)}} <u>m/s</u></td>
|
<td>{{fRound(ship.speed)}} <u>m/s</u></td>
|
||||||
<td>{{fRound(ship.boost)}} <u>m/s</u></td>
|
<td>{{fRound(ship.boost)}} <u>m/s</u></td>
|
||||||
@@ -47,7 +55,6 @@
|
|||||||
<td>{{fPwr(ship.powerDeployed)}} <u>MW ({{fPct(ship.powerDeployed/ship.powerAvailable)}})</u></td>
|
<td>{{fPwr(ship.powerDeployed)}} <u>MW ({{fPct(ship.powerDeployed/ship.powerAvailable)}})</u></td>
|
||||||
<td>{{fRound(ship.unladenJumpRange)}} <u>LY</u></td>
|
<td>{{fRound(ship.unladenJumpRange)}} <u>LY</u></td>
|
||||||
<td>{{fRound(ship.ladenJumpRange)}} <u>LY</u></td>
|
<td>{{fRound(ship.ladenJumpRange)}} <u>LY</u></td>
|
||||||
<td>{{fCrd(ship.totalCost)}} <u>CR</u></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user