mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-11 08:43:02 +00:00
448: removed double quotes in js. slight text highlight on compared ships in shipyard
This commit is contained in:
@@ -191,7 +191,7 @@ export default class ShipyardPage extends Page {
|
|||||||
style={{ height: '1.5em' }}
|
style={{ height: '1.5em' }}
|
||||||
className={cn({
|
className={cn({
|
||||||
highlighted: noTouch && this.state.shipId === s.id,
|
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)}
|
onMouseEnter={noTouch && this._highlightShip.bind(this, s.id)}
|
||||||
onClick={() => this._toggleCompare(s.id)}
|
onClick={() => this._toggleCompare(s.id)}
|
||||||
@@ -311,7 +311,7 @@ export default class ShipyardPage extends Page {
|
|||||||
style={{ height: '1.5em' }}
|
style={{ height: '1.5em' }}
|
||||||
className={cn({
|
className={cn({
|
||||||
highlighted: noTouch && this.state.shipId === s.id,
|
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)}
|
onMouseEnter={noTouch && this._highlightShip.bind(this, s.id)}
|
||||||
onClick={() => this._toggleCompare(s.id)}
|
onClick={() => this._toggleCompare(s.id)}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
@disabledDarken: 15%;
|
@disabledDarken: 15%;
|
||||||
@bgTransparency: 10%;
|
@bgTransparency: 10%;
|
||||||
@bgHighlight: 5%;
|
@bgHighlight: 5%;
|
||||||
|
@fgHighlight: 10%;
|
||||||
|
|
||||||
// Foreground colors
|
// Foreground colors
|
||||||
@fg: #CCC;
|
@fg: #CCC;
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
@warning-bg: fadeout(darken(@warning, @bgDarken), @bgTransparency); // Dark Red
|
@warning-bg: fadeout(darken(@warning, @bgDarken), @bgTransparency); // Dark Red
|
||||||
|
|
||||||
@alt-primary-bg-highlighted: lighten(@alt-primary-bg, @bgHighlight);
|
@alt-primary-bg-highlighted: lighten(@alt-primary-bg, @bgHighlight);
|
||||||
|
@fg-highlighted: lighten(@fg, @fgHighlight);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,8 @@ td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
table.shipyard-table{
|
table.shipyard-table{
|
||||||
tbody tr.compare-highlight{
|
tbody tr.comparehighlight{
|
||||||
background-color: @secondary-bg;
|
background-color: @secondary-bg;
|
||||||
|
color: @fg-highlighted;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user