Skip to content

Commit b8aa4ee

Browse files
committed
feat: ✨ Move search button to sidebar
1 parent dd81915 commit b8aa4ee

File tree

10 files changed

+219
-129
lines changed

10 files changed

+219
-129
lines changed

Diff for: docs/node/index.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ This section provides instructions to help you build a **Fleek Network Node**, i
1515
To participate in the [alpha Testnet](/docs/roadmap), you can begin by setting up and running nodes. Check the [requirements](/docs/node/requirements) and find the [onboarding instructions](/docs/node/testnet-onboarding) to enable you to [install](/docs/node/install) a network node successfully.
1616
:::
1717

18-
# Node operator {#node-operator}
18+
## Node operator {#node-operator}
19+
1920
---
2021

2122
A **Node Operator** is represented as a system administrator who builds, installs or maintains one or many nodes in a server or more.

Diff for: sidebars.js

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const sidebars = {
2424
label: 'Learn',
2525
collapsed: true,
2626
collapsible: true,
27+
link: {type: 'doc', id: 'learn/index'},
2728
items: [
2829
'learn/index',
2930
'learn/the-network',
@@ -38,6 +39,7 @@ const sidebars = {
3839
label: 'Node',
3940
collapsed: true,
4041
collapsible: true,
42+
link: {type: 'doc', id: 'node/index'},
4143
items: [
4244
'node/index',
4345
'node/requirements',
@@ -71,6 +73,7 @@ const sidebars = {
7173
label: 'Open-source',
7274
collapsed: true,
7375
collapsible: true,
76+
link: {type: 'doc', id: 'Open-source/code-of-conduct'},
7477
items: [
7578
'Open-source/code-of-conduct',
7679
'Open-source/contributing',

Diff for: src/css/custom.css

+46-41
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
*/
66

77
/* You can override the default Infima variables here. */
8-
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap');
8+
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap");
99

1010
@font-face {
11-
font-family: 'Atyp';
12-
src: url('/fonts/AtypDisplay-Regular.woff2') format('woff2') font-weight 400;
13-
src: url('/fonts/AtypDisplay-Medium.woff2') format('woff2') font-weight 500;
14-
src: url('/fonts/AtypDisplay-Semibold.woff2') format('woff2') font-weight 600;
15-
src: url('/fonts/AtypDisplay-Bold.woff2') format('woff2') font-weight 700;
11+
font-family: "Atyp";
12+
src: url("/fonts/AtypDisplay-Regular.woff2") format("woff2") font-weight 400;
13+
src: url("/fonts/AtypDisplay-Medium.woff2") format("woff2") font-weight 500;
14+
src: url("/fonts/AtypDisplay-Semibold.woff2") format("woff2") font-weight 600;
15+
src: url("/fonts/AtypDisplay-Bold.woff2") format("woff2") font-weight 700;
1616
}
1717

1818
:root {
19-
--ifm-font-family-base: 'IBM Plex Mono', sans-serif; /* Set the default font to IBM Plex Sans */
19+
--ifm-font-family-base: "IBM Plex Mono", sans-serif; /* Set the default font to IBM Plex Sans */
2020
--ifm-color-primary: #000;
2121
--ifm-color-primary-dark: #000033;
2222
--ifm-color-primary-darkest: #0048f8;
@@ -29,16 +29,18 @@
2929
/* NEw COLORS */
3030
--background-color: #fff;
3131
--text-color: #202020;
32-
--link-active: #9E6C00;
32+
--link-active: #9e6c00;
3333
--neutral-6: #d9d9d9;
34-
34+
--neutral-7: #cecece;
35+
--neutral-11: #646464;
36+
3537
--ifm-navbar-background-color: var(--background-color);
3638
--ifm-navbar-link-color: var(--text-color);
3739
--ifm-navbar-link-hover-color: var(--link-active);
3840

3941
--ifm-menu-color: var(--text-color);
4042
--sidebar-menu-item_border: #d9d9d9;
41-
43+
4244
--ifm-color-primary-darker: var(--link-active);
4345

4446
--ifm-footer-link-color: var(--text-color);
@@ -49,10 +51,22 @@
4951
--ifm-pagination-nav-color-hover: var(--link-active);
5052
--ifm-font-weight-base: var(--ifm-font-weight-light);
5153
--ifm-heading-color: var(--text-color);
54+
--docsearch-searchbox-focus-background: var(--background-color) !important;
55+
--docsearch-modal-background: var(--background-color) !important;
56+
--docsearch-hit-background: var(--neutral-6) !important;
57+
--docsearch-hit-active-color: var(--link-active) !important;
58+
--docsearch-highlight-color: var(--text-color) !important;
59+
--docsearch-text-color: var(--text-color) !important;
60+
--docsearch-hit-color: var(--text-color) !important;
61+
--docsearch-muted-color: var(--text-color) !important;
62+
63+
--ifm-link-color: var(--text-color);
64+
--ifm-color-content-secondary: var(--text-color) !important;
65+
--docsearch-primary-color: var(--text-color) !important;
5266
}
5367

5468
/* For readability concerns, you should choose a lighter palette in dark mode. */
55-
[data-theme='dark'] {
69+
[data-theme="dark"] {
5670
--ifm-color-primary: #fff;
5771
--ifm-color-primary-dark: #98beff;
5872
--ifm-color-primary-darkest: #0048f8;
@@ -63,18 +77,13 @@
6377
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
6478
}
6579

66-
@import url('./navbar.css');
67-
@import url('./sidebar.css');
68-
@import url('./tags.css');
69-
@import url('./pagination-nav.css');
70-
@import url('./breadcrumbs.css');
71-
@import url('./typography.css');
72-
@import url('./toc.css');
73-
74-
:root {
75-
--docsearch-modal-background: #000 !important;
76-
--custom-color-gray-blue: rgb(62 72 105 / 37.5%);
77-
}
80+
@import url("./navbar.css");
81+
@import url("./sidebar.css");
82+
@import url("./tags.css");
83+
@import url("./pagination-nav.css");
84+
@import url("./breadcrumbs.css");
85+
@import url("./typography.css");
86+
@import url("./toc.css");
7887

7988
.main-wrapper a,
8089
.main-wrapper span,
@@ -92,16 +101,22 @@
92101
z-index: -1;
93102
}
94103

95-
html[data-theme='dark'] {
104+
html[data-theme="dark"] {
96105
background: var(--background-color);
97106
color: var(--text-color);
98107
}
99108

100-
[data-theme='dark'] .footer {
109+
[data-theme="dark"] .footer {
101110
background: transparent;
102111
border-top: 1px solid var(--neutral-6);
103112
}
104113

114+
div[class*="docRoot_node_modules-@docusaurus-theme-classic-lib-theme-DocRoot-Layout-styles-module"] {
115+
max-width: 1440px;
116+
margin: 0 auto;
117+
width: 100%;
118+
}
119+
105120
.alert {
106121
background: transparent;
107122
border: 1px solid var(--sidebar-menu-item_border);
@@ -135,10 +150,6 @@ div[class*=" searchLogoColumn"],
135150
display: none;
136151
}
137152

138-
div[class*="docItemContainer"] {
139-
padding: 20px;
140-
}
141-
142153
@media (min-width: 996px) {
143154
.footer .container {
144155
padding: 0;
@@ -156,8 +167,8 @@ div[class*="docItemContainer"] {
156167

157168
@media (max-width: 996px) {
158169
.footer__col {
159-
margin-bottom: 0;
160-
flex-basis: 0;
170+
margin-bottom: 0;
171+
flex-basis: 0;
161172
}
162173

163174
.footer__links {
@@ -166,11 +177,9 @@ div[class*="docItemContainer"] {
166177
padding-left: 4rem;
167178
}
168179

169-
170180
.footer__title {
171181
display: none;
172182
}
173-
174183
}
175184

176185
/* Main wrapper */
@@ -207,8 +216,7 @@ main > .container > .row {
207216
.DocSearch-Button:hover svg {
208217
opacity: 1;
209218
}
210-
§
211-
.DocSearch-Container > .DocSearch-Modal,
219+
§ .DocSearch-Container > .DocSearch-Modal,
212220
.DocSearch-Modal .DocSearch-Form {
213221
box-shadow: none;
214222
border: 1px solid var(--ifm-toc-border-color);
@@ -269,9 +277,7 @@ article h1,
269277
border-left-style: dashed;
270278
}
271279

272-
.markdown img
273-
274-
.table-of-contents li a:hover {
280+
.markdown img .table-of-contents li a:hover {
275281
text-decoration: underline;
276282
}
277283

@@ -293,8 +299,7 @@ article h1,
293299
text-transform: capitalize;
294300
}
295301

296-
297-
.youtube-player iframe {
302+
.youtube-player iframe {
298303
width: 100%;
299304
aspect-ratio: 16 / 9;
300305
}
@@ -305,4 +310,4 @@ article h1,
305310

306311
aside.theme-doc-sidebar-container {
307312
border-right: none;
308-
}
313+
}

Diff for: src/css/navbar.css

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
.navbar {
22
box-shadow: none;
3-
padding-top: 3rem;
4-
padding-bottom: 3rem;
3+
padding: 3rem 0.5rem;
4+
max-width: 1440px;
5+
margin: 0 auto;
6+
width: 100%;
57
}
68

79
.DocSearch-Modal .DocSearch-Footer,
@@ -11,22 +13,32 @@
1113

1214
.DocSearch-Button,
1315
.DocSearch-Button:hover {
16+
height: 34px;
1417
border-radius: 0px;
1518
color: var(--text-color);
1619
border: 1px solid var(--text-color);
1720
background: var(--background-color);
21+
box-shadow: none !important;
1822

1923
.DocSearch-Search-Icon {
2024
color: var(--text-color);
2125
}
2226
}
2327

2428
@media (max-width: 996px) {
25-
.navbar__toggle+.navbar__brand {
29+
.navbar {
30+
padding: 1.5rem 1rem;
31+
}
32+
33+
.navbar__toggle + .navbar__brand {
2634
display: none;
2735
}
2836

29-
.navbar__items>div:nth-child(2) {
37+
.navbar__toggle {
38+
margin-right: 0;
39+
}
40+
41+
.navbar__items > div:nth-child(2) {
3042
display: flex;
3143
align-items: flex-end;
3244
justify-content: flex-end;
@@ -40,8 +52,9 @@
4052

4153
@media (min-width: 996px) {
4254
.navbar__items {
43-
justify-content: space-between;
55+
justify-content: center;
4456
height: 100%;
57+
gap: 18px;
4558
}
4659

4760
.navbar__items div:nth-child(1) {
@@ -52,4 +65,4 @@
5265
.navbar__items .DocSearch-Button {
5366
justify-content: flex-start;
5467
}
55-
}
68+
}

0 commit comments

Comments
 (0)