From ead041856424663ebe4112f111da74bbe4ea257d Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sat, 6 Jan 2024 03:15:02 +0300 Subject: [PATCH] Minor UI improvements and CSS refactoring --- .vscode/settings.json | 1 + .../src/app/Navigation/Navigation.tsx | 11 +- .../app/Navigation/ToggleNavigationButton.tsx | 2 +- .../frontend/src/components/AnimateFadeIn.tsx | 22 ++ .../src/components/ConstituentaBadge.tsx | 4 +- .../src/components/ConstituentaPicker.tsx | 5 +- .../{Help => }/ConstituentaTooltip.tsx | 0 .../src/components/DataTable/DataTable.tsx | 3 +- .../src/components/DataTable/TableBody.tsx | 4 +- .../src/components/DataTable/TableHeader.tsx | 4 +- .../frontend/src/components/GrammemeBadge.tsx | 2 +- .../src/components/Help/HelpButton.tsx | 5 +- .../src/components/Help/HelpExteor.tsx | 2 +- .../src/components/Help/HelpLibrary.tsx | 2 +- .../frontend/src/components/Help/HelpMain.tsx | 2 +- .../src/components/Help/HelpRSTemplates.tsx | 2 +- .../Help/HelpTerminologyControl.tsx | 2 +- .../src/components/InfoConstituenta.tsx | 4 +- .../frontend/src/components/InfoCstClass.tsx | 2 +- .../frontend/src/components/InfoCstStatus.tsx | 2 +- .../src/components/{Help => }/InfoTopic.tsx | 24 +- .../src/components/PDFViewer/PDFViewer.tsx | 2 +- .../src/components/RSInput/bracketMatching.ts | 2 +- .../src/components/RefsInput/tooltip.ts | 2 +- rsconcept/frontend/src/components/props.d.ts | 1 + .../frontend/src/components/ui/Checkbox.tsx | 20 +- .../src/components/ui/CheckboxTristate.tsx | 19 +- .../frontend/src/components/ui/Dropdown.tsx | 2 +- .../src/components/ui/DropdownButton.tsx | 2 +- .../src/components/ui/DropdownCheckbox.tsx | 2 +- .../frontend/src/components/ui/Modal.tsx | 2 +- .../src/components/ui/SelectMulti.tsx | 2 +- .../src/components/ui/SelectSingle.tsx | 2 +- .../frontend/src/components/ui/Tooltip.tsx | 2 + .../frontend/src/context/ThemeContext.tsx | 4 +- rsconcept/frontend/src/dialogs/DlgShowAST.tsx | 4 +- rsconcept/frontend/src/index.css | 365 +----------------- .../frontend/src/pages/CreateRSFormPage.tsx | 101 ++--- rsconcept/frontend/src/pages/HomePage.tsx | 8 +- .../src/pages/LibraryPage/LibraryPage.tsx | 5 +- .../src/pages/LibraryPage/ViewLibrary.tsx | 9 +- rsconcept/frontend/src/pages/LoginPage.tsx | 67 ++-- .../src/pages/ManualsPage/TopicsList.tsx | 1 - .../src/pages/ManualsPage/ViewTopic.tsx | 7 +- .../EditorRSExpression/ParsingResult.tsx | 2 +- .../EditorRSExpression/RSEditControls.tsx | 2 +- .../EditorRSExpression/StatusBar.tsx | 2 +- .../RSFormPage/EditorRSList/EditorRSList.tsx | 7 +- .../pages/RSFormPage/EditorRSList/RSTable.tsx | 5 +- .../EditorTermGraph/EditorTermGraph.tsx | 2 +- .../RSFormPage/EditorTermGraph/TermGraph.tsx | 2 +- .../RSFormPage/EditorTermGraph/ViewHidden.tsx | 4 +- .../frontend/src/pages/RSFormPage/RSTabs.tsx | 87 +++-- .../ViewConstituents/ConstituentsTable.tsx | 2 +- .../ViewConstituents/ViewConstituents.tsx | 2 +- rsconcept/frontend/src/pages/RegisterPage.tsx | 153 ++++---- .../src/pages/RestorePasswordPage.tsx | 5 +- .../src/pages/UserProfilePage/UserTabs.tsx | 5 +- .../UserProfilePage/ViewSubscriptions.tsx | 2 +- .../src/{utils => styling}/animations.ts | 22 ++ .../frontend/src/{utils => styling}/color.ts | 0 rsconcept/frontend/src/styling/constants.css | 54 +++ rsconcept/frontend/src/styling/imports.css | 5 + rsconcept/frontend/src/styling/layers.css | 40 ++ rsconcept/frontend/src/styling/overrides.css | 38 ++ rsconcept/frontend/src/styling/setup.css | 113 ++++++ rsconcept/frontend/src/styling/styles.css | 177 +++++++++ rsconcept/frontend/src/utils/codemirror.ts | 2 +- 68 files changed, 816 insertions(+), 653 deletions(-) create mode 100644 rsconcept/frontend/src/components/AnimateFadeIn.tsx rename rsconcept/frontend/src/components/{Help => }/ConstituentaTooltip.tsx (100%) rename rsconcept/frontend/src/components/{Help => }/InfoTopic.tsx (61%) rename rsconcept/frontend/src/{utils => styling}/animations.ts (91%) rename rsconcept/frontend/src/{utils => styling}/color.ts (100%) create mode 100644 rsconcept/frontend/src/styling/constants.css create mode 100644 rsconcept/frontend/src/styling/imports.css create mode 100644 rsconcept/frontend/src/styling/layers.css create mode 100644 rsconcept/frontend/src/styling/overrides.css create mode 100644 rsconcept/frontend/src/styling/setup.css create mode 100644 rsconcept/frontend/src/styling/styles.css diff --git a/.vscode/settings.json b/.vscode/settings.json index 911e1207..8ef7cfe8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -108,6 +108,7 @@ "signup", "Slng", "SMALLPR", + "Stylesheet", "tagset", "tailwindcss", "tanstack", diff --git a/rsconcept/frontend/src/app/Navigation/Navigation.tsx b/rsconcept/frontend/src/app/Navigation/Navigation.tsx index e92fad90..35f59cc3 100644 --- a/rsconcept/frontend/src/app/Navigation/Navigation.tsx +++ b/rsconcept/frontend/src/app/Navigation/Navigation.tsx @@ -6,7 +6,7 @@ import { IoLibrary } from 'react-icons/io5'; import { EducationIcon } from '@/components/Icons'; import { useConceptNavigation } from '@/context/NavigationContext'; import { useConceptTheme } from '@/context/ThemeContext'; -import { animateNavigation } from '@/utils/animations'; +import { animateNavigation } from '@/styling/animations'; import Logo from './Logo'; import NavigationButton from './NavigationButton'; @@ -23,7 +23,14 @@ function Navigation() { const navigateCreateNew = () => router.push('/library/create'); return ( -