Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Commit 85f43d2

Browse files
authored
Hubert / fixing fontsizes and inputs staging (#277)
1 parent e5b46c6 commit 85f43d2

File tree

13 files changed

+202
-37
lines changed

13 files changed

+202
-37
lines changed

src/components/api-guide/ApiGuide/ApiGuide.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
[data-state~="responsive.mobileS"] {
4646
.apiGuideImage {
4747
overflow: auto;
48+
justify-content: unset;
4849
img {
4950
width: 90rem;
5051
}

src/components/api-guide/ApiGuide/ApiGuideTable/ApiGuideTable.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.apiGuideTable {
22
width: 75%;
3-
border-radius: 1.6rem;
3+
border-radius: 4px;
44
overflow: hidden;
55
border: 1px solid var(--gray-02);
66
th {

src/components/api-guide/ApiGuide/Navigator/Navigator.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
right: 40px;
77
z-index: 10;
88
box-sizing: border-box;
9-
padding: 1rem;
9+
padding: 1.6rem;
1010
margin: 0 auto 30px;
1111
.navigatorContent {
1212
display: flex;
@@ -26,7 +26,7 @@
2626
background-color: var(--gray-01);
2727
}
2828
&.navigatorSubLink {
29-
margin-left: 0.5rem;
29+
margin-left: 0.8rem;
3030
}
3131
}
3232
}

src/components/app-registration/AppManagement/AppManagement.module.scss

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
.manageApps {
22
display: none;
3+
34
table {
45
border-spacing: 0;
56
width: 100%;
67
padding: 0 5rem;
78
}
9+
810
thead {
911
background-color: var(--gray-02);
1012
height: 5rem;
1113
text-align: var(--text-align-left);
1214
}
15+
1316
th,
1417
td {
1518
padding: 1.6rem;
@@ -18,18 +21,22 @@
1821
overflow: hidden;
1922
text-overflow: ellipsis;
2023
}
24+
2125
td:last-child,
2226
th:last-child {
2327
white-space: nowrap;
2428
padding: 0 1rem;
2529
}
30+
2631
td:first-child,
2732
th:first-child {
2833
padding-left: 3.2rem;
2934
}
35+
3036
tbody tr:nth-child(even) {
3137
background-color: var(--gray-03);
3238
}
39+
3340
td:nth-child(2n + 3) {
3441
display: flex;
3542
flex-wrap: wrap;
@@ -84,6 +91,7 @@
8491

8592
.tooltip {
8693
position: relative;
94+
8795
.tooltipText {
8896
visibility: hidden;
8997
width: 13rem;
@@ -102,6 +110,7 @@
102110
margin-left: -5.5rem;
103111
opacity: 0;
104112
transition: opacity 1s;
113+
105114
&::after {
106115
content: '';
107116
position: absolute;
@@ -113,8 +122,10 @@
113122
border-color: var(--border-normal) transparent transparent transparent;
114123
}
115124
}
125+
116126
&:hover {
117127
transform: translateY(-2px);
128+
118129
.tooltipText {
119130
visibility: visible;
120131
opacity: 1;
@@ -126,9 +137,10 @@
126137
border: 0.16rem solid #d6dadb;
127138
border-radius: 0.4rem;
128139
padding: 0.32rem 0.32rem;
129-
font-size: 1.1rem;
140+
font-size: var(--text-size-xxs);
130141
}
142+
131143
.adminScope {
132144
border: 0.1rem solid var(--teal-01);
133145
color: var(--teal-01);
134-
}
146+
}

src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.module.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ fieldset .customTextInput:last-child {
6868
align-items: var(--text-align-center);
6969
justify-content: var(--text-align-center);
7070
width: 80%;
71+
input[type='number'],
72+
input[type='text'] {
73+
height: 40px;
74+
}
7175
input[type='number'] {
7276
appearance: none;
7377
&::-webkit-outer-spin-button,
@@ -215,6 +219,7 @@ input[type='checkbox'] {
215219
height: 1.1rem;
216220
border-radius: 2px;
217221
transition: background-color 0.25s, border-color 0.25s;
222+
top: 3px;
218223
z-index: 1;
219224
}
220225
input:checked + .customCheckbox {

src/components/app-registration/AppRegistration/AppRegistrationForm/AppRegistrationForm.tsx

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ export default function AppRegistrationForm() {
6565
<fieldset>
6666
<div className={styles.formHeaderContainer}>
6767
<h4 className={styles.registerFormHeader}>App information</h4>
68-
<div className={styles.description}>Paste your API token with the admin scope here.</div>
68+
<div className={styles.description}>
69+
<span>
70+
Paste your API token with the admin scope here.
71+
</span>
72+
</div>
6973
</div>
7074
<div className='api-token-wrapper'>
7175
<div className={styles.customTextInput} id='custom-text-input'>
@@ -121,8 +125,10 @@ export default function AppRegistrationForm() {
121125
<div className={styles.formHeaderContainer}>
122126
<h4 className={styles.registerFormHeader}>Markup</h4>
123127
<div className={styles.description}>
124-
You can earn commission by adding a markup to the price of each trade. Enter your
125-
markup percentage here.
128+
<span>
129+
You can earn commission by adding a markup to the price of each trade. Enter your
130+
markup percentage here.
131+
</span>
126132
</div>
127133
</div>
128134
<div className='input-container'>
@@ -166,8 +172,10 @@ export default function AppRegistrationForm() {
166172
<div className={styles.formHeaderContainer}>
167173
<h4 className={styles.registerFormHeader}>OAuth details</h4>
168174
<div className={styles.description}>
169-
This allows clients to log in to your app using their Deriv accounts without an API
170-
token.
175+
<span>
176+
This allows clients to log in to your app using their Deriv accounts without an API
177+
token.
178+
</span>
171179
</div>
172180
</div>
173181
<div className='input-container'>
@@ -233,7 +241,11 @@ export default function AppRegistrationForm() {
233241
<div>
234242
<div className={styles.formHeaderContainer}>
235243
<h4 className={styles.registerFormHeader}>Scope of authorisation</h4>
236-
<div className={styles.description}>Select the scope for your app:</div>
244+
<div className={styles.description}>
245+
<span>
246+
Select the scope for your app:
247+
</span>
248+
</div>
237249
</div>
238250
</div>
239251
<div className={styles.scopesField}>

src/components/app-registration/AppRegistration/RegisterAppTabs/RegisteredAppTabs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ export default function RegisteredAppTabs() {
88
id="register_button"
99
className="register-button"
1010
>
11-
Register your application
11+
<label>Register your application</label>
1212
</button>
1313
<button
1414
onClick={() => send("MANAGE_TOGGLE_TAB")}
1515
id="manage_button"
1616
className="manage-button"
1717
>
18-
Manage existing applications
18+
<label>Manage existing applications</label>
1919
</button>
2020
</div>
2121
);

src/components/docs/Docs/Sidebar/Sidebar.module.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@
185185
opacity: unset;
186186
font-size: var(--text-size-xs);
187187
color: var(--text-01);
188+
> span {
189+
font-size: var(--text-size-xs);
190+
}
188191
}
189192
.dropdownList {
190193
margin-top: 1.6rem;

src/components/global/Modal/Modal.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ export default function Modal({
3232
{type === "success" && <div className={styles.modalImageSuccess} />}
3333
{type === "warning" && <div className={styles.modalImageWarning} />}
3434
<div className={styles.modalTitle}>{title}</div>
35-
<div className={styles.modalDescription}>{description}</div>
35+
<div className={styles.modalDescription}>
36+
<span>
37+
{description}
38+
</span>
39+
</div>
3640
</div>
3741
<div className={styles.modalFooter}>
3842
<Button type="secondary" onClick={onSecondaryButtonClick}>

0 commit comments

Comments
 (0)