From ed2b8361c6c091f1713f1a60ec3ff99dfcdb6efc Mon Sep 17 00:00:00 2001 From: VVestin Date: Mon, 20 Nov 2023 01:59:22 +0000 Subject: [PATCH 1/2] Add CSS class for the selected pocket piece --- package.json | 2 +- ui/chess/css/_zh-pocket.scss | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f3e55255fcf8a..d41da49375a60 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@typescript-eslint/eslint-plugin": "^6.4.0", "@typescript-eslint/parser": "^6.4.0", "ab": "github:lichess-org/ab-stub", - "chessground": "^9.0.4", + "chessground": "link:/chessground", "eslint": "^8.47.0", "lint-staged": "^14.0.0", "prettier": "^3.0.2", diff --git a/ui/chess/css/_zh-pocket.scss b/ui/chess/css/_zh-pocket.scss index 9dfd724126b7c..f3a7c73944666 100644 --- a/ui/chess/css/_zh-pocket.scss +++ b/ui/chess/css/_zh-pocket.scss @@ -64,6 +64,10 @@ background-color: #aaa; } + &.selected-to-drop { + background-color: rgba(20, 85, 30, 0.5); + } + &:first-child:hover { @extend %box-radius-left; } From 21df6b7f8d1ff52545c4ee5f4112ac969c411f33 Mon Sep 17 00:00:00 2001 From: Weston Metzler Date: Wed, 29 Nov 2023 04:17:58 +0000 Subject: [PATCH 2/2] Revert local dev change to use my chessground --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d41da49375a60..f3e55255fcf8a 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@typescript-eslint/eslint-plugin": "^6.4.0", "@typescript-eslint/parser": "^6.4.0", "ab": "github:lichess-org/ab-stub", - "chessground": "link:/chessground", + "chessground": "^9.0.4", "eslint": "^8.47.0", "lint-staged": "^14.0.0", "prettier": "^3.0.2",