File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 40
40
{%- if let Some(source_size) = source_size -%}
41
41
< li class ="pure-menu-heading "> Size</ li >
42
42
< li class ="pure-menu-item ">
43
- < span class ="documented-info "> Source code size: {{(*source_size)|filesizeformat}}</ span >
43
+ < span class ="documented-info "> Source code size: {{(*source_size)|filesizeformat}} < span class ="size " tabindex =0 >
44
+ {{- crate::icons::IconCircleInfo.render_solid(false, false, "") -}}
45
+ < span class ="info "> This is the summed size of all the files inside the crates.io package for this release.</ span >
46
+ </ span >
44
47
</ li >
45
48
{%- if let Some(doc_size) = documentation_size -%}
46
49
< li class ="pure-menu-item ">
47
- < span class ="documented-info "> Documentation size: {{(*doc_size)|filesizeformat}}</ span >
50
+ < span class ="documented-info "> Documentation size: {{(*doc_size)|filesizeformat}} < span class ="size " tabindex =0 >
51
+ {{- crate::icons::IconCircleInfo.render_solid(false, false, "") -}}
52
+ < span class ="info "> This is the summed size of all files generated by rustdoc for all configured targets</ span >
53
+ </ span >
48
54
</ li >
49
55
{%- endif -%}
50
56
{%- endif -%}
Original file line number Diff line number Diff line change @@ -479,6 +479,20 @@ div.package-page-container {
479
479
width : 100% ;
480
480
}
481
481
482
+ .documented-info .size .info {
483
+ display : none ;
484
+ position : absolute ;
485
+ top : 90% ;
486
+ background : var (--color-background-code );
487
+ z-index : 1 ;
488
+ border : 1px solid var (--color-menu-border );
489
+ }
490
+
491
+ .documented-info .size :hover .info ,
492
+ .documented-info .size :focus .info {
493
+ display : block ;
494
+ }
495
+
482
496
li .pure-menu-heading :first-child {
483
497
margin-top : 0 ;
484
498
}
You can’t perform that action at this time.
0 commit comments