various small fixes
- light theme footer css - fixed l/r overlay css - fixed discolored generics - fixed scroll margin - elements selected by url now display as hovered - fixed top padding in mobile layout - fixed padding for import string on type pages - fixed padding on module listing pages - fixed link clickable areas on left nav
This commit is contained in:
parent
00feaca3d5
commit
e20c5126f9
|
@ -102,13 +102,11 @@ export const Tree: Component<TreeProps> = props => {
|
|||
: ""
|
||||
}
|
||||
>
|
||||
<p>
|
||||
<a
|
||||
href={`/docs/types/${submodule.type}/${submodule.name}`}
|
||||
>
|
||||
{submodule.name}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
</For>
|
||||
|
|
|
@ -41,8 +41,11 @@ const { propsKeys, propsData } = Astro.props;
|
|||
<Tag client:idle/>
|
||||
{ item }<span class="type-datatype">: <a
|
||||
href={typeLink}
|
||||
target="_blank"
|
||||
>{ linkText }</a>{genericType && (<a href={genericTypeLink} class="type-datatype generic-type"><{genericType}></a>)}</span>
|
||||
>{ linkText }</a>{genericType &&
|
||||
(<span class="type-datatype"><</span><a
|
||||
href={genericTypeLink}>{genericType}</a
|
||||
><span class="type-datatype">></span>
|
||||
)}</span>
|
||||
</p>
|
||||
{
|
||||
propData.flags && propData.flags.length > 0 ? (
|
||||
|
|
|
@ -57,9 +57,8 @@ const details = data.details
|
|||
<hr />
|
||||
<h2 class="typedocs-title" data-pagefind-weight="10">
|
||||
{route.name}:
|
||||
{data.super ? (
|
||||
{data.super?.name ? (
|
||||
<a
|
||||
target="_blank"
|
||||
href={superLink!}
|
||||
data-pagefind-ignore
|
||||
>
|
||||
|
@ -70,11 +69,11 @@ const details = data.details
|
|||
)
|
||||
}
|
||||
</h2>
|
||||
<code class="type-module" data-pagefind-ignore>import {data.module}</code>
|
||||
{
|
||||
route && data ? (
|
||||
<section class="typedocs-data typedata">
|
||||
<subheading class="typedocs-subheading">
|
||||
<code class="type-module" data-pagefind-ignore>import {data.module}</code>
|
||||
{data.flags ? (
|
||||
<div class="type-flags" data-pagefind-ignore>{data.flags.map(flag => (
|
||||
<span class="type-flag">
|
||||
|
|
|
@ -34,8 +34,11 @@ const details = route.data.details
|
|||
title={route.type + " Type Documentation"}
|
||||
description="Quickshell Type Documentation"
|
||||
>
|
||||
<div class="docs-content">
|
||||
<hr />
|
||||
<h2 class="typedocs-title">{route.type[0].toUpperCase() + route.type.slice(1)} Definitions</h2>
|
||||
<section>
|
||||
<span>{route.data.description}</span>
|
||||
<div class="root-nav" data-pagefind-ignore>
|
||||
{route.data.contains!.map((childName:string) =>
|
||||
(
|
||||
|
@ -50,5 +53,7 @@ const details = route.data.details
|
|||
)
|
||||
)}
|
||||
</div>
|
||||
{details ? <span class="parsedMD" set:html={details}/> : (<span class="toparse">{route.data.description}</span>)}
|
||||
{details && <span class="parsedMD" set:html={details}/>}
|
||||
</section>
|
||||
</div>
|
||||
</DocsLayout>
|
||||
|
|
|
@ -56,8 +56,10 @@ html {
|
|||
--nav-selected-bkg: var(--blue) 100 90;
|
||||
--nav-selected-text: var(--blue) 60 60;
|
||||
--nav-indicator-bkg: var(--blue) 45 80;
|
||||
--overlay-bkg: var(--blue) 10 93;
|
||||
--overlay-bkg: var(--blue) 25 93;
|
||||
--overlay-bkg-border: var(--blue) 10 75;
|
||||
--footer-bkg: var(--blue) 32 92;
|
||||
--footer-bkg-border: var(--blue) 32 84;
|
||||
}
|
||||
|
||||
html.dark {
|
||||
|
@ -103,13 +105,10 @@ html.dark {
|
|||
--nav-selected-bkg: var(--blue) 40 13;
|
||||
--nav-selected-text: var(--blue) 100 70;
|
||||
--nav-indicator-bkg: var(--blue) 30 30;
|
||||
--overlay-bkg: var(--blue) 66 7;
|
||||
--overlay-bkg-1: var(--blue) 66 9;
|
||||
--overlay-bkg-2: var(--blue) 60 12;
|
||||
--overlay-bkg-green: var(--green) 66 7;
|
||||
--overlay-bkg-green-1: var(--green) 66 9;
|
||||
--overlay-bkg-green-2: var(--green) 45 21;
|
||||
--overlay-bkg-border: var(--blue) 17 13;
|
||||
--overlay-bkg: var(--blue) 75 5;
|
||||
--overlay-bkg-border: var(--blue) 45 15;
|
||||
--footer-bkg: var(--blue) 66 5;
|
||||
--footer-bkg-border: var(--blue) 75 21;
|
||||
}
|
||||
|
||||
* {
|
||||
|
|
|
@ -5,16 +5,13 @@
|
|||
border-radius: 6px;
|
||||
border: 1px solid hsla(var(--blue) 10 15 / 0.6);
|
||||
margin-top: 1rem;
|
||||
margin-inline: 1.272rem;
|
||||
|
||||
& .root-nav-entry {
|
||||
position: relative;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: 42px;
|
||||
text-wrap: pretty;
|
||||
padding: 0.5rem 1rem;
|
||||
padding-top: 1.5rem;
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid hsla(var(--blue) 10 15 / 0.6);
|
||||
|
@ -239,7 +236,7 @@ html.dark .typeprops {
|
|||
& .typeprop-root {
|
||||
border: 1px solid hsla(var(--prop-color) / 0.3);
|
||||
|
||||
&:hover {
|
||||
&:hover, &:target {
|
||||
border: 1px solid hsla(var(--prop-color) / 0.6);
|
||||
}
|
||||
}
|
||||
|
@ -281,7 +278,7 @@ html.dark .typefuncs {
|
|||
& .typefunc-root {
|
||||
border: 1px solid hsla(var(--func-color) / 0.3);
|
||||
|
||||
&:hover {
|
||||
&:hover, &:target {
|
||||
border: 1px solid hsla(var(--func-color) / 0.6);
|
||||
}
|
||||
}
|
||||
|
@ -333,7 +330,7 @@ html.dark .typesignals {
|
|||
& .typesignal-root {
|
||||
border: 1px solid hsla(var(--signal-color) / 0.3);
|
||||
|
||||
&:hover {
|
||||
&:hover, &:target {
|
||||
border: 1px solid hsla(var(--signal-color) / 0.6);
|
||||
}
|
||||
}
|
||||
|
@ -371,7 +368,7 @@ html.dark .typevariants {
|
|||
& .typevariant-root {
|
||||
border: 1px solid hsla(var(--var-color) / 0.3);
|
||||
|
||||
&:hover {
|
||||
&:hover, &:target {
|
||||
border: 1px solid hsla(var(--var-color) / 0.6);
|
||||
}
|
||||
}
|
||||
|
@ -381,7 +378,7 @@ html.dark .typevariants {
|
|||
.root-nav {
|
||||
& .root-nav-entry {
|
||||
display: grid;
|
||||
grid-template-columns: 0.70fr 1.30fr;
|
||||
grid-template-columns: 0.60fr 1.40fr;
|
||||
|
||||
& .root-nav-link {
|
||||
justify-self: start;
|
||||
|
@ -406,13 +403,7 @@ html.dark .typevariants {
|
|||
|
||||
& .root-nav-desc {
|
||||
padding-left: 1rem;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: -1rem 0 0 0;
|
||||
border-left: 1px solid hsla(var(--blue) 10 15 / 0.6);
|
||||
}
|
||||
border-left: 1px solid hsl(var(--blue) 10 15 / 0.6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -431,10 +422,6 @@ html.dark .typevariants {
|
|||
}
|
||||
|
||||
@media (min-width: 85rem) {
|
||||
.root-nav {
|
||||
min-width: 45svw;
|
||||
}
|
||||
|
||||
.types-nav {
|
||||
display: block;
|
||||
position: fixed;
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
|
||||
.c-breadcrumbs {
|
||||
--color-link-breadcrumbs: hsl(var(--accent-600));
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0.318rem;
|
||||
max-width: 100svw;
|
||||
}
|
||||
|
|
|
@ -82,10 +82,6 @@ html.dark .nav-shevron {
|
|||
&>a {
|
||||
width: 100%;
|
||||
margin-left: 0.2rem;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
scrollbar-width: none;
|
||||
font-size: 1.2rem;
|
||||
-ms-overflow-style: none;
|
||||
background: hsla(var(--blue) 75 5);
|
||||
border-right: 1px solid hsl(var(--blue) 45 15);
|
||||
background: hsla(var(--overlay-bkg));
|
||||
border-right: 1px solid hsl(var(--overlay-bkg-border));
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
scrollbar-width: none;
|
||||
-ms-overflow-style: none;
|
||||
background-color: hsl(var(--overlay-bkg));
|
||||
border-left: solid hsl(var(--overlay-bkg-border)) 1px;
|
||||
border-left: 1px solid hsl(var(--overlay-bkg-border));
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
|
|
|
@ -33,6 +33,11 @@ a {
|
|||
}
|
||||
}
|
||||
|
||||
[id] {
|
||||
/*offset for header*/
|
||||
scroll-margin-top: 4rem;
|
||||
}
|
||||
|
||||
html.dark {
|
||||
& .header {
|
||||
background-color: hsl(var(--secondary-900));
|
||||
|
@ -119,9 +124,8 @@ footer {
|
|||
padding: 1rem;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
background: hsla(var(--blue) 66 5);
|
||||
background: hsl(var(--footer-bkg));
|
||||
|
||||
/*border-top: 1px solid hsl(var(--bg-800));*/
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
|
@ -132,7 +136,7 @@ footer {
|
|||
background: linear-gradient(
|
||||
90deg,
|
||||
transparent 0%,
|
||||
hsl(var(--blue) 75 21) 50%,
|
||||
hsl(var(--footer-bkg-border)) 50%,
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue