summaryrefslogtreecommitdiffstats
path: root/target/doc/rustdoc.css
diff options
context:
space:
mode:
Diffstat (limited to 'target/doc/rustdoc.css')
-rw-r--r--target/doc/rustdoc.css562
1 files changed, 506 insertions, 56 deletions
diff --git a/target/doc/rustdoc.css b/target/doc/rustdoc.css
index 567c8fb..cd4f2cf 100644
--- a/target/doc/rustdoc.css
+++ b/target/doc/rustdoc.css
@@ -89,7 +89,7 @@ h2 {
h3 {
font-size: 1.3em;
}
-h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
+h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.important), h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
font-weight: 500;
margin: 20px 0 15px 0;
padding-bottom: 6px;
@@ -111,7 +111,10 @@ h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant {
h3.impl, h3.method, h3.type {
margin-top: 15px;
}
-h1, h2, h3, h4, .sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle {
+
+h1, h2, h3, h4,
+.sidebar, a.source, .search-input, .content table :not(code)>a,
+.collapse-toggle, ul.item-list > li > .out-of-band {
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@@ -126,6 +129,10 @@ p {
margin: 0 0 .6em 0;
}
+summary {
+ outline: none;
+}
+
code, pre {
font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", Inconsolata, monospace;
white-space: pre-wrap;
@@ -134,9 +141,12 @@ code, pre {
border-radius: 3px;
padding: 0 0.2em;
}
-.docblock pre code, .docblock-short pre code {
+.docblock pre code, .docblock-short pre code, .docblock code.spotlight {
padding: 0;
}
+.docblock code.spotlight :last-child {
+ padding-bottom: 0.6em;
+}
pre {
padding: 14px;
}
@@ -164,46 +174,60 @@ nav.sub {
.sidebar {
width: 200px;
- position: absolute;
+ position: fixed;
left: 0;
top: 0;
- min-height: 100%;
+ height: 100vh;
+ overflow: auto;
}
-.sidebar .current {
+.sidebar .block > ul > li {
margin-right: -20px;
}
-.content, nav { max-width: 960px; }
+.content, nav {
+ max-width: 960px;
+}
/* Everything else */
-.js-only, .hidden { display: none !important; }
-
-.sidebar {
- padding: 10px;
+.js-only, .hidden {
+ display: none !important;
}
+
.sidebar img {
margin: 20px auto;
display: block;
+ margin-top: 10px;
}
.sidebar .location {
border: 1px solid;
font-size: 17px;
- margin: 30px 0 20px 0;
+ margin: 30px 10px 20px 10px;
text-align: center;
word-wrap: break-word;
}
+.sidebar .version {
+ font-size: 15px;
+ text-align: center;
+ border-bottom: 1px solid;
+ overflow-wrap: break-word;
+ word-wrap: break-word; /* deprecated */
+ word-break: break-word; /* Chrome, non-standard */
+}
+
.location:empty {
border: none;
}
-.location a:first-child { font-weight: 500; }
+.location a:first-child {
+ font-weight: 500;
+}
.block {
- padding: 0 10px;
+ padding: 0;
margin-bottom: 14px;
}
.block h2, .block h3 {
@@ -212,7 +236,7 @@ nav.sub {
text-align: center;
}
.block ul, .block li {
- margin: 0;
+ margin: 0 10px;
padding: 0;
list-style: none;
}
@@ -228,6 +252,27 @@ nav.sub {
transition: border 500ms ease-out;
}
+.sidebar-title {
+ border-top: 1px solid;
+ border-bottom: 1px solid;
+ text-align: center;
+ font-size: 17px;
+ margin-bottom: 5px;
+}
+
+.sidebar-links {
+ margin-bottom: 15px;
+}
+
+.sidebar-links > a {
+ padding-left: 10px;
+ width: 100%;
+}
+
+.sidebar-menu {
+ display: none;
+}
+
.content {
padding: 15px 0;
}
@@ -237,9 +282,19 @@ nav.sub {
overflow: auto;
padding-left: 0;
}
+
#search {
margin-left: 230px;
+ position: relative;
}
+
+#results {
+ position: absolute;
+ right: 0;
+ left: 0;
+ overflow: auto;
+}
+
.content pre.line-numbers {
float: left;
border: none;
@@ -250,7 +305,9 @@ nav.sub {
-ms-user-select: none;
user-select: none;
}
-.line-numbers span { cursor: pointer; }
+.line-numbers span {
+ cursor: pointer;
+}
.docblock-short p {
display: inline;
@@ -268,18 +325,25 @@ nav.sub {
text-overflow: ellipsis;
margin: 0;
}
-.docblock-short code { white-space: nowrap; }
+.docblock-short code {
+ white-space: nowrap;
+}
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
border-bottom: 1px solid;
}
-.docblock h1 { font-size: 1.3em; }
-.docblock h2 { font-size: 1.15em; }
-.docblock h3, .docblock h4, .docblock h5 { font-size: 1em; }
+#main > .docblock h1 { font-size: 1.3em; }
+#main > .docblock h2 { font-size: 1.15em; }
+#main > .docblock h3, #main > .docblock h4, #main > .docblock h5 { font-size: 1em; }
+
+.docblock h1 { font-size: 1em; }
+.docblock h2 { font-size: 0.95em; }
+.docblock h3, .docblock h4, .docblock h5 { font-size: 0.9em; }
.docblock {
margin-left: 24px;
+ position: relative;
}
.content .out-of-band {
@@ -297,8 +361,17 @@ h3.impl > .out-of-band {
font-size: 21px;
}
+h4.method > .out-of-band {
+ font-size: 19px;
+}
+
+ul.item-list > li > .out-of-band {
+ font-size: 19px;
+}
+
h4 > code, h3 > code, .invisible > code {
- position: inherit;
+ max-width: calc(100% - 41px);
+ display: block;
}
.in-band, code {
@@ -306,7 +379,6 @@ h4 > code, h3 > code, .invisible > code {
}
.invisible {
- background: rgba(0, 0, 0, 0);
width: 100%;
display: inline-block;
}
@@ -315,9 +387,16 @@ h4 > code, h3 > code, .invisible > code {
margin: 0px;
padding: 0px;
display: inline-block;
+ max-width: calc(100% - 43px);
+}
+
+.in-band > code {
+ display: inline-block;
}
-#main { position: relative; }
+#main {
+ position: relative;
+}
#main > .since {
top: inherit;
font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
@@ -361,7 +440,9 @@ h4 > code, h3 > code, .invisible > code {
padding: 0;
}
-.content .item-list li { margin-bottom: 3px; }
+.content .item-list li {
+ margin-bottom: 1em;
+}
.content .multi-column {
-moz-column-count: 5;
@@ -382,14 +463,14 @@ h4 > code, h3 > code, .invisible > code {
.content .fn .where,
.content .where.fmt-newline {
display: block;
- color: #4E4C4C;
font-size: 0.8em;
}
-.content .methods > div { margin-left: 40px; }
+.content .methods > div:not(.important-traits) { margin-left: 40px; }
.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 {
margin-left: 20px;
@@ -430,14 +511,30 @@ a {
background: transparent;
}
+.small-section-header:hover > .anchor {
+ display: initial;
+}
+
+.in-band:hover > .anchor {
+ display: inline-block;
+ position: absolute;
+}
+.anchor {
+ display: none;
+ position: absolute;
+ left: -25px;
+}
+.anchor.field {
+ left: -20px;
+}
+.anchor:before {
+ content: '\2002\00a7\2002';
+}
+
.docblock a:hover, .docblock-short a:hover, .stability a {
text-decoration: underline;
}
-.content span.enum, .content a.enum, .block a.current.enum { color: #5e9766; }
-.content span.struct, .content a.struct, .block a.current.struct { color: #df3600; }
-.content span.type, .content a.type, .block a.current.type { color: #e57300; }
-.content span.macro, .content a.macro, .block a.current.macro { color: #068000; }
.block a.current.crate { font-weight: 500; }
.search-input {
@@ -459,7 +556,6 @@ a {
}
.search-input:focus {
- border-color: #66afe9;
border-radius: 2px;
border: 0;
outline: 0;
@@ -480,7 +576,9 @@ a {
.content .search-results td:first-child { padding-right: 0; }
.content .search-results td:first-child a { padding-right: 10px; }
-tr.result span.primitive::after { content: ' (primitive type)'; font-style: italic; color: black;
+tr.result span.primitive::after {
+ content: ' (primitive type)';
+ font-style: italic;
}
body.blur > :not(#help) {
@@ -503,26 +601,22 @@ body.blur > :not(#help) {
flex: 0 0 auto;
box-shadow: 0 0 6px rgba(0,0,0,.2);
width: 550px;
- height: 330px;
+ height: auto;
border: 1px solid;
}
#help dt {
float: left;
- border-radius: 4px;
- border: 1px solid;
- width: 23px;
- text-align: center;
clear: left;
display: block;
- margin-top: -1px;
}
-#help dd { margin: 5px 33px; }
+#help dd { margin: 5px 35px; }
#help .infos { padding-left: 0; }
#help h1, #help h2 { margin-top: 0; }
#help > div div {
width: 50%;
float: left;
padding: 20px;
+ padding-left: 17px;
}
.stab {
@@ -585,7 +679,6 @@ pre.rust .question-mark {
font-weight: bold;
}
-pre.rust { position: relative; }
a.test-arrow {
display: inline-block;
position: absolute;
@@ -599,7 +692,9 @@ a.test-arrow:hover{
text-decoration: none;
}
-.section-header:hover a:after {
+.section-header:hover a:before {
+ position: absolute;
+ left: -25px;
content: '\2002\00a7\2002';
}
@@ -615,7 +710,6 @@ a.test-arrow:hover{
font-weight: 300;
position: absolute;
left: -23px;
- color: #999;
top: 0;
}
@@ -631,11 +725,13 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
.toggle-wrapper {
position: relative;
+ margin-top: 5px;
}
.toggle-wrapper.collapsed {
- height: 1em;
+ height: 25px;
transition: height .2s;
+ margin-bottom: .6em;
}
.collapse-toggle > .inner {
@@ -673,7 +769,7 @@ span.since {
left: 0;
}
-.variant + .toggle-wrapper > a {
+.variant + .toggle-wrapper + .docblock > p {
margin-top: 5px;
}
@@ -681,17 +777,32 @@ span.since {
margin-top: 0 !important;
}
+.toggle-label {
+ display: inline-block;
+ margin-left: 4px;
+ margin-top: 3px;
+}
+
.enum > .toggle-wrapper + .docblock, .struct > .toggle-wrapper + .docblock {
margin-left: 30px;
margin-bottom: 20px;
margin-top: 5px;
}
+.docblock > .section-header:first-child {
+ margin-left: 15px;
+ margin-top: 0;
+}
+
+.docblock > .section-header:first-child:hover > a:before {
+ left: -10px;
+}
+
.enum > .collapsed, .struct > .collapsed {
margin-bottom: 25px;
}
-.enum .variant, .struct .structfield {
+#main > .variant, #main > .structfield {
display: block;
}
@@ -715,17 +826,20 @@ span.since {
}
.sidebar {
- height: 40px;
+ height: 45px;
min-height: 40px;
- width: 100%;
- margin: 0px;
- padding: 0px;
+ width: calc(100% + 30px);
+ margin: 0;
+ margin-left: -15px;
+ padding: 0 15px;
position: static;
+ z-index: 1;
}
- .sidebar .location {
+ .sidebar > .location {
float: right;
margin: 0px;
+ margin-top: 2px;
padding: 3px 10px 1px 10px;
min-height: 39px;
background: inherit;
@@ -740,28 +854,61 @@ span.since {
.sidebar img {
width: 35px;
margin-top: 5px;
- margin-bottom: 0px;
+ margin-bottom: 5px;
float: left;
+ margin-left: 50px;
}
- nav.sub {
- margin: 0 auto;
+ .sidebar-menu {
+ position: fixed;
+ z-index: 10;
+ font-size: 2rem;
+ cursor: pointer;
+ width: 45px;
+ left: 0;
+ text-align: center;
+ display: block;
+ border-bottom: 1px solid;
+ border-right: 1px solid;
+ height: 45px;
}
- .sidebar .block {
+ .sidebar-elems {
+ position: fixed;
+ z-index: 1;
+ left: 0;
+ top: 45px;
+ bottom: 0;
+ overflow-y: auto;
+ border-right: 1px solid;
display: none;
}
+ .sidebar > .block.version {
+ border-bottom: none;
+ margin-top: 12px;
+ }
+
+ nav.sub {
+ width: calc(100% - 32px);
+ float: right;
+ }
+
.content {
margin-left: 0px;
}
+ #main {
+ margin-top: 45px;
+ padding: 0;
+ }
+
.content .in-band {
width: 100%;
}
- .content .out-of-band {
- display: none;
+ .content h4 > .out-of-band {
+ position: inherit;
}
.toggle-wrapper > .collapse-toggle {
@@ -771,6 +918,14 @@ span.since {
.toggle-wrapper {
height: 1.5em;
}
+
+ #search {
+ margin-left: 0;
+ }
+
+ .content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant {
+ display: flex;
+ }
}
@media print {
@@ -778,3 +933,298 @@ span.since {
display: none;
}
}
+
+.information {
+ position: absolute;
+ left: -20px;
+ margin-top: 7px;
+ z-index: 1;
+}
+
+.tooltip {
+ position: relative;
+ display: inline-block;
+ cursor: pointer;
+}
+
+.tooltip .tooltiptext {
+ width: 120px;
+ display: none;
+ text-align: center;
+ padding: 5px 3px;
+ border-radius: 6px;
+ margin-left: 5px;
+ top: -5px;
+ left: 105%;
+ z-index: 1;
+}
+
+.tooltip:hover .tooltiptext {
+ display: inline;
+}
+
+.tooltip .tooltiptext::after {
+ content: " ";
+ position: absolute;
+ top: 50%;
+ left: 11px;
+ margin-top: -5px;
+ border-width: 5px;
+ border-style: solid;
+}
+
+.important-traits .tooltip .tooltiptext {
+ border: 1px solid;
+}
+
+pre.rust {
+ position: relative;
+}
+
+.search-failed {
+ text-align: center;
+ margin-top: 20px;
+}
+
+#titles {
+ height: 35px;
+}
+
+#titles > div {
+ float: left;
+ width: 33.3%;
+ text-align: center;
+ border-bottom: 1px solid;
+ font-size: 18px;
+ cursor: pointer;
+}
+
+#titles > div.selected {
+ border-bottom: 3px solid;
+}
+
+#titles > div:hover {
+ border-bottom: 3px solid;
+}
+
+#titles > div > div.count {
+ display: inline-block;
+ font-size: 16px;
+}
+
+.important-traits {
+ cursor: pointer;
+ z-index: 2;
+}
+
+h4 > .important-traits {
+ position: absolute;
+ left: -44px;
+ top: 2px;
+}
+
+@media (max-width: 700px) {
+ h4 > .important-traits {
+ position: absolute;
+ left: -22px;
+ top: 24px;
+ }
+
+ #titles > div > div.count {
+ float: left;
+ width: 100%;
+ }
+
+ #titles {
+ height: 50px;
+ }
+
+ .sidebar.mobile {
+ position: fixed;
+ width: 100%;
+ margin-left: 0;
+ background-color: rgba(0,0,0,0);
+ height: 100%;
+ }
+
+ .show-it {
+ display: block;
+ width: 246px;
+ }
+
+ .show-it > .block.items {
+ margin: 8px 0;
+ }
+
+ .show-it > .block.items > ul {
+ margin: 0;
+ }
+
+ .show-it > .block.items > ul > li {
+ text-align: center;
+ margin: 2px 0;
+ }
+
+ .show-it > .block.items > ul > li > a {
+ font-size: 21px;
+ }
+
+ /* Because of ios, we need to actually have a full height sidebar title so the
+ * actual sidebar can show up. But then we need to make it transparent so we don't
+ * hide content. The filler just allows to create the background for the sidebar
+ * title. But because of the absolute position, I had to lower the z-index.
+ */
+ #sidebar-filler {
+ position: fixed;
+ left: 45px;
+ width: calc(100% - 45px);
+ top: 0;
+ height: 45px;
+ z-index: -1;
+ border-bottom: 1px solid;
+ }
+}
+
+
+@media (max-width: 416px) {
+ #titles {
+ height: 73px;
+ }
+
+ #titles > div {
+ height: 73px;
+ }
+}
+
+.modal {
+ position: fixed;
+ width: 100vw;
+ height: 100vh;
+ z-index: 10000;
+ top: 0;
+ left: 0;
+}
+
+.modal-content {
+ display: block;
+ max-width: 60%;
+ min-width: 200px;
+ padding: 8px;
+ top: 40%;
+ position: absolute;
+ left: 50%;
+ transform: translate(-50%, -40%);
+ border: 1px solid;
+ border-radius: 4px;
+ border-top-right-radius: 0;
+}
+
+.modal-content > .docblock {
+ margin: 0;
+}
+
+h3.important {
+ margin: 0;
+ margin-bottom: 13px;
+ font-size: 19px;
+}
+
+.modal-content > .docblock > code.content {
+ margin: 0;
+ padding: 0;
+ font-size: 20px;
+}
+
+.modal-content > .close {
+ position: absolute;
+ font-weight: 900;
+ right: -25px;
+ top: -1px;
+ font-size: 18px;
+ width: 25px;
+ padding-right: 2px;
+ border-top-right-radius: 5px;
+ border-bottom-right-radius: 5px;
+ text-align: center;
+ border: 1px solid;
+ border-right: 0;
+ cursor: pointer;
+}
+
+.modal-content > .whiter {
+ height: 25px;
+ position: absolute;
+ width: 3px;
+ right: -2px;
+ top: 0px;
+}
+
+#main > div.important-traits {
+ position: absolute;
+ left: -24px;
+ margin-top: 16px;
+}
+
+.content > .methods > div.important-traits {
+ position: absolute;
+ left: -42px;
+ margin-top: 2px;
+}
+
+kbd {
+ display: inline-block;
+ padding: 3px 5px;
+ font: 15px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ line-height: 10px;
+ vertical-align: middle;
+ border: solid 1px;
+ border-radius: 3px;
+ box-shadow: inset 0 -1px 0;
+ cursor: default;
+}
+
+.theme-picker {
+ position: absolute;
+ left: 211px;
+ top: 19px;
+}
+
+#theme-picker {
+ padding: 4px;
+ width: 27px;
+ height: 29px;
+ border: 1px solid;
+ border-radius: 3px;
+ cursor: pointer;
+}
+
+#theme-choices {
+ display: none;
+ position: absolute;
+ left: 0;
+ top: 28px;
+ border: 1px solid;
+ border-radius: 3px;
+ z-index: 1;
+ cursor: pointer;
+}
+
+#theme-choices > button {
+ border: none;
+ width: 100%;
+ padding: 4px;
+ text-align: center;
+ background: rgba(0,0,0,0);
+}
+
+#theme-choices > button:not(:first-child) {
+ border-top: 1px solid;
+}
+
+@media (max-width: 700px) {
+ .theme-picker {
+ left: 10px;
+ top: 54px;
+ z-index: 1;
+ }
+}