Skip to content

Commit 79dff5a

Browse files
committed
Minor CSS changes
1 parent 587ed9c commit 79dff5a

File tree

3 files changed

+26
-9
lines changed

3 files changed

+26
-9
lines changed

scaladoc/resources/dotty_res/styles/colors.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
--leftbar-current-fg: var(--blue500);
7676
--leftbar-hover-bg: var(--blue100);
7777
--leftbar-hover-fg: var(--grey900);
78-
--leftbar-border: var(--grey200);
78+
--leftbar-border: var(--grey300);
7979

8080
--footer-bg: var(--white);
8181
--footer-fg: var(--grey700);

scaladoc/resources/dotty_res/styles/scalastyle.css

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ body, button, input {
4040
z-index: 5;
4141
border-right: solid 1px var(--leftbar-border);
4242
}
43-
main {
43+
#main-content {
4444
min-height: calc(100vh - var(--footer-height) - 24px);
4545
margin-left: var(--side-width);
4646
padding: var(--content-padding);
@@ -247,6 +247,10 @@ th {
247247
box-sizing: border-box;
248248
}
249249

250+
#sideMenu2 a:hover {
251+
color: var(--link-hover-fg);
252+
}
253+
250254
#sideMenu2 a span:not(.micon) {
251255
margin-right: 0.75ex;
252256
text-indent: -1.5em;
@@ -274,7 +278,7 @@ span.ar {
274278
}
275279

276280
span.ar::before {
277-
content: "\e903"; /* arrow down */
281+
content: "\e904"; /* arrow right */
278282
font-family: "dotty-icons" !important;
279283
font-size: 20px;
280284
color: var(--icon-color);
@@ -283,8 +287,8 @@ span.ar::before {
283287
align-items: center;
284288
justify-content: center;
285289
}
286-
.expanded>span.ar::before {
287-
content: "\e905"; /* arrow up */
290+
.nav-item.expanded > .nav-header > span.ar::before {
291+
content: "\e903"; /* arrow down */
288292
}
289293

290294
.div:hover>span.ar::before {
@@ -599,7 +603,7 @@ footer .mode {
599603

600604
.documentableElement .signature {
601605
color: var(--code-fg);
602-
display: table-cell;
606+
display: table-row;
603607
white-space: pre-wrap;
604608
}
605609

@@ -623,7 +627,7 @@ footer .mode {
623627
}
624628

625629
.expand .signature {
626-
display: table-cell;
630+
display: table-row;
627631
}
628632

629633
.documentableFilter {
@@ -685,10 +689,23 @@ footer .mode {
685689
display: none;
686690
}
687691

692+
.documentableElement:before {
693+
content: ' ';
694+
position: absolute;
695+
width: 32px;
696+
height: 100%;
697+
top: 0px;
698+
left: -32px;
699+
}
700+
688701
.documentableElement:hover .documentableAnchor:before {
689702
display: flex;
690703
}
691704

705+
.documentableElement::before:hover .documentableAnchor:before {
706+
display: flex;
707+
}
708+
692709
.documentableAnchor:before {
693710
content: "\e901"; /* arrow down */
694711
font-family: "dotty-icons" !important;
@@ -701,7 +718,7 @@ footer .mode {
701718
justify-content: center;
702719
position: absolute;
703720
top: 6px;
704-
margin-left: 0.2em;
721+
left: -32px;
705722
}
706723

707724
.memberDocumentation {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ class HtmlRenderer(rootPackage: Member, val members: Map[DRI, Member])(using ctx
299299
span(cls := "icon-toggler")
300300
),
301301
div(id := "scaladoc-searchBar"),
302-
main(
302+
main(id := "main-content")(
303303
parentsHtml,
304304
div(id := "content")(content),
305305
),

0 commit comments

Comments
 (0)