From 072c49c47acfeddefcf23ec6de377d175a4a432a Mon Sep 17 00:00:00 2001 From: AlecM33 Date: Tue, 5 Jul 2022 19:28:56 -0400 Subject: [PATCH] add brightness affect to active card element --- client/src/scripts/create.js | 1 - client/src/styles/game.css | 4 ++++ server/api/AdminAPI.js | 2 +- server/config/globals.js | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/src/scripts/create.js b/client/src/scripts/create.js index 5045c75..c60d852 100644 --- a/client/src/scripts/create.js +++ b/client/src/scripts/create.js @@ -2,7 +2,6 @@ import { DeckStateManager } from '../modules/DeckStateManager.js'; import { GameCreationStepManager } from '../modules/GameCreationStepManager.js'; import { injectNavbar } from '../modules/Navbar.js'; import createTemplate from '../view_templates/CreateTemplate.js'; -import { toast } from '../modules/Toast'; const create = () => { injectNavbar(); diff --git a/client/src/styles/game.css b/client/src/styles/game.css index ab35553..4d6708c 100644 --- a/client/src/styles/game.css +++ b/client/src/styles/game.css @@ -271,6 +271,10 @@ h1 { -moz-user-select: none; } +#game-role:active, #game-role-back:active { + filter: brightness(0.85); +} + .game-role-good { border: 5px solid #5469c5 !important; } diff --git a/server/api/AdminAPI.js b/server/api/AdminAPI.js index 1d4a786..5e2e89b 100644 --- a/server/api/AdminAPI.js +++ b/server/api/AdminAPI.js @@ -26,7 +26,7 @@ if (process.env.NODE_ENV.trim() === 'production') { router.use(cors(globals.CORS)); router.use((req, res, next) => { - req.accepts() + req.accepts(); if (isAuthorized(req)) { next(); } else { diff --git a/server/config/globals.js b/server/config/globals.js index 14a0535..b686fcb 100644 --- a/server/config/globals.js +++ b/server/config/globals.js @@ -13,7 +13,7 @@ const globals = { optionsSuccessStatus: 200 }, CONTENT_TYPE_VALIDATOR: (req, res, next) => { - req.accepts() + req.accepts(); if (req.is('application/json')) { next(); } else {