1
+ /* ignore-tidy-filelength */
1
2
/*
2
- // ignore-tidy-filelength
3
3
When static files are updated, their suffixes need to be updated.
4
4
1. In the top directory run:
5
5
./x.py doc --stage 1 library/core
@@ -522,25 +522,20 @@ img {
522
522
left : var (--desktop-sidebar-width );
523
523
display : flex;
524
524
align-items : center;
525
- justify-content : center;
525
+ justify-content : flex-start;
526
+ color : var (--sidebar-border-color );
526
527
}
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
- <sto p 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 ;
541
533
}
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 ;
544
539
}
545
540
546
541
.rustdoc .src .sidebar-resizer {
@@ -568,6 +563,7 @@ img {
568
563
569
564
.sidebar-resizing .sidebar {
570
565
position : fixed;
566
+ border-right : solid 2px var (--sidebar-resizer-active );
571
567
}
572
568
.sidebar-resizing > body {
573
569
padding-left : var (--resizing-sidebar-width );
@@ -583,6 +579,7 @@ img {
583
579
on top of, the scrollbar) */
584
580
left : calc (var (--desktop-sidebar-width ) - 1px );
585
581
border-left : solid 1px var (--sidebar-resizer-hover );
582
+ color : var (--sidebar-resizer-hover );
586
583
}
587
584
588
585
.src-sidebar-expanded .rustdoc .src .sidebar-resizer : hover ,
@@ -608,17 +605,10 @@ img {
608
605
/* make the resize tool bigger when actually resizing, to avoid :hover styles on other stuff
609
606
while resizing */
610
607
padding : 0 140px ;
611
- width: 2px;
608
+ width : calc ( 140 px + 140 px + 9 px + 2px ) ;
612
609
margin-left : -140px ;
613
610
border-left : none;
614
- }
615
- .sidebar-resizer.active::before {
616
- border-left: solid 2px var(--sidebar-resizer-active);
617
- margin-left: 8px;
618
- padding-left: 1px;
619
- display: block;
620
- height: 100%;
621
- content: " ";
611
+ color : var (--sidebar-resizer-active );
622
612
}
623
613
624
614
.sidebar , .mobile-topbar , .sidebar-menu-toggle ,
@@ -3017,8 +3007,6 @@ by default.
3017
3007
--scrape-example-code-wrapper-background-end : rgba (255 , 255 , 255 , 0 );
3018
3008
--sidebar-resizer-hover : hsl (207 , 90% , 66% );
3019
3009
--sidebar-resizer-active : hsl (207 , 90% , 54% );
3020
- --sidebar-resizer-img-filter : opacity (66% );
3021
- --sidebar-resizer-img-hover-filter : none;
3022
3010
}
3023
3011
/* End theme: light */
3024
3012
@@ -3032,7 +3020,7 @@ by default.
3032
3020
--settings-button-border-focus : # ffb900 ;
3033
3021
--sidebar-background-color : # 505050 ;
3034
3022
--sidebar-background-color-hover : # 676767 ;
3035
- --sidebar-border-color : # 2A2A2A ;
3023
+ --sidebar-border-color : # 999 ;
3036
3024
--code-block-background-color : # 2A2A2A ;
3037
3025
--scrollbar-track-background-color : # 717171 ;
3038
3026
--scrollbar-thumb-background-color : rgba (32 , 34 , 37 , .6 );
@@ -3128,8 +3116,6 @@ by default.
3128
3116
--scrape-example-code-wrapper-background-end : rgba (53 , 53 , 53 , 0 );
3129
3117
--sidebar-resizer-hover : hsl (207 , 30% , 54% );
3130
3118
--sidebar-resizer-active : hsl (207 , 90% , 54% );
3131
- --sidebar-resizer-img-filter : opacity (66% );
3132
- --sidebar-resizer-img-hover-filter : none;
3133
3119
}
3134
3120
/* End theme: dark */
3135
3121
@@ -3147,7 +3133,7 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3147
3133
--settings-button-border-focus : # e0e0e0 ;
3148
3134
--sidebar-background-color : # 14191f ;
3149
3135
--sidebar-background-color-hover : rgba (70 , 70 , 70 , 0.33 );
3150
- --sidebar-border-color : # 000 ;
3136
+ --sidebar-border-color : # 5c6773 ;
3151
3137
--code-block-background-color : # 191f26 ;
3152
3138
--scrollbar-track-background-color : transparent;
3153
3139
--scrollbar-thumb-background-color : # 5c6773 ;
@@ -3243,8 +3229,6 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3243
3229
--scrape-example-code-wrapper-background-end : rgba (15 , 20 , 25 , 0 );
3244
3230
--sidebar-resizer-hover : hsl (34 , 50% , 33% );
3245
3231
--sidebar-resizer-active : hsl (34 , 100% , 66% );
3246
- --sidebar-resizer-img-filter : opacity (66% );
3247
- --sidebar-resizer-img-hover-filter : none;
3248
3232
}
3249
3233
3250
3234
: root [data-theme = "ayu" ] h1 ,
0 commit comments