X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;h=d89ee40498c0a2fd205934b1987ceb4ae99b05ee;hp=1b7fd6bc40cd98982d65730d4cfae6ef5a0b43f1;hb=d54f6261c9e30f4eabb402ad301dd5c5e40fb656;hpb=41c80bb63b85b2696d3925c10784c3d7bb5d2aa3 diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 1b7fd6bc..d89ee404 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -1,165 +1,164 @@ @@ -370,38 +496,22 @@ export default { .reserve-count padding-left: 40% -.reserve-row-1 +.reserve-row margin-bottom: 15px // NOTE: no variants with reserve of size != 8 -div.board - float: left - height: 0 - display: inline-block - position: relative - -div.board8 - width: 12.5% - padding-bottom: 12.5% - -div.board10 - width: 10% - padding-bottom: 10% - -div.board11 - width: 9.09% - padding-bottom: 9.1% - .game + user-select: none width: 100% margin: 0 .board cursor: pointer #choices - margin: 0 auto 0 auto - position: relative + user-select: none + margin: 0 + position: absolute z-index: 300 overflow-y: inherit background-color: rgba(0,0,0,0) @@ -415,35 +525,15 @@ div.board11 height: auto display: block -img.piece - width: 100% - -img.piece, img.mark-square - max-width: 100% - height: auto - display: block - -img.mark-square - opacity: 0.6 - width: 76% - position: absolute - top: 12% - left: 12% - opacity: .7 - img.ghost position: absolute - opacity: 0.4 + opacity: 0.5 top: 0 -.highlight - background-color: #00cc66 !important - -.in-shadow - filter: brightness(50%) - -.incheck - background-color: #cc3300 !important +.incheck-light + background-color: rgba(204, 51, 0, 0.7) !important +.incheck-dark + background-color: rgba(204, 51, 0, 0.9) !important .light-square.lichess background-color: #f0d9b5; @@ -456,7 +546,25 @@ img.ghost background-color: #6f8f57; .light-square.chesstempo - background-color: #fdfdfd; + background-color: #dfdfdf; .dark-square.chesstempo - background-color: #88a0a8; + background-color: #7287b6; + +// TODO: no predefined highlight colors, but layers. How? + +.light-square.lichess.highlight-light + background-color: #cdd26a +.dark-square.lichess.highlight-dark + background-color: #aaa23a + +.light-square.chesscom.highlight-light + background-color: #f7f783 +.dark-square.chesscom.highlight-dark + background-color: #bacb44 + +.light-square.chesstempo.highlight-light + background-color: #9f9fff +.dark-square.chesstempo.highlight-dark + background-color: #557fff +