From a4bc66c61d3aa62252427edff9619349d15b5e45 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Wed, 19 Apr 2023 12:36:53 +0200 Subject: [PATCH] Add ESC handling --- frontend/src/QuizCard.svelte | 7 ++++--- frontend/src/QuizCardList.svelte | 17 +++++++++++++++-- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/frontend/src/QuizCard.svelte b/frontend/src/QuizCard.svelte index e0214ef..c299ace 100644 --- a/frontend/src/QuizCard.svelte +++ b/frontend/src/QuizCard.svelte @@ -13,16 +13,17 @@ padding: 20px; color: #fff; font-family: Arial, sans-serif; - width: 300px; +/* width: 300px;*/ margin: 10px; + padding: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .card:hover { background-color: #444; cursor: pointer; - transform: scale(1.05); - transition: all 0.3s ease; + /* transform: scale(1.05); */ + /* transition: all 0.3s ease; */ } .question { diff --git a/frontend/src/QuizCardList.svelte b/frontend/src/QuizCardList.svelte index bfc6d5d..3005b15 100644 --- a/frontend/src/QuizCardList.svelte +++ b/frontend/src/QuizCardList.svelte @@ -1,4 +1,5 @@