Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 82ef9fc

Browse files
committed
fix: page design issues
1 parent abfc777 commit 82ef9fc

File tree

3 files changed

+56
-54
lines changed

3 files changed

+56
-54
lines changed

src/features/Home/Benefits/Benefits.module.scss

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@
1212
width: 100%;
1313
flex-wrap: nowrap;
1414
margin-bottom: rem(6.4);
15-
gap: rem(3);
15+
gap: rem(20);
1616
display: flex;
17-
justify-content: space-evenly;
17+
justify-content: center;
1818
padding: 0 rem(1);
1919

2020
@media screen and (max-width: 992px) {
2121
margin-top: rem(3);
22+
gap: rem(8.8);
2223
}
2324

2425
@media screen and (max-width: 425px) {
2526
flex-direction: column;
27+
gap: rem(3);
2628
}
2729
}
2830

@@ -39,10 +41,6 @@
3941
margin: rem(1.6) 0;
4042
}
4143

42-
img {
43-
margin-bottom: rem(4);
44-
}
45-
4644
@media screen and (max-width: 992px) {
4745
flex-wrap: wrap;
4846
width: 90%;

src/features/Home/Benefits/__tests__/Benefits.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('Benefits', () => {
2323
expect(execution).toBeInTheDocument();
2424
});
2525
it('should render personalize your trading information', () => {
26-
const title = screen.getByText(/Personalize your trading$/i);
26+
const title = screen.getByText(/Personalise your trading$/i);
2727
const information = screen.getByText(/create charts and views/i);
2828

2929
expect(title).toBeInTheDocument();

src/styles/index.scss

Lines changed: 51 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
--ifm-menu-link-sublist-icon-2: url(/img/arrow_sidebar.svg);
3030
--ifm-menu-link-padding-vertical: 9px;
3131
--doc-sidebar-width: 283px !important;
32-
--search-result: #FF9BA3;
32+
--search-result: #ff9ba3;
3333
--schema-string: #21d169;
3434
--schema-array: #ff8fc8;
3535
--schema-number: #acb2ff;
@@ -204,61 +204,61 @@ div[class*='sidebarViewport'] {
204204
z-index: 1;
205205
}
206206
}
207-
&+ div[class*='searchBox'] {
208-
position: fixed;
209-
min-width: rem(32);
210-
max-width: rem(79.2);
211-
max-height: rem(48);
212-
top: 5%;
213-
width: 100%;
214-
height: 100%;
215-
border-radius: rem(1.6);
216-
left: 50%;
217-
transform: translateX(-50%);
218-
padding: 0;
219-
background-color: var(--ifm-color-white);
220-
221-
@media (max-width: 768px) {
222-
min-width: unset;
223-
max-width: unset;
224-
max-height: unset;
225-
border-radius: unset;
226-
top: 0;
227-
}
207+
& + div[class*='searchBox'] {
208+
position: fixed;
209+
min-width: rem(32);
210+
max-width: rem(79.2);
211+
max-height: rem(48);
212+
top: 5%;
213+
width: 100%;
214+
height: 100%;
215+
border-radius: rem(1.6);
216+
left: 50%;
217+
transform: translateX(-50%);
218+
padding: 0;
219+
background-color: var(--ifm-color-white);
220+
221+
@media (max-width: 768px) {
222+
min-width: unset;
223+
max-width: unset;
224+
max-height: unset;
225+
border-radius: unset;
226+
top: 0;
227+
}
228228

229-
span[class*='searchBar'] {
229+
span[class*='searchBar'] {
230+
width: 100%;
231+
span[class*='dropdownMenu'] {
230232
width: 100%;
231-
span[class*='dropdownMenu'] {
232-
width: 100%;
233-
max-width: unset;
234-
background-color: unset;
233+
max-width: unset;
234+
background-color: unset;
235+
box-shadow: none;
236+
padding: 0;
237+
div[class*='hitFooter'] a {
238+
color: var(--colors-coral500);
239+
}
240+
div[class*='suggestion'] {
235241
box-shadow: none;
236-
padding: 0;
237-
div[class*='hitFooter'] a {
238-
color: var(--colors-coral500);
242+
border-radius: 0;
243+
height: rem(4);
244+
span[class*='hitAction'] {
245+
display: none;
239246
}
240-
div[class*='suggestion'] {
241-
box-shadow: none;
242-
border-radius: 0;
243-
height: rem(4);
244-
span[class*='hitAction'] {
245-
display: none;
246-
}
247-
span[class*='hitWrapper'] {
248-
span[class*='hitTitle'],
249-
span[class*='hitPath'] {
250-
text-align: left;
251-
mark {
252-
color: var(--colors-coral500);
253-
}
247+
span[class*='hitWrapper'] {
248+
span[class*='hitTitle'],
249+
span[class*='hitPath'] {
250+
text-align: left;
251+
mark {
252+
color: var(--colors-coral500);
254253
}
255-
}
256-
&[class*='cursor'] {
257-
background-color: var(--search-result);
258254
}
259255
}
256+
&[class*='cursor'] {
257+
background-color: var(--search-result);
258+
}
260259
}
261260
}
261+
}
262262
.navbar__search {
263263
margin: 0;
264264
margin-top: rem(2);
@@ -320,6 +320,10 @@ div[class*='sidebarViewport'] {
320320
}
321321
}
322322

323+
.navbar__item {
324+
padding: rem(0.4) rem(1.6) rem(0.4) rem(1.6);
325+
}
326+
323327
main[class*='docMainContainer'] .container {
324328
padding-top: rem(4) !important; // Have to use important since docusaurus does the same.
325329
margin: 0 rem(4);

0 commit comments

Comments
 (0)