Skip to content

Commit 07c1e8d

Browse files
committed
css fixes
1 parent 1a84069 commit 07c1e8d

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

scaladoc/resources/dotty_res/styles/theme/layout/content.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,10 @@
165165
border-bottom: 1px solid var(--text-secondary);
166166
}
167167

168+
#content .cover-header a, #content .cover-header a:hover {
169+
border-bottom: none;
170+
}
171+
168172
#content :not(pre) > code {
169173
color: var(--code-props-content);
170174
font-family: "FiraCode-Regular";
@@ -305,7 +309,7 @@
305309

306310
.cover-header .micon {
307311
position: relative;
308-
z-index: 10;
312+
z-index: 1;
309313
}
310314

311315
.cover-header .micon.companion {

scaladoc/src/dotty/tools/scaladoc/renderers/MemberRenderer.scala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,13 @@ class MemberRenderer(signatureRenderer: SignatureRenderer)(using DocContext) ext
387387

388388
def selfTypeList(list: List[LinkToType]): Seq[AppliedTag] =
389389
if list.isEmpty then Nil
390-
else Seq(div(cls := "mono-small-inline") { list.map { link =>
391-
div(link.signature.map(renderElement(_)))
392-
}})
390+
else Seq(
391+
div(cls := "mono-small-inline supertypes")(
392+
span(),
393+
list.map { link =>
394+
div(link.signature.map(renderElement(_)))
395+
}
396+
))
393397

394398
val supertypes = signatureList(m.parents, "supertypes", m.parents.length > 5)
395399
val subtypes = signatureList(m.knownChildren, "subtypes", m.knownChildren.length > 5)

0 commit comments

Comments
 (0)