font-family: 'Fira Sans';
font-style: normal;
font-weight: 400;
- src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
+ src: local('Fira Sans'),
+ url("FiraSans-Regular.woff2") format("woff2"),
+ url("FiraSans-Regular.woff") format('woff');
+ font-display: swap;
}
@font-face {
font-family: 'Fira Sans';
font-style: normal;
font-weight: 500;
- src: local('Fira Sans Medium'), url("FiraSans-Medium.woff") format('woff');
+ src: local('Fira Sans Medium'),
+ url("FiraSans-Medium.woff2") format("woff2"),
+ url("FiraSans-Medium.woff") format('woff');
+ font-display: swap;
}
/* See SourceSerifPro-LICENSE.txt for the Source Serif Pro license. */
font-style: normal;
font-weight: 400;
src: local('Source Serif Pro'), url("SourceSerifPro-Regular.ttf.woff") format('woff');
+ font-display: swap;
}
@font-face {
font-family: 'Source Serif Pro';
font-style: italic;
font-weight: 400;
src: local('Source Serif Pro Italic'), url("SourceSerifPro-It.ttf.woff") format('woff');
+ font-display: swap;
}
@font-face {
font-family: 'Source Serif Pro';
font-style: normal;
font-weight: 700;
src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.ttf.woff") format('woff');
+ font-display: swap;
}
/* See SourceCodePro-LICENSE.txt for the Source Code Pro license. */
/* Avoid using locally installed font because bad versions are in circulation:
* see https://github.com/rust-lang/rust/issues/24355 */
src: url("SourceCodePro-Regular.woff") format('woff');
+ font-display: swap;
}
@font-face {
font-family: 'Source Code Pro';
font-style: normal;
font-weight: 600;
src: url("SourceCodePro-Semibold.woff") format('woff');
+ font-display: swap;
}
* {
#source-sidebar, #sidebar-toggle,
/* This selector is for the items listed in the "all items" page. */
#main > ul.docblock > li > a {
- font-family: "Fira Sans", sans-serif;
+ font-family: "Fira Sans", Arial, sans-serif;
}
.content ul.crate a.crate {
- font: 16px/1.6 "Fira Sans";
+ font-size: 16px/1.6;
+ font-family: "Fira Sans", Arial, sans-serif;
}
ol, ul {
.rustdoc:not(.source) .example-wrap {
display: inline-flex;
margin-bottom: 10px;
- position: relative;
}
.example-wrap {
+ position: relative;
width: 100%;
}
}
#main > .since {
top: inherit;
- font-family: "Fira Sans", sans-serif;
+ font-family: "Fira Sans", Arial, sans-serif;
}
.content table:not(.table-display) {
width: calc(100% - 63px);
}
#crate-search {
+ min-width: 115px;
margin-top: 5px;
padding: 6px;
padding-right: 19px;
.help-button {
right: 30px;
- font-family: "Fira Sans",sans-serif;
+ font-family: "Fira Sans", Arial, sans-serif;
text-align: center;
font-size: 17px;
}
@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.
- However, it's needed needed with smaller screen width because the doc/code block is always put
+ However, it's not needed with smaller screen width because the doc/code block is always put
"one line" below. */
.information:first-child > .tooltip {
margin-top: 16px;