]> git.lizzy.rs Git - rust.git/commitdiff
Uses flex to fix formatting of h1 at any width.
authorTor Hovland <tor.hovland@bekk.no>
Tue, 20 Apr 2021 20:31:48 +0000 (22:31 +0200)
committerTor Hovland <tor.hovland@bekk.no>
Tue, 20 Apr 2021 20:31:48 +0000 (22:31 +0200)
src/librustdoc/html/static/rustdoc.css

index 8f11dda2fb205d2da44b85f9e37b6ed4523b7175..415bb608911e5d919b56452a408372d654025137 100644 (file)
@@ -116,6 +116,9 @@ h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) {
        padding-bottom: 6px;
 }
 h1.fqn {
+       display: flex;
+       gap: 8px;
+       width: 100%;
        border-bottom: 1px dashed;
        margin-top: 0;
 }
@@ -458,6 +461,12 @@ nav.sub {
        font-weight: normal;
 }
 
+h1.fqn > .out-of-band {
+       float: unset;
+       flex: 1;
+       text-align: right;
+}
+
 h3.impl > .out-of-band {
        font-size: 21px;
 }
@@ -1450,10 +1459,6 @@ h4 > .notable-traits {
                padding: 0;
        }
 
-       .content .in-band {
-               width: 100%;
-       }
-
        .content h4 > .out-of-band {
                position: inherit;
        }