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

Commit

Permalink
Tweak select look and feel on firefox, safari
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McLeod committed Jul 2, 2015
1 parent 1350de1 commit 54907b4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
17 changes: 15 additions & 2 deletions app/less/select.less
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
select {
.border-radius(0);
cursor: pointer;
background: none;
color: @primary-disabled;
border: 1px solid @primary-disabled;
outline: none;
font-family: @fStandard;
font-size: 1em;
background-color: transparent;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 0.1em 0.5em;
outline:none;
border: 0;

&:focus {
outline:none;
}

&::-moz-focus-inner {
border: 0;
}
}

.select {
Expand Down
14 changes: 9 additions & 5 deletions app/views/page-outfit.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ <h1 ng-bind="ship.name"></h1>
<th rowspan="2">DPS</th>
<th rowspan="2">Armour</th>
<th rowspan="2">Shields</th>
<th colspan="2">Mass</th>
<th colspan="3">Mass</th>
<th rowspan="2">Cargo</th>
<th rowspan="2">Fuel</th>
<th colspan="3">Jump Range</th>
<th colspan="3">Total Range</th>
</tr>
<tr>
<th class="lft">Unladen</th>
<th class="lft">Hull</th>
<th>Unladen</th>
<th>Laden</th>
<th class="lft">Max</th>
<th>Full Tank</th>
Expand All @@ -59,6 +60,7 @@ <h1 ng-bind="ship.name"></h1>
<td>{{fRound(ship.totalDps)}}</td>
<td>{{ship.armourTotal}} <span ng-if="ship.armourAdded">({{ship.armour}} + {{ship.armourAdded}})</span></td>
<td>{{fRound(ship.shieldStrength)}} <u>MJ</u> <span ng-if="ship.shieldMultiplier > 1 && ship.shieldStrength > 0">({{fRPct(ship.shieldMultiplier)}})</span></td>
<td>{{ship.mass}} <u>T</u></td>
<td>{{fRound(ship.unladenMass)}} <u>T</u></td>
<td>{{fRound(ship.ladenMass)}} <u>T</u></td>
<td>{{fRound(ship.cargoCapacity)}} <u>T</u></td>
Expand Down Expand Up @@ -314,14 +316,16 @@ <h1>Utility Mounts</h1>
<table class="total">
<tr class="ri">
<td class="lbl">Cost</td>
<td ng-class="retrofitTotal > 0 ? 'warning' : 'secondary-disabled'">{{fCrd(retrofitTotal)}} <u>CR</u></td>
<td colspan="2" ng-class="retrofitTotal > 0 ? 'warning' : 'secondary-disabled'">{{fCrd(retrofitTotal)}} <u>CR</u></td>
</tr>
<tr class="ri">
<td class="lbl">Retrofitting from</td>
<td style="padding:0;">
<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]">
<td class="cen" style="border-right:none;width: 1em;"><u class="primary-disabled">&#9662;</u></td>
<td style="border-left:none;padding:0;">
<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]">
<option value="">Stock / Standard</option>
</select>

</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coriolis_shipyard",
"version": "1.0.0",
"version": "1.0.1",
"repository": {
"type": "git",
"url": "https://github.com/cmmcleod/coriolis"
Expand Down

0 comments on commit 54907b4

Please sign in to comment.