Skip to content

Commit

Permalink
Fix API docs css reversing elements that it shouldn't
Browse files Browse the repository at this point in the history
remove unneeded `pre.rust a' selector

move transform into `.test-arrow`

fixes #16138
  • Loading branch information
tinaun committed Aug 1, 2014
1 parent 9f0b919 commit 42b2dc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/doc/rust.css
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/librustdoc/html/static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

5 comments on commit 42b2dc0

@bors
Copy link
Contributor

@bors bors commented on 42b2dc0 Aug 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at tinaun@42b2dc0

@bors
Copy link
Contributor

@bors bors commented on 42b2dc0 Aug 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging tinaun/rust/newcss = 42b2dc0 into auto

@bors
Copy link
Contributor

@bors bors commented on 42b2dc0 Aug 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tinaun/rust/newcss = 42b2dc0 merged ok, testing candidate = 1b44c5b

@bors
Copy link
Contributor

@bors bors commented on 42b2dc0 Aug 2, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 1b44c5b

Please sign in to comment.