Skip to content

Commit c60b5a3

Browse files
committed
change color of grey-12 color token, fix header margins, change order of switcher elements, remove border from gh link
1 parent d77d29b commit c60b5a3

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

scaladoc/resources/dotty_res/styles/theme/colors.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
--grey9: #706f78;
177177
--grey10: #7e7d86;
178178
--grey11: #a09fa6;
179-
--grey12: #cccccc;
179+
--grey12: #ededef;
180180

181181
/* red colors */
182182
--red1: #1f1315;

scaladoc/resources/dotty_res/styles/theme/components/button/text-button.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ a:active {
8484
text-decoration: none;
8585
margin-bottom: calc(1 * var(--base-spacing));
8686
display: inline-block;
87+
border-bottom: none;
8788
}
8889

8990
.text-button.with-link::after {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
flex-direction: row;
66
justify-content: space-between;
77
align-items: center;
8-
padding: calc(1.75 * var(--base-spacing)) calc(3 * var(--base-spacing));
8+
padding: calc(2 * var(--base-spacing)) calc(3 * var(--base-spacing));
99
position: absolute;
1010
height: var(--header-height);
1111
left: 0px;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ class HtmlRenderer(rootPackage: Member, members: Map[DRI, Member])(using ctx: Do
252252
div(id := "leftColumn", cls := "body-small")(
253253
Seq(
254254
div(cls:= "switcher-container")(
255-
apiNavOpt match {
256-
case Some(isApiActive, apiNav) =>
257-
Seq(a(id := "api-nav-button", cls:= s"switcher h100 ${if isApiActive then "selected" else ""}", href := pathToPage(link.dri, rootApiPage.get.link.dri))("API"))
258-
case _ => Nil
259-
},
260255
docsNavOpt match {
261256
case Some(isDocsActive, docsNav) =>
262257
Seq(a(id := "docs-nav-button", cls:= s"switcher h100 ${if isDocsActive then "selected" else ""}", href := pathToPage(link.dri, rootDocsPage.get.link.dri))("Docs"))
263258
case _ => Nil
259+
},
260+
apiNavOpt match {
261+
case Some(isApiActive, apiNav) =>
262+
Seq(a(id := "api-nav-button", cls:= s"switcher h100 ${if isApiActive then "selected" else ""}", href := pathToPage(link.dri, rootApiPage.get.link.dri))("API"))
263+
case _ => Nil
264264
}
265265
),
266266
apiNavOpt

0 commit comments

Comments
 (0)