Skip to content

Commit eca41e4

Browse files
authored
Merge pull request #95 from HassanZahirnia/increase-docs-max-width
⚡ Improve Docs Layout, Sponsor Assets & Load Performance
2 parents 3d25e51 + ca0fffd commit eca41e4

23 files changed

+539
-151
lines changed

package-lock.json

Lines changed: 338 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"devDependencies": {
99
"@alpinejs/collapse": "^3.14.9",
1010
"@alpinejs/persist": "^3.14.9",
11+
"@docsearch/js": "^3.9.0",
1112
"@fontsource/poppins": "^5.2.5",
1213
"@tailwindcss/typography": "^0.5.16",
1314
"alpinejs": "^3.14.9",
-6.98 KB
Binary file not shown.
3.39 KB
Loading

public/img/sponsors/beyondcode.png

-8.92 KB
Binary file not shown.
5.5 KB
Loading

public/img/sponsors/borah.png

-156 KB
Binary file not shown.

public/img/sponsors/borah.webp

9.35 KB
Loading

resources/css/app.css

Lines changed: 0 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -177,73 +177,3 @@ nav > ul > li > ul {
177177
.prose pre code.torchlight .summary-caret {
178178
@apply mr-4;
179179
}
180-
181-
:root {
182-
--docsearch-container-background: rgba(0, 0, 0, 0.5);
183-
--docsearch-primary-color: #987af1;
184-
}
185-
186-
[id='docsearch'] {
187-
width: 100%;
188-
@apply md:w-auto;
189-
}
190-
191-
.DocSearch-Button {
192-
@apply m-0 flex items-center rounded-lg bg-gray-50 font-normal ring-1 ring-gray-700/40 transition duration-300 ease-out dark:bg-black/30;
193-
}
194-
195-
.DocSearch-Button:hover {
196-
box-shadow: none;
197-
@apply bg-gray-100 ring-gray-300 dark:bg-black/50 dark:ring-gray-700/70;
198-
}
199-
200-
.DocSearch-Button:hover .DocSearch-Button-Placeholder {
201-
@apply text-black dark:text-white;
202-
}
203-
204-
.DocSearch-Button .DocSearch-Search-Icon {
205-
height: 0.87rem;
206-
@apply text-gray-500 dark:text-white/60;
207-
}
208-
209-
@media (max-width: 768px) {
210-
.DocSearch-Button-Keys,
211-
.DocSearch-Button-Placeholder {
212-
display: block;
213-
}
214-
}
215-
216-
.DocSearch-Button-Placeholder {
217-
@apply hidden pr-20 text-sm text-black/60 min-[520px]:block dark:text-white/60;
218-
}
219-
220-
.DocSearch-Button-Keys {
221-
display: flex;
222-
min-width: auto;
223-
224-
@apply ml-1 mt-1 text-sm leading-none;
225-
}
226-
227-
.DocSearch-Button-Key {
228-
background: none;
229-
box-shadow: none;
230-
width: auto;
231-
232-
@apply mr-0.5 font-sans;
233-
}
234-
235-
.DocSearch-Modal {
236-
@apply text-black;
237-
}
238-
239-
.DocSearch-Screen-Icon {
240-
display: none;
241-
}
242-
243-
.DocSearch-Input {
244-
@apply focus-visible:outline-none;
245-
}
246-
247-
.DocSearch-Form {
248-
@apply rounded-lg;
249-
}

resources/css/docsearch.css

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
:root {
2+
--docsearch-container-background: rgba(0, 0, 0, 0.5);
3+
--docsearch-primary-color: #987af1;
4+
}
5+
6+
[id='docsearch'] {
7+
width: 100%;
8+
@apply md:w-auto;
9+
}
10+
11+
.DocSearch-Button {
12+
@apply m-0 flex items-center rounded-lg bg-gray-50 font-normal ring-1 ring-gray-700/40 transition duration-300 ease-out dark:bg-black/30;
13+
}
14+
15+
.DocSearch-Button:hover {
16+
box-shadow: none;
17+
@apply bg-gray-100 ring-gray-300 dark:bg-black/50 dark:ring-gray-700/70;
18+
}
19+
20+
.DocSearch-Button:hover .DocSearch-Button-Placeholder {
21+
@apply text-black dark:text-white;
22+
}
23+
24+
.DocSearch-Button .DocSearch-Search-Icon {
25+
height: 0.87rem;
26+
@apply text-gray-500 dark:text-white/60;
27+
}
28+
29+
@media (max-width: 768px) {
30+
.DocSearch-Button-Keys,
31+
.DocSearch-Button-Placeholder {
32+
display: block;
33+
}
34+
}
35+
36+
.DocSearch-Button-Placeholder {
37+
@apply hidden pl-1 pr-1 text-sm text-black/60 min-[400px]:block min-[520px]:pr-20 dark:text-white/60;
38+
}
39+
40+
.DocSearch-Button-Keys {
41+
@apply ml-1 mt-1 hidden min-w-[auto] text-sm leading-none min-[520px]:flex;
42+
}
43+
44+
.DocSearch-Button-Key {
45+
background: none;
46+
box-shadow: none;
47+
width: auto;
48+
49+
@apply mr-0.5 font-sans;
50+
}
51+
52+
.DocSearch-Modal {
53+
@apply text-black;
54+
}
55+
56+
.DocSearch-Screen-Icon {
57+
display: none;
58+
}
59+
60+
.DocSearch-Input {
61+
@apply focus-visible:outline-none;
62+
}
63+
64+
.DocSearch-Form {
65+
@apply rounded-lg;
66+
}

0 commit comments

Comments
 (0)