bunch of minor tweaks
This commit is contained in:
parent
6e545b8b97
commit
17c8ad7705
|
@ -55,7 +55,7 @@ private[importer] final class Importer(
|
||||||
case Preprocessed(game, moves, result) =>
|
case Preprocessed(game, moves, result) =>
|
||||||
(GameRepo insertDenormalized game) >> {
|
(GameRepo insertDenormalized game) >> {
|
||||||
game.pgnImport.flatMap(_.user).isDefined ?? GameRepo.setImportCreatedAt(game)
|
game.pgnImport.flatMap(_.user).isDefined ?? GameRepo.setImportCreatedAt(game)
|
||||||
} >> applyMoves(Pov(game, Color.white), moves).thenPp >>-
|
} >> applyMoves(Pov(game, Color.white), moves) >>-
|
||||||
(result foreach { r => applyResult(game, r) }) inject game
|
(result foreach { r => applyResult(game, r) }) inject game
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -636,7 +636,6 @@ var storage = {
|
||||||
var setVolume = function(v) {
|
var setVolume = function(v) {
|
||||||
storage.set('sound-volume', v);
|
storage.set('sound-volume', v);
|
||||||
Object.keys(audio).forEach(function(k) {
|
Object.keys(audio).forEach(function(k) {
|
||||||
audio[k].volume = v;
|
|
||||||
audio[k].volume = v * (volumes[k] ? volumes[k] : 1);
|
audio[k].volume = v * (volumes[k] ? volumes[k] : 1);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -803,21 +803,21 @@ div.side_box .top {
|
||||||
div.side_box .padded {
|
div.side_box .padded {
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
}
|
}
|
||||||
div.side_box div.game_infos {
|
div.side_box .game_infos {
|
||||||
padding-left: 36px;
|
padding-left: 36px;
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid #ccc;
|
||||||
margin-bottom: 6px;
|
margin-bottom: 6px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
div.side_box div.game_infos::before {
|
div.side_box .game_infos::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 2px;
|
top: 2px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
}
|
}
|
||||||
div.side_box div.game_infos .bookmark {
|
div.side_box .game_infos .bookmark {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
background: radial-gradient(ellipse at center, rgba(238, 238, 238, 1) 0%, rgba(238, 238, 238, 1) 25%, rgba(238, 238, 238, 0) 100%);
|
background: radial-gradient(ellipse at center, rgba(238, 238, 238, 1) 0%, rgba(238, 238, 238, 1) 25%, rgba(238, 238, 238, 0) 100%);
|
||||||
|
@ -825,7 +825,7 @@ div.side_box div.game_infos .bookmark {
|
||||||
transform: translate(0, -20px);
|
transform: translate(0, -20px);
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
}
|
}
|
||||||
div.side_box:hover > div.game_infos .bookmark {
|
div.side_box .game_infos:hover .bookmark {
|
||||||
transform: translate(0, 0);
|
transform: translate(0, 0);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue