From bdc1e622f92d05b6dc97ff180b058767c3b4daf4 Mon Sep 17 00:00:00 2001 From: Colin McLeod Date: Thu, 2 Jul 2015 20:42:46 -0700 Subject: [PATCH] UI Tweaks, scrolling fixes and improvements --- app/index.html | 2 +- app/less/app.less | 6 ++++- app/less/header.less | 13 ++++++++++ app/less/outfit.less | 23 ++++++++++------- app/less/select.less | 13 ++++++++++ app/views/page-outfit.html | 53 +++++++++++++++++--------------------- 6 files changed, 70 insertions(+), 40 deletions(-) diff --git a/app/index.html b/app/index.html index 6fd111f8..42a88412 100755 --- a/app/index.html +++ b/app/index.html @@ -7,7 +7,7 @@ - + diff --git a/app/less/app.less b/app/less/app.less index faca6634..a09e114a 100755 --- a/app/less/app.less +++ b/app/less/app.less @@ -22,7 +22,9 @@ html, body { height: 100%; + width: 100%; text-rendering: optimizeLegibility; + overflow-x: hidden; } body { @@ -40,7 +42,9 @@ div, a, li { #main { margin: 0; - padding: 0.5em 0; + padding: 0.5em 0.5em; + width: 100%; + box-sizing: border-box; min-height: 90%; clear: both; text-align: center; diff --git a/app/less/header.less b/app/less/header.less index 1c026626..948d6d66 100755 --- a/app/less/header.less +++ b/app/less/header.less @@ -84,6 +84,19 @@ header { -webkit-overflow-scrolling: touch; max-height: 500px; + &::-webkit-scrollbar { + width: 0.5em; + } + + &::-webkit-scrollbar-track { + background-color: transparent; + } + + &::-webkit-scrollbar-thumb { + background-color: @warning-disabled; + } + + .smallTablet({ max-height: 400px; left: 0; diff --git a/app/less/outfit.less b/app/less/outfit.less index 15c74690..57f8d2c0 100755 --- a/app/less/outfit.less +++ b/app/less/outfit.less @@ -59,7 +59,7 @@ input { background: none; line-height: 1.3em; - width: 20em; + width: 15em; font-size: 0.9em; box-sizing: border-box; display: inline-block; @@ -99,6 +99,12 @@ text-overflow: ellipsis; } +.optional-hide { + .largePhone({ + display: none; + }); +} + table.total { width: 100%; @@ -115,6 +121,7 @@ table.total { .tabs { width: 100%; + box-sizing: border-box; margin-bottom: 1px; &, th { @@ -160,6 +167,12 @@ table.total { .smallTablet({ width: 50%; + + .axis.x { + g.tick:nth-child(2n + 1) text { + display: none; + } + } }); .largePhone({ @@ -183,14 +196,6 @@ table.total { &.third { width: 33%; - .smallTablet({ - .axis.x { - g.tick:nth-child(2n + 1) text { - display: none; - } - } - }); - .largePhone({ width: 100% !important; }); diff --git a/app/less/select.less b/app/less/select.less index 5c5ebb80..ff1a6e8e 100755 --- a/app/less/select.less +++ b/app/less/select.less @@ -39,6 +39,19 @@ select { white-space: nowrap; text-align: center; + &::-webkit-scrollbar { + width: 0.5em; + } + + &::-webkit-scrollbar-track { + background-color: transparent; + border-left: 1px solid @primary; + } + + &::-webkit-scrollbar-thumb { + background-color: @primary-disabled; + } + .select-group { line-height: 1.5em; text-align: left; diff --git a/app/views/page-outfit.html b/app/views/page-outfit.html index 9172247b..c5d30f2e 100644 --- a/app/views/page-outfit.html +++ b/app/views/page-outfit.html @@ -76,6 +76,26 @@ +
+

HardPoints

+
+
+
+
+
+
+
+ +
+

Utility Mounts

+
+
+
+
+
+
+
+

Standard

@@ -180,26 +200,6 @@
-
-

HardPoints

-
-
-
-
-
-
-
- -
-

Utility Mounts

-
-
-
-
-
-
-
-
@@ -256,10 +256,8 @@ @@ -285,17 +283,14 @@
-
+
Component -
- [Ship {{fRPct(1 - discounts.ship)}} off] - [Components {{fRPct(1 - discounts.components)}} off] -
+ [Ship {{fRPct(1 - discounts.ship)}} off] + [Components {{fRPct(1 - discounts.components)}} off]
Credits
Sell Buy - Net Cost -
- [{{fRPct(1 - discounts.components)}} off] -
+ Net Cost [{{fRPct(1 - discounts.components)}} off]