Adjust copy button

Change to clipboard icon.
Position right and top of code blocks.
This commit is contained in:
Jake
2021-08-23 15:43:52 -07:00
committed by mDuo13
parent 99c698a215
commit ab4fa73ff1
2 changed files with 16 additions and 4 deletions

View File

@@ -15,12 +15,21 @@
new ClipboardJS('.clipboard-btn');
});
</script>
{# temp styling for testing. Need to cleanup #}
{# temp styling for testing. #}
<style>
.clipboard-btn {
position: absolute;
right: 50px;
position: relative;
float: right;
z-index: 10;
}
.multicode .clipboard-btn {
right: 15px;
top: 55px;
}
.js_interactive .clipboard-btn {
display:none;
}
</style>
{% endblock %}