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 {
@@ -583,6 +578,7 @@ img {
583
578
on top of, the scrollbar) */
584
579
left : calc (var (--desktop-sidebar-width ) - 1px );
585
580
border-left : solid 1px var (--sidebar-resizer-hover );
581
+ color : var (--sidebar-resizer-hover );
586
582
}
587
583
588
584
.src-sidebar-expanded .rustdoc .src .sidebar-resizer : hover ,
@@ -614,8 +610,7 @@ img {
614
610
}
615
611
.sidebar-resizer .active ::before {
616
612
border-left : solid 2px var (--sidebar-resizer-active );
617
- margin-left: 8px;
618
- padding-left: 1px;
613
+ color : var (--sidebar-resizer-active );
619
614
display : block;
620
615
height : 100% ;
621
616
content : "" ;
@@ -3017,8 +3012,6 @@ by default.
3017
3012
--scrape-example-code-wrapper-background-end : rgba (255 , 255 , 255 , 0 );
3018
3013
--sidebar-resizer-hover : hsl (207 , 90% , 66% );
3019
3014
--sidebar-resizer-active : hsl (207 , 90% , 54% );
3020
- --sidebar-resizer-img-filter : opacity (66% );
3021
- --sidebar-resizer-img-hover-filter : none;
3022
3015
}
3023
3016
/* End theme: light */
3024
3017
@@ -3032,7 +3025,7 @@ by default.
3032
3025
--settings-button-border-focus : # ffb900 ;
3033
3026
--sidebar-background-color : # 505050 ;
3034
3027
--sidebar-background-color-hover : # 676767 ;
3035
- --sidebar-border-color : # 2A2A2A ;
3028
+ --sidebar-border-color : # 999 ;
3036
3029
--code-block-background-color : # 2A2A2A ;
3037
3030
--scrollbar-track-background-color : # 717171 ;
3038
3031
--scrollbar-thumb-background-color : rgba (32 , 34 , 37 , .6 );
@@ -3128,8 +3121,6 @@ by default.
3128
3121
--scrape-example-code-wrapper-background-end : rgba (53 , 53 , 53 , 0 );
3129
3122
--sidebar-resizer-hover : hsl (207 , 30% , 54% );
3130
3123
--sidebar-resizer-active : hsl (207 , 90% , 54% );
3131
- --sidebar-resizer-img-filter : opacity (66% );
3132
- --sidebar-resizer-img-hover-filter : none;
3133
3124
}
3134
3125
/* End theme: dark */
3135
3126
@@ -3147,7 +3138,7 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3147
3138
--settings-button-border-focus : # e0e0e0 ;
3148
3139
--sidebar-background-color : # 14191f ;
3149
3140
--sidebar-background-color-hover : rgba (70 , 70 , 70 , 0.33 );
3150
- --sidebar-border-color : # 000 ;
3141
+ --sidebar-border-color : # 5c6773 ;
3151
3142
--code-block-background-color : # 191f26 ;
3152
3143
--scrollbar-track-background-color : transparent;
3153
3144
--scrollbar-thumb-background-color : # 5c6773 ;
@@ -3243,8 +3234,6 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3243
3234
--scrape-example-code-wrapper-background-end : rgba (15 , 20 , 25 , 0 );
3244
3235
--sidebar-resizer-hover : hsl (34 , 50% , 33% );
3245
3236
--sidebar-resizer-active : hsl (34 , 100% , 66% );
3246
- --sidebar-resizer-img-filter : opacity (66% );
3247
- --sidebar-resizer-img-hover-filter : none;
3248
3237
}
3249
3238
3250
3239
: root [data-theme = "ayu" ] h1 ,
0 commit comments