diff options
Diffstat (limited to 'target/doc/rustdoc.css')
-rw-r--r-- | target/doc/rustdoc.css | 85 |
1 files changed, 74 insertions, 11 deletions
diff --git a/target/doc/rustdoc.css b/target/doc/rustdoc.css index cd4f2cf..31a501d 100644 --- a/target/doc/rustdoc.css +++ b/target/doc/rustdoc.css @@ -109,7 +109,7 @@ h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant { position: relative; } h3.impl, h3.method, h3.type { - margin-top: 15px; + padding-left: 15px; } h1, h2, h3, h4, @@ -182,7 +182,7 @@ nav.sub { } .sidebar .block > ul > li { - margin-right: -20px; + margin-right: -10px; } .content, nav { @@ -295,6 +295,11 @@ nav.sub { overflow: auto; } +#results > table { + width: 100%; + table-layout: fixed; +} + .content pre.line-numbers { float: left; border: none; @@ -386,8 +391,6 @@ h4 > code, h3 > code, .invisible > code { .content .in-band { margin: 0px; padding: 0px; - display: inline-block; - max-width: calc(100% - 43px); } .in-band > code { @@ -402,7 +405,7 @@ h4 > code, h3 > code, .invisible > code { font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; } -.content table { +.content table:not(.table-display) { border-spacing: 0 5px; border-collapse: separate; } @@ -466,10 +469,12 @@ h4 > code, h3 > code, .invisible > code { font-size: 0.8em; } -.content .methods > div:not(.important-traits) { margin-left: 40px; } +.content .methods > div:not(.important-traits) { + margin-left: 40px; + margin-bottom: 15px; +} .content .impl-items .docblock, .content .impl-items .stability { - margin-left: 40px; margin-bottom: .6em; } .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant { @@ -522,10 +527,13 @@ a { .anchor { display: none; position: absolute; - left: -25px; + left: -7px; } .anchor.field { - left: -20px; + left: -5px; +} +.small-section-header > .anchor { + left: -28px; } .anchor:before { content: '\2002\00a7\2002'; @@ -573,8 +581,16 @@ a { display: block; } -.content .search-results td:first-child { padding-right: 0; } -.content .search-results td:first-child a { padding-right: 10px; } +.content .search-results td:first-child { + padding-right: 0; + width: 75%; +} +.content .search-results td:first-child a { + padding-right: 10px; +} +.content .search-results td:first-child a span { + float: left; +} tr.result span.primitive::after { content: ' (primitive type)'; @@ -926,6 +942,10 @@ span.since { .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant { display: flex; } + + .anchor { + display: none !important; + } } @media print { @@ -1083,6 +1103,14 @@ h4 > .important-traits { z-index: -1; border-bottom: 1px solid; } + + .collapse-toggle { + left: -20px; + } + + .impl > .collapse-toggle { + left: -10px; + } } @@ -1189,6 +1217,10 @@ kbd { top: 19px; } +.theme-picker button { + outline: none; +} + #theme-picker { padding: 4px; width: 27px; @@ -1228,3 +1260,34 @@ kbd { z-index: 1; } } + +.hidden-by-impl-hider, +.hidden-by-usual-hider { + /* important because of conflicting rule for small screens */ + display: none !important; +} + +#implementations-list > h3 > span.in-band { + width: 100%; +} + +.table-display { + width: 100%; + border: 0; + border-collapse: collapse; + border-spacing: 0; + font-size: 16px; +} + +.table-display tr td:first-child { + padding-right: 0; +} + +.table-display tr td:last-child { + float: right; +} +.table-display .out-of-band { + position: relative; + font-size: 19px; + display: block; +} |