mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-27 07:05:51 +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;
|
margin-top: -50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content pre code {
|
||||||
|
white-space: pre;
|
||||||
|
}
|
||||||
|
|
||||||
.menubar {
|
.menubar {
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
$(document).on('flatdoc:ready', function() {
|
function make_code_expandable() {
|
||||||
$('code').dblclick(function(eo) {
|
$('code').dblclick(function(eo) {
|
||||||
$(eo.target).toggleClass('expanded');
|
$(eo.target).toggleClass('expanded');
|
||||||
});
|
});
|
||||||
$('code').attr('title', 'Double-click to expand/collapse');
|
$('code').attr('title', 'Double-click to expand/collapse');
|
||||||
});
|
}
|
||||||
|
|
||||||
|
$(document).on('flatdoc:ready', make_code_expandable);
|
||||||
|
|||||||
@@ -77,8 +77,10 @@ mixpanel.init("132d42885e094171f34467fc54da6fab");
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$(".multicode").minitabs()
|
$(".multicode").minitabs()
|
||||||
|
make_code_expandable();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<!--end alt code for compiled page -->
|
||||||
<link type="text/css" rel="stylesheet" href="css/mod.css">
|
<link type="text/css" rel="stylesheet" href="css/mod.css">
|
||||||
<script src="js/expandcode.js"></script>
|
<script src="js/expandcode.js"></script>
|
||||||
<script src="js/fixsidebarscroll.js"></script>
|
<script src="js/fixsidebarscroll.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user