Skip to content

Commit d933e8f

Browse files
Changing design for members
1 parent 1df646f commit d933e8f

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

scaladoc/resources/dotty_res/styles/theme/components/api-member.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
.documentableElement {
2-
background-color: var(--action-primary-background-default-solid);
3-
padding: calc(3 * var(--base-spacing));
4-
border-radius: 4px;
5-
margin-bottom: calc(3 * var(--base-spacing));
2+
padding: 12px 0;
3+
64
color: var(--text-primary);
75
position: relative;
6+
border-top: 1px solid var(--border-default);
87
}
98

109
.documentableElement:last-child {
1110
margin-bottom: 0;
11+
border-top: 1px solid var(--border-default);
1212
}
1313

1414
.documentableElement .signature {
@@ -55,6 +55,10 @@
5555
display: block;
5656
}
5757

58+
.documentableElement .attributes {
59+
margin-bottom: 0;
60+
}
61+
5862
[t="k"] {
5963
color: var(--code-method-highlighting-keyword);
6064
}

scaladoc/resources/dotty_res/styles/theme/components/attributes.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
overflow: hidden;
44
padding: 0;
55
margin: 0;
6-
border-bottom: 1px solid var(--border-default);
76
margin-bottom: calc(6 * var(--base-spacing));
87
}
98

@@ -34,6 +33,11 @@
3433
padding-bottom: calc(2.5 * var(--base-spacing));
3534
}
3635

36+
.attributes > dt:first-child,
37+
.attributes > dd:first-of-type {
38+
border-top: none;
39+
}
40+
3741
.attributes > dd > .attributes > dt {
3842
border: none;
3943
padding: 0;
@@ -48,6 +52,4 @@
4852
width: 80%;
4953
}
5054

51-
.documentableElement .attributes {
52-
margin-bottom: 0;
53-
}
55+

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
line-height: 20px;
1919
}
2020

21+
dd .snippet {
22+
margin: 0;
23+
}
24+
2125
.snippet .hidden {
2226
display: none;
2327
}

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@
2929

3030
@media (min-width: 1920px) {
3131
#content {
32-
width: calc(90 * var(--base-spacing));
3332
padding-left: calc(36.75 * var(--base-spacing));
3433
padding-top: calc(18 * var(--base-spacing));
3534
}
35+
36+
#content > div:first-child {
37+
width: calc(90 * var(--base-spacing));
38+
}
3639
}
3740

3841
@media (max-width: 1920px) {
@@ -419,6 +422,11 @@
419422
margin-bottom: 0;
420423
}
421424

425+
#attributes > h2 {
426+
margin-bottom: calc(3*var(--base-spacing));
427+
}
428+
429+
422430
.tab {
423431
position: relative;
424432
}
@@ -466,6 +474,8 @@
466474
display: block;
467475
}
468476

477+
478+
469479
#content section {
470480
margin-top: calc(6 * var(--base-spacing));
471481
}

0 commit comments

Comments
 (0)