Make the rustdoc example links more noticable

This commit is contained in:
mdinger 2015-10-14 15:05:21 -04:00
parent 1302187673
commit dd342b05cb
2 changed files with 10 additions and 7 deletions

View File

@ -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 {

View File

@ -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;