From 3724a937b2cb671878847b5b28392bd9fd672b35 Mon Sep 17 00:00:00 2001 From: JeraldJF Date: Wed, 22 Apr 2026 12:29:15 +0530 Subject: [PATCH 01/12] feat: theme changes --- angular.json | 10 +- .../assets-browser.component.scss | 15 +- .../components/editor/editor.component.scss | 37 +- .../fancy-tree/fancy-tree.component.html | 4 +- .../fancy-tree/fancy-tree.component.scss | 23 +- .../components/header/header.component.scss | 6 +- .../question/question.component.scss | 26 +- .../lib/semantic/semantic-overrides.scss | 174 ++++ .../styles/_portal-theme-overrides.scss | 773 ++++++++++++++++++ src/assets/styles/_variables.scss | 30 +- src/assets/styles/components/_buttons.scss | 15 +- src/assets/styles/components/_modal.scss | 16 +- src/assets/styles/styles.scss | 3 +- web-component/package.json | 2 +- 14 files changed, 1063 insertions(+), 71 deletions(-) create mode 100644 src/assets/styles/_portal-theme-overrides.scss diff --git a/angular.json b/angular.json index 4eb5b4faf..a1fa1cda2 100644 --- a/angular.json +++ b/angular.json @@ -38,12 +38,12 @@ } ], "styles": [ - "node_modules/@project-sunbird/sunbird-quml-player-web-component/assets/quml-player/styles.css", "node_modules/@project-sunbird/sb-styles/assets/styles.scss", "src/styles.scss", "src/assets/lib/semantic/semantic.min.css", - "src/assets/styles/styles.scss", - "node_modules/font-awesome/css/font-awesome.css" + "node_modules/font-awesome/css/font-awesome.css", + "node_modules/@project-sunbird/sunbird-quml-player-web-component/assets/quml-player/styles.css", + "src/assets/styles/styles.scss" ], "scripts": [ "src/assets/libs/iziToast/iziToast.min.js", @@ -225,9 +225,9 @@ "src/assets/quml-styles/quml-carousel.css", "node_modules/@project-sunbird/sb-styles/assets/styles.scss", "src/assets/lib/semantic/semantic.min.css", - "src/assets/styles/styles.scss", "node_modules/font-awesome/css/font-awesome.css", - "node_modules/@project-sunbird/sunbird-quml-player-web-component/assets/quml-player/styles.css" + "node_modules/@project-sunbird/sunbird-quml-player-web-component/assets/quml-player/styles.css", + "src/assets/styles/styles.scss" ], "scripts": [ "node_modules/@project-sunbird/sunbird-file-upload-library/sunbird-file-upload-library.js", diff --git a/projects/questionset-editor-library/src/lib/components/assets-browser/assets-browser.component.scss b/projects/questionset-editor-library/src/lib/components/assets-browser/assets-browser.component.scss index 799c9782c..9609159e8 100644 --- a/projects/questionset-editor-library/src/lib/components/assets-browser/assets-browser.component.scss +++ b/projects/questionset-editor-library/src/lib/components/assets-browser/assets-browser.component.scss @@ -64,8 +64,9 @@ justify-content: center; flex-direction: column; margin: 0 auto; - background-color: #F5F9FC; - border: 1px dashed #80a7ce; + background-color: var(--primary-0); + border: 1px dashed var(--primary-200); + border-radius: 0.5rem; } .upload-file-description p { @@ -220,11 +221,11 @@ } .upload-image-modal-section { - border-radius: 4px; + border-radius: 0.5rem; width: 100%; min-height: 130px; - background: #F5F9FC; - border: 1px dashed #024f9d; + background: var(--primary-0); + border: 1px dashed var(--primary-300); } .upload-input-button { @@ -284,9 +285,9 @@ position: relative; margin-bottom: 0.5rem; .sb-form-control{ - border: 1px solid rgba(34,36,38,.15); + border: 1px solid var(--gray-100); width: 100%; - border-radius: .28571429rem; + border-radius: 0.5rem; box-shadow: 0 0 0 0 transparent inset; padding: .25rem .5rem!important; } diff --git a/projects/questionset-editor-library/src/lib/components/editor/editor.component.scss b/projects/questionset-editor-library/src/lib/components/editor/editor.component.scss index 7fe57c055..82e3557b7 100755 --- a/projects/questionset-editor-library/src/lib/components/editor/editor.component.scss +++ b/projects/questionset-editor-library/src/lib/components/editor/editor.component.scss @@ -32,7 +32,7 @@ lib-questionset-editor { .add-to-library { position: relative; z-index: 998 !important; - background: #e5edf5; + background: var(--primary-0); .sb-required { color: #ff4558; padding-left: 2px; @@ -75,11 +75,16 @@ lib-questionset-editor { select, .sb-textarea, .list-border { - border: 1px solid rgba(34, 36, 38, 0.15) !important; + border: 1px solid var(--gray-100) !important; padding: 0.85rem 0.5rem !important; - border-radius: 0.28571429rem; + border-radius: 0.5rem; font-size: 0.785rem !important; font-weight: 500; + transition: border-color 0.2s ease, box-shadow 0.2s ease; + &:focus { + border-color: var(--primary-300) !important; + box-shadow: 0 0 0 3px rgba(var(--rc-rgba-primary), 0.12) !important; + } // text-transform: capitalize; } select { @@ -123,8 +128,8 @@ lib-questionset-editor { } } .sb-keywordbox { - border: 1px solid rgba(34, 36, 38, 0.15) !important; - border-radius: 0.28571429rem; + border: 1px solid var(--gray-100) !important; + border-radius: 0.5rem; font-size: 0.785rem !important; font-weight: 500; padding: 0 !important; @@ -290,11 +295,15 @@ lib-questionset-editor { .ck.ck-editor__top .ck-sticky-panel .ck-toolbar { - border-left: 1px solid #c4c4c4 !important; - border-right: 1px solid #c4c4c4 !important; + border-left: 1px solid var(--gray-100) !important; + border-right: 1px solid var(--gray-100) !important; + border-top: 1px solid var(--gray-100) !important; border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; + border-top-left-radius: 0.5rem !important; + border-top-right-radius: 0.5rem !important; border-bottom: 0 !important; + background-color: var(--primary-0) !important; } sb-dynamic-richtext .ck-rounded-corners @@ -303,8 +312,14 @@ lib-questionset-editor { sb-dynamic-richtext .ck.ck-editor__main > .ck-editor__editable.ck-rounded-corners { - border: 1px solid #c4c4c4 !important; - border-color: var(--ck-color-base-border) !important; + border: 1px solid var(--gray-100) !important; + border-color: var(--gray-100) !important; + border-bottom-left-radius: 0.5rem !important; + border-bottom-right-radius: 0.5rem !important; + &:focus { + border-color: var(--primary-300) !important; + box-shadow: 0 0 0 3px rgba(var(--rc-rgba-primary), 0.12) !important; + } } @@ -551,8 +566,8 @@ lib-questionset-editor { .sb-timer-input{ width: 10rem; font-size: .785rem!important; - border: 1px solid rgba(34,36,38,.15)!important; - border-radius: .28571429rem; + border: 1px solid var(--gray-100)!important; + border-radius: 0.5rem; padding: 12px 10px; margin-right: 5px; height: 44px; diff --git a/projects/questionset-editor-library/src/lib/components/fancy-tree/fancy-tree.component.html b/projects/questionset-editor-library/src/lib/components/fancy-tree/fancy-tree.component.html index 2bd164966..d3a6fbe40 100755 --- a/projects/questionset-editor-library/src/lib/components/fancy-tree/fancy-tree.component.html +++ b/projects/questionset-editor-library/src/lib/components/fancy-tree/fancy-tree.component.html @@ -22,8 +22,8 @@ {{configService.labelConfig?.button_labels?.add_from_library_btn_label}} -