Skip to content

Commit 2a2fdbe

Browse files
committed
wip: improve API docs
better styles for params More docs in busy-signal file
1 parent 4775878 commit 2a2fdbe

File tree

10 files changed

+6085
-6147
lines changed

10 files changed

+6085
-6147
lines changed

components/type-doc.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,29 @@ export class TypeDoc extends LitElement {
103103
104104
/* nested type-doc */
105105
#body ::slotted(type-doc) {
106-
margin-bottom: 0;
106+
margin-bottom: 0.6rem;
107107
background: transparent;
108-
padding: 0.3rem 0.8rem;
108+
padding: 0 0.8rem;
109+
}
110+
111+
#body ::slotted(type-doc[kind$="parameter"]) {
112+
border-inline-start: 4px solid var(--type-doc-header-background-color, var(--markdown-blockquote-color, #c9e3ff));
113+
}
114+
115+
:host([kind$="parameter"]) header {
116+
padding-top: 0;
117+
padding-bottom: 0;
118+
margin-bottom: 3px;
109119
}
110120
111121
:host([kind="return"]) header,
112-
:host([kind="parameter"]) header {
122+
:host([kind$="parameter"]) header {
113123
background: none;
114124
padding-left: 0;
115125
}
116126
117127
:host([kind="return"]) #body,
118-
:host([kind="parameter"]) #body {
128+
:host([kind$="parameter"]) #body {
119129
padding: 0;
120130
}
121131

docs/_assets/type-doc.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type-doc > * {
3030
}
3131

3232
type-doc[kind="method"] thead,
33-
type-doc[kind="parameter"] thead,
33+
type-doc[kind$="parameter"] thead,
3434
type-doc[kind="return"] thead {
3535
position: absolute;
3636
clip: rect(1px, 1px, 1px, 1px);

0 commit comments

Comments
 (0)