From 1412310bc261dadccbf2770a6e0f16be0b32727d Mon Sep 17 00:00:00 2001 From: Settel Date: Mon, 29 Aug 2022 23:29:46 +0200 Subject: [PATCH] feat: add states (selectable, selected) to SourceCard --- client/src/assets/css/colors.scss | 12 +++++++++++ client/src/components/Playground.vue | 5 ++++- client/src/components/SourceCard.vue | 30 +++++++++++++++++++++++++--- 3 files changed, 43 insertions(+), 4 deletions(-) diff --git a/client/src/assets/css/colors.scss b/client/src/assets/css/colors.scss index 286ed64..4d58a8a 100644 --- a/client/src/assets/css/colors.scss +++ b/client/src/assets/css/colors.scss @@ -67,6 +67,18 @@ $quote-button-hover-background-color: $button-hover-background-color; $quote-button-hover-text-color: $quote-button-text-color; $quote-button-hover-border: none; +// Source Card +$sourcecard-background-color: $background-primary-color; +$sourcecard-text-color: $text-primary-color; +$sourcecard-border: 3px solid #ffffff; +$sourcecard-hover-background-color: #ffffff; +$sourcecard-hover-text-color: $background-primary-color; +$sourcecard-hover-border: 3px solid #ffffff; +$sourcecard-selected-background-color: #ffffff; +$sourcecard-selected-text-color: $background-primary-color; +$sourcecard-selected-border: 3px solid #ffffff; +$sourcecard-selected-box-shadow: 0 0 10px #ffffff; + // Engine Debug $debug-background-color: lighten($background-primary-color, 10%); $debug-border: none; diff --git a/client/src/components/Playground.vue b/client/src/components/Playground.vue index db120fd..4aae135 100644 --- a/client/src/components/Playground.vue +++ b/client/src/components/Playground.vue @@ -2,7 +2,8 @@
- +
@@ -16,6 +17,7 @@ \ No newline at end of file