2015-09-19 10:42:03 +01:00
|
|
|
|
/* See FiraSans-LICENSE.txt for the Fira Sans license. */
|
2014-04-12 21:39:12 +02:00
|
|
|
|
@font-face {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-family: 'Fira Sans';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 400;
|
2021-02-26 00:02:11 -08:00
|
|
|
|
src: local('Fira Sans'),
|
|
|
|
|
url("FiraSans-Regular.woff2") format("woff2"),
|
|
|
|
|
url("FiraSans-Regular.woff") format('woff');
|
2021-02-19 17:54:41 -08:00
|
|
|
|
font-display: swap;
|
2014-04-12 21:39:12 +02:00
|
|
|
|
}
|
|
|
|
|
@font-face {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-family: 'Fira Sans';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 500;
|
2021-02-26 00:02:11 -08:00
|
|
|
|
src: local('Fira Sans Medium'),
|
|
|
|
|
url("FiraSans-Medium.woff2") format("woff2"),
|
|
|
|
|
url("FiraSans-Medium.woff") format('woff');
|
2021-02-19 17:54:41 -08:00
|
|
|
|
font-display: swap;
|
2014-04-12 21:39:12 +02:00
|
|
|
|
}
|
2015-09-19 10:42:03 +01:00
|
|
|
|
|
2021-03-29 18:33:22 +02:00
|
|
|
|
/* See SourceSerif4-LICENSE.md for the Source Serif 4 license. */
|
2014-04-12 21:39:12 +02:00
|
|
|
|
@font-face {
|
2021-03-29 18:33:22 +02:00
|
|
|
|
font-family: 'Source Serif 4';
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 400;
|
2021-03-29 18:33:22 +02:00
|
|
|
|
src: local('Source Serif 4'), url("SourceSerif4-Regular.ttf.woff") format('woff');
|
2021-02-19 17:54:41 -08:00
|
|
|
|
font-display: swap;
|
2014-04-12 21:39:12 +02:00
|
|
|
|
}
|
|
|
|
|
@font-face {
|
2021-03-29 18:33:22 +02:00
|
|
|
|
font-family: 'Source Serif 4';
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 400;
|
2021-03-29 18:33:22 +02:00
|
|
|
|
src: local('Source Serif 4 Italic'), url("SourceSerif4-It.ttf.woff") format('woff');
|
2021-02-19 17:54:41 -08:00
|
|
|
|
font-display: swap;
|
2014-04-12 21:39:12 +02:00
|
|
|
|
}
|
|
|
|
|
@font-face {
|
2021-03-29 18:33:22 +02:00
|
|
|
|
font-family: 'Source Serif 4';
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 700;
|
2021-03-29 18:33:22 +02:00
|
|
|
|
src: local('Source Serif 4 Bold'), url("SourceSerif4-Bold.ttf.woff") format('woff');
|
2021-02-19 17:54:41 -08:00
|
|
|
|
font-display: swap;
|
2014-04-12 21:39:12 +02:00
|
|
|
|
}
|
2015-09-19 10:42:03 +01:00
|
|
|
|
|
|
|
|
|
/* See SourceCodePro-LICENSE.txt for the Source Code Pro license. */
|
2014-07-08 20:26:23 +02:00
|
|
|
|
@font-face {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-family: 'Source Code Pro';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 400;
|
2016-12-04 13:44:19 -08:00
|
|
|
|
/* Avoid using locally installed font because bad versions are in circulation:
|
|
|
|
|
* see https://github.com/rust-lang/rust/issues/24355 */
|
2021-03-04 15:38:31 +01:00
|
|
|
|
src: url("SourceCodePro-Regular.ttf.woff") format('woff');
|
|
|
|
|
font-display: swap;
|
|
|
|
|
}
|
|
|
|
|
@font-face {
|
|
|
|
|
font-family: 'Source Code Pro';
|
|
|
|
|
font-style: italic;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
src: url("SourceCodePro-It.ttf.woff") format('woff');
|
2021-02-19 17:54:41 -08:00
|
|
|
|
font-display: swap;
|
2014-07-08 20:26:23 +02:00
|
|
|
|
}
|
|
|
|
|
@font-face {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-family: 'Source Code Pro';
|
|
|
|
|
font-style: normal;
|
|
|
|
|
font-weight: 600;
|
2021-03-04 15:38:31 +01:00
|
|
|
|
src: url("SourceCodePro-Semibold.ttf.woff") format('woff');
|
2021-02-19 17:54:41 -08:00
|
|
|
|
font-display: swap;
|
2014-07-08 20:26:23 +02:00
|
|
|
|
}
|
2014-04-12 21:39:12 +02:00
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
|
* {
|
2020-07-15 17:20:46 +02:00
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
|
box-sizing: border-box;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
2019-05-27 15:57:44 +02:00
|
|
|
|
/* This part handles the "default" theme being used depending on the system one. */
|
|
|
|
|
html {
|
|
|
|
|
content: "";
|
|
|
|
|
}
|
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
|
|
|
html {
|
|
|
|
|
content: "light";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
html {
|
|
|
|
|
content: "dark";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-10-14 21:32:12 +02:00
|
|
|
|
/* General structure and fonts */
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
|
|
|
|
body {
|
2021-03-29 18:33:22 +02:00
|
|
|
|
font: 16px/1.4 "Source Serif 4", serif;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin: 0;
|
|
|
|
|
position: relative;
|
|
|
|
|
padding: 10px 15px 20px 15px;
|
2014-11-01 00:16:48 +01:00
|
|
|
|
|
2016-11-06 21:03:08 +01:00
|
|
|
|
-webkit-font-feature-settings: "kern", "liga";
|
|
|
|
|
-moz-font-feature-settings: "kern", "liga";
|
|
|
|
|
font-feature-settings: "kern", "liga";
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
2014-04-27 09:07:12 +03:00
|
|
|
|
h1 {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 1.5em;
|
2014-04-27 09:07:12 +03:00
|
|
|
|
}
|
|
|
|
|
h2 {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 1.4em;
|
2014-04-27 09:07:12 +03:00
|
|
|
|
}
|
|
|
|
|
h3 {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 1.3em;
|
2014-04-27 09:07:12 +03:00
|
|
|
|
}
|
2020-08-09 12:09:05 -07:00
|
|
|
|
h1, h2, h3:not(.impl):not(.method):not(.type):not(.tymethod):not(.notable),
|
2021-04-30 16:50:03 +02:00
|
|
|
|
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant):not(.associatedtype) {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-weight: 500;
|
|
|
|
|
margin: 20px 0 15px 0;
|
|
|
|
|
padding-bottom: 6px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
2014-03-20 19:05:22 +01:00
|
|
|
|
h1.fqn {
|
2021-04-20 22:31:48 +02:00
|
|
|
|
display: flex;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-bottom: 1px dashed;
|
|
|
|
|
margin-top: 0;
|
2021-04-22 22:33:54 +02:00
|
|
|
|
|
|
|
|
|
/* workaround to keep flex from breaking below 700 px width due to the float: right on the nav
|
|
|
|
|
above the h1 */
|
|
|
|
|
padding-left: 1px;
|
2014-03-18 01:44:55 -06:00
|
|
|
|
}
|
2020-07-05 11:56:41 -05:00
|
|
|
|
h1.fqn > .in-band > a:hover {
|
|
|
|
|
text-decoration: underline;
|
|
|
|
|
}
|
2020-07-15 17:20:46 +02:00
|
|
|
|
h2, h3:not(.impl):not(.method):not(.type):not(.tymethod),
|
2021-04-30 16:50:03 +02:00
|
|
|
|
h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant):not(.associatedtype) {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-bottom: 1px solid;
|
2014-03-18 01:44:55 -06:00
|
|
|
|
}
|
2021-04-30 16:50:03 +02:00
|
|
|
|
h3.impl, h3.method, h4.method, h3.type, h4.type, h4.associatedconstant, h4.associatedtype {
|
2018-12-26 21:23:05 -08:00
|
|
|
|
flex-basis: 100%;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-weight: 600;
|
2018-12-26 21:23:05 -08:00
|
|
|
|
margin-top: 16px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
position: relative;
|
2014-04-18 11:08:34 +09:00
|
|
|
|
}
|
2021-03-13 02:13:00 +01:00
|
|
|
|
h3.impl, h3.method, h4.method.trait-impl, h3.type,
|
2021-04-30 16:50:03 +02:00
|
|
|
|
h4.type.trait-impl, h4.associatedconstant.trait-impl, h4.associatedtype.trait-impl {
|
2018-02-17 20:46:06 +03:00
|
|
|
|
padding-left: 15px;
|
2013-11-11 15:16:23 +01:00
|
|
|
|
}
|
2017-10-01 15:54:50 +03:00
|
|
|
|
|
|
|
|
|
h1, h2, h3, h4,
|
2020-10-03 19:52:35 -07:00
|
|
|
|
.sidebar, a.source, .search-input, .content table td:first-child > a,
|
2021-05-11 11:40:26 +02:00
|
|
|
|
div.item-list .out-of-band,
|
2020-12-29 15:56:52 +01:00
|
|
|
|
#source-sidebar, #sidebar-toggle,
|
2021-04-28 21:19:52 +02:00
|
|
|
|
details.rustdoc-toggle > summary::before,
|
|
|
|
|
details.undocumented > summary::before,
|
|
|
|
|
.content ul.crate a.crate,
|
2020-12-29 15:56:52 +01:00
|
|
|
|
/* This selector is for the items listed in the "all items" page. */
|
|
|
|
|
#main > ul.docblock > li > a {
|
2021-03-15 19:20:15 +02:00
|
|
|
|
font-family: "Fira Sans", Arial, sans-serif;
|
2014-04-12 21:39:12 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-09-07 13:54:31 -07:00
|
|
|
|
.content ul.crate a.crate {
|
2021-03-15 19:20:15 +02:00
|
|
|
|
font-size: 16px/1.6;
|
2020-09-07 13:54:31 -07:00
|
|
|
|
}
|
|
|
|
|
|
2014-04-18 11:08:34 +09:00
|
|
|
|
ol, ul {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding-left: 25px;
|
2014-04-12 21:39:12 +02:00
|
|
|
|
}
|
2014-04-18 11:08:34 +09:00
|
|
|
|
ul ul, ol ul, ul ol, ol ol {
|
2018-11-24 23:56:27 +00:00
|
|
|
|
margin-bottom: .6em;
|
2014-04-18 11:08:34 +09:00
|
|
|
|
}
|
2014-04-12 21:39:12 +02:00
|
|
|
|
|
|
|
|
|
p {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin: 0 0 .6em 0;
|
2014-04-12 21:39:12 +02:00
|
|
|
|
}
|
2014-03-20 19:05:22 +01:00
|
|
|
|
|
2017-08-18 17:09:51 +02:00
|
|
|
|
summary {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-26 17:24:40 +01:00
|
|
|
|
code, pre, a.test-arrow {
|
2018-11-07 11:02:08 -05:00
|
|
|
|
font-family: "Source Code Pro", monospace;
|
2013-11-11 15:16:23 +01:00
|
|
|
|
}
|
2016-09-09 11:54:12 +08:00
|
|
|
|
.docblock code, .docblock-short code {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-radius: 3px;
|
2018-09-19 22:59:35 +02:00
|
|
|
|
padding: 0 0.1em;
|
2014-08-06 11:03:18 +01:00
|
|
|
|
}
|
2021-04-01 13:31:55 -07:00
|
|
|
|
.docblock pre code, .docblock-short pre code {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: 0;
|
2021-01-31 00:45:19 +08:00
|
|
|
|
padding-right: 1ex;
|
2015-07-12 19:42:42 -04:00
|
|
|
|
}
|
2013-11-11 15:16:23 +01:00
|
|
|
|
pre {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: 14px;
|
2014-04-25 17:34:32 +09:00
|
|
|
|
}
|
|
|
|
|
|
2017-03-23 23:05:30 -04:00
|
|
|
|
.source .content pre {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: 20px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
2016-01-02 21:38:36 -05:00
|
|
|
|
img {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
max-width: 100%;
|
2016-01-02 21:38:36 -05:00
|
|
|
|
}
|
|
|
|
|
|
2019-06-29 18:28:39 +02:00
|
|
|
|
li {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-23 23:05:30 -04:00
|
|
|
|
.source .content {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-top: 50px;
|
|
|
|
|
max-width: none;
|
|
|
|
|
overflow: visible;
|
|
|
|
|
margin-left: 0px;
|
2014-07-28 22:33:43 -04:00
|
|
|
|
}
|
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
|
nav.sub {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 16px;
|
|
|
|
|
text-transform: uppercase;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
width: 200px;
|
2017-10-11 20:08:17 +02:00
|
|
|
|
position: fixed;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
left: 0;
|
|
|
|
|
top: 0;
|
2019-10-01 10:32:45 +02:00
|
|
|
|
bottom: 0;
|
2017-10-11 20:08:17 +02:00
|
|
|
|
overflow: auto;
|
2020-04-07 22:10:17 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Improve the scrollbar display on firefox */
|
|
|
|
|
* {
|
|
|
|
|
scrollbar-width: initial;
|
|
|
|
|
}
|
|
|
|
|
.sidebar {
|
2020-04-01 16:12:40 +02:00
|
|
|
|
scrollbar-width: thin;
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-07 22:10:17 +02:00
|
|
|
|
/* Improve the scrollbar display on webkit-based browsers */
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
width: 12px;
|
|
|
|
|
}
|
2020-04-01 16:12:40 +02:00
|
|
|
|
.sidebar::-webkit-scrollbar {
|
|
|
|
|
width: 8px;
|
|
|
|
|
}
|
2020-04-07 22:10:17 +02:00
|
|
|
|
::-webkit-scrollbar-track {
|
2020-04-01 16:12:40 +02:00
|
|
|
|
-webkit-box-shadow: inset 0;
|
2017-02-15 20:21:25 -05:00
|
|
|
|
}
|
|
|
|
|
|
2018-02-01 23:40:23 +01:00
|
|
|
|
.sidebar .block > ul > li {
|
2018-03-06 20:45:57 +01:00
|
|
|
|
margin-right: -10px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
2018-02-01 23:40:23 +01:00
|
|
|
|
.content, nav {
|
|
|
|
|
max-width: 960px;
|
|
|
|
|
}
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
|
|
|
|
/* Everything else */
|
|
|
|
|
|
2019-11-11 16:54:45 +01:00
|
|
|
|
.hidden {
|
2018-02-01 23:40:23 +01:00
|
|
|
|
display: none !important;
|
|
|
|
|
}
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
2019-04-27 15:09:57 +02:00
|
|
|
|
.logo-container {
|
2019-04-29 11:45:06 +02:00
|
|
|
|
height: 100px;
|
|
|
|
|
width: 100px;
|
|
|
|
|
position: relative;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin: 20px auto;
|
|
|
|
|
display: block;
|
2017-10-10 23:39:10 +02:00
|
|
|
|
margin-top: 10px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-29 11:45:06 +02:00
|
|
|
|
.logo-container > img {
|
|
|
|
|
max-width: 100px;
|
|
|
|
|
max-height: 100px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 50%;
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-18 01:44:55 -06:00
|
|
|
|
.sidebar .location {
|
2017-02-15 20:21:25 -05:00
|
|
|
|
border: 1px solid;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 17px;
|
2017-10-10 23:39:10 +02:00
|
|
|
|
margin: 30px 10px 20px 10px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
text-align: center;
|
2017-05-12 15:39:54 +02:00
|
|
|
|
word-wrap: break-word;
|
2014-03-18 01:44:55 -06:00
|
|
|
|
}
|
|
|
|
|
|
2017-10-02 18:29:03 -05:00
|
|
|
|
.sidebar .version {
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
text-align: center;
|
2017-12-02 13:19:29 +01:00
|
|
|
|
border-bottom: 1px solid;
|
2017-10-02 18:29:03 -05:00
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
|
word-wrap: break-word; /* deprecated */
|
|
|
|
|
word-break: break-word; /* Chrome, non-standard */
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-15 20:21:25 -05:00
|
|
|
|
.location:empty {
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-01 23:40:23 +01:00
|
|
|
|
.location a:first-child {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
2014-09-05 13:53:22 +08:00
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
|
.block {
|
2017-10-10 23:39:10 +02:00
|
|
|
|
padding: 0;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-bottom: 14px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
2015-09-09 00:46:44 +09:00
|
|
|
|
.block h2, .block h3 {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-top: 0;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
text-align: center;
|
2014-03-18 01:44:55 -06:00
|
|
|
|
}
|
2015-09-09 00:46:44 +09:00
|
|
|
|
.block ul, .block li {
|
2017-10-10 23:39:10 +02:00
|
|
|
|
margin: 0 10px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: 0;
|
|
|
|
|
list-style: none;
|
2015-09-09 00:46:44 +09:00
|
|
|
|
}
|
2014-03-18 01:44:55 -06:00
|
|
|
|
|
2013-10-21 10:48:57 -07:00
|
|
|
|
.block a {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
display: block;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
line-height: 15px;
|
|
|
|
|
padding: 7px 5px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
transition: border 500ms ease-out;
|
2014-03-18 01:44:55 -06:00
|
|
|
|
}
|
|
|
|
|
|
2017-10-10 23:39:10 +02:00
|
|
|
|
.sidebar-title {
|
2017-12-02 13:19:29 +01:00
|
|
|
|
border-top: 1px solid;
|
|
|
|
|
border-bottom: 1px solid;
|
2017-10-10 23:39:10 +02:00
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-links {
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar-links > a {
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-06 00:42:33 +01:00
|
|
|
|
.sidebar-menu {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
|
.content {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: 15px 0;
|
2014-03-18 01:44:55 -06:00
|
|
|
|
}
|
|
|
|
|
|
2017-03-23 23:05:30 -04:00
|
|
|
|
.source .content pre.rust {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
white-space: pre;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
padding-left: 0;
|
2013-10-02 19:32:52 +02:00
|
|
|
|
}
|
2017-12-04 22:11:21 +01:00
|
|
|
|
|
2021-05-10 11:39:53 +02:00
|
|
|
|
.rustdoc .example-wrap {
|
2018-10-08 22:51:37 +02:00
|
|
|
|
display: inline-flex;
|
2018-11-10 21:58:47 +01:00
|
|
|
|
margin-bottom: 10px;
|
2018-10-29 22:38:26 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.example-wrap {
|
2021-03-10 16:40:27 +01:00
|
|
|
|
position: relative;
|
2018-10-08 22:51:37 +02:00
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.example-wrap > pre.line-number {
|
|
|
|
|
overflow: initial;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
padding: 13px 8px;
|
|
|
|
|
text-align: right;
|
2021-05-11 11:16:14 +02:00
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
|
border-bottom-left-radius: 5px;
|
2018-10-08 22:51:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
2018-12-04 11:33:57 +01:00
|
|
|
|
.rustdoc:not(.source) .example-wrap > pre.rust {
|
2018-10-08 22:51:37 +02:00
|
|
|
|
width: 100%;
|
2018-12-02 19:12:37 +01:00
|
|
|
|
overflow-x: auto;
|
2018-10-08 22:51:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-05-10 11:39:53 +02:00
|
|
|
|
.rustdoc .example-wrap > pre {
|
2018-11-10 21:58:47 +01:00
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2017-05-11 22:28:13 +02:00
|
|
|
|
#search {
|
|
|
|
|
margin-left: 230px;
|
2017-12-04 22:11:21 +01:00
|
|
|
|
position: relative;
|
2017-05-11 22:28:13 +02:00
|
|
|
|
}
|
2017-12-04 22:11:21 +01:00
|
|
|
|
|
2018-03-27 10:33:31 +02:00
|
|
|
|
#results > table {
|
|
|
|
|
width: 100%;
|
|
|
|
|
table-layout: fixed;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-10 11:39:53 +02:00
|
|
|
|
.content > .example-wrap pre.line-numbers {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
position: relative;
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
-ms-user-select: none;
|
|
|
|
|
user-select: none;
|
2014-12-20 03:56:47 +09:00
|
|
|
|
}
|
2018-02-01 23:40:23 +01:00
|
|
|
|
.line-numbers span {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
2020-10-08 13:25:36 +02:00
|
|
|
|
.docblock-short {
|
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
|
}
|
2016-09-06 15:59:16 +08:00
|
|
|
|
.docblock-short p {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
display: inline;
|
2015-04-13 11:55:00 -07:00
|
|
|
|
}
|
|
|
|
|
|
2016-09-06 15:59:16 +08:00
|
|
|
|
.docblock-short p {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
margin: 0;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
2021-03-29 21:49:58 +08:00
|
|
|
|
/* Wrap non-pre code blocks (`text`) but not (```text```). */
|
|
|
|
|
.docblock > :not(pre) > code,
|
|
|
|
|
.docblock-short > :not(pre) > code {
|
2021-01-31 01:27:21 +08:00
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
}
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
|
|
|
|
.docblock h1, .docblock h2, .docblock h3, .docblock h4, .docblock h5 {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-bottom: 1px solid;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
2014-03-18 01:44:55 -06:00
|
|
|
|
|
2017-08-01 17:08:33 -05:00
|
|
|
|
#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; }
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
2016-05-27 12:04:56 +02:00
|
|
|
|
.docblock {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-left: 24px;
|
2017-09-17 22:11:37 +02:00
|
|
|
|
position: relative;
|
2016-05-27 12:04:56 +02:00
|
|
|
|
}
|
|
|
|
|
|
2014-07-04 00:51:46 -07:00
|
|
|
|
.content .out-of-band {
|
2021-04-22 22:33:54 +02:00
|
|
|
|
flex-grow: 0;
|
|
|
|
|
text-align: right;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 23px;
|
|
|
|
|
margin: 0px;
|
2021-04-22 22:33:54 +02:00
|
|
|
|
padding: 0 0 0 12px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-weight: normal;
|
2016-05-05 04:46:45 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h3.impl > .out-of-band {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 21px;
|
2014-08-02 20:58:41 -04:00
|
|
|
|
}
|
|
|
|
|
|
2017-07-27 13:26:24 -05:00
|
|
|
|
h4.method > .out-of-band {
|
|
|
|
|
font-size: 19px;
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-17 23:30:42 -07:00
|
|
|
|
h4 > code, h3 > code, .invisible > code {
|
2018-01-20 21:12:00 +01:00
|
|
|
|
max-width: calc(100% - 41px);
|
|
|
|
|
display: block;
|
2016-05-06 18:47:12 +02:00
|
|
|
|
}
|
|
|
|
|
|
2016-08-16 10:27:07 +12:00
|
|
|
|
.invisible {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
width: 100%;
|
|
|
|
|
display: inline-block;
|
2016-08-16 10:27:07 +12:00
|
|
|
|
}
|
|
|
|
|
|
2014-08-02 20:58:41 -04:00
|
|
|
|
.content .in-band {
|
2021-04-22 22:33:54 +02:00
|
|
|
|
flex-grow: 1;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin: 0px;
|
|
|
|
|
padding: 0px;
|
2014-03-18 01:44:55 -06:00
|
|
|
|
}
|
|
|
|
|
|
2017-08-28 22:40:09 +02:00
|
|
|
|
.in-band > code {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-01 23:40:23 +01:00
|
|
|
|
#main {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2016-05-06 18:47:12 +02:00
|
|
|
|
#main > .since {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
top: inherit;
|
2021-03-15 19:20:15 +02:00
|
|
|
|
font-family: "Fira Sans", Arial, sans-serif;
|
2016-05-06 18:47:12 +02:00
|
|
|
|
}
|
|
|
|
|
|
2018-03-28 09:00:58 +02:00
|
|
|
|
.content table:not(.table-display) {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-spacing: 0 5px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
.content td { vertical-align: top; }
|
|
|
|
|
.content td:first-child { padding-right: 20px; }
|
|
|
|
|
.content td p:first-child { margin-top: 0; }
|
|
|
|
|
.content td h1, .content td h2 { margin-left: 0; font-size: 1.1em; }
|
2018-06-10 23:33:37 +02:00
|
|
|
|
.content tr:first-child td { border-top: 0; }
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
2015-02-15 15:58:45 +02:00
|
|
|
|
.docblock table {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin: .5em 0;
|
2019-02-11 22:22:56 +01:00
|
|
|
|
width: calc(100% - 2px);
|
|
|
|
|
border: 1px dashed;
|
2015-02-15 15:58:45 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.docblock table td {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: .5em;
|
2018-06-10 23:33:37 +02:00
|
|
|
|
border: 1px dashed;
|
2015-02-15 15:58:45 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.docblock table th {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: .5em;
|
|
|
|
|
text-align: left;
|
2018-06-10 23:33:37 +02:00
|
|
|
|
border: 1px solid;
|
2015-02-15 15:58:45 +02:00
|
|
|
|
}
|
|
|
|
|
|
2016-11-11 16:41:00 -06:00
|
|
|
|
.fields + table {
|
|
|
|
|
margin-bottom: 1em;
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
|
.content .item-list {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
list-style-type: none;
|
|
|
|
|
padding: 0;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content .multi-column {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
-moz-column-count: 5;
|
|
|
|
|
-moz-column-gap: 2.5em;
|
|
|
|
|
-webkit-column-count: 5;
|
|
|
|
|
-webkit-column-gap: 2.5em;
|
|
|
|
|
column-count: 5;
|
|
|
|
|
column-gap: 2.5em;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
.content .multi-column li { width: 100%; display: inline-block; }
|
|
|
|
|
|
2014-08-02 20:58:41 -04:00
|
|
|
|
.content .method {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 1em;
|
|
|
|
|
position: relative;
|
2014-07-30 21:31:34 -04:00
|
|
|
|
}
|
2015-05-31 22:46:19 +02:00
|
|
|
|
/* Shift "where ..." part of method or fn definition down a line */
|
2016-10-15 10:29:47 -05:00
|
|
|
|
.content .method .where,
|
|
|
|
|
.content .fn .where,
|
|
|
|
|
.content .where.fmt-newline {
|
2017-03-09 19:02:59 +01:00
|
|
|
|
display: block;
|
2017-05-21 04:35:26 +01:00
|
|
|
|
font-size: 0.8em;
|
2016-10-15 10:29:47 -05:00
|
|
|
|
}
|
2014-12-27 22:45:13 -05:00
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.content .methods > div:not(.notable-traits) {
|
2018-03-28 10:48:00 +02:00
|
|
|
|
margin-left: 40px;
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
2014-06-26 11:37:39 -07:00
|
|
|
|
|
2018-05-30 01:10:48 +02:00
|
|
|
|
.content .docblock > .impl-items {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-left: 20px;
|
2018-05-30 01:10:48 +02:00
|
|
|
|
margin-top: -34px;
|
|
|
|
|
}
|
|
|
|
|
.content .docblock > .impl-items > h4 {
|
|
|
|
|
border-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
.content .docblock >.impl-items .table-display {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
.content .docblock >.impl-items table td {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
.content .docblock > .impl-items .table-display, .impl-items table td {
|
|
|
|
|
border: none;
|
2015-04-13 11:55:00 -07:00
|
|
|
|
}
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
2020-11-23 13:20:16 +01:00
|
|
|
|
.content .item-info code {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-size: 90%;
|
2015-08-17 20:23:47 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-23 13:20:16 +01:00
|
|
|
|
.content .item-info {
|
2018-08-04 00:02:46 +02:00
|
|
|
|
position: relative;
|
|
|
|
|
margin-left: 33px;
|
|
|
|
|
margin-top: -13px;
|
|
|
|
|
}
|
2018-08-27 21:52:10 +02:00
|
|
|
|
|
2020-11-23 13:20:16 +01:00
|
|
|
|
.sub-variant > div > .item-info {
|
2018-10-19 01:34:46 +02:00
|
|
|
|
margin-top: initial;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-23 13:20:16 +01:00
|
|
|
|
.content .item-info::before {
|
2020-01-09 09:54:05 +08:00
|
|
|
|
content: '⬑';
|
2020-01-07 10:25:02 +08:00
|
|
|
|
font-size: 25px;
|
2018-08-04 00:02:46 +02:00
|
|
|
|
position: absolute;
|
2020-01-07 10:25:02 +08:00
|
|
|
|
top: -6px;
|
2020-01-09 09:54:05 +08:00
|
|
|
|
left: -19px;
|
2018-08-04 00:02:46 +02:00
|
|
|
|
}
|
2018-09-12 22:18:00 +02:00
|
|
|
|
|
2021-04-28 21:19:52 +02:00
|
|
|
|
.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant,
|
2021-04-30 16:50:03 +02:00
|
|
|
|
.impl-items > .associatedtype, .content .impl-items details > summary > .type,
|
|
|
|
|
.impl-items details > summary > .associatedconstant,
|
|
|
|
|
.impl-items details > summary > .associatedtype {
|
2018-09-12 22:18:00 +02:00
|
|
|
|
margin-left: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-23 13:20:16 +01:00
|
|
|
|
.content .impl-items .docblock, .content .impl-items .item-info {
|
2018-09-12 22:18:00 +02:00
|
|
|
|
margin-bottom: .6em;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-23 13:20:16 +01:00
|
|
|
|
.content .impl-items > .item-info {
|
2018-09-12 22:18:00 +02:00
|
|
|
|
margin-left: 40px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-23 13:20:16 +01:00
|
|
|
|
.methods > .item-info, .content .impl-items > .item-info {
|
2018-08-29 22:48:37 +02:00
|
|
|
|
margin-top: -8px;
|
|
|
|
|
}
|
2018-08-04 00:02:46 +02:00
|
|
|
|
|
2018-12-26 21:23:05 -08:00
|
|
|
|
.impl-items {
|
|
|
|
|
flex-basis: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-23 13:20:16 +01:00
|
|
|
|
#main > .item-info {
|
2018-08-27 21:52:10 +02:00
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-01 10:32:45 +02:00
|
|
|
|
nav:not(.sidebar) {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
margin-bottom: 10px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
nav.main {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: 20px 0;
|
|
|
|
|
text-align: center;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
nav.main .current {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-top: 1px solid;
|
|
|
|
|
border-bottom: 1px solid;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
nav.main .separator {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border: 1px solid;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
height: 23px;
|
|
|
|
|
margin: 0 20px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
nav.sum { text-align: right; }
|
|
|
|
|
nav.sub form { display: inline; }
|
|
|
|
|
|
2015-09-09 00:46:44 +09:00
|
|
|
|
nav.sub, .content {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-left: 230px;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
text-decoration: none;
|
|
|
|
|
background: transparent;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
2015-02-20 13:54:11 +02:00
|
|
|
|
|
2017-08-08 22:16:08 +02:00
|
|
|
|
.small-section-header:hover > .anchor {
|
|
|
|
|
display: initial;
|
|
|
|
|
}
|
2017-08-18 09:38:52 -07:00
|
|
|
|
|
2021-03-11 03:32:30 +01:00
|
|
|
|
.in-band:hover > .anchor, .impl:hover > .anchor, .method.trait-impl:hover > .anchor,
|
2021-04-30 16:50:03 +02:00
|
|
|
|
.type.trait-impl:hover > .anchor, .associatedconstant.trait-impl:hover > .anchor,
|
|
|
|
|
.associatedtype.trait-impl:hover > .anchor {
|
2017-08-28 22:40:09 +02:00
|
|
|
|
display: inline-block;
|
|
|
|
|
position: absolute;
|
2017-08-18 09:38:52 -07:00
|
|
|
|
}
|
2017-08-08 22:16:08 +02:00
|
|
|
|
.anchor {
|
|
|
|
|
display: none;
|
2017-09-17 22:11:37 +02:00
|
|
|
|
position: absolute;
|
2018-02-19 23:22:08 +03:00
|
|
|
|
left: -7px;
|
2017-08-08 22:16:08 +02:00
|
|
|
|
}
|
2017-09-17 22:11:37 +02:00
|
|
|
|
.anchor.field {
|
2018-02-17 20:46:06 +03:00
|
|
|
|
left: -5px;
|
2017-09-17 22:11:37 +02:00
|
|
|
|
}
|
2018-03-06 22:05:41 +01:00
|
|
|
|
.small-section-header > .anchor {
|
|
|
|
|
left: -28px;
|
2018-08-25 14:15:49 -07:00
|
|
|
|
padding-right: 10px; /* avoid gap that causes hover to disappear */
|
2018-03-06 22:05:41 +01:00
|
|
|
|
}
|
2017-09-17 22:11:37 +02:00
|
|
|
|
.anchor:before {
|
2017-08-08 22:16:08 +02:00
|
|
|
|
content: '\2002\00a7\2002';
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-02 13:47:42 +02:00
|
|
|
|
.docblock a:not(.srclink):not(.test-arrow):hover,
|
2020-11-23 13:20:16 +01:00
|
|
|
|
.docblock-short a:not(.srclink):not(.test-arrow):hover, .item-info a {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
text-decoration: underline;
|
2015-02-20 13:54:11 +02:00
|
|
|
|
}
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
2020-11-18 13:38:17 +00:00
|
|
|
|
.invisible > .srclink, h4 > code + .srclink, h3 > code + .srclink {
|
2018-08-16 00:46:38 +02:00
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
|
|
|
|
|
2015-09-09 00:46:44 +09:00
|
|
|
|
.block a.current.crate { font-weight: 500; }
|
2013-09-18 22:18:38 -07:00
|
|
|
|
|
2018-04-13 22:54:09 +02:00
|
|
|
|
.search-container {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
2018-10-01 00:47:54 +02:00
|
|
|
|
.search-container > div {
|
|
|
|
|
display: inline-flex;
|
2020-08-10 16:42:11 +02:00
|
|
|
|
width: calc(100% - 63px);
|
2018-10-01 00:47:54 +02:00
|
|
|
|
}
|
|
|
|
|
#crate-search {
|
2021-02-19 17:54:41 -08:00
|
|
|
|
min-width: 115px;
|
2018-10-01 00:47:54 +02:00
|
|
|
|
margin-top: 5px;
|
|
|
|
|
padding: 6px;
|
2018-11-29 01:29:49 +01:00
|
|
|
|
padding-right: 19px;
|
2019-07-07 18:46:24 +03:00
|
|
|
|
flex: none;
|
2018-10-01 00:47:54 +02:00
|
|
|
|
border: 0;
|
|
|
|
|
border-right: 0;
|
|
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
|
outline: none;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border-right: 1px solid;
|
|
|
|
|
-moz-appearance: none;
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
/* Removes default arrow from firefox */
|
|
|
|
|
text-indent: 0.01px;
|
|
|
|
|
text-overflow: "";
|
2018-11-29 01:29:49 +01:00
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-color: transparent;
|
2018-12-08 16:35:51 +01:00
|
|
|
|
background-size: 20px;
|
2018-11-29 01:29:49 +01:00
|
|
|
|
background-position: calc(100% - 1px) 56%;
|
2018-10-01 00:47:54 +02:00
|
|
|
|
}
|
2018-04-13 22:54:09 +02:00
|
|
|
|
.search-container > .top-button {
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
top: 10px;
|
|
|
|
|
}
|
2013-09-18 22:18:38 -07:00
|
|
|
|
.search-input {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
/* Override Normalize.css: we have margins and do
|
|
|
|
|
not want to overflow - the `moz` attribute is necessary
|
|
|
|
|
until Firefox 29, too early to drop at this point */
|
|
|
|
|
-moz-box-sizing: border-box !important;
|
|
|
|
|
box-sizing: border-box !important;
|
|
|
|
|
outline: none;
|
|
|
|
|
border: none;
|
2018-12-20 13:28:55 +01:00
|
|
|
|
border-radius: 1px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-top: 5px;
|
|
|
|
|
padding: 10px 16px;
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
transition: border-color 300ms ease;
|
|
|
|
|
transition: border-radius 300ms ease-in-out;
|
|
|
|
|
transition: box-shadow 300ms ease-in-out;
|
2019-05-02 23:31:50 +02:00
|
|
|
|
width: 100%;
|
2014-03-18 01:44:55 -06:00
|
|
|
|
}
|
|
|
|
|
|
2018-12-20 13:28:55 +01:00
|
|
|
|
#crate-search + .search-input {
|
|
|
|
|
border-radius: 0 1px 1px 0;
|
2019-05-02 23:31:50 +02:00
|
|
|
|
width: calc(100% - 32px);
|
2018-12-20 13:28:55 +01:00
|
|
|
|
}
|
|
|
|
|
|
2014-03-18 01:44:55 -06:00
|
|
|
|
.search-input:focus {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-radius: 2px;
|
|
|
|
|
border: 0;
|
|
|
|
|
outline: 0;
|
2013-10-14 21:32:12 +02:00
|
|
|
|
}
|
2014-03-18 01:44:55 -06:00
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
|
.search-results .desc {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
display: block;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
|
2014-08-31 17:11:42 -04:00
|
|
|
|
.search-results a {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
display: block;
|
2014-08-31 17:11:42 -04:00
|
|
|
|
}
|
|
|
|
|
|
2018-03-27 10:33:31 +02:00
|
|
|
|
.content .search-results td:first-child {
|
|
|
|
|
padding-right: 0;
|
2018-08-03 20:39:58 -04:00
|
|
|
|
width: 50%;
|
2018-03-27 10:33:31 +02:00
|
|
|
|
}
|
|
|
|
|
.content .search-results td:first-child a {
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
}
|
2018-08-03 18:29:49 -04:00
|
|
|
|
.content .search-results td:first-child a:after {
|
2018-11-06 01:40:12 +01:00
|
|
|
|
clear: both;
|
|
|
|
|
content: "";
|
|
|
|
|
display: block;
|
2018-08-03 18:29:49 -04:00
|
|
|
|
}
|
2018-03-27 10:33:31 +02:00
|
|
|
|
.content .search-results td:first-child a span {
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
2014-08-31 17:11:42 -04:00
|
|
|
|
|
2017-10-22 16:08:31 +02:00
|
|
|
|
tr.result span.primitive::after {
|
2017-12-02 13:19:29 +01:00
|
|
|
|
content: ' (primitive type)';
|
|
|
|
|
font-style: italic;
|
2016-09-17 23:29:00 -07:00
|
|
|
|
}
|
2015-05-22 14:25:29 +02:00
|
|
|
|
|
2018-05-28 21:30:01 +02:00
|
|
|
|
tr.result span.keyword::after {
|
|
|
|
|
content: ' (keyword)';
|
|
|
|
|
font-style: italic;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-08 14:52:58 +01:00
|
|
|
|
body.blur > :not(#help) {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
filter: blur(8px);
|
|
|
|
|
-webkit-filter: blur(8px);
|
|
|
|
|
opacity: .7;
|
2015-07-08 14:52:58 +01:00
|
|
|
|
}
|
|
|
|
|
|
2013-09-18 22:18:38 -07:00
|
|
|
|
#help {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100vh;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
2015-07-08 14:52:58 +01:00
|
|
|
|
}
|
|
|
|
|
#help > div {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
box-shadow: 0 0 6px rgba(0,0,0,.2);
|
|
|
|
|
width: 550px;
|
2018-01-15 18:12:38 +01:00
|
|
|
|
height: auto;
|
2017-03-09 19:02:59 +01:00
|
|
|
|
border: 1px solid;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
|
|
|
|
#help dt {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
float: left;
|
|
|
|
|
clear: left;
|
|
|
|
|
display: block;
|
2021-02-02 16:15:57 -05:00
|
|
|
|
margin-right: 0.5rem;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
2020-10-19 13:44:27 +02:00
|
|
|
|
#help > div > span {
|
|
|
|
|
text-align: center;
|
|
|
|
|
display: block;
|
|
|
|
|
margin: 10px 0;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
border-bottom: 1px solid #ccc;
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
2017-11-07 22:44:18 +01:00
|
|
|
|
#help dd { margin: 5px 35px; }
|
2013-09-18 22:18:38 -07:00
|
|
|
|
#help .infos { padding-left: 0; }
|
2015-09-09 00:46:44 +09:00
|
|
|
|
#help h1, #help h2 { margin-top: 0; }
|
2015-07-08 14:52:58 +01:00
|
|
|
|
#help > div div {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
width: 50%;
|
|
|
|
|
float: left;
|
2020-10-19 13:44:27 +02:00
|
|
|
|
padding: 0 20px 20px 17px;;
|
2013-09-18 22:18:38 -07:00
|
|
|
|
}
|
2013-09-26 12:53:06 -07:00
|
|
|
|
|
2016-12-12 17:41:39 +00:00
|
|
|
|
.stab {
|
|
|
|
|
display: table;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
border-width: 1px;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
padding: 3px;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
font-size: 90%;
|
2014-06-26 11:37:39 -07:00
|
|
|
|
}
|
2016-12-12 17:41:39 +00:00
|
|
|
|
.stab p {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
display: inline;
|
2014-06-26 11:37:39 -07:00
|
|
|
|
}
|
|
|
|
|
|
2017-01-04 22:09:54 -08:00
|
|
|
|
.stab summary {
|
|
|
|
|
display: list-item;
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-12 22:51:04 -05:00
|
|
|
|
.stab .emoji {
|
2017-01-04 22:09:54 -08:00
|
|
|
|
font-size: 1.5em;
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-23 12:23:45 +01:00
|
|
|
|
/* Black one-pixel outline around emoji shapes */
|
|
|
|
|
.emoji {
|
|
|
|
|
text-shadow:
|
|
|
|
|
1px 0 0 black,
|
|
|
|
|
-1px 0 0 black,
|
|
|
|
|
0 1px 0 black,
|
|
|
|
|
0 -1px 0 black;
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-13 17:23:27 +02:00
|
|
|
|
.module-item .stab,
|
|
|
|
|
.import-item .stab {
|
2019-01-14 10:02:27 -05:00
|
|
|
|
border-radius: 3px;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-size: 80%;
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
margin-right: .3em;
|
|
|
|
|
padding: 2px;
|
|
|
|
|
vertical-align: text-bottom;
|
2013-09-26 12:53:06 -07:00
|
|
|
|
}
|
2014-03-18 01:44:55 -06:00
|
|
|
|
|
2021-04-13 17:23:27 +02:00
|
|
|
|
.module-item.unstable,
|
|
|
|
|
.import-item.unstable {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
opacity: 0.65;
|
2015-04-13 11:55:00 -07:00
|
|
|
|
}
|
2014-02-16 21:56:14 -08:00
|
|
|
|
|
2016-05-06 18:47:12 +02:00
|
|
|
|
.since {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-weight: normal;
|
|
|
|
|
font-size: initial;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0;
|
|
|
|
|
top: 0;
|
2016-02-09 21:15:29 -05:00
|
|
|
|
}
|
|
|
|
|
|
2020-11-18 13:38:17 +00:00
|
|
|
|
.impl-items .since, .impl .since, .methods .since {
|
2018-12-26 21:23:05 -08:00
|
|
|
|
flex-grow: 0;
|
|
|
|
|
padding-left: 12px;
|
|
|
|
|
padding-right: 2px;
|
|
|
|
|
position: initial;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-18 13:38:17 +00:00
|
|
|
|
.impl-items .srclink, .impl .srclink, .methods .srclink {
|
2018-12-26 21:23:05 -08:00
|
|
|
|
flex-grow: 0;
|
|
|
|
|
/* Override header settings otherwise it's too bold */
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-18 13:38:17 +00:00
|
|
|
|
.impl-items code, .impl code, .methods code {
|
2018-12-26 21:23:05 -08:00
|
|
|
|
flex-grow: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-18 13:38:17 +00:00
|
|
|
|
.impl-items h4, h4.impl, h3.impl, .methods h3 {
|
2018-12-26 21:23:05 -08:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-basis: 100%;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
/* Push the src link out to the right edge consistently */
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
2016-02-09 21:15:29 -05:00
|
|
|
|
.variants_table {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
width: 100%;
|
2016-02-09 21:15:29 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.variants_table tbody tr td:first-child {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
width: 1%; /* make the variant name as small as possible */
|
2016-02-09 21:15:29 -05:00
|
|
|
|
}
|
|
|
|
|
|
2015-03-29 15:14:02 -04:00
|
|
|
|
td.summary-column {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
width: 100%;
|
2015-03-29 15:14:02 -04:00
|
|
|
|
}
|
|
|
|
|
|
2014-07-04 00:51:46 -07:00
|
|
|
|
.summary {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding-right: 0px;
|
2014-07-04 00:51:46 -07:00
|
|
|
|
}
|
|
|
|
|
|
2016-10-12 05:23:37 +02:00
|
|
|
|
pre.rust .question-mark {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
font-weight: bold;
|
2016-10-12 05:23:37 +02:00
|
|
|
|
}
|
2014-03-04 11:24:20 -08:00
|
|
|
|
|
2015-10-14 15:05:21 -04:00
|
|
|
|
a.test-arrow {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
display: inline-block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
padding: 5px 10px 5px 10px;
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
font-size: 130%;
|
|
|
|
|
top: 5px;
|
|
|
|
|
right: 5px;
|
2020-01-26 17:24:40 +01:00
|
|
|
|
z-index: 1;
|
2014-06-06 09:12:18 -07:00
|
|
|
|
}
|
2016-09-08 01:16:06 +02:00
|
|
|
|
a.test-arrow:hover{
|
2016-11-06 21:03:08 +01:00
|
|
|
|
text-decoration: none;
|
2016-09-08 01:16:06 +02:00
|
|
|
|
}
|
2014-06-06 09:12:18 -07:00
|
|
|
|
|
2017-09-17 22:11:37 +02:00
|
|
|
|
.section-header:hover a:before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -25px;
|
2018-08-25 14:15:49 -07:00
|
|
|
|
padding-right: 10px; /* avoid gap that causes hover to disappear */
|
2016-11-06 21:03:08 +01:00
|
|
|
|
content: '\2002\00a7\2002';
|
2014-03-08 01:24:54 +11:00
|
|
|
|
}
|
2014-03-19 16:33:03 -06:00
|
|
|
|
|
2015-02-20 13:54:11 +02:00
|
|
|
|
.section-header:hover a {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
text-decoration: none;
|
2015-02-20 13:54:11 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.section-header a {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
color: inherit;
|
2015-02-20 13:54:11 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-04-17 18:08:50 -07:00
|
|
|
|
.code-attribute {
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
}
|
|
|
|
|
|
2016-05-06 18:47:12 +02:00
|
|
|
|
.since + .srclink {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
display: table-cell;
|
|
|
|
|
padding-left: 10px;
|
2016-05-06 18:47:12 +02:00
|
|
|
|
}
|
2014-08-02 20:58:41 -04:00
|
|
|
|
|
2017-07-09 00:40:29 +02:00
|
|
|
|
.item-spacer {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-03 12:55:31 -04:00
|
|
|
|
.out-of-band > span.since {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
position: initial;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
margin-right: 5px;
|
2016-05-10 21:01:10 +02:00
|
|
|
|
}
|
|
|
|
|
|
2016-11-11 16:41:00 -06:00
|
|
|
|
.sub-variant, .sub-variant > h3 {
|
2021-04-18 23:01:47 +02:00
|
|
|
|
margin-top: 0px !important;
|
|
|
|
|
padding-top: 1px;
|
2018-10-19 01:34:46 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-04-18 23:01:47 +02:00
|
|
|
|
#main > details > .sub-variant > h3 {
|
2018-10-19 01:34:46 +02:00
|
|
|
|
font-size: 15px;
|
|
|
|
|
margin-left: 25px;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sub-variant > div {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sub-variant > div > span {
|
|
|
|
|
display: block;
|
|
|
|
|
position: relative;
|
2016-11-11 16:41:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2017-08-30 23:16:25 +02:00
|
|
|
|
.toggle-label {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
margin-top: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-22 16:08:31 +02:00
|
|
|
|
.docblock > .section-header:first-child {
|
|
|
|
|
margin-left: 15px;
|
2017-10-22 16:11:07 +02:00
|
|
|
|
margin-top: 0;
|
2017-10-22 16:08:31 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.docblock > .section-header:first-child:hover > a:before {
|
|
|
|
|
left: -10px;
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-09 13:41:55 +01:00
|
|
|
|
#main > .variant, #main > .structfield {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-12 01:15:33 +02:00
|
|
|
|
|
2016-05-16 22:36:13 +02:00
|
|
|
|
:target > code {
|
2017-03-09 19:02:59 +01:00
|
|
|
|
opacity: 1;
|
2016-05-16 22:36:13 +02:00
|
|
|
|
}
|
|
|
|
|
|
2017-09-09 15:33:57 +02:00
|
|
|
|
.information {
|
|
|
|
|
position: absolute;
|
2020-03-14 18:17:08 +01:00
|
|
|
|
left: -25px;
|
2017-09-09 15:33:57 +02:00
|
|
|
|
margin-top: 7px;
|
2017-09-18 12:51:48 +02:00
|
|
|
|
z-index: 1;
|
2017-09-09 15:33:57 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltip {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-05 17:31:31 +01:00
|
|
|
|
.tooltip::after {
|
2017-09-09 15:33:57 +02:00
|
|
|
|
display: none;
|
|
|
|
|
text-align: center;
|
2020-03-14 18:17:08 +01:00
|
|
|
|
padding: 5px 3px 3px 3px;
|
2017-09-09 15:33:57 +02:00
|
|
|
|
border-radius: 6px;
|
|
|
|
|
margin-left: 5px;
|
2020-03-14 18:17:08 +01:00
|
|
|
|
font-size: 16px;
|
2017-09-09 15:33:57 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-05 17:31:31 +01:00
|
|
|
|
.tooltip.ignore::after {
|
|
|
|
|
content: "This example is not tested";
|
|
|
|
|
}
|
|
|
|
|
.tooltip.compile_fail::after {
|
|
|
|
|
content: "This example deliberately fails to compile";
|
|
|
|
|
}
|
|
|
|
|
.tooltip.should_panic::after {
|
|
|
|
|
content: "This example panics";
|
|
|
|
|
}
|
|
|
|
|
.tooltip.edition::after {
|
2020-12-23 20:27:12 +01:00
|
|
|
|
content: "This code runs with edition " attr(data-edition);
|
2020-12-05 17:31:31 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tooltip::before {
|
2017-09-09 15:33:57 +02:00
|
|
|
|
content: " ";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
2020-03-14 18:17:08 +01:00
|
|
|
|
left: 16px;
|
2017-09-09 15:33:57 +02:00
|
|
|
|
margin-top: -5px;
|
|
|
|
|
border-width: 5px;
|
|
|
|
|
border-style: solid;
|
2020-12-05 17:31:31 +01:00
|
|
|
|
display: none;
|
2017-09-09 15:33:57 +02:00
|
|
|
|
}
|
2017-09-18 12:51:48 +02:00
|
|
|
|
|
2020-12-05 17:31:31 +01:00
|
|
|
|
.tooltip:hover::before, .tooltip:hover::after {
|
2020-10-07 11:31:15 +02:00
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-18 08:48:37 -04:00
|
|
|
|
.tooltip.compile_fail, .tooltip.should_panic, .tooltip.ignore {
|
2020-03-14 18:17:08 +01:00
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.notable-traits-tooltip {
|
2020-07-06 17:18:04 -07:00
|
|
|
|
display: inline-block;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.notable-traits:hover .notable-traits-tooltiptext,
|
|
|
|
|
.notable-traits .notable-traits-tooltiptext.force-tooltip {
|
2020-07-06 17:18:04 -07:00
|
|
|
|
display: inline-block;
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.notable-traits .notable-traits-tooltiptext {
|
2020-07-06 17:18:04 -07:00
|
|
|
|
display: none;
|
|
|
|
|
padding: 5px 3px 3px 3px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
margin-left: 5px;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
cursor: default;
|
|
|
|
|
position: absolute;
|
2020-07-15 09:29:34 -07:00
|
|
|
|
border: 1px solid;
|
2020-07-06 17:18:04 -07:00
|
|
|
|
}
|
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.notable-traits-tooltip::after {
|
2020-07-06 17:18:04 -07:00
|
|
|
|
/* The margin on the tooltip does not capture hover events,
|
|
|
|
|
this extends the area of hover enough so that mouse hover is not
|
|
|
|
|
lost when moving the mouse to the tooltip */
|
2020-07-15 17:20:46 +02:00
|
|
|
|
content: "\00a0\00a0\00a0";
|
2020-07-06 17:18:04 -07:00
|
|
|
|
}
|
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.notable-traits .notable, .notable-traits .docblock {
|
2020-07-06 17:18:04 -07:00
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.notable-traits .docblock code.content{
|
2020-07-15 17:20:46 +02:00
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
font-size: 20px;
|
2017-11-29 19:23:41 +01:00
|
|
|
|
}
|
|
|
|
|
|
2020-07-15 17:20:46 +02:00
|
|
|
|
/* Example code has the "Run" button that needs to be positioned relative to the pre */
|
2020-07-16 09:01:30 -07:00
|
|
|
|
pre.rust.rust-example-rendered {
|
2017-09-18 12:51:48 +02:00
|
|
|
|
position: relative;
|
2020-07-16 09:01:30 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pre.rust {
|
2020-03-28 11:49:12 +01:00
|
|
|
|
tab-size: 4;
|
|
|
|
|
-moz-tab-size: 4;
|
2017-09-18 12:51:48 +02:00
|
|
|
|
}
|
2017-10-04 00:06:07 +02:00
|
|
|
|
|
|
|
|
|
.search-failed {
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-01 02:20:49 +01:00
|
|
|
|
.search-failed > ul {
|
|
|
|
|
text-align: left;
|
|
|
|
|
max-width: 570px;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-04 00:06:07 +02:00
|
|
|
|
#titles {
|
|
|
|
|
height: 35px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-10 11:38:12 +01:00
|
|
|
|
#titles > button {
|
2017-10-04 00:06:07 +02:00
|
|
|
|
float: left;
|
|
|
|
|
width: 33.3%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
cursor: pointer;
|
2020-12-10 11:38:12 +01:00
|
|
|
|
border: 0;
|
2018-10-16 19:07:41 +02:00
|
|
|
|
border-top: 2px solid;
|
2017-10-04 00:06:07 +02:00
|
|
|
|
}
|
|
|
|
|
|
2020-12-10 11:38:12 +01:00
|
|
|
|
#titles > button:not(:last-child) {
|
2018-10-16 19:07:41 +02:00
|
|
|
|
margin-right: 1px;
|
|
|
|
|
width: calc(33.3% - 1px);
|
2017-10-04 00:06:07 +02:00
|
|
|
|
}
|
2017-11-02 01:01:51 +01:00
|
|
|
|
|
2020-12-10 11:38:12 +01:00
|
|
|
|
#titles > button > div.count {
|
2017-11-02 01:01:51 +01:00
|
|
|
|
display: inline-block;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
2017-11-15 20:04:02 +01:00
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.notable-traits {
|
2020-07-06 12:53:44 -07:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
z-index: 2;
|
2020-07-06 14:13:47 -07:00
|
|
|
|
margin-left: 5px;
|
2020-07-06 12:53:44 -07:00
|
|
|
|
}
|
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
h4 > .notable-traits {
|
2020-07-06 12:53:44 -07:00
|
|
|
|
position: absolute;
|
|
|
|
|
left: -44px;
|
|
|
|
|
top: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-06 18:51:56 +02:00
|
|
|
|
#all-types {
|
|
|
|
|
text-align: center;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
margin: 0 10px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
display: block;
|
|
|
|
|
border-radius: 7px;
|
|
|
|
|
}
|
|
|
|
|
#all-types > p {
|
|
|
|
|
margin: 5px 0;
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-29 23:24:09 +02:00
|
|
|
|
#sidebar-toggle {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 30px;
|
|
|
|
|
left: 300px;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
padding: 3px;
|
|
|
|
|
border-top-right-radius: 3px;
|
|
|
|
|
border-bottom-right-radius: 3px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
transition: left .5s;
|
|
|
|
|
font-size: 1.2em;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
border-left: 0;
|
|
|
|
|
}
|
|
|
|
|
#source-sidebar {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 300px;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
transition: left .5s;
|
|
|
|
|
border-right: 1px solid;
|
|
|
|
|
}
|
|
|
|
|
#source-sidebar > .title {
|
|
|
|
|
font-size: 1.5em;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-29 23:43:39 +02:00
|
|
|
|
.theme-picker {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 211px;
|
|
|
|
|
top: 19px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.theme-picker button {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-09 11:21:38 -07:00
|
|
|
|
#settings-menu, #help-button {
|
2019-04-29 23:43:39 +02:00
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
2020-08-10 16:42:11 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#settings-menu {
|
|
|
|
|
right: 0;
|
2019-04-29 23:43:39 +02:00
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-09 11:21:38 -07:00
|
|
|
|
#theme-picker, #settings-menu, #help-button, #copy-path {
|
2021-03-31 22:13:47 +02:00
|
|
|
|
padding: 4px;
|
|
|
|
|
width: 27px;
|
|
|
|
|
height: 29px;
|
|
|
|
|
border: 1px solid;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-09 11:21:38 -07:00
|
|
|
|
#help-button {
|
2020-08-10 16:42:11 +02:00
|
|
|
|
right: 30px;
|
2021-03-15 19:20:15 +02:00
|
|
|
|
font-family: "Fira Sans", Arial, sans-serif;
|
2020-08-10 16:42:11 +02:00
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 17px;
|
2021-03-31 22:13:47 +02:00
|
|
|
|
padding-top: 2px;
|
2020-08-10 16:42:11 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-03-31 22:13:47 +02:00
|
|
|
|
#copy-path {
|
|
|
|
|
margin-left: 10px;
|
2021-05-09 20:41:24 +02:00
|
|
|
|
padding: 0;
|
|
|
|
|
padding-left: 2px;
|
|
|
|
|
}
|
|
|
|
|
#copy-path> img {
|
|
|
|
|
margin-bottom: 2px;
|
2019-04-29 23:43:39 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#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%;
|
2020-08-24 22:32:59 +08:00
|
|
|
|
padding: 4px 8px;
|
2019-04-29 23:43:39 +02:00
|
|
|
|
text-align: center;
|
|
|
|
|
background: rgba(0,0,0,0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#theme-choices > button:not(:first-child) {
|
|
|
|
|
border-top: 1px solid;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-14 19:43:08 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
h3.notable {
|
|
|
|
|
margin: 0;
|
|
|
|
|
margin-bottom: 13px;
|
|
|
|
|
font-size: 19px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kbd {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 3px 5px;
|
|
|
|
|
font: 15px monospace;
|
|
|
|
|
line-height: 10px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
border: solid 1px;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
box-shadow: inset 0 -1px 0;
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.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;
|
|
|
|
|
}
|
|
|
|
|
#implementors-list > .impl-items .table-display .out-of-band {
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.table-display td:hover .anchor {
|
|
|
|
|
display: block;
|
|
|
|
|
top: 2px;
|
|
|
|
|
left: -5px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#main > ul {
|
|
|
|
|
padding-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
#main > ul > li {
|
|
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.non-exhaustive {
|
|
|
|
|
margin-bottom: 1em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div.children {
|
|
|
|
|
padding-left: 27px;
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
div.name {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-left: 16px;
|
|
|
|
|
}
|
|
|
|
|
div.files > a {
|
|
|
|
|
display: block;
|
|
|
|
|
padding: 0 3px;
|
|
|
|
|
}
|
|
|
|
|
div.files > a:hover, div.name:hover {
|
|
|
|
|
background-color: #a14b4b;
|
|
|
|
|
}
|
|
|
|
|
div.name.expand + .children {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
div.name::before {
|
|
|
|
|
content: "\25B6";
|
|
|
|
|
padding-left: 4px;
|
|
|
|
|
font-size: 0.7em;
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -16px;
|
|
|
|
|
top: 4px;
|
|
|
|
|
}
|
|
|
|
|
div.name.expand::before {
|
|
|
|
|
transform: rotate(90deg);
|
|
|
|
|
left: -15px;
|
|
|
|
|
top: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* The hideme class is used on summary tags that contain a span with
|
|
|
|
|
placeholder text shown only when the toggle is closed. For instance,
|
|
|
|
|
"Expand description" or "Show methods". */
|
|
|
|
|
details.rustdoc-toggle > summary.hideme {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle > summary, details.undocumented > summary {
|
|
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
details.rustdoc-toggle > summary::-webkit-details-marker,
|
|
|
|
|
details.rustdoc-toggle > summary::marker,
|
|
|
|
|
details.undocumented > summary::-webkit-details-marker,
|
|
|
|
|
details.undocumented > summary::marker {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle > summary.hideme > span {
|
|
|
|
|
margin-left: 9px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle > summary::before {
|
|
|
|
|
content: "[+]";
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
font-size: 0.8em;
|
|
|
|
|
letter-spacing: 1px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle.top-doc > summary,
|
|
|
|
|
details.rustdoc-toggle.top-doc > summary::before,
|
|
|
|
|
details.rustdoc-toggle.non-exhaustive > summary,
|
|
|
|
|
details.rustdoc-toggle.non-exhaustive > summary::before {
|
|
|
|
|
font-family: 'Fira Sans';
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.non-exhaustive {
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle > summary.hideme::before {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle > summary:not(.hideme)::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: -23px;
|
|
|
|
|
top: initial;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.impl-items > details.rustdoc-toggle > summary:not(.hideme)::before,
|
|
|
|
|
.undocumented > details.rustdoc-toggle > summary:not(.hideme)::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 3px;
|
|
|
|
|
left: -2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* When a "hideme" summary is open and the "Expand description" or "Show
|
|
|
|
|
methods" text is hidden, we want the [-] toggle that remains to not
|
|
|
|
|
affect the layout of the items to its right. To do that, we use
|
|
|
|
|
absolute positioning. Note that we also set position: relative
|
|
|
|
|
on the parent <details> to make this work properly. */
|
|
|
|
|
details.rustdoc-toggle[open] > summary.hideme {
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle, details.undocumented {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle[open] > summary.hideme > span {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle[open] > summary::before {
|
|
|
|
|
content: "[−]";
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.undocumented > summary::before {
|
|
|
|
|
content: "[+] Show hidden undocumented items";
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 300;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
details.undocumented[open] > summary::before {
|
|
|
|
|
content: "[−] Hide undocumented items";
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-02 20:58:41 -04:00
|
|
|
|
/* Media Queries */
|
|
|
|
|
|
2020-07-22 16:28:47 +02:00
|
|
|
|
@media (min-width: 701px) {
|
|
|
|
|
/* In case there is no documentation before a code block, we need to add some margin at the top
|
|
|
|
|
to prevent an overlay between the "collapse toggle" and the information tooltip.
|
2021-03-09 21:14:43 +01:00
|
|
|
|
However, it's not needed with smaller screen width because the doc/code block is always put
|
2020-07-22 16:28:47 +02:00
|
|
|
|
"one line" below. */
|
2021-03-22 22:17:21 +01:00
|
|
|
|
.docblock > .information:first-child > .tooltip {
|
2020-07-22 16:28:47 +02:00
|
|
|
|
margin-top: 16px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-08-02 20:58:41 -04:00
|
|
|
|
@media (max-width: 700px) {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
body {
|
|
|
|
|
padding-top: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
2018-11-13 17:23:30 +01:00
|
|
|
|
.rustdoc > .sidebar {
|
2017-10-12 20:00:34 +02:00
|
|
|
|
height: 45px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
min-height: 40px;
|
2017-10-12 20:00:34 +02:00
|
|
|
|
margin: 0;
|
|
|
|
|
margin-left: -15px;
|
|
|
|
|
padding: 0 15px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
position: static;
|
2018-12-18 13:55:30 -08:00
|
|
|
|
z-index: 11;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
}
|
|
|
|
|
|
2017-12-06 00:42:33 +01:00
|
|
|
|
.sidebar > .location {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
float: right;
|
|
|
|
|
margin: 0px;
|
2017-10-12 20:00:34 +02:00
|
|
|
|
margin-top: 2px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
padding: 3px 10px 1px 10px;
|
|
|
|
|
min-height: 39px;
|
|
|
|
|
background: inherit;
|
|
|
|
|
text-align: left;
|
|
|
|
|
font-size: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.sidebar .location:empty {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-29 11:45:06 +02:00
|
|
|
|
.sidebar .logo-container {
|
2016-11-06 21:03:08 +01:00
|
|
|
|
width: 35px;
|
2019-04-29 11:45:06 +02:00
|
|
|
|
height: 35px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
margin-top: 5px;
|
2017-10-12 20:00:34 +02:00
|
|
|
|
margin-bottom: 5px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
float: left;
|
2017-12-06 00:42:33 +01:00
|
|
|
|
margin-left: 50px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-29 11:45:06 +02:00
|
|
|
|
.sidebar .logo-container > img {
|
|
|
|
|
max-width: 35px;
|
|
|
|
|
max-height: 35px;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-06 00:42:33 +01:00
|
|
|
|
.sidebar-menu {
|
2017-12-11 22:30:04 +01:00
|
|
|
|
position: fixed;
|
|
|
|
|
z-index: 10;
|
2017-12-06 00:42:33 +01:00
|
|
|
|
font-size: 2rem;
|
|
|
|
|
cursor: pointer;
|
2017-12-11 22:30:04 +01:00
|
|
|
|
width: 45px;
|
|
|
|
|
left: 0;
|
|
|
|
|
text-align: center;
|
2017-12-06 00:42:33 +01:00
|
|
|
|
display: block;
|
2017-12-11 22:30:04 +01:00
|
|
|
|
border-bottom: 1px solid;
|
|
|
|
|
border-right: 1px solid;
|
2018-01-27 18:58:59 +01:00
|
|
|
|
height: 45px;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-05-03 00:13:39 +02:00
|
|
|
|
.rustdoc.source > .sidebar > .sidebar-menu {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-06 00:42:33 +01:00
|
|
|
|
.sidebar-elems {
|
|
|
|
|
position: fixed;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
left: 0;
|
|
|
|
|
top: 45px;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
overflow-y: auto;
|
2017-12-11 22:30:04 +01:00
|
|
|
|
border-right: 1px solid;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-11 22:30:04 +01:00
|
|
|
|
.sidebar > .block.version {
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
margin-top: 12px;
|
2021-01-05 18:53:23 -05:00
|
|
|
|
margin-bottom: 0;
|
2017-12-11 22:30:04 +01:00
|
|
|
|
}
|
|
|
|
|
|
2017-12-06 00:42:33 +01:00
|
|
|
|
nav.sub {
|
2018-01-27 18:58:59 +01:00
|
|
|
|
width: calc(100% - 32px);
|
|
|
|
|
float: right;
|
2017-12-06 00:42:33 +01:00
|
|
|
|
}
|
|
|
|
|
|
2016-11-06 21:03:08 +01:00
|
|
|
|
.content {
|
|
|
|
|
margin-left: 0px;
|
|
|
|
|
}
|
|
|
|
|
|
2021-01-31 13:34:32 +01:00
|
|
|
|
#main, #search {
|
2018-02-08 23:47:49 +01:00
|
|
|
|
margin-top: 45px;
|
2018-02-04 13:38:39 +01:00
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2017-10-24 22:34:59 +02:00
|
|
|
|
.content h4 > .out-of-band {
|
|
|
|
|
position: inherit;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
}
|
|
|
|
|
|
2017-10-14 15:52:50 +02:00
|
|
|
|
#search {
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
}
|
2017-10-24 22:34:59 +02:00
|
|
|
|
|
2021-04-30 16:50:03 +02:00
|
|
|
|
.content .impl-items .method, .content .impl-items > .type, .impl-items > .associatedconstant,
|
|
|
|
|
.impl-items > .associatedtype {
|
2017-10-24 22:34:59 +02:00
|
|
|
|
display: flex;
|
|
|
|
|
}
|
2018-02-19 23:22:08 +03:00
|
|
|
|
|
|
|
|
|
.anchor {
|
2018-02-20 22:46:24 +03:00
|
|
|
|
display: none !important;
|
2018-02-19 23:22:08 +03:00
|
|
|
|
}
|
2018-10-06 18:51:56 +02:00
|
|
|
|
|
2019-04-29 23:43:39 +02:00
|
|
|
|
.theme-picker {
|
|
|
|
|
left: 10px;
|
|
|
|
|
top: 54px;
|
|
|
|
|
z-index: 1;
|
2016-11-06 21:03:08 +01:00
|
|
|
|
}
|
2017-11-15 20:04:02 +01:00
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
h4 > .notable-traits {
|
2020-07-06 12:53:44 -07:00
|
|
|
|
position: absolute;
|
|
|
|
|
left: -22px;
|
|
|
|
|
top: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-10 11:38:12 +01:00
|
|
|
|
#titles > button > div.count {
|
2017-12-18 21:27:19 +01:00
|
|
|
|
float: left;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#titles {
|
|
|
|
|
height: 50px;
|
|
|
|
|
}
|
2017-12-20 00:44:44 +01:00
|
|
|
|
|
|
|
|
|
.sidebar.mobile {
|
|
|
|
|
position: fixed;
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
background-color: rgba(0,0,0,0);
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
2021-02-01 17:21:49 +01:00
|
|
|
|
/*
|
|
|
|
|
This allows to prevent the version text to overflow the sidebar title on mobile mode when the
|
|
|
|
|
sidebar is displayed (after clicking on the "hamburger" button).
|
|
|
|
|
*/
|
|
|
|
|
.sidebar.mobile > div.version {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
max-height: 33px;
|
|
|
|
|
}
|
2018-10-06 18:51:56 +02:00
|
|
|
|
.sidebar {
|
|
|
|
|
width: calc(100% + 30px);
|
|
|
|
|
}
|
2017-12-20 00:44:44 +01:00
|
|
|
|
|
|
|
|
|
.show-it {
|
|
|
|
|
display: block;
|
2018-02-04 13:47:35 +01:00
|
|
|
|
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;
|
2017-12-20 00:44:44 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 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;
|
|
|
|
|
}
|
2018-02-17 20:54:00 +03:00
|
|
|
|
|
2021-04-17 23:43:20 -07:00
|
|
|
|
.item-list > details.rustdoc-toggle > summary:not(.hideme)::before {
|
|
|
|
|
left: -10px;
|
|
|
|
|
}
|
|
|
|
|
|
2018-10-06 18:51:56 +02:00
|
|
|
|
#all-types {
|
|
|
|
|
margin: 10px;
|
|
|
|
|
}
|
2019-04-29 23:24:09 +02:00
|
|
|
|
|
|
|
|
|
#sidebar-toggle {
|
|
|
|
|
top: 100px;
|
|
|
|
|
width: 30px;
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#source-sidebar {
|
|
|
|
|
z-index: 11;
|
|
|
|
|
}
|
2019-04-29 23:43:39 +02:00
|
|
|
|
|
|
|
|
|
#main > .line-numbers {
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
}
|
2020-07-20 14:37:47 +02:00
|
|
|
|
|
2020-08-09 12:09:05 -07:00
|
|
|
|
.notable-traits .notable-traits-tooltiptext {
|
2020-07-20 14:37:47 +02:00
|
|
|
|
left: 0;
|
|
|
|
|
top: 100%;
|
|
|
|
|
}
|
2020-10-15 17:28:42 +02:00
|
|
|
|
|
|
|
|
|
/* We don't display the help button on mobile devices. */
|
2021-05-09 11:21:38 -07:00
|
|
|
|
#help-button {
|
2020-10-15 17:28:42 +02:00
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.search-container > div {
|
|
|
|
|
width: calc(100% - 32px);
|
|
|
|
|
}
|
2017-12-18 21:27:19 +01:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-29 23:43:39 +02:00
|
|
|
|
@media print {
|
2021-05-11 11:40:26 +02:00
|
|
|
|
nav.sub, .content .out-of-band {
|
2019-04-29 23:43:39 +02:00
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-12-18 21:27:19 +01:00
|
|
|
|
|
2021-01-31 13:42:16 +01:00
|
|
|
|
@media (max-width: 464px) {
|
2020-12-10 11:38:12 +01:00
|
|
|
|
#titles, #titles > button {
|
2017-12-18 21:27:19 +01:00
|
|
|
|
height: 73px;
|
|
|
|
|
}
|
2020-10-18 21:54:59 +02:00
|
|
|
|
|
2020-12-27 16:26:44 +01:00
|
|
|
|
/* This is to prevent the search bar from being underneath the <section>
|
|
|
|
|
* element following it.
|
|
|
|
|
*/
|
|
|
|
|
#main, #search {
|
2020-12-11 20:07:24 +01:00
|
|
|
|
margin-top: 100px;
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-18 21:54:59 +02:00
|
|
|
|
#main > table:not(.table-display) td {
|
|
|
|
|
word-break: break-word;
|
2020-12-11 18:02:23 +01:00
|
|
|
|
width: 50%;
|
2020-10-18 21:54:59 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-container > div {
|
|
|
|
|
display: block;
|
|
|
|
|
width: calc(100% - 37px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#crate-search {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#crate-search + .search-input {
|
|
|
|
|
width: calc(100% + 71px);
|
|
|
|
|
margin-left: -36px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#theme-picker, #settings-menu {
|
|
|
|
|
padding: 5px;
|
|
|
|
|
width: 31px;
|
|
|
|
|
height: 31px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#theme-picker {
|
|
|
|
|
margin-top: -2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#settings-menu {
|
|
|
|
|
top: 7px;
|
|
|
|
|
}
|
2021-01-31 01:36:15 +08:00
|
|
|
|
|
2021-01-31 01:19:29 +08:00
|
|
|
|
.docblock {
|
|
|
|
|
margin-left: 12px;
|
|
|
|
|
}
|
2021-05-14 14:36:34 +02:00
|
|
|
|
|
|
|
|
|
details.rustdoc-toggle > summary.hideme::before {
|
|
|
|
|
left: -11px;
|
|
|
|
|
}
|
2017-12-08 16:36:08 +01:00
|
|
|
|
}
|