Skip to content

Commit 6600a2d

Browse files
kamilszewczyk0szymon-rd
authored andcommitted
pirst part of changes
1 parent f9a921b commit 6600a2d

File tree

13 files changed

+58
-23
lines changed

13 files changed

+58
-23
lines changed

scaladoc/resources/dotty_res/styles/scalastyle.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ td,
130130
th {
131131
border: 1px solid var(--border-medium);
132132
padding: 0.5rem;
133+
color: var(--text-primary);
133134
}
134135
th {
135136
border-bottom: 2px solid var(--border-medium);

scaladoc/resources/dotty_res/styles/theme/color-tokens.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@
4747
--semantic-background-red: var(--red3);
4848

4949
/* code */
50-
--code-props-content: var(--crimson11);
51-
--code-props-background: var(--red3);
50+
--code-props-content: var(--grey12);
51+
--code-props-background: var(--grey3);
52+
--code-props-border: var(--grey5);
5253

5354
--code-syntax-highlighting-comment: var(--grey11);
5455
--code-syntax-highlighting-quote: var(--grey11);
@@ -134,8 +135,9 @@
134135
--action-primary-border-default: var(--grey6);
135136

136137
/* code */
137-
--code-props-content: var(--crimson11);
138-
--code-props-background: var(--red3);
138+
--code-props-content: var(--grey12);
139+
--code-props-background: var(--grey2);
140+
--code-props-border: var(--grey6);
139141

140142
--code-syntax-highlighting-comment: var(--grey11);
141143
--code-syntax-highlighting-quote: var(--grey11);

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
flex-wrap: wrap;
44
z-index: 1;
55
row-gap: calc(2 * var(--base-spacing));
6-
position: relative;
7-
margin-bottom: calc(6 * var(--base-spacing));
6+
position: sticky;
7+
top: var(--header-height);
8+
padding: calc(2 * var(--base-spacing)) 0;
9+
margin-bottom: calc(3 * var(--base-spacing));
10+
background-color: var(--background-default);
811
}
912

1013
.filtersContainer {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@
1717

1818
.attributes > dt {
1919
float: left;
20-
width: 30%;
20+
width: 20%;
2121
padding: 0;
2222
margin: 0;
2323
border-top: 1px solid var(--border-default);
2424
padding-top: calc(2.5 * var(--base-spacing));
2525
padding-bottom: calc(2.5 * var(--base-spacing));
26-
text-align: center;
26+
text-align: right;
2727
color: var(--text-secondary);
2828
}
2929

3030
.attributes > dd {
3131
float: left;
3232
width: 70%;
33-
padding: 0;
33+
padding-left: 10%;
3434
margin: 0;
3535
border-top: 1px solid var(--border-default);
3636
padding-top: calc(2.5 * var(--base-spacing));

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
width: 16px;
99
}
1010

11+
.icon-button:hover {
12+
cursor: pointer;
13+
}
14+
1115
.icon-button::after {
1216
width: calc(2 * var(--base-spacing));
1317
height: calc(2 * var(--base-spacing));

scaladoc/resources/dotty_res/styles/theme/components/button/label-only-button.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
.label-only-button:hover {
1010
background-color: var(--action-primary-background-hover);
1111
color: var(--action-primary-content-hover);
12+
cursor: pointer;
1213
}
1314

1415
.label-only-button:active {

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
@@ -23,6 +23,7 @@ a:active {
2323

2424
.text-button:hover {
2525
color: var(--action-primary-content-hover) !important;
26+
cursor: pointer;
2627
}
2728

2829
.text-button:active {

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,13 @@
1010
overflow-x: scroll;
1111
margin-bottom: calc(3 * var(--base-spacing));
1212
margin-top: calc(3 * var(--base-spacing));
13+
border-radius: 4px;
1314
}
1415

1516
.snippet pre {
1617
margin: 0;
1718
}
1819

19-
.snippet:hover {
20-
background-color: var(--action-primary-background-hover);
21-
border: 1px solid var(--border-default);
22-
}
23-
2420
.snippet .hidden {
2521
display: none;
2622
}
@@ -55,7 +51,10 @@
5551
content: attr(line-number);
5652
color: var(--code-syntax-highlighting-line-number);
5753
margin-right: calc(2 * var(--base-spacing));
58-
margin-left: calc(2 * var(--base-spacing));
54+
margin-left: calc(var(--base-spacing));
55+
display: inline-block;
56+
text-align: right;
57+
min-width: calc(3 * var(--base-spacing));
5958
}
6059

6160
.snippet-showhide-container {
@@ -256,7 +255,8 @@
256255

257256
.snippet::-webkit-scrollbar-thumb {
258257
background-color: var(--code-syntax-highlighting-scrollbar);
259-
border-radius: 3px;
258+
opacity: 0.75;
259+
border-radius: 100px;
260260
}
261261

262262
.snippet::-webkit-scrollbar-thumb:hover {

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
cursor: pointer;
1313
}
1414

15+
@media (max-width: 768px) {
16+
.pill {
17+
display: none;
18+
}
19+
}
20+
1521
.pill::after {
1622
content: url(../../../images/icon-buttons/arrow-down/light/default.svg);
1723
margin-left: calc(1.5 * var(--base-spacing));

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

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
color: var(--text-primary);
1111
}
1212

13-
#content > div:first-child {
14-
overflow: hidden;
15-
}
1613

1714
#content.sidebar-shown {
1815
-webkit-transition: width 0.3s ease-in-out;
@@ -166,6 +163,12 @@
166163
color: var(--text-primary);
167164
}
168165

166+
/* content table */
167+
#content table {
168+
color: var(--text-primary);
169+
}
170+
171+
169172
/* content link */
170173
#content a {
171174
color: var(--text-primary);
@@ -184,6 +187,12 @@
184187
#content :not(pre) > code {
185188
color: var(--code-props-content);
186189
font-family: "FiraCode-Regular";
190+
border: 1px solid var(--code-props-border);
191+
padding: 3px 6px;
192+
border-radius: 4px;
193+
background-color: var(--code-props-background);
194+
line-height: 24px;
195+
font-size: 13px;
187196
}
188197

189198
.breadcrumbs {
@@ -331,7 +340,7 @@
331340
}
332341

333342
.cover-header .icon {
334-
width: 72px;
343+
max-width: 72px;
335344
}
336345

337346
.fqname {
@@ -368,6 +377,10 @@
368377
margin-bottom: calc(3 * var(--base-spacing));
369378
}
370379

380+
#content > div > .main-signature {
381+
margin-bottom: 0;
382+
}
383+
371384
.tab {
372385
position: relative;
373386
}

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@
9393
border-radius: 4px;
9494
margin-top: calc(1.5 * var(--base-spacing));
9595
border: 1px solid var(--border-default);
96-
max-height: calc(100% - calc(24 * var(--base-spacing)));
97-
overflow: scroll;
9896
}
9997

10098
.searchbar-hints {
@@ -103,7 +101,8 @@
103101
flex-flow: column;
104102
align-items: center;
105103
justify-content: center;
106-
height: calc(108.5 * var(--base-spacing));
104+
height: 80%;
105+
overflow: scroll;
107106
}
108107

109108
.searchbar-hints h1 {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
:root {
22
--base-spacing: 8px;
3+
--header-height: 64px;
34
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* {
2+
text-rendering: geometricPrecision;
3+
}
4+
15
@font-face {
26
font-family: "Inter-Bold";
37
src: url("../../fonts/Inter-Bold.ttf") format("truetype");

0 commit comments

Comments
 (0)