diff options
| author | Tor Hovland <tor.hovland@bekk.no> | 2021-04-22 22:33:54 +0200 |
|---|---|---|
| committer | Tor Hovland <tor.hovland@bekk.no> | 2021-04-22 23:07:29 +0200 |
| commit | 3090b0151c896dd47dedcbd26f1223a534f55f17 (patch) | |
| tree | c8b5abba01459a2c116737f962b19e11433452a6 /src/librustdoc/html | |
| parent | 5f1aeb52c22e3784928765e34be6dc0d17a350b4 (diff) | |
| download | rust-3090b0151c896dd47dedcbd26f1223a534f55f17.tar.gz rust-3090b0151c896dd47dedcbd26f1223a534f55f17.zip | |
Use flex more consistently.
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index 213ca9ec9e3..cf934efbb15 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -117,9 +117,12 @@ h4:not(.method):not(.type):not(.tymethod):not(.associatedconstant) { } h1.fqn { display: flex; - width: 100%; border-bottom: 1px dashed; margin-top: 0; + + /* workaround to keep flex from breaking below 700 px width due to the float: right on the nav + above the h1 */ + padding-left: 1px; } h1.fqn > .in-band > a:hover { text-decoration: underline; @@ -453,20 +456,14 @@ nav.sub { } .content .out-of-band { - float: right; + flex-grow: 0; + text-align: right; font-size: 23px; margin: 0px; - padding: 0px; + padding: 0 0 0 12px; font-weight: normal; } -h1.fqn > .out-of-band { - float: unset; - flex: 1; - text-align: right; - margin-left: 8px; -} - h3.impl > .out-of-band { font-size: 21px; } @@ -486,6 +483,7 @@ h4 > code, h3 > code, .invisible > code { } .content .in-band { + flex-grow: 1; margin: 0px; padding: 0px; } @@ -1483,10 +1481,6 @@ h4 > .notable-traits { display: none !important; } - h1.fqn { - overflow: initial; - } - .theme-picker { left: 10px; top: 54px; |
