Skip to content
This repository was archived by the owner on Apr 7, 2023. It is now read-only.

Commit 54907b4

Browse files
author
Colin McLeod
committed
Tweak select look and feel on firefox, safari
1 parent 1350de1 commit 54907b4

File tree

3 files changed

+25
-8
lines changed

3 files changed

+25
-8
lines changed

app/less/select.less

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
select {
22
.border-radius(0);
3+
cursor: pointer;
34
background: none;
45
color: @primary-disabled;
5-
border: 1px solid @primary-disabled;
6-
outline: none;
76
font-family: @fStandard;
87
font-size: 1em;
98
background-color: transparent;
9+
-webkit-appearance: none;
10+
-moz-appearance: none;
11+
appearance: none;
12+
padding: 0.1em 0.5em;
13+
outline:none;
14+
border: 0;
15+
16+
&:focus {
17+
outline:none;
18+
}
19+
20+
&::-moz-focus-inner {
21+
border: 0;
22+
}
1023
}
1124

1225
.select {

app/views/page-outfit.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ <h1 ng-bind="ship.name"></h1>
3333
<th rowspan="2">DPS</th>
3434
<th rowspan="2">Armour</th>
3535
<th rowspan="2">Shields</th>
36-
<th colspan="2">Mass</th>
36+
<th colspan="3">Mass</th>
3737
<th rowspan="2">Cargo</th>
3838
<th rowspan="2">Fuel</th>
3939
<th colspan="3">Jump Range</th>
4040
<th colspan="3">Total Range</th>
4141
</tr>
4242
<tr>
43-
<th class="lft">Unladen</th>
43+
<th class="lft">Hull</th>
44+
<th>Unladen</th>
4445
<th>Laden</th>
4546
<th class="lft">Max</th>
4647
<th>Full Tank</th>
@@ -59,6 +60,7 @@ <h1 ng-bind="ship.name"></h1>
5960
<td>{{fRound(ship.totalDps)}}</td>
6061
<td>{{ship.armourTotal}} <span ng-if="ship.armourAdded">({{ship.armour}} + {{ship.armourAdded}})</span></td>
6162
<td>{{fRound(ship.shieldStrength)}} <u>MJ</u> <span ng-if="ship.shieldMultiplier > 1 && ship.shieldStrength > 0">({{fRPct(ship.shieldMultiplier)}})</span></td>
63+
<td>{{ship.mass}} <u>T</u></td>
6264
<td>{{fRound(ship.unladenMass)}} <u>T</u></td>
6365
<td>{{fRound(ship.ladenMass)}} <u>T</u></td>
6466
<td>{{fRound(ship.cargoCapacity)}} <u>T</u></td>
@@ -314,14 +316,16 @@ <h1>Utility Mounts</h1>
314316
<table class="total">
315317
<tr class="ri">
316318
<td class="lbl">Cost</td>
317-
<td ng-class="retrofitTotal > 0 ? 'warning' : 'secondary-disabled'">{{fCrd(retrofitTotal)}} <u>CR</u></td>
319+
<td colspan="2" ng-class="retrofitTotal > 0 ? 'warning' : 'secondary-disabled'">{{fCrd(retrofitTotal)}} <u>CR</u></td>
318320
</tr>
319321
<tr class="ri">
320322
<td class="lbl">Retrofitting from</td>
321-
<td style="padding:0;">
322-
<select style="width: 100%; border: none;" ng-model="$parent.retrofitBuild" ng-change="setRetrofitBase()" ng-options="name as name for (name, build) in allBuilds[ship.id]">
323+
<td class="cen" style="border-right:none;width: 1em;"><u class="primary-disabled">&#9662;</u></td>
324+
<td style="border-left:none;padding:0;">
325+
<select style="width: 100%;padding: 0" ng-model="$parent.retrofitBuild" ng-change="setRetrofitBase()" ng-options="name as name for (name, build) in allBuilds[ship.id]">
323326
<option value="">Stock / Standard</option>
324327
</select>
328+
325329
</td>
326330
</tr>
327331
</table>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coriolis_shipyard",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/cmmcleod/coriolis"

0 commit comments

Comments
 (0)