Skip to content

Commit 9b9f23f

Browse files
committed
rustdoc: use a different style of grip track
1 parent 8780d5f commit 9b9f23f

File tree

2 files changed

+17
-32
lines changed

2 files changed

+17
-32
lines changed

src/librustdoc/html/static/css/noscript.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ nav.sub {
136136
--scrape-example-code-wrapper-background-end: rgba(255, 255, 255, 0);
137137
--sidebar-resizer-hover: hsl(207, 90%, 66%);
138138
--sidebar-resizer-active: hsl(207, 90%, 54%);
139-
--sidebar-resizer-img-filter: opacity(66%);
140-
--sidebar-resizer-img-hover-filter: none;
141139
}
142140
/* End theme: light */
143141

@@ -248,8 +246,6 @@ nav.sub {
248246
--scrape-example-code-wrapper-background-end: rgba(53, 53, 53, 0);
249247
--sidebar-resizer-hover: hsl(207, 30%, 54%);
250248
--sidebar-resizer-active: hsl(207, 90%, 54%);
251-
--sidebar-resizer-img-filter: opacity(66%);
252-
--sidebar-resizer-img-hover-filter: none;
253249
}
254250
/* End theme: dark */
255251
}

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
/* ignore-tidy-filelength */
12
/*
2-
// ignore-tidy-filelength
33
When static files are updated, their suffixes need to be updated.
44
1. In the top directory run:
55
./x.py doc --stage 1 library/core
@@ -522,25 +522,20 @@ img {
522522
left: var(--desktop-sidebar-width);
523523
display: flex;
524524
align-items: center;
525-
justify-content: center;
525+
justify-content: flex-start;
526+
color: var(--sidebar-border-color);
526527
}
527-
528-
.sidebar-resizer::after {
529-
content: url('data:image/svg+xml,\
530-
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="24" viewBox="0 0 8 24"> \
531-
<linearGradient id="x" x1="0" x2="0" y1="0" y2="1"> \
532-
<stop offset="0.5" stop-color="%23666"/><stop offset="0.5" stop-color="%23ccc"/> \
533-
</linearGradient> \
534-
<circle r="2" fill="none" stroke-width="2" stroke="url(%23x)" cy="21" cx="3"/> \
535-
<circle r="2" fill="none" stroke-width="2" stroke="url(%23x)" cy="15" cx="3"/> \
536-
<circle r="2" fill="none" stroke-width="2" stroke="url(%23x)" cy="9" cx="3"/> \
537-
<circle r="2" fill="none" stroke-width="2" stroke="url(%23x)" cy="3" cx="3"/></svg>');
538-
width: 8px;
539-
height: 24px;
540-
filter: var(--sidebar-resizer-img-filter);
528+
.sidebar-resizer::before {
529+
content: "";
530+
border-right: dotted 2px currentColor;
531+
width: 2px;
532+
height: 12px;
541533
}
542-
.sidebar-resizer:hover::after {
543-
filter: var(--sidebar-resizer-img-hover-filter);
534+
.sidebar-resizer::after {
535+
content: "";
536+
border-right: dotted 2px currentColor;
537+
width: 2px;
538+
height: 16px;
544539
}
545540

546541
.rustdoc.src .sidebar-resizer {
@@ -583,6 +578,7 @@ img {
583578
on top of, the scrollbar) */
584579
left: calc(var(--desktop-sidebar-width) - 1px);
585580
border-left: solid 1px var(--sidebar-resizer-hover);
581+
color: var(--sidebar-resizer-hover);
586582
}
587583

588584
.src-sidebar-expanded .rustdoc.src .sidebar-resizer:hover,
@@ -614,8 +610,7 @@ img {
614610
}
615611
.sidebar-resizer.active::before {
616612
border-left: solid 2px var(--sidebar-resizer-active);
617-
margin-left: 8px;
618-
padding-left: 1px;
613+
color: var(--sidebar-resizer-active);
619614
display: block;
620615
height: 100%;
621616
content: "";
@@ -3017,8 +3012,6 @@ by default.
30173012
--scrape-example-code-wrapper-background-end: rgba(255, 255, 255, 0);
30183013
--sidebar-resizer-hover: hsl(207, 90%, 66%);
30193014
--sidebar-resizer-active: hsl(207, 90%, 54%);
3020-
--sidebar-resizer-img-filter: opacity(66%);
3021-
--sidebar-resizer-img-hover-filter: none;
30223015
}
30233016
/* End theme: light */
30243017

@@ -3032,7 +3025,7 @@ by default.
30323025
--settings-button-border-focus: #ffb900;
30333026
--sidebar-background-color: #505050;
30343027
--sidebar-background-color-hover: #676767;
3035-
--sidebar-border-color: #2A2A2A;
3028+
--sidebar-border-color: #999;
30363029
--code-block-background-color: #2A2A2A;
30373030
--scrollbar-track-background-color: #717171;
30383031
--scrollbar-thumb-background-color: rgba(32, 34, 37, .6);
@@ -3128,8 +3121,6 @@ by default.
31283121
--scrape-example-code-wrapper-background-end: rgba(53, 53, 53, 0);
31293122
--sidebar-resizer-hover: hsl(207, 30%, 54%);
31303123
--sidebar-resizer-active: hsl(207, 90%, 54%);
3131-
--sidebar-resizer-img-filter: opacity(66%);
3132-
--sidebar-resizer-img-hover-filter: none;
31333124
}
31343125
/* End theme: dark */
31353126

@@ -3147,7 +3138,7 @@ Original by Dempfi (https://github.com/dempfi/ayu)
31473138
--settings-button-border-focus: #e0e0e0;
31483139
--sidebar-background-color: #14191f;
31493140
--sidebar-background-color-hover: rgba(70, 70, 70, 0.33);
3150-
--sidebar-border-color: #000;
3141+
--sidebar-border-color: #5c6773;
31513142
--code-block-background-color: #191f26;
31523143
--scrollbar-track-background-color: transparent;
31533144
--scrollbar-thumb-background-color: #5c6773;
@@ -3243,8 +3234,6 @@ Original by Dempfi (https://github.com/dempfi/ayu)
32433234
--scrape-example-code-wrapper-background-end: rgba(15, 20, 25, 0);
32443235
--sidebar-resizer-hover: hsl(34, 50%, 33%);
32453236
--sidebar-resizer-active: hsl(34, 100%, 66%);
3246-
--sidebar-resizer-img-filter: opacity(66%);
3247-
--sidebar-resizer-img-hover-filter: none;
32483237
}
32493238

32503239
:root[data-theme="ayu"] h1,

0 commit comments

Comments
 (0)