made typedocs-title badge inline
This commit is contained in:
parent
59035e2190
commit
e4f3c39bcb
src
|
@ -55,7 +55,8 @@ const details = data.details
|
||||||
<div class="docs">
|
<div class="docs">
|
||||||
<div class="docs-content typedocs-content">
|
<div class="docs-content typedocs-content">
|
||||||
<hr />
|
<hr />
|
||||||
<h2 class="typedocs-title" data-pagefind-weight="10">
|
<section class="typedocs-title">
|
||||||
|
<h2 class="typedocs-title-text" data-pagefind-weight="10">
|
||||||
{route.name}:
|
{route.name}:
|
||||||
{data.super?.name ? (
|
{data.super?.name ? (
|
||||||
<a
|
<a
|
||||||
|
@ -69,16 +70,17 @@ const details = data.details
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</h2>
|
</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>
|
<code class="type-module" data-pagefind-ignore>import {data.module}</code>
|
||||||
{
|
{
|
||||||
route && data ? (
|
route && data ? (
|
||||||
<section class="typedocs-data typedata">
|
<section class="typedocs-data typedata">
|
||||||
<subheading class="typedocs-subheading">
|
<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>)}
|
{details ? <span class="parsedMD" set:html={details}/> : (<span class="toparse">{data.description}</span>)}
|
||||||
</subheading>
|
</subheading>
|
||||||
{ data.properties && propsKeys ? (
|
{ data.properties && propsKeys ? (
|
||||||
|
|
|
@ -47,19 +47,6 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.typedocs-title {
|
|
||||||
letter-spacing: 0.012rem;
|
|
||||||
|
|
||||||
& a {
|
|
||||||
opacity: 0.6;
|
|
||||||
transition: opacity 0.5s;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#injectedMd {
|
#injectedMd {
|
||||||
&>p:not(:first-child) {
|
&>p:not(:first-child) {
|
||||||
margin-block: 0.724rem;
|
margin-block: 0.724rem;
|
||||||
|
|
|
@ -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 {
|
.typedata-title {
|
||||||
margin-bottom: 1.618rem;
|
margin-bottom: 1.618rem;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue