From 28f91b1294a9221d77dedeb70cf3831c686083e8 Mon Sep 17 00:00:00 2001 From: Hubert Koster Date: Wed, 9 Nov 2022 14:14:29 +0100 Subject: [PATCH 1/4] fixing fontsizes --- .../api-guide/ApiGuide/ApiGuide.module.scss | 1 + .../ApiGuideTable/ApiGuideTable.module.scss | 2 +- .../ApiGuide/Navigator/Navigator.module.scss | 4 ++-- .../AppManagement/AppManagement.module.scss | 2 +- .../AppRegistrationForm.module.scss | 5 ++++ .../AppRegistrationForm.tsx | 24 ++++++++++++++----- .../RegisterAppTabs/RegisteredAppTabs.tsx | 4 ++-- .../docs/Docs/Sidebar/Sidebar.module.scss | 4 +++- src/components/global/Modal/Modal.tsx | 6 ++++- src/main.jsx | 1 + src/routes-data/sidebar-routes.jsx | 2 +- src/themes.scss | 6 ++++- 12 files changed, 45 insertions(+), 16 deletions(-) diff --git a/src/components/api-guide/ApiGuide/ApiGuide.module.scss b/src/components/api-guide/ApiGuide/ApiGuide.module.scss index ad73eb5c..ce497eca 100644 --- a/src/components/api-guide/ApiGuide/ApiGuide.module.scss +++ b/src/components/api-guide/ApiGuide/ApiGuide.module.scss @@ -42,6 +42,7 @@ [data-state~="responsive.mobileS"] { .apiGuideImage { overflow: auto; + justify-content: unset; img { width: 90rem; } diff --git a/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss b/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss index cbbf4107..674ed99f 100644 --- a/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss +++ b/src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss @@ -1,6 +1,6 @@ .apiGuideTable { width: 75%; - border-radius: 1.6rem; + border-radius: 4px; overflow: hidden; border: 1px solid var(--gray-02); th { diff --git a/src/components/api-guide/ApiGuide/Navigator/Navigator.module.scss b/src/components/api-guide/ApiGuide/Navigator/Navigator.module.scss index d135aebf..a14a767c 100644 --- a/src/components/api-guide/ApiGuide/Navigator/Navigator.module.scss +++ b/src/components/api-guide/ApiGuide/Navigator/Navigator.module.scss @@ -6,7 +6,7 @@ right: 40px; z-index: 10; box-sizing: border-box; - padding: 1rem; + padding: 1.6rem; margin: 0 auto 30px; .navigatorContent { display: flex; @@ -26,7 +26,7 @@ background-color: var(--gray-01); } &.navigatorSubLink { - margin-left: 0.5rem; + margin-left: 0.8rem; } } } diff --git a/src/components/app-registration/AppManagement/AppManagement.module.scss b/src/components/app-registration/AppManagement/AppManagement.module.scss index 76212196..468cc96a 100644 --- a/src/components/app-registration/AppManagement/AppManagement.module.scss +++ b/src/components/app-registration/AppManagement/AppManagement.module.scss @@ -126,7 +126,7 @@ border: 0.1rem solid #d6dadb; border-radius: 0.4rem; padding: 0.2rem 0.2rem; - font-size: 11px; + font-size: var(--text-size-xxs); } .adminScope { border: 0.1rem solid var(--teal-01); diff --git a/src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.module.scss b/src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.module.scss index e5f7e29b..35ac629c 100644 --- a/src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.module.scss +++ b/src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.module.scss @@ -68,6 +68,10 @@ fieldset .customTextInput:last-child { align-items: center; justify-content: center; width: 80%; + input[type='number'], + input[type='text'] { + height: 40px; + } input[type='number'] { appearance: none; &::-webkit-outer-spin-button, @@ -215,6 +219,7 @@ input[type='checkbox'] { height: 11px; border-radius: 2px; transition: background-color 0.25s, border-color 0.25s; + top: 3px; z-index: 1; } input:checked + .customCheckbox { diff --git a/src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.tsx b/src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.tsx index 39849293..9075ce09 100644 --- a/src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.tsx +++ b/src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.tsx @@ -65,7 +65,11 @@ export default function AppRegistrationForm() {

App information

-
Paste your API token with the admin scope here.
+
+ + Paste your API token with the admin scope here. + +
@@ -121,8 +125,10 @@ export default function AppRegistrationForm() {

Markup

- You can earn commission by adding a markup to the price of each trade. Enter your - markup percentage here. + + You can earn commission by adding a markup to the price of each trade. Enter your + markup percentage here. +
@@ -166,8 +172,10 @@ export default function AppRegistrationForm() {

OAuth details

- This allows clients to log in to your app using their Deriv accounts without an API - token. + + This allows clients to log in to your app using their Deriv accounts without an API + token. +
@@ -233,7 +241,11 @@ export default function AppRegistrationForm() {

Scope of authorisation

-
Select the scope for your app:
+
+ + Select the scope for your app: + +
diff --git a/src/components/app-registration/AppRegistration/RegisterAppTabs/RegisteredAppTabs.tsx b/src/components/app-registration/AppRegistration/RegisterAppTabs/RegisteredAppTabs.tsx index 20ee4a95..8ef8efe3 100644 --- a/src/components/app-registration/AppRegistration/RegisterAppTabs/RegisteredAppTabs.tsx +++ b/src/components/app-registration/AppRegistration/RegisterAppTabs/RegisteredAppTabs.tsx @@ -8,14 +8,14 @@ export default function RegisteredAppTabs() { id="register_button" className="register-button" > - Register your application +
); diff --git a/src/components/docs/Docs/Sidebar/Sidebar.module.scss b/src/components/docs/Docs/Sidebar/Sidebar.module.scss index 5bca5043..1b007346 100644 --- a/src/components/docs/Docs/Sidebar/Sidebar.module.scss +++ b/src/components/docs/Docs/Sidebar/Sidebar.module.scss @@ -182,8 +182,10 @@ line-height: 24px; .dropdownBtn { opacity: unset; - font-size: 14px; color: var(--text-01); + > span { + font-size: var(--text-size-xs); + } } .dropdownList { margin-top: 16px; diff --git a/src/components/global/Modal/Modal.tsx b/src/components/global/Modal/Modal.tsx index f08fe315..3912727c 100644 --- a/src/components/global/Modal/Modal.tsx +++ b/src/components/global/Modal/Modal.tsx @@ -32,7 +32,11 @@ export default function Modal({ {type === "success" &&
} {type === "warning" &&
}
{title}
-
{description}
+
+ + {description} + +