aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/chatboxcomponents
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-02-25 01:03:25 -0500
committerbobzel <zzzman@gmail.com>2025-02-25 01:03:25 -0500
commit515707c4561eb526426b8fa07dd50bd499fb91cc (patch)
treef4cbc69387da19add6dbc88acecbcdbdca575039 /src/client/views/nodes/chatbot/chatboxcomponents
parent30b07ed24fbe5e6d49741bc63031807408cd4a0c (diff)
added a hideUI option to hide buttons. fixed a mess of runtime warnings mostly related to how scss files can be included in each other
Diffstat (limited to 'src/client/views/nodes/chatbot/chatboxcomponents')
-rw-r--r--src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.scss11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.scss b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.scss
index 9cf760a12..3d27fa887 100644
--- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.scss
+++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.scss
@@ -1,3 +1,4 @@
+@use 'sass:color';
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
$primary-color: #3f51b5;
@@ -68,7 +69,7 @@ $transition: all 0.2s ease-in-out;
&:focus {
outline: none;
border-color: $primary-color;
- box-shadow: 0 0 0 2px rgba($primary-color, 0.2);
+ box-shadow: 0 0 0 2px color.adjust($primary-color, $alpha: -0.8);
}
&:disabled {
@@ -92,11 +93,11 @@ $transition: all 0.2s ease-in-out;
transition: $transition;
&:hover {
- background-color: darken($primary-color, 10%);
+ background-color: color.adjust($primary-color, $lightness: -10%);
}
&:disabled {
- background-color: lighten($primary-color, 20%);
+ background-color: color.adjust($primary-color, $lightness: 20%);
cursor: not-allowed;
}
@@ -178,7 +179,7 @@ $transition: all 0.2s ease-in-out;
margin-bottom: 16px;
&:hover {
- background-color: rgba($primary-color, 0.1);
+ background-color: color.adjust($primary-color, $alpha: -0.9);
}
}
@@ -220,7 +221,7 @@ $transition: all 0.2s ease-in-out;
transition: $transition;
&:hover {
- background-color: rgba($primary-color, 0.2);
+ background-color: color.adjust($primary-color, $alpha: -0.8);
color: #fff;
}
}