@@ -177,12 +177,21 @@ h1, h2, h3, h4 {
177177 position : relative;
178178 display : grid;
179179 grid-template-areas :
180+ "main-heading-breadcrumbs main-heading-breadcrumbs"
180181 "main-heading-h1 main-heading-toolbar"
181182 "main-heading-sub-heading main-heading-toolbar" ;
182183 grid-template-columns : 1fr max-content;
184+ grid-template-rows : 25px min-content min-content;
183185 padding-bottom : 6px ;
184186 margin-bottom : 15px ;
185187}
188+ .rustdoc-breadcrumbs {
189+ grid-area : main-heading-breadcrumbs;
190+ height : 25px ;
191+ line-height : 1.25 ;
192+ display : flex;
193+ align-items : end;
194+ }
186195/* The only headings that get underlines are:
187196 Markdown-generated headings within the top-doc
188197 Rustdoc-generated h2 section headings (e.g. "Implementations", "Required Methods", etc)
@@ -228,6 +237,7 @@ a.src,
228237rustdoc-toolbar ,
229238summary .hideme ,
230239.scraped-example-list ,
240+ .rustdoc-breadcrumbs ,
231241/* This selector is for the items listed in the "all items" page. */
232242ul .all-items {
233243 font-family : "Fira Sans" , Arial, NanumBarunGothic, sans-serif;
@@ -890,9 +900,10 @@ both the code example and the line numbers, so we need to remove the radius in t
890900}
891901
892902.sub-heading {
903+ font-size : 1rem ;
893904 flex-grow : 0 ;
894- font-size : 1.125rem ;
895905 grid-area : main-heading-sub-heading;
906+ line-height : 1.25 ;
896907}
897908
898909.main-heading rustdoc-toolbar , .main-heading .out-of-band {
@@ -953,7 +964,7 @@ div.where {
953964nav .sub {
954965 flex-grow : 1 ;
955966 flex-flow : row nowrap;
956- margin : 4px 0 25 px 0 ;
967+ margin : 4px 0 0 0 ;
957968 display : flex;
958969 align-items : center;
959970}
@@ -964,7 +975,7 @@ nav.sub {
964975 flex-grow : 1 ;
965976}
966977.src nav .sub {
967- margin : 0 0 15 px 0 ;
978+ margin : 0 0 -10 px 0 ;
968979}
969980
970981.section-header {
@@ -1074,6 +1085,11 @@ table,
10741085 with boxes (i.e. from the flex layout) */
10751086 align-items : baseline;
10761087}
1088+ .search-results-title + .sub-heading {
1089+ color : var (--main-color );
1090+ display : flex;
1091+ align-items : center;
1092+ }
10771093# crate-search-div {
10781094 /* ensures that 100% in properties of #crate-search-div:after
10791095 are relative to the size of this div */
@@ -1298,15 +1314,15 @@ so that we can apply CSS-filters to change the arrow color in themes */
12981314}
12991315
13001316# settings .popover {
1301- --popover-arrow-offset : 118 px ;
1302- top : 26 px ;
1317+ --popover-arrow-offset : 202 px ;
1318+ top : calc ( 100 % - 12 px ) ;
13031319}
13041320
13051321/* use larger max-width for help popover, but not for help.html */
13061322# help .popover {
13071323 max-width : 600px ;
1308- --popover-arrow-offset : 36 px ;
1309- top : 26 px ;
1324+ --popover-arrow-offset : 118 px ;
1325+ top : calc ( 100 % - 12 px ) ;
13101326}
13111327
13121328# help dt {
@@ -1722,7 +1738,6 @@ a.tooltip:hover::after {
17221738}
17231739
17241740# search-tabs {
1725- grid-area : main-heading-sub-heading;
17261741 margin-top : 0.25rem ;
17271742 display : flex;
17281743 flex-direction : row;
@@ -1788,7 +1803,7 @@ a.tooltip:hover::after {
17881803# settings-menu , # help-button , button # toggle-all-docs {
17891804 margin-left : var (--button-left-margin );
17901805 display : flex;
1791- line-height : initial ;
1806+ line-height : 1.25 ;
17921807}
17931808# sidebar-button {
17941809 display : none;
@@ -1873,7 +1888,8 @@ button#toggle-all-docs:before {
18731888 content : url ('data:image/svg+xml,<svg width="18" height="18" viewBox="0 0 12 12" \
18741889 enable-background= "new 0 0 12 12" xmlns="http://www.w3.org/2000/svg" fill="none">\
18751890 <circle r= "5.25" cx="6" cy="6" stroke-width="1.25" stroke="black"/>\
1876- <text x= "4.25" y="9" style="font:8px sans-serif;font-weight:1000" fill="black">?</text></svg>');
1891+ <text x= "6" y="7" style="font:8px sans-serif;font-weight:1000" text-anchor="middle" \
1892+ dominant-baseline="middle" fill="black">?</text></svg>');
18771893 width : 18px ;
18781894 height : 18px ;
18791895 filter : var (--settings-menu-filter );
@@ -1894,10 +1910,19 @@ button#toggle-all-docs:before,
18941910 }
18951911}
18961912
1913+ button [disabled ]# toggle-all-docs {
1914+ opacity : 0.25 ;
1915+ border : solid 1px var (--main-background-color );
1916+ background-size : cover;
1917+ }
1918+
1919+ button [disabled ]# toggle-all-docs : hover {
1920+ border : solid 1px var (--main-background-color );
1921+ cursor : not-allowed;
1922+ }
1923+
18971924rustdoc-toolbar span .label {
1898- font-size : initial;
1899- font-variant-caps : small-caps;
1900- text-transform : lowercase;
1925+ font-size : 1rem ;
19011926 flex-grow : 1 ;
19021927}
19031928
@@ -2155,15 +2180,6 @@ However, it's not needed with smaller screen width because the doc/code block is
21552180 opacity : 0.75 ;
21562181}
21572182
2158- /* help button is mostly for search */
2159- # help-button : not (.help-open ),
2160- # alternative-display # toggle-all-docs {
2161- display : none;
2162- }
2163- # alternative-display # help-button {
2164- display : flex;
2165- }
2166-
21672183/* Media Queries */
21682184
21692185/* Make sure all the buttons line wrap at the same time */
@@ -2206,12 +2222,10 @@ in src-script.js and main.js
22062222 width : 33px ;
22072223 }
22082224 # settings .popover {
2209- --popover-arrow-offset : 48px ;
2210- top : calc (100% - 8px );
2225+ --popover-arrow-offset : 86px ;
22112226 }
22122227 # help .popover {
2213- --popover-arrow-offset : 12px ;
2214- top : calc (100% - 8px );
2228+ --popover-arrow-offset : 48px ;
22152229 }
22162230
22172231 .rustdoc {
@@ -2257,6 +2271,9 @@ in src-script.js and main.js
22572271 .src .search-form {
22582272 margin-left : 40px ;
22592273 }
2274+ .src .main-heading {
2275+ margin-left : 8px ;
2276+ }
22602277 .hide-sidebar .search-form {
22612278 margin-left : 32px ;
22622279 }
@@ -2394,7 +2411,7 @@ in src-script.js and main.js
23942411 }
23952412
23962413 .src nav .sub {
2397- margin : 0 ;
2414+ margin : 0 0 -25 px 0 ;
23982415 padding : var (--nav-sub-mobile-padding );
23992416 }
24002417}
0 commit comments