rust/src/doc/rust.css

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

356 lines
4.9 KiB
CSS
Raw Normal View History

2014-04-25 02:56:55 -05:00
/* General structure */
body {
2018-01-09 15:26:26 -06:00
margin: 0 auto;
padding: 0 15px;
font-size: 18px;
color: #333;
line-height: 1.428571429;
-webkit-box-sizing: unset;
-moz-box-sizing: unset;
2021-06-27 06:26:36 -05:00
box-sizing: unset;
}
@media (min-width: 768px) {
2018-01-09 15:26:26 -06:00
body {
max-width: 750px;
}
}
2021-06-27 06:26:36 -05:00
h2, h3, h4, h5, h6 {
2018-01-09 15:26:26 -06:00
font-weight: 400;
line-height: 1.1;
}
h1, h2, h3 {
2018-01-09 15:26:26 -06:00
margin-top: 20px;
margin-bottom: 15px;
}
h1 {
2018-01-09 15:26:26 -06:00
margin-bottom: 20px;
2021-06-27 06:26:36 -05:00
line-height: 1.1;
}
h4, h5, h6 {
2018-01-09 15:26:26 -06:00
margin-top: 12px;
margin-bottom: 10px;
padding: 5px 10px;
}
h5, h6 {
2021-06-27 06:26:36 -05:00
color: black;
2018-01-09 15:26:26 -06:00
text-decoration: underline;
}
h1 {
2018-01-09 15:26:26 -06:00
font-size: 28px;
font-weight: 500;
2018-01-09 15:26:26 -06:00
padding: .1em .4em;
border-bottom: 2px solid #ddd;
}
h1.title {
2018-01-09 15:26:26 -06:00
line-height: 1.5em;
}
h2 {
2018-01-09 15:26:26 -06:00
font-size: 26px;
padding: .2em .5em;
border-bottom: 1px solid #ddd;
}
h3 {
2018-01-09 15:26:26 -06:00
font-size: 24px;
padding: .2em .7em;
border-bottom: 1px solid #DDE8FC;
}
h4 {
2018-01-09 15:26:26 -06:00
font-size: 22px;
2021-06-27 06:26:36 -05:00
border-bottom: none;
}
h5 {
2018-01-09 15:26:26 -06:00
font-size: 20px;
2012-09-30 23:35:32 -05:00
}
h6 {
2018-01-09 15:26:26 -06:00
font-size: 18px;
}
@media (min-width: 992px) {
2018-01-09 15:26:26 -06:00
h1 {
font-size: 36px;
}
h2 {
font-size: 30px;
}
h3 {
font-size: 26px;
}
}
nav {
2018-01-09 15:26:26 -06:00
column-count: 2;
-moz-column-count: 2;
-webkit-column-count: 2;
font-size: 15px;
margin: 0 0 1em 0;
}
p {
2018-01-09 15:26:26 -06:00
margin: 0 0 1em 0;
}
strong {
2018-01-09 15:26:26 -06:00
font-weight: bold;
}
em {
2018-01-09 15:26:26 -06:00
font-style: italic;
}
footer {
2018-01-09 15:26:26 -06:00
border-top: 1px solid #ddd;
font-size: 14px;
font-style: italic;
padding-top: 5px;
margin-top: 3em;
margin-bottom: 1em;
}
2014-04-25 02:56:55 -05:00
/* Links layout */
a {
text-decoration: none;
2018-01-09 15:26:26 -06:00
color: #428BCA;
background: transparent;
}
a:hover, a:focus {
2018-01-09 15:26:26 -06:00
color: #2A6496;
text-decoration: underline;
}
a:focus {
2018-01-09 15:26:26 -06:00
outline: thin dotted #333;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}
a:hover, a:active {
2018-01-09 15:26:26 -06:00
outline: 0;
}
h1 a:link, h1 a:visited, h2 a:link, h2 a:visited,
h3 a:link, h3 a:visited, h4 a:link, h4 a:visited,
h5 a:link, h5 a:visited {color: black;}
2014-04-25 02:56:55 -05:00
/* Code */
pre, code {
2018-01-09 15:26:26 -06:00
word-wrap: break-word;
}
pre {
2018-01-09 15:26:26 -06:00
border-left: 2px solid #eee;
white-space: pre-wrap;
padding-right: 0;
margin: 20px 0;
font-size: 15px;
word-break: break-all;
}
code {
2018-01-09 15:26:26 -06:00
padding: 0 2px;
color: #8D1A38;
}
pre code {
2018-01-09 15:26:26 -06:00
padding: 0;
font-size: inherit;
color: inherit;
}
a > code {
2018-01-09 15:26:26 -06:00
color: #428BCA;
}
2015-07-11 02:08:50 -05:00
.section-header > a > code {
2018-01-09 15:26:26 -06:00
color: #8D1A38;
2015-07-11 02:08:50 -05:00
}
#versioninfo {
2018-01-09 15:26:26 -06:00
text-align: center;
margin: 0.5em;
font-size: 1.1em;
2013-10-11 13:08:52 -05:00
}
2014-04-25 03:34:32 -05:00
@media (min-width: 992px) {
2018-01-09 15:26:26 -06:00
#versioninfo {
font-size: 0.8em;
position: fixed;
bottom: 0px;
right: 0px;
}
.white-sticker {
background-color: #fff;
margin: 2px;
padding: 0 2px;
border-radius: .2em;
}
2013-10-11 13:08:52 -05:00
}
#versioninfo a.hash {
2018-01-09 15:26:26 -06:00
color: gray;
font-size: 80%;
}
blockquote {
2018-01-09 15:26:26 -06:00
color: #000;
margin: 20px 0;
padding: 15px 20px;
background-color: #f2f7f9;
border-top: .1em solid #e5eef2;
border-bottom: .1em solid #e5eef2;
}
blockquote p {
2018-01-09 15:26:26 -06:00
font-size: 17px;
font-weight: 300;
line-height: 1.4;
}
blockquote p:last-child {
2018-01-09 15:26:26 -06:00
margin-bottom: 0;
}
ul ul, ol ul, ul ol, ol ol {
2018-01-09 15:26:26 -06:00
margin-bottom: 0;
}
dl {
2018-01-09 15:26:26 -06:00
margin-bottom: 20px;
}
dd {
2018-01-09 15:26:26 -06:00
margin-left: 0;
}
2012-09-30 23:35:32 -05:00
nav ul {
2018-01-09 15:26:26 -06:00
list-style-type: none;
margin: 0;
padding-left: 0px;
}
/* Only display one level of hierarchy in the TOC */
nav ul ul {
2018-01-09 15:26:26 -06:00
display: none;
}
sub,
sup {
2018-01-09 15:26:26 -06:00
font-size: 75%;
line-height: 0;
position: relative;
}
hr {
2018-01-09 15:26:26 -06:00
margin-top: 20px;
margin-bottom: 20px;
border: 0;
border-top: 1px solid #eeeeee;
}
table {
2018-01-09 15:26:26 -06:00
border-collapse: collapse;
border-spacing: 0;
overflow-x: auto;
display: block;
}
table tr.odd {
2018-01-09 15:26:26 -06:00
background: #eee;
}
table td,
table th {
2018-01-09 15:26:26 -06:00
border: 1px solid #ddd;
padding: 5px;
}
/* Code snippets */
a.test-arrow {
2021-06-27 06:26:36 -05:00
color: #f5f5f5
}
.unstable-feature {
2018-01-09 15:26:26 -06:00
border: 2px solid red;
padding: 5px;
}
2014-04-25 02:56:55 -05:00
@media (min-width: 1170px) {
2018-01-09 15:26:26 -06:00
pre {
font-size: 15px;
}
2014-04-25 02:56:55 -05:00
}
@media print {
2018-01-09 15:26:26 -06:00
* {
text-shadow: none !important;
color: #000 !important;
background: transparent !important;
box-shadow: none !important;
}
a, a:visited {
text-decoration: underline;
}
p a[href]:after {
content: " (" attr(href) ")";
}
footer a[href]:after {
content: "";
}
a[href^="javascript:"]:after, a[href^="#"]:after {
content: "";
}
pre, blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
@page {
margin: 2cm .5cm;
}
h1:not(.title), h2, h3 {
border-bottom: 0px none;
}
p, h2, h3 {
orphans: 3;
widows: 3;
}
h2, h3 {
page-break-after: avoid;
}
table {
border-collapse: collapse !important;
}
table td, table th {
background-color: #fff !important;
}
}
#keyword-table-marker + table thead { display: none; }
#keyword-table-marker + table td { border: none; }
#keyword-table-marker + table {
2018-01-09 15:26:26 -06:00
margin-left: 2em;
margin-bottom: 1em;
}
.error-described {
position: relative;
}
.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: 13px;
margin-top: -5px;
border-width: 5px;
border-style: solid;
}