diff --git a/_templates/mirantis/static/abtest.js b/_templates/mirantis/static/abtest.js index 7e686e777..f337234e6 100644 --- a/_templates/mirantis/static/abtest.js +++ b/_templates/mirantis/static/abtest.js @@ -58,7 +58,7 @@ function generateTwitter(url, title) { } function generateCopyButton(url) { - return ''; + return ''; } function populateGuides(guides) { @@ -207,6 +207,10 @@ $(document).ready(function () { $('[data-toggle="tooltip"]').tooltip(); + $('pre').each(function(){ + $('
').insertBefore(this); + }); + ZeroClipboard.config({ forceHandCursor: false, swfPath: "https://cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.1.6/ZeroClipboard.swf" diff --git a/_templates/mirantis/static/styles.css b/_templates/mirantis/static/styles.css index ff2c35957..140833e72 100644 --- a/_templates/mirantis/static/styles.css +++ b/_templates/mirantis/static/styles.css @@ -772,6 +772,7 @@ div.topic { color: #fff; display: none; overflow: hidden; + z-index: 999; } #breadcrumb span { @@ -788,4 +789,23 @@ div.topic { span#guide { margin-right: 15px; +} + +.zero-clipboard { + position: relative; +} + +.btn-clipboard { + position: absolute; + top: 0; + right: 0; + z-index: 10; + display: block; + padding: 5px 8px; + font-size: 12px; + color: #767676; + cursor: pointer; + background-color: #FFF; + border: 1px solid #E1E1E8; + border-radius: 0 4px 0 4px; } \ No newline at end of file