Skip to content

Commit 71f8528

Browse files
committed
minor styles changes:
spacings, fonts, toc, github edit button
1 parent 603a596 commit 71f8528

File tree

6 files changed

+22
-10
lines changed

6 files changed

+22
-10
lines changed

docs/_layouts/doc-page.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
<main>
66
<header>
77
{% if urls.editSource %}
8-
<a class="text-button with-link body-small" href="{{ urls.editSource }}">
9-
Edit this page on GitHub
10-
</a>
8+
<a class="text-button with-link body-small" href="{{ urls.editSource }}">Edit this page on GitHub</a>
119
{% endif %}
1210
<h1 class="h600">{{ page.title }}</h1>
1311
</header>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ a:active {
4444
}
4545

4646
.text-button::after {
47-
margin-left: calc(1 * var(--base-spacing));
47+
margin-left: calc(.5 * var(--base-spacing));
48+
vertical-align: bottom;
4849
}
4950

5051
/* button with arrow */

scaladoc/resources/dotty_res/styles/theme/components/code-snippet.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@
1616
.snippet pre {
1717
margin: 0;
1818
line-height: 20px;
19-
font-family: "FiraCode-Regular";
2019
}
2120

2221
.snippet pre code {
23-
padding-right: calc(2* var(--base-spacing));
2422
font-family: "FiraCode-Regular";
2523
}
2624

25+
.snippet pre code > span {
26+
padding-right: calc(2* var(--base-spacing));
27+
}
28+
2729
dd .snippet {
2830
margin: 0;
2931
}

scaladoc/resources/dotty_res/styles/theme/components/table-of-content.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
#toc-container {
99
width: 232px;
1010
position: sticky;
11-
top: calc(18 * var(--base-spacing))
11+
top: calc(18 * var(--base-spacing));
12+
padding: var(--base-spacing);
13+
}
14+
15+
.toc-list {
16+
margin-block-start: calc(2 * var(--base-spacing));
17+
margin-block-end: 0;;
1218
}
1319

1420
#toc ul {
@@ -20,8 +26,9 @@
2026
margin-bottom: calc(2.5 * var(--base-spacing));
2127
}
2228

23-
#toc li > ul {
29+
#toc .toc-list li > ul {
2430
margin-top: calc(2.5 * var(--base-spacing));
31+
padding-left: calc(3 * var(--base-spacing));
2532
}
2633

2734
@media (min-width: 1920px) {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ body {
66
overflow: hidden;
77
}
88

9+
p {
10+
margin-block-start: calc(3 * var(--base-spacing));
11+
margin-block-end: calc(3 * var(--base-spacing));
12+
}
13+
914
[id] {
1015
scroll-margin-top: calc(10 * var(--base-spacing));
1116
}

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
transition: width 0.3s ease-in-out;
1515
}
1616

17-
1817
#content > div:first-child {
1918
overflow: clip;
2019
}
@@ -172,7 +171,7 @@
172171

173172
/* content first paragraph */
174173
.first-p {
175-
margin-block-start: 0;
174+
margin-block-start: calc(2* var(--base-spacing));
176175
}
177176

178177
#content .first-p {

0 commit comments

Comments
 (0)