diff --git a/src/pages/docs/types/[type]/[name].astro b/src/pages/docs/types/[type]/[name].astro index 56281bc..821c224 100644 --- a/src/pages/docs/types/[type]/[name].astro +++ b/src/pages/docs/types/[type]/[name].astro @@ -55,7 +55,8 @@ const details = data.details

-

+
+

{route.name}: {data.super?.name ? ( + {data && data.flags ? ( +
{data.flags.map(flag => ( + + ))}
+ ):null} +

import {data.module} { route && data ? (
- {data.flags ? ( -
{data.flags.map(flag => ( - - ))}
- ):null} {details ? : ({data.description})}
{ data.properties && propsKeys ? ( diff --git a/src/styles/docs/docs-types.css b/src/styles/docs/docs-types.css index ab7ce64..0579f7f 100644 --- a/src/styles/docs/docs-types.css +++ b/src/styles/docs/docs-types.css @@ -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; diff --git a/src/styles/docs/type-title.css b/src/styles/docs/type-title.css index 3e7c1a0..8022a38 100644 --- a/src/styles/docs/type-title.css +++ b/src/styles/docs/type-title.css @@ -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;