]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/rust.css
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / doc / rust.css
index a92d4ff54db837a6e64dd260d66b3bc5e2e60f43..06f4df9a9b6da258f666727b441ed61b8e2814ab 100644 (file)
@@ -3,30 +3,35 @@
        font-style: normal;
        font-weight: 400;
        src: local('Fira Sans'), 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');
+       font-display: swap;
 }
 @font-face {
        font-family: 'Source Serif Pro';
        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: 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;
 }
 @font-face {
        font-family: 'Source Code Pro';
@@ -35,6 +40,7 @@
        /* 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;
 }
 
 *:not(body) {
@@ -326,6 +332,7 @@ table th {
 
 /* Code snippets */
 
+.example-wrap { position: relative; }
 pre.rust { position: relative; }
 a.test-arrow {
        background-color: rgba(78, 139, 202, 0.2);