about summary refs log tree commit diff
path: root/src/librustdoc/html/static/rustdoc.css
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-10-18 21:54:59 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-10-18 21:54:59 +0200
commit4e2c59a970695b2809a0f68f2ffe415ebdb04913 (patch)
tree42d532329d6a7ddeb7aaf6e895fe620e66dca4c5 /src/librustdoc/html/static/rustdoc.css
parent98e16884b10630e6e6ef5f4a076af3409122401d (diff)
downloadrust-4e2c59a970695b2809a0f68f2ffe415ebdb04913.tar.gz
rust-4e2c59a970695b2809a0f68f2ffe415ebdb04913.zip
Greatly improve display for small mobile devices screens
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
-rw-r--r--src/librustdoc/html/static/rustdoc.css35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css
index 8c8a00d47bc..0ab97ab3f63 100644
--- a/src/librustdoc/html/static/rustdoc.css
+++ b/src/librustdoc/html/static/rustdoc.css
@@ -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 {