We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3de0de1 + 96225b1 commit 05a2466Copy full SHA for 05a2466
src/librustdoc/html/static/rustdoc.css
@@ -1291,6 +1291,16 @@ h4 > .important-traits {
1291
1292
/* Media Queries */
1293
1294
+@media (min-width: 701px) {
1295
+ /* In case there is no documentation before a code block, we need to add some margin at the top
1296
+ to prevent an overlay between the "collapse toggle" and the information tooltip.
1297
+ However, it's needed needed with smaller screen width because the doc/code block is always put
1298
+ "one line" below. */
1299
+ .information:first-child > .tooltip {
1300
+ margin-top: 16px;
1301
+ }
1302
+}
1303
+
1304
@media (max-width: 700px) {
1305
body {
1306
padding-top: 0px;
0 commit comments