mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-19 03:05:49 +00:00
[FIX] expandable code in compiled rippled-apis page; linebreaks in pre>code
This commit is contained in:
@@ -54,6 +54,10 @@ body .content-root {
|
||||
margin-top: -50px;
|
||||
}
|
||||
|
||||
.content pre code {
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.menubar {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
$(document).on('flatdoc:ready', function() {
|
||||
function make_code_expandable() {
|
||||
$('code').dblclick(function(eo) {
|
||||
$(eo.target).toggleClass('expanded');
|
||||
});
|
||||
$('code').attr('title', 'Double-click to expand/collapse');
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('flatdoc:ready', make_code_expandable);
|
||||
|
||||
@@ -77,8 +77,10 @@ mixpanel.init("132d42885e094171f34467fc54da6fab");
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".multicode").minitabs()
|
||||
make_code_expandable();
|
||||
});
|
||||
</script>
|
||||
<!--end alt code for compiled page -->
|
||||
<link type="text/css" rel="stylesheet" href="css/mod.css">
|
||||
<script src="js/expandcode.js"></script>
|
||||
<script src="js/fixsidebarscroll.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user