Skip to content

Commit fa548f7

Browse files
committed
docs: tag deprecated members
1 parent 9cf1bb3 commit fa548f7

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎media/docs.css‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,22 @@ ul.tsd-hierarchy ul.tsd-hierarchy > li::before {
802802
background: var(--color-background-secondary);
803803
}
804804

805+
/* deprecated members: a tag before the name, in the warning colours (the name itself is struck through by typedoc) */
806+
.tsd-member h3:has(> .deprecated)::before {
807+
content: "Deprecated";
808+
align-self: center;
809+
margin-right: 0.6rem;
810+
padding: 0.15em 0.5em;
811+
border-radius: 999px;
812+
background: var(--color-background-warning);
813+
color: var(--color-warning-text);
814+
font-family: var(--font-text);
815+
font-size: 0.7rem;
816+
font-weight: 600;
817+
line-height: 1.4;
818+
white-space: nowrap;
819+
}
820+
805821
/* ---------- footer ---------- */
806822

807823
footer {

0 commit comments

Comments
 (0)