]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #70493 - 0xd4d:rustdoc-tab-size, r=GuillaumeGomez
authorDylan DPC <dylan.dpc@gmail.com>
Sat, 28 Mar 2020 14:22:01 +0000 (15:22 +0100)
committerGitHub <noreply@github.com>
Sat, 28 Mar 2020 14:22:01 +0000 (15:22 +0100)
Fix rustdoc.css CSS tab-size property

This fixes the CSS tab size property names which are called `tab-size` / `-moz-tab-size` and not `tab-width`

Old issue https://github.com/rust-lang/rust/issues/49155 and related PR https://github.com/rust-lang/rust/pull/50947

tab-size: https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size

src/librustdoc/html/static/rustdoc.css

index 8887bca3c5962a7e1eaa6ae71e2785da0a4a8fb4..d091cc0c0965b843aac5805924824bae298026fe 100644 (file)
@@ -1082,8 +1082,8 @@ h3 > .collapse-toggle, h4 > .collapse-toggle {
 
 pre.rust {
        position: relative;
-       tab-width: 4;
-       -moz-tab-width: 4;
+       tab-size: 4;
+       -moz-tab-size: 4;
 }
 
 .search-failed {