diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-12-08 16:36:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-08 16:36:08 +0100 |
| commit | 0017d504a52df31d73c253f59f6b3bcff831c69e (patch) | |
| tree | a159d4f4c4ef698a038f522686b4f69138463638 /src/librustdoc/html/static/rustdoc.css | |
| parent | 833785b090c30d4a359d901fb41bfafbe1607ce9 (diff) | |
| download | rust-0017d504a52df31d73c253f59f6b3bcff831c69e.tar.gz rust-0017d504a52df31d73c253f59f6b3bcff831c69e.zip | |
Fixes doc important trait display on mobile
Diffstat (limited to 'src/librustdoc/html/static/rustdoc.css')
| -rw-r--r-- | src/librustdoc/html/static/rustdoc.css | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/rustdoc.css b/src/librustdoc/html/static/rustdoc.css index f32252b726c..426405e1812 100644 --- a/src/librustdoc/html/static/rustdoc.css +++ b/src/librustdoc/html/static/rustdoc.css @@ -983,6 +983,14 @@ h4 > .important-traits { top: 2px; } +@media (max-width: 700px) { + h4 > .important-traits { + position: absolute; + left: -22px; + top: 24px; + } +} + .modal { position: fixed; width: 100vw; @@ -1069,4 +1077,4 @@ h3.important { position: absolute; left: -42px; margin-top: 2px; -} \ No newline at end of file +} |
