diff --git a/src/doc/rust.css b/src/doc/rust.css index 4bbb809840211..9656d17721e47 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -62,6 +62,10 @@ body { font-size: 18px; color: #333; line-height: 1.428571429; + + -webkit-font-feature-settings: "kern", "liga"; + -moz-font-feature-settings: "kern", "liga"; + font-feature-settings: "kern", "liga"; } @media (min-width: 768px) { body { diff --git a/src/librustdoc/html/static/SourceSerifPro-Bold.woff b/src/librustdoc/html/static/SourceSerifPro-Bold.woff index 435a6f975c97c..ac1b1b3a0bb7a 100644 Binary files a/src/librustdoc/html/static/SourceSerifPro-Bold.woff and b/src/librustdoc/html/static/SourceSerifPro-Bold.woff differ diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index 7eec634405b72..7cc34798f9904 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -69,6 +69,10 @@ body { margin: 0; position: relative; padding: 10px 15px 20px 15px; + + -webkit-font-feature-settings: "kern", "liga"; + -moz-font-feature-settings: "kern", "liga"; + font-feature-settings: "kern", "liga"; } h1 { @@ -101,7 +105,7 @@ h3.impl, h3.method, h4.method { h3.impl, h3.method { margin-top: 15px; } -h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table a, .collapse-toggle { +h1, h2, h3, h4, section.sidebar, a.source, .search-input, .content table :not(code)>a, .collapse-toggle { font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; } @@ -177,7 +181,7 @@ nav.sub { color: #333; } -.location a:first-child { font-weight: bold; } +.location a:first-child { font-weight: 500; } .block { padding: 0 10px; @@ -494,7 +498,7 @@ pre.rust { position: relative; } } .collapse-toggle { - font-weight: 100; + font-weight: 300; position: absolute; left: 13px; color: #999; @@ -523,7 +527,6 @@ pre.rust { position: relative; } .toggle-label { color: #999; - font-style: italic; }