mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 14:45:35 +00:00
Merge pull request #5 from cmmcleod/master
Merge back post-responsive priority stuff.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
[](https://waffle.io/cmmcleod/coriolis) [](http://waffle.io/cmmcleod/coriolis)
|
[ ](https://codeship.com/projects/85232) [](https://waffle.io/cmmcleod/coriolis) [](http://waffle.io/cmmcleod/coriolis)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
|
|||||||
@@ -43,6 +43,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flip {
|
||||||
|
display: inline-block;
|
||||||
|
-moz-transform: scaleX(-1); /* Gecko */
|
||||||
|
-o-transform: scaleX(-1); /* Operah */
|
||||||
|
-webkit-transform: scaleX(-1); /* webkit */
|
||||||
|
transform: scaleX(-1); /* standard */
|
||||||
|
}
|
||||||
|
|
||||||
#build {
|
#build {
|
||||||
float: right;
|
float: right;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
@@ -170,10 +178,8 @@ table.total {
|
|||||||
table tbody tr td {
|
table tbody tr td {
|
||||||
&:nth-child(4) {
|
&:nth-child(4) {
|
||||||
span {
|
span {
|
||||||
display:inline;
|
vertical-align: middle;
|
||||||
padding:0;
|
font-size: 1.6em;
|
||||||
margin:0;
|
|
||||||
font-size: 2em;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -186,7 +192,7 @@ table.total {
|
|||||||
g.tick:nth-child(2n) text {
|
g.tick:nth-child(2n) text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table thead tr.main th {
|
table thead tr.main th {
|
||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<td>
|
<td>
|
||||||
<ul id="facet-container" as-sortable="facetSortOpts" ng-model="facets" class="sortable" update="tblUpdate">
|
<ul id="facet-container" as-sortable="facetSortOpts" ng-model="facets" class="sortable" update="tblUpdate">
|
||||||
<li ng-repeat="(i,f) in facets" as-sortable-item class="facet" ng-class="{active: f.active}" ng-click="toggleFacet(i)">
|
<li ng-repeat="(i,f) in facets" as-sortable-item class="facet" ng-class="{active: f.active}" ng-click="toggleFacet(i)">
|
||||||
<div as-sortable-item-handle>↔ <span ng-bind="f.title"></span></div>
|
<div as-sortable-item-handle>↔ <span ng-bind="f.title"></span></div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -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)" class="flip">►</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>
|
||||||
|
|||||||
@@ -123,28 +123,28 @@
|
|||||||
"class": 1,
|
"class": 1,
|
||||||
"rating": "I",
|
"rating": "I",
|
||||||
"cost": 1017200,
|
"cost": 1017200,
|
||||||
"mass": 4
|
"mass": 21
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Military Grade Composite",
|
"name": "Military Grade Composite",
|
||||||
"class": 1,
|
"class": 1,
|
||||||
"rating": "I",
|
"rating": "I",
|
||||||
"cost": 2288600,
|
"cost": 2288600,
|
||||||
"mass": 8
|
"mass": 42
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Mirrored Surface Composite",
|
"name": "Mirrored Surface Composite",
|
||||||
"class": 1,
|
"class": 1,
|
||||||
"rating": "I",
|
"rating": "I",
|
||||||
"cost": 5408800,
|
"cost": 5408800,
|
||||||
"mass": 8
|
"mass": 42
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Reactive Surface Composite",
|
"name": "Reactive Surface Composite",
|
||||||
"class": 1,
|
"class": 1,
|
||||||
"rating": "I",
|
"rating": "I",
|
||||||
"cost": 5993700,
|
"cost": 5993700,
|
||||||
"mass": 8
|
"mass": 42
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"cobra_mk_iii": [
|
"cobra_mk_iii": [
|
||||||
|
|||||||
@@ -244,13 +244,19 @@ gulp.task('test', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('lint', ['js-lint', 'json-lint']);
|
gulp.task('lint', ['js-lint', 'json-lint']);
|
||||||
|
|
||||||
gulp.task('clean', function (done) { del(['build'], done); });
|
gulp.task('clean', function (done) { del(['build'], done); });
|
||||||
|
|
||||||
gulp.task('build', function (done) { runSequence('clean', ['html2js','jsonToDB'], ['generateIndexHTML','bower','js','less','copy'], done); });
|
gulp.task('build', function (done) { runSequence('clean', ['html2js','jsonToDB'], ['generateIndexHTML','bower','js','less','copy'], done); });
|
||||||
gulp.task('build-cache', function (done) { runSequence('build', 'appcache', done); });
|
gulp.task('build-cache', function (done) { runSequence('build', 'appcache', done); });
|
||||||
|
gulp.task('build-prod', function (done) { runSequence('build', 'cache-bust', 'appcache', done); });
|
||||||
|
|
||||||
gulp.task('dev', function (done) { runSequence('build-cache', 'serve','watch', done); });
|
gulp.task('dev', function (done) { runSequence('build-cache', 'serve','watch', done); });
|
||||||
|
|
||||||
gulp.task('deploy', function (done) {
|
gulp.task('deploy', function (done) {
|
||||||
cdnHostStr = '//cdn.' + process.env.CORIOLIS_HOST;
|
cdnHostStr = '//cdn.' + process.env.CORIOLIS_HOST;
|
||||||
runSequence('lint', 'build','cache-bust', 'appcache', 'upload', done);
|
runSequence('build-prod', 'upload', done);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('default', ['dev']);
|
gulp.task('default', ['dev']);
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
"url": "https://github.com/cmmcleod/coriolis"
|
"url": "https://github.com/cmmcleod/coriolis"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"engine": "node >= 0.12.2",
|
||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"async": "^0.9.0",
|
"async": "^0.9.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user