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
@@ -525,25 +525,20 @@ img {
525
525
left : var (--desktop-sidebar-width );
526
526
display : flex;
527
527
align-items : center;
528
- justify-content : center;
528
+ justify-content : flex-start;
529
+ color : var (--right-side-color );
529
530
}
530
-
531
- .sidebar-resizer ::after {
532
- content : url ('data:image/svg+xml,\
533
- <svg xmlns= "http://www.w3.org/2000/svg" width="8" height="24" viewBox="0 0 8 24 "> \
534
- <linearGradient id= " x" x1="0" x2="0" y1="0" y2="1"> \
535
- <sto p offset= "0.5" stop-color="%23666"/><stop offset="0.5" stop-color="%23ccc"/> \
536
- </linearGradient> \
537
- <circle r= "2" fill="none" stroke-width="2" stroke="url(%23x )" cy=" 21 " cx=" 3 "/> \
538
- <circle r= " 2 " fill=" none" stroke-width="2" stroke="url(%23x )" cy=" 15 " cx=" 3 "/> \
539
- <circle r= " 2 " fill=" none" stroke-width="2" stroke="url(%23x )" cy=" 9 " cx=" 3 "/> \
540
- <circle r= " 2 " fill=" none" stroke-width="2" stroke="url(%23x )" cy=" 3 " cx=" 3 "/></svg>');
541
- width: 8px;
542
- height: 24px;
543
- filter: var(--sidebar-resizer-img-filter);
531
+ .sidebar-resizer ::before {
532
+ content : "" ;
533
+ border-right : dotted 2px currentColor;
534
+ width : 2px ;
535
+ height : 12px ;
544
536
}
545
- .sidebar-resizer:hover::after {
546
- filter: var(--sidebar-resizer-img-hover-filter);
537
+ .sidebar-resizer ::after {
538
+ content : "" ;
539
+ border-right : dotted 2px currentColor;
540
+ width : 2px ;
541
+ height : 16px ;
547
542
}
548
543
549
544
.rustdoc .src .sidebar-resizer {
@@ -571,6 +566,7 @@ img {
571
566
572
567
.sidebar-resizing .sidebar {
573
568
position : fixed;
569
+ border-right : solid 2px var (--sidebar-resizer-active );
574
570
}
575
571
.sidebar-resizing > body {
576
572
padding-left : var (--resizing-sidebar-width );
@@ -586,6 +582,7 @@ img {
586
582
on top of, the scrollbar) */
587
583
left : calc (var (--desktop-sidebar-width ) - 1px );
588
584
border-left : solid 1px var (--sidebar-resizer-hover );
585
+ color : var (--sidebar-resizer-hover );
589
586
}
590
587
591
588
.src-sidebar-expanded .rustdoc .src .sidebar-resizer : hover ,
@@ -611,17 +608,10 @@ img {
611
608
/* make the resize tool bigger when actually resizing, to avoid :hover styles on other stuff
612
609
while resizing */
613
610
padding : 0 140px ;
614
- width: 2px;
611
+ width : calc ( 140 px + 140 px + 9 px + 2px ) ;
615
612
margin-left : -140px ;
616
613
border-left : none;
617
- }
618
- .sidebar-resizer.active::before {
619
- border-left: solid 2px var(--sidebar-resizer-active);
620
- margin-left: 8px;
621
- padding-left: 1px;
622
- display: block;
623
- height: 100%;
624
- content: " ";
614
+ color : var (--sidebar-resizer-active );
625
615
}
626
616
627
617
.sidebar , .mobile-topbar , .sidebar-menu-toggle ,
@@ -3021,8 +3011,6 @@ by default.
3021
3011
--scrape-example-code-wrapper-background-end : rgba (255 , 255 , 255 , 0 );
3022
3012
--sidebar-resizer-hover : hsl (207 , 90% , 66% );
3023
3013
--sidebar-resizer-active : hsl (207 , 90% , 54% );
3024
- --sidebar-resizer-img-filter : opacity (66% );
3025
- --sidebar-resizer-img-hover-filter : none;
3026
3014
}
3027
3015
/* End theme: light */
3028
3016
@@ -3036,7 +3024,7 @@ by default.
3036
3024
--settings-button-border-focus : # ffb900 ;
3037
3025
--sidebar-background-color : # 505050 ;
3038
3026
--sidebar-background-color-hover : # 676767 ;
3039
- --sidebar-border-color : # 2A2A2A ;
3027
+ --sidebar-border-color : # 999 ;
3040
3028
--code-block-background-color : # 2A2A2A ;
3041
3029
--scrollbar-track-background-color : # 717171 ;
3042
3030
--scrollbar-thumb-background-color : rgba (32 , 34 , 37 , .6 );
@@ -3132,8 +3120,6 @@ by default.
3132
3120
--scrape-example-code-wrapper-background-end : rgba (53 , 53 , 53 , 0 );
3133
3121
--sidebar-resizer-hover : hsl (207 , 30% , 54% );
3134
3122
--sidebar-resizer-active : hsl (207 , 90% , 54% );
3135
- --sidebar-resizer-img-filter : opacity (66% );
3136
- --sidebar-resizer-img-hover-filter : none;
3137
3123
}
3138
3124
/* End theme: dark */
3139
3125
@@ -3151,7 +3137,7 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3151
3137
--settings-button-border-focus : # e0e0e0 ;
3152
3138
--sidebar-background-color : # 14191f ;
3153
3139
--sidebar-background-color-hover : rgba (70 , 70 , 70 , 0.33 );
3154
- --sidebar-border-color : # 000 ;
3140
+ --sidebar-border-color : # 5c6773 ;
3155
3141
--code-block-background-color : # 191f26 ;
3156
3142
--scrollbar-track-background-color : transparent;
3157
3143
--scrollbar-thumb-background-color : # 5c6773 ;
@@ -3247,8 +3233,6 @@ Original by Dempfi (https://github.com/dempfi/ayu)
3247
3233
--scrape-example-code-wrapper-background-end : rgba (15 , 20 , 25 , 0 );
3248
3234
--sidebar-resizer-hover : hsl (34 , 50% , 33% );
3249
3235
--sidebar-resizer-active : hsl (34 , 100% , 66% );
3250
- --sidebar-resizer-img-filter : opacity (66% );
3251
- --sidebar-resizer-img-hover-filter : none;
3252
3236
}
3253
3237
3254
3238
: root [data-theme = "ayu" ] h1 ,
0 commit comments