From 198c88f4ace21cf7b6f92ae0374d26b704ab8752 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Fri, 4 Aug 2023 12:41:12 +0100 Subject: [PATCH] Improve dark mode of icons + inputs improvements --- .../Apps/components/QandA/index.svelte | 29 +++++------ src/lib/components/Apps/index.svelte | 8 +-- src/lib/components/Buttons/Close/index.svelte | 4 +- .../components/Buttons/Delete/index.svelte | 2 +- src/lib/components/Buttons/Send/index.svelte | 2 +- .../Lesson/Exercise/EditMode.svelte | 49 ++++++------------- .../components/Lesson/Exercise/index.svelte | 16 +++--- .../Course/components/Navigation/index.svelte | 8 +-- .../components/Editor/ReviewFormEditor.svelte | 18 ++----- .../components/Editor/ReviewsForm.svelte | 30 ++++-------- .../components/Editor/index.svelte | 33 ++++++------- .../Courses/components/Card/index.svelte | 24 +++------ src/lib/components/Expandable/index.svelte | 15 ++---- src/lib/components/Form/Checkbox.svelte | 18 ++++--- src/lib/components/Form/RadioItem.svelte | 17 ++++--- src/lib/components/Form/TextArea.svelte | 31 +++--------- src/lib/components/Form/TextField.svelte | 17 ++++--- src/lib/components/LMS/SideBar.svelte | 14 ++---- src/lib/components/Navigation/index.svelte | 15 ++---- .../components/Org/Quiz/Play/Preview.svelte | 4 +- .../components/Org/Quiz/QuizQuestion.svelte | 9 ++-- src/lib/components/Org/SideBar.svelte | 33 +++++-------- src/lib/components/Snackbar/index.svelte | 8 +-- src/routes/+page.svelte | 22 ++++----- src/routes/courses/[id]/lessons/+page.svelte | 14 +++--- src/routes/courses/[id]/people/+page.svelte | 45 +++++------------ src/routes/dashboard/+page.svelte | 2 +- src/routes/org/[slug]/+page.svelte | 4 +- .../org/[slug]/community/[slug]/+page.svelte | 42 ++++++---------- .../org/[slug]/community/ask/+page.svelte | 6 +-- .../org/[slug]/quiz/[slug]/+page.svelte | 42 +++++----------- 31 files changed, 211 insertions(+), 370 deletions(-) diff --git a/src/lib/components/Apps/components/QandA/index.svelte b/src/lib/components/Apps/components/QandA/index.svelte index 3b5abe3c..faffa510 100644 --- a/src/lib/components/Apps/components/QandA/index.svelte +++ b/src/lib/components/Apps/components/QandA/index.svelte @@ -16,7 +16,7 @@ name: 'Evgeniy', question: "I'am looking at this and it looks great", vote: 1, - answered: false, + answered: false }, { id: 2, @@ -24,22 +24,22 @@ question: 'Thanks for the feedback, what do you think about my website. https://rotimibest.com', vote: 4, - answered: false, + answered: false }, { id: 3, name: 'Vitalii Marushko', question: 'Всем привет', vote: 20, - answered: false, + answered: false }, { id: 4, name: 'Natasha', question: 'Привет Виталий', vote: 0, - answered: false, - }, + answered: false + } ]; function handleSend() { @@ -54,15 +54,15 @@ name: 'You', question, vote: 0, - answered: false, - }, + answered: false + } ]; question = null; setTimeout(() => { bodyRef.scrollTo({ - top: bodyRef.scrollHeight, + top: bodyRef.scrollHeight }); }, 100); } @@ -104,22 +104,15 @@ {@html marked(question.question)} - {/each} diff --git a/src/lib/components/Form/TextField.svelte b/src/lib/components/Form/TextField.svelte index e0361932..8a3cec06 100644 --- a/src/lib/components/Form/TextField.svelte +++ b/src/lib/components/Form/TextField.svelte @@ -11,7 +11,7 @@ export let className = ''; export let inputClassName = ''; export let labelClassName = ''; - export let bgColor = 'bg-gray-200'; + export let bgColor = 'bg-gray-50 focus:bg-blue-50 dark:bg-white'; export let type = 'text'; export let isPassword = false; export let autoFocus = false; @@ -27,6 +27,7 @@ let ref; let fieldNode; + let focusClass = ''; function typeAction(node) { node.type = type; @@ -56,21 +57,18 @@