Skip to content

Commit cfe17fa

Browse files
authored
Merge pull request #1157 from doeixd/main
Misc visual improvements
2 parents c8cc62d + 9365cc9 commit cfe17fa

File tree

2 files changed

+48
-16
lines changed

2 files changed

+48
-16
lines changed

docs/app.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function SocialIcon(props) {
6262
<li class="mx-2">
6363
<a href={props.href} rel="noopener" target="_blank">
6464
<span class="sr-only">{props.alt}</span>
65-
<svg viewBox="0 0 24 24" class="h-8 opacity-60 transition hover:opacity-50">
65+
<svg viewBox="0 0 24 24" class="h-6 opacity-60 transition hover:opacity-80 opacity-40">
6666
<path fill="currentColor" d={props.icon} />
6767
</svg>
6868
</a>
@@ -72,23 +72,23 @@ function SocialIcon(props) {
7272

7373
function Header() {
7474
return (
75-
<header class="relative z-10 col-span-3 col-start-1 row-start-1 flex px-8 py-2 shadow-md md:z-50">
75+
<header class="relative z-10 col-span-3 col-start-1 row-start-1 flex px-8 py-2 shadow-md shadow-gray-100 md:z-50">
7676
<div class="flex w-full justify-between">
7777
<a href="/">
7878
<div class="flex space-x-3">
79-
<img src="/logo.svg" class="h-9 w-9" />
80-
<div class="mt-2 hidden text-xl uppercase md:block">
81-
<span>Solid</span>
82-
<span class="text-solid-medium ml-1 font-semibold">Start</span>
79+
<img src="/logo.svg" class="h-9 w-9 scale-[0.94] translate-y-[2px] translate-x-[4px]" />
80+
<div class="mt-2 hidden text-xl uppercase md:block -translate-y-[1px]">
81+
<span class="tracking-wide">Solid</span>
82+
<span class="text-solid-medium ml-1.5 font-semibold tracking-wide">Start</span>
8383
</div>
8484
</div>
8585
</a>
8686
<div class="flex space-x-5">
8787
<div class="flex items-center">
88-
<a href="https://www.solidjs.com" target="_blank" class="flex items-center space-x-5">
88+
<a href="https://www.solidjs.com" target="_blank" class="flex items-center space-x-5 hover:text-sky-700">
8989
solidjs.com
9090
<svg
91-
class="z-50 -mt-1 h-5 opacity-30 ltr:ml-1 rtl:mr-1"
91+
class="z-50 -mt-1 h-5 opacity-30 ltr:ml-1 rtl:mr-1 scale-75"
9292
fill="none"
9393
viewBox="0 0 24 24"
9494
stroke="currentColor"
@@ -102,7 +102,7 @@ function Header() {
102102
</svg>
103103
</a>
104104
</div>
105-
<ul class="flex">
105+
<ul class="flex items-center">
106106
<For each={socials} children={social => <SocialIcon {...social} />} />
107107
</ul>
108108
</div>
@@ -172,8 +172,8 @@ function Nav() {
172172
<div id="docsearch" />
173173
<For each={data()}>
174174
{r => (
175-
<ul>
176-
<span class="mb-8 flex w-full flex-wrap content-center justify-between space-x-2 border-b border-gray-200 p-2 py-2 text-left text-xl transition hover:text-gray-400 dark:border-gray-500 dark:text-white">
175+
<ul class="first:pt-10-">
176+
<span class="mb-3.5 pt-8 pb-3.5 flex w-full flex-wrap content-center justify-between space-x-2 border-b border-gray-200 p-2 py-2 text-left text-xl transition dark:border-gray-500 dark:text-white">
177177
{r.title}
178178
</span>
179179
<Show
@@ -183,7 +183,7 @@ function Nav() {
183183
<For each={[...r.subsection.values()]}>
184184
{s => (
185185
<ul class="ml-2 mt-4">
186-
<div class="text-md mb-3 font-bold text-gray-500">{s}</div>
186+
<div class="text-md mb-3 font-semibold text-gray-500 pt-1">{s}</div>
187187
<For each={r.filter(i => i.subsection === s)}>
188188
{({ title, path, href, frontMatter }) => (
189189
<li class="ml-2">
@@ -192,7 +192,7 @@ function Nav() {
192192
inactiveClass="text-gray-500"
193193
href={href}
194194
>
195-
<span class="ml-4 block break-words pb-2 text-sm hover:text-gray-500 dark:hover:text-gray-300">
195+
<span class="ml-4 block break-words pb-2 text-sm hover:text-slate-700 dark:hover:text-gray-300 hover:underline">
196196
{title}
197197
</span>
198198
</A>
@@ -215,11 +215,11 @@ function Nav() {
215215
</>
216216
}
217217
>
218-
<For each={r}>
218+
<For each={r.filter(i => !i.href.includes('index') )}>
219219
{({ title, path, href, frontMatter }) => (
220220
<li class="ml-2" classList={{ "text-slate-300": !frontMatter.active }}>
221221
<A activeClass="text-primary" inactiveClass="text-gray-500" href={href}>
222-
<span class="text-md block break-words py-1 font-semibold hover:text-gray-400 dark:text-gray-300 dark:hover:text-gray-400">
222+
<span class="text-md block break-words py-1 font-medium pl-1.5 hover:text-slate-700 hover:underline dark:text-gray-300 dark:hover:text-slate-400">
223223
{title}
224224
</span>
225225
</A>
@@ -261,7 +261,7 @@ export default function Root() {
261261
<div class="col-start-2 row-start-2 h-full overflow-auto">
262262
<div class="container h-full px-8 py-8">
263263
<Suspense>
264-
<main class="prose prose-md w-full max-w-none pb-10 pt-0 lg:px-10">
264+
<main class="prose prose-md w-full max-w-[69ch] pb-10 pt-0 lg:px-10 mx-auto">
265265
<MDXProvider
266266
components={{
267267
...components,

docs/components/index.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,32 @@ pre {
7373
color: #777 !important;
7474
}
7575

76+
.code-container {
77+
padding: 6px 2px;
78+
}
79+
80+
.prose p {
81+
padding-inline: 1.1px;
82+
}
83+
84+
.prose h2 {
85+
margin-top: 100px;
86+
font-size: 1.7rem;
87+
letter-spacing: 0.1px;
88+
padding-bottom: 22px;
89+
}
90+
91+
.prose h1 {
92+
font-size: 1.8rem;
93+
letter-spacing: 0.1px;
94+
padding-bottom: 22px;
95+
}
96+
97+
.prose h3 {
98+
font-size: 1.4rem;
99+
margin-top: 50px
100+
}
101+
76102
.dark .prose h2 code {
77103
color: #aaa !important;
78104
}
@@ -165,6 +191,12 @@ pre {
165191
}
166192
*/
167193

194+
div + pre[filename] {
195+
border-top-left-radius: 0;
196+
border-top-right-radius: 0;
197+
margin-top: 0;
198+
}
199+
168200
/* Chrome, Safari and Opera */
169201
.no-scrollbar::-webkit-scrollbar {
170202
display: none;

0 commit comments

Comments
 (0)