From 42b2dc06b67d57319767da84012aff8f3c846811 Mon Sep 17 00:00:00 2001 From: tinaun Date: Fri, 1 Aug 2014 03:45:53 -0400 Subject: [PATCH] Fix API docs css reversing elements that it shouldn't remove unneeded `pre.rust a' selector move transform into `.test-arrow` fixes #16138 --- src/doc/rust.css | 3 ++- src/librustdoc/html/static/main.css | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/doc/rust.css b/src/doc/rust.css index 668acc9a389..9713ce5fcf6 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -324,13 +324,14 @@ table th { .rusttest { display: none; } pre.rust { position: relative; } -pre.rust a { transform: scaleX(-1); } .test-arrow { display: inline-block; position: absolute; top: 0; right: 10px; font-size: 150%; + -webkit-transform: scaleX(-1); + transform: scaleX(-1); } @media (min-width: 1170px) { diff --git a/src/librustdoc/html/static/main.css b/src/librustdoc/html/static/main.css index 45e6694853c..a53cfc9460b 100644 --- a/src/librustdoc/html/static/main.css +++ b/src/librustdoc/html/static/main.css @@ -441,13 +441,14 @@ pre.rust .lifetime { color: #B76514; } .rusttest { display: none; } pre.rust { position: relative; } -pre.rust a { transform: scaleX(-1); } .test-arrow { display: inline-block; position: absolute; top: 0; right: 10px; font-size: 150%; + -webkit-transform: scaleX(-1); + transform: scaleX(-1); } .methods .section-header {