made typedocs-title badge inline

This commit is contained in:
Xanazf 2024-10-18 22:08:13 +03:00
parent 59035e2190
commit e4f3c39bcb
Signed by: Xanazf
GPG key ID: 4E4A5AD1FB748427
3 changed files with 27 additions and 19 deletions

View file

@ -55,7 +55,8 @@ const details = data.details
<div class="docs">
<div class="docs-content typedocs-content">
<hr />
<h2 class="typedocs-title" data-pagefind-weight="10">
<section class="typedocs-title">
<h2 class="typedocs-title-text" data-pagefind-weight="10">
{route.name}:
{data.super?.name ? (
<a
@ -69,16 +70,17 @@ const details = data.details
)
}
</h2>
{data && data.flags ? (
<div class="type-flags" data-pagefind-ignore>{data.flags.map(flag => (
<Badge badgeText={flag}/>
))}</div>
):null}
</section>
<code class="type-module" data-pagefind-ignore>import {data.module}</code>
{
route && data ? (
<section class="typedocs-data typedata">
<subheading class="typedocs-subheading">
{data.flags ? (
<div class="type-flags" data-pagefind-ignore>{data.flags.map(flag => (
<Badge badgeText={flag}/>
))}</div>
):null}
{details ? <span class="parsedMD" set:html={details}/> : (<span class="toparse">{data.description}</span>)}
</subheading>
{ data.properties && propsKeys ? (

View file

@ -47,19 +47,6 @@
display: none;
}
.typedocs-title {
letter-spacing: 0.012rem;
& a {
opacity: 0.6;
transition: opacity 0.5s;
&:hover {
opacity: 1;
}
}
}
#injectedMd {
&>p:not(:first-child) {
margin-block: 0.724rem;

View file

@ -1,3 +1,22 @@
.typedocs-title {
display: flex;
justify-content: space-between;
margin-block: 0 !important;
}
.typedocs-title-text {
letter-spacing: 0.012rem;
& a {
opacity: 0.6;
transition: opacity 0.5s;
&:hover {
opacity: 1;
}
}
}
.typedata-title {
margin-bottom: 1.618rem;