]> git.proxmox.com Git - rustc.git/blobdiff - src/librustdoc/html/static/rustdoc.css
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / librustdoc / html / static / rustdoc.css
index 56f17b7a616cd7af114d0d408d0c3fcb82f747e6..4f287cde73b1b2597e66f848682463b21ed584d8 100644 (file)
@@ -3,13 +3,19 @@
        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;
 }
 
 * {
@@ -125,11 +136,12 @@ h1, h2, h3, h4,
 #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 {
@@ -336,10 +348,10 @@ nav.sub {
 .rustdoc:not(.source) .example-wrap {
        display: inline-flex;
        margin-bottom: 10px;
-       position: relative;
 }
 
 .example-wrap {
+       position: relative;
        width: 100%;
 }
 
@@ -471,7 +483,7 @@ h4 > code, h3 > code, .invisible > code {
 }
 #main > .since {
        top: inherit;
-       font-family: "Fira Sans", sans-serif;
+       font-family: "Fira Sans", Arial, sans-serif;
 }
 
 .content table:not(.table-display) {
@@ -680,6 +692,7 @@ a {
        width: calc(100% - 63px);
 }
 #crate-search {
+       min-width: 115px;
        margin-top: 5px;
        padding: 6px;
        padding-right: 19px;
@@ -1289,7 +1302,7 @@ h4 > .notable-traits {
 
 .help-button {
        right: 30px;
-       font-family: "Fira Sans",sans-serif;
+       font-family: "Fira Sans", Arial, sans-serif;
        text-align: center;
        font-size: 17px;
 }
@@ -1331,7 +1344,7 @@ h4 > .notable-traits {
 @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;