Skip to content

Commit e82d4b5

Browse files
committed
add missing project name to mobile menu
1 parent 95e35bb commit e82d4b5

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,25 @@
1313
display: block;
1414
}
1515

16+
#mobile-menu .project-name {
17+
color: var(--text-primary);
18+
}
19+
1620
.mobile-menu-header {
1721
align-items: center;
1822
}
1923

2024
.mobile-menu-logo {
2125
opacity: 0.5;
26+
display: flex;
27+
align-items: center;
2228
}
2329

24-
@media(min-width: 768px){
30+
.mobile-menu-logo .project-name {
31+
margin-left: calc(2 * var(--base-spacing));
32+
}
33+
34+
@media (min-width: 768px) {
2535
#mobile-menu {
2636
display: none;
2737
}
@@ -67,11 +77,11 @@
6777
}
6878

6979
.mobile-menu-item.mode::after {
70-
content: "Dark mode"
80+
content: "Dark mode";
7181
}
7282

7383
.theme-dark .mobile-menu-item.mode::after {
74-
content: "Light mode"
84+
content: "Light mode";
7585
}
7686

7787
/* contribute item dark */
@@ -203,5 +213,5 @@
203213
#mobile-scaladoc-searchbar-input {
204214
height: calc(4.5 * var(--base-spacing));
205215
background-position: 10px 10px;
206-
margin-bottom: calc(1.5 * var(--base-spacing));;
207-
}
216+
margin-bottom: calc(1.5 * var(--base-spacing));
217+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ class HtmlRenderer(rootPackage: Member, members: Map[DRI, Member])(using ctx: Do
239239
span(cls := "mobile-menu-logo")(
240240
projectLogoElem.toSeq,
241241
darkProjectLogoElem.toSeq,
242+
span(cls := "project-name h300")(args.name)
242243
),
243244
button(id := "mobile-menu-close", cls := "icon-button close"),
244245
),

0 commit comments

Comments
 (0)