Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/docs/src/components/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ pre[class*='language-'] {
}

html {
--qwik-blue: #0093ee;
--qwik-dark-blue: #006eb3;
--qwik-purple: #5249d9;

--header-height: 56px;
--repl-tab-height: 56px;
--repl-tab-bg-color: #daf0ff;
Expand Down
6 changes: 3 additions & 3 deletions packages/docs/src/components/content-nav/content-nav.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.content-nav .prev,
.content-nav .next {
position: relative;
background-color: #01b9ff;
border: 1px solid #01b9ff;
background-color: var(--qwik-purple);
border: 1px solid var(--qwik-purple);
border-radius: 5px;
padding: 6px 16px;
text-decoration: none;
Expand All @@ -25,7 +25,7 @@
.content-nav .prev:hover,
.content-nav .next:hover {
background-color: white;
color: #01b9ff;
color: var(--qwik-purple);
}

.content-nav .prev {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/header/header.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
header {
color: white;
background: #0099ff;
background: var(--qwik-blue);
box-shadow: 0px 2px 7px #0000003d;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const Header = component$(
</a>
</li>
<li>
<a href="https://discord.gg/Fd9Cwb3Z8D" target="_blank" onClickQrl={closeMenu}>
<a href="https://qwik.builder.io/chat" target="_blank" onClickQrl={closeMenu}>
<span class="md:hidden">Discord</span>
<span class="hidden md:block">
<DiscordLogo width={22} height={22} />
Expand Down
6 changes: 3 additions & 3 deletions packages/docs/src/components/on-this-page/on-this-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
.on-this-page a {
position: relative;
display: block;
color: #312bb2;
color: var(--qwik-dark-blue);
border: 0 solid #ddd;
border-left-width: 2px;
padding: 4px 2px 4px 8px;
Expand All @@ -25,8 +25,8 @@
}

.on-this-page a:hover {
background-color: #efeeff;
border-color: #312bb2;
background-color: #0093ee17;
border-color: var(--qwik-dark-blue);
}

.on-this-page svg {
Expand Down
5 changes: 3 additions & 2 deletions packages/docs/src/components/sidebar/sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

.menu h5 {
@apply font-semibold px-3 py-1 mb-1 rounded-md whitespace-nowrap;
color: #4f48d5;
color: var(--qwik-dark-blue);
font-weight: 800;
}

Expand All @@ -71,7 +71,8 @@
}

.menu li a {
@apply py-1 pl-3 block rounded-md text-slate-900 hover:bg-slate-200;
@apply py-1 pl-3 block text-slate-900 hover:bg-slate-200;
border-radius: 3px;
}

.menu li a.is-active {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const SideBar = component$(
<li>
<a
href={item.href}
class={{ 'is-active': page.url.pathname === item.href }}
class={{ 'is-active': new URL(page.url).pathname === item.href }}
>
{item.text}
</a>
Expand Down
4 changes: 4 additions & 0 deletions packages/docs/src/entry.cloudflare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export const onRequestGet: PagesFunction = async ({ request, next, waitUntil })
return Response.redirect(new URL('/docs/overview', url), 302);
}

if (url.pathname === '/docs') {
return Response.redirect(new URL('/docs/overview', url));
}

if (url.pathname === '/examples') {
return Response.redirect(new URL('/examples/introduction/hello-world', url));
}
Expand Down
7 changes: 3 additions & 4 deletions packages/docs/src/layouts/docs/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
/* medium */

/* large */
@apply lg:pt-5 lg:ml-[19rem] lg:mr-[2rem] lg:px-0;
@apply lg:pt-5 lg:ml-[19rem] lg:mr-[4rem] lg:px-0;

/* xlarge */
@apply xl:pr-16 xl:mr-[16.5rem];
}

.docs article a {
color: #312bb2;
color: var(--qwik-dark-blue);
text-decoration: underline;
}

Expand All @@ -32,7 +32,6 @@
@apply text-slate-900;
@apply text-5xl font-bold;
@apply mb-6;
@apply mt-6;
@apply relative;
}

Expand All @@ -46,7 +45,7 @@
@apply mt-8;
@apply mb-4;
@apply relative;
scroll-margin-top: 70px;
scroll-margin-top: 80px;
}

.docs article h2 {
Expand Down