Skip to content

Commit

Permalink
Make the rustdoc example links more noticable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdinger committed Oct 14, 2015
1 parent 1302187 commit dd342b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions src/librustdoc/html/static/main.css
Expand Up @@ -559,14 +559,17 @@ pre.rust .lifetime { color: #B76514; }

.rusttest { display: none; }
pre.rust { position: relative; }
.test-arrow {
a.test-arrow {
display: inline-block;
position: absolute;
top: 0;
right: 10px;
font-size: 150%;
-webkit-transform: scaleX(-1);
transform: scaleX(-1);

background-color: #4e8bca;
color: #f5f5f5;
padding: 5px 10px 5px 10px;
border-radius: 5px;
font-size: 130%;
top: 5px;
right: 5px;
}

.methods .section-header {
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/playpen.js
Expand Up @@ -28,8 +28,8 @@ document.addEventListener('DOMContentLoaded', function() {
}

var a = document.createElement('a');
a.textContent = '⇱';
a.setAttribute('class', 'test-arrow');
a.textContent = 'Run';

var code = el.previousElementSibling.textContent;

Expand Down

0 comments on commit dd342b0

Please sign in to comment.