]> git.lizzy.rs Git - rust.git/commitdiff
Greatly improve display for small mobile devices screens
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 18 Oct 2020 19:54:59 +0000 (21:54 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Sun, 18 Oct 2020 19:54:59 +0000 (21:54 +0200)
src/librustdoc/html/static/rustdoc.css

index 8c8a00d47bc07500bbad51a1a1f0bf292e828484..0ab97ab3f63845972d755116eaadfe45ac364d4b 100644 (file)
@@ -1560,6 +1560,41 @@ h4 > .notable-traits {
        #titles, #titles > div {
                height: 73px;
        }
+
+       #main > table:not(.table-display) td {
+               word-break: break-word;
+               min-width: 10%;
+       }
+
+       .search-container > div {
+               display: block;
+               width: calc(100% - 37px);
+       }
+
+       #crate-search {
+               width: 100%;
+               border-radius: 4px;
+               border: 0;
+       }
+
+       #crate-search + .search-input {
+               width: calc(100% + 71px);
+               margin-left: -36px;
+       }
+
+       #theme-picker, #settings-menu {
+               padding: 5px;
+               width: 31px;
+               height: 31px;
+       }
+
+       #theme-picker {
+               margin-top: -2px;
+       }
+
+       #settings-menu {
+               top: 7px;
+       }
 }
 
 h3.notable {