From 70e69c70995edea0ec524f4b6823497f23512971 Mon Sep 17 00:00:00 2001 From: EspenMH Date: Thu, 15 Aug 2019 15:06:37 +0200 Subject: [PATCH] 448: removed double quotes in js. slight text highlight on compared ships in shipyard --- src/app/pages/ShipyardPage.jsx | 4 ++-- src/less/colors.less | 2 ++ src/less/table.less | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/pages/ShipyardPage.jsx b/src/app/pages/ShipyardPage.jsx index eb4d6a06..a6b42894 100644 --- a/src/app/pages/ShipyardPage.jsx +++ b/src/app/pages/ShipyardPage.jsx @@ -191,7 +191,7 @@ export default class ShipyardPage extends Page { style={{ height: '1.5em' }} className={cn({ highlighted: noTouch && this.state.shipId === s.id, - "compare-highlight": this.state.compare[s.id], + comparehighlight: this.state.compare[s.id], })} onMouseEnter={noTouch && this._highlightShip.bind(this, s.id)} onClick={() => this._toggleCompare(s.id)} @@ -311,7 +311,7 @@ export default class ShipyardPage extends Page { style={{ height: '1.5em' }} className={cn({ highlighted: noTouch && this.state.shipId === s.id, - "compare-highlight": this.state.compare[s.id], + comparehighlight: this.state.compare[s.id], })} onMouseEnter={noTouch && this._highlightShip.bind(this, s.id)} onClick={() => this._toggleCompare(s.id)} diff --git a/src/less/colors.less b/src/less/colors.less index a2f63048..81bb5d7d 100755 --- a/src/less/colors.less +++ b/src/less/colors.less @@ -3,6 +3,7 @@ @disabledDarken: 15%; @bgTransparency: 10%; @bgHighlight: 5%; +@fgHighlight: 10%; // Foreground colors @fg: #CCC; @@ -26,6 +27,7 @@ @warning-bg: fadeout(darken(@warning, @bgDarken), @bgTransparency); // Dark Red @alt-primary-bg-highlighted: lighten(@alt-primary-bg, @bgHighlight); +@fg-highlighted: lighten(@fg, @fgHighlight); diff --git a/src/less/table.less b/src/less/table.less index 9170ffc5..dbc2422d 100755 --- a/src/less/table.less +++ b/src/less/table.less @@ -86,7 +86,8 @@ td { } table.shipyard-table{ - tbody tr.compare-highlight{ + tbody tr.comparehighlight{ background-color: @secondary-bg; + color: @fg-highlighted; } }