Skip to content

Commit 90bc725

Browse files
Merge pull request #14 from szymon-rd/scaladoc-fixes-part3
Next part of layout fixes
2 parents f49cb04 + c0657c3 commit 90bc725

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -257,13 +257,15 @@
257257
background-color: var(--code-syntax-highlighting-scrollbar);
258258
opacity: 0.75;
259259
border-radius: 100px;
260+
border: 3px solid var(--action-primary-background-default-solid);
260261
}
261262

262263
.snippet::-webkit-scrollbar-thumb:hover {
263264
background-color: var(--code-syntax-highlighting-scrollbar-hover);
265+
border: 3px solid var(--action-primary-background-hover);;
264266
}
265267

266268
.snippet::-webkit-scrollbar {
267-
width: 8px;
268-
height: 8px;
269+
width: 12px;
270+
height: 12px;
269271
}

scaladoc/resources/dotty_res/styles/theme/components/navigation-item.css

+9
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@
7777
max-width: calc(19 * var(--base-spacing));
7878
}
7979

80+
.n5 > .nh > .ar {
81+
left: calc(16.5 * var(--base-spacing));
82+
}
83+
84+
.n5 > .nh > a {
85+
left: calc(19.5 * var(--base-spacing));
86+
max-width: calc(16 * var(--base-spacing));
87+
}
88+
8089
.nh:hover {
8190
background: var(--action-primary-background-hover);
8291
cursor: pointer;

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

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
.pill .filter-name {
4444
color: var(--text-secondary);
4545
margin-right: calc(0.5 * var(--base-spacing));
46+
padding-bottom: 1px;
4647
}
4748

4849
.pill > .close {

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
color: var(--text-primary);
1111
}
1212

13+
#content > div:first-child {
14+
overflow: clip;
15+
}
16+
1317

1418
#content.sidebar-shown {
1519
-webkit-transition: width 0.3s ease-in-out;
@@ -188,7 +192,7 @@
188192
color: var(--code-props-content);
189193
font-family: "FiraCode-Regular";
190194
border: 1px solid var(--code-props-border);
191-
padding: 3px 6px;
195+
padding: 2px 5px;
192196
border-radius: 4px;
193197
background-color: var(--code-props-background);
194198
line-height: 24px;

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@
9393
border-radius: 4px;
9494
margin-top: calc(1.5 * var(--base-spacing));
9595
border: 1px solid var(--border-default);
96+
max-height: calc(100vh - calc(19.5 * var(--base-spacing)));
97+
overflow: scroll;
9698
}
9799

98100
.searchbar-hints {
@@ -215,10 +217,8 @@
215217
}
216218

217219
.scaladoc-searchbar-row .micon {
218-
margin: calc(0.5 * var(--base-spacing)) calc(1 * var(--base-spacing)) 0px 0px;
220+
margin-right: calc(1 * var(--base-spacing));
219221
color: var(--text-secondary);
220-
position: relative;
221-
top: -2px;
222222
}
223223

224224
.scaladoc-searchbar-location {

0 commit comments

Comments
 (0)