From d2003c4f8de27bc946eabf3e99b3632ae3818e4f Mon Sep 17 00:00:00 2001 From: ashik-75 Date: Mon, 16 Oct 2023 16:50:29 +0600 Subject: [PATCH] update css --- .../FallbackComponent.module.scss | 3 +++ .../General/FallbackComponent/index.tsx | 3 ++- ui/src/data/menuData.ts | 4 +-- .../GithubIssue/GithubIssue.module.scss | 3 +++ ui/src/pages/Automation/GithubIssue/index.tsx | 3 ++- .../ColorPicker/ColorPicker.module.scss | 4 +++ .../components/ColorFormatTags.tsx | 3 ++- .../PrivacyPolicy/PrivacyPolicy.module.scss | 5 ++++ .../Footer/PrivacyPolicy/utils/constants.tsx | 3 ++- ui/src/pages/Home/Home.module.scss | 5 ++-- .../pages/Markdown/MdTableGenerator/index.tsx | 1 - .../TableOfContent/TableOfContent.module.scss | 4 +++ .../pages/Markdown/TableOfContent/index.tsx | 8 ++---- .../Tools/Diffchecker/Diffchecker.module.scss | 10 ++++++++ ui/src/pages/Tools/Diffchecker/index.tsx | 25 ++++++++++--------- .../pages/Tools/Sorting/Sorting.module.scss | 8 ++++++ ui/src/pages/Tools/Sorting/index.tsx | 8 ++---- ui/src/styles/typography.css | 10 -------- 18 files changed, 65 insertions(+), 45 deletions(-) create mode 100644 ui/src/components/General/FallbackComponent/FallbackComponent.module.scss create mode 100644 ui/src/pages/Automation/GithubIssue/GithubIssue.module.scss create mode 100644 ui/src/pages/Footer/PrivacyPolicy/PrivacyPolicy.module.scss diff --git a/ui/src/components/General/FallbackComponent/FallbackComponent.module.scss b/ui/src/components/General/FallbackComponent/FallbackComponent.module.scss new file mode 100644 index 00000000..e4867cb2 --- /dev/null +++ b/ui/src/components/General/FallbackComponent/FallbackComponent.module.scss @@ -0,0 +1,3 @@ +.fallback { + width: 500px; +} diff --git a/ui/src/components/General/FallbackComponent/index.tsx b/ui/src/components/General/FallbackComponent/index.tsx index 4f24b8a1..2e58eb6f 100644 --- a/ui/src/components/General/FallbackComponent/index.tsx +++ b/ui/src/components/General/FallbackComponent/index.tsx @@ -1,9 +1,10 @@ import { Alert, Button, Card } from "antd"; import React from "react"; +import style from "./FallbackComponent.module.scss"; const FallbackComponent: React.FC = () => { return ( - + { //? input state @@ -141,7 +142,7 @@ const GithubIssue: React.FC = () => { - + {isError && ( <> onSelect(option.value)} color={currentFormat === option.value ? "success" : "default"} key={option.value} - style={{ cursor: "pointer" }} + className={style.cf} > {option.label} diff --git a/ui/src/pages/Footer/PrivacyPolicy/PrivacyPolicy.module.scss b/ui/src/pages/Footer/PrivacyPolicy/PrivacyPolicy.module.scss new file mode 100644 index 00000000..bb6f3d90 --- /dev/null +++ b/ui/src/pages/Footer/PrivacyPolicy/PrivacyPolicy.module.scss @@ -0,0 +1,5 @@ +.pp { + &__list { + list-style-type: disc; + } +} diff --git a/ui/src/pages/Footer/PrivacyPolicy/utils/constants.tsx b/ui/src/pages/Footer/PrivacyPolicy/utils/constants.tsx index f3f36c60..4f79c9f7 100644 --- a/ui/src/pages/Footer/PrivacyPolicy/utils/constants.tsx +++ b/ui/src/pages/Footer/PrivacyPolicy/utils/constants.tsx @@ -1,4 +1,5 @@ import { ColumnsType } from "antd/es/table"; +import style from "pages/Footer/PrivacyPolicy/PrivacyPolicy.module.scss"; interface PurposeTableDataType { purpose: string; @@ -71,7 +72,7 @@ const ACTIVITY_COLUMNS: ColumnsType = [ dataIndex: "categories", key: "categories", render: (categories: string[]) => ( -
    +
      {categories.map((cat) => (
    • {cat}
    • ))} diff --git a/ui/src/pages/Home/Home.module.scss b/ui/src/pages/Home/Home.module.scss index 34b206b4..563e8cbb 100644 --- a/ui/src/pages/Home/Home.module.scss +++ b/ui/src/pages/Home/Home.module.scss @@ -6,14 +6,14 @@ &__container { display: flex; flex-direction: column; - gap: 50px; + gap: var(--bt-size-50); } &__hero { display: flex; flex-direction: row; justify-content: space-between; - gap: 100px; + gap: var(--bt-size-100); &_text { display: flex; flex: 2; @@ -23,7 +23,6 @@ gap: var(--bt-size-10); &_title { text-align: left; - // font-family: var(--font-pixelify-sans); } &_paragraph { text-align: left; diff --git a/ui/src/pages/Markdown/MdTableGenerator/index.tsx b/ui/src/pages/Markdown/MdTableGenerator/index.tsx index c36776a8..21919d96 100644 --- a/ui/src/pages/Markdown/MdTableGenerator/index.tsx +++ b/ui/src/pages/Markdown/MdTableGenerator/index.tsx @@ -85,7 +85,6 @@ const TableGenerator: React.FC = () => { value={output} onChange={(val) => setOutput(val || "")} height="100%" - style={{ fontSize: "52" }} /> diff --git a/ui/src/pages/Markdown/TableOfContent/TableOfContent.module.scss b/ui/src/pages/Markdown/TableOfContent/TableOfContent.module.scss index da51aa47..034be762 100644 --- a/ui/src/pages/Markdown/TableOfContent/TableOfContent.module.scss +++ b/ui/src/pages/Markdown/TableOfContent/TableOfContent.module.scss @@ -14,4 +14,8 @@ margin-top: var(--bt-size-24); } } + + &__textarea { + height: calc(100dvh - 290px) !important; + } } diff --git a/ui/src/pages/Markdown/TableOfContent/index.tsx b/ui/src/pages/Markdown/TableOfContent/index.tsx index 84b0b5bd..8de8c479 100644 --- a/ui/src/pages/Markdown/TableOfContent/index.tsx +++ b/ui/src/pages/Markdown/TableOfContent/index.tsx @@ -116,9 +116,7 @@ const TableOfContent: React.FC = () => {