Skip to content

Commit 603a596

Browse files
committed
styling only fixes (code snippets, links, headers)
1 parent 532e42c commit 603a596

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
.snippet pre {
1717
margin: 0;
1818
line-height: 20px;
19+
font-family: "FiraCode-Regular";
20+
}
21+
22+
.snippet pre code {
23+
padding-right: calc(2* var(--base-spacing));
24+
font-family: "FiraCode-Regular";
1925
}
2026

2127
dd .snippet {
@@ -54,12 +60,12 @@ dd .snippet {
5460

5561
.snippet > pre > code > span::before {
5662
margin-left: 0;
57-
/* content: attr(line-number);
63+
content: attr(line-number);
5864
color: var(--code-syntax-highlighting-line-number);
5965
margin-right: calc(2 * var(--base-spacing));
6066
display: inline-block;
6167
text-align: right;
62-
min-width: calc(3 * var(--base-spacing)); */
68+
min-width: calc(3 * var(--base-spacing));
6369
}
6470

6571
.snippet-showhide-container {

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,11 @@
220220
color: var(--text-primary);
221221
text-decoration: underline solid 1px;
222222
text-underline-offset: 2px;
223+
transition: text-decoration-color .2s ease-in-out;
223224
}
224225

225226
#content a:hover {
226-
text-decoration: underline solid 1.5px;
227+
text-decoration-color: transparent;
227228
}
228229

229230
#content .cover-header {
@@ -239,15 +240,18 @@
239240
color: var(--code-props-content);
240241
font-family: "FiraCode-Regular";
241242
border: 1px solid var(--code-props-border);
242-
padding: 2px 5px;
243+
padding: 3px 5px 1px 5px;
243244
border-radius: 4px;
244245
background-color: var(--code-props-background);
245-
line-height: 24px;
246+
display: inline-block;
247+
line-height: 16px;
246248
font-size: 13px;
249+
word-break: break-word;
247250
}
248251

249252
#content .body-large code {
250253
font-size: 16px;
254+
line-height: 24px;
251255
}
252256

253257
.breadcrumbs {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
flex-direction: column;
44
align-items: center;
5-
padding: calc(3 * var(--base-spacing)) 0px;
5+
/*padding: calc(3 * var(--base-spacing)) 0px;*/
66
position: absolute;
77
width: calc(39 * var(--base-spacing));
88
height: calc(100% - (8 * var(--base-spacing)) - (6 * var(--base-spacing)));

0 commit comments

Comments
 (0)