Skip to content

Commit 40af0a6

Browse files
committed
Putting the button bar below the examples
1 parent e3108f7 commit 40af0a6

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

css/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,9 @@ div.openInEditorButton {
17461746
.unittest_examples .d_example_buttons {
17471747
margin-top: 10px;
17481748
}
1749+
.unittest_examples .CodeMirror, .unittest_examples .d_code_output {
1750+
margin-top: 10px;
1751+
}
17491752

17501753
/* Style for the example run buttons on the Phobos library documentation */
17511754
.d_example_buttons {

js/run_examples.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,18 @@ $(document).ready(function()
7171

7272
currentExample.replaceWith(
7373
'<div class="unittest_examples">'
74-
+ '<div class="d_example_buttons">'
75-
+ '<div class="editButton"><i class="fa fa-edit" aria-hidden="true"></i> Edit</div>'
76-
+ '<div class="runButton"><i class="fa fa-play" aria-hidden="true"></i> Run</div>'
77-
+ '<div class="resetButton"><i class="fa fa-undo " aria-hidden="true"></i> Reset</div>'
78-
+ '<div class="openInEditorButton" title="Open in an external editor"><i class="fa fa-external-link" aria-hidden="true"></i></div>'
79-
+ '</div>'
8074
+ '<div class="d_code">'
8175
+ '<pre class="d_code">'+orig+'</pre>'
8276
+ '</div>'
8377
+ '<div class="d_run_code" style="display: block">'
8478
+ '<textarea class="d_code" style="display: none;"></textarea>'
8579
+ '</div>'
80+
+ '<div class="d_example_buttons">'
81+
+ '<div class="editButton"><i class="fa fa-edit" aria-hidden="true"></i> Edit</div>'
82+
+ '<div class="runButton"><i class="fa fa-play" aria-hidden="true"></i> Run</div>'
83+
+ '<div class="resetButton"><i class="fa fa-undo " aria-hidden="true"></i> Reset</div>'
84+
+ '<div class="openInEditorButton" title="Open in an external editor"><i class="fa fa-external-link" aria-hidden="true"></i></div>'
85+
+ '</div>'
8686
+ '<div class="d_code_output"><span class="d_code_title">Application output</span><br><pre class="d_code_output" readonly>Running...</pre>'
8787
+ '</div>'
8888
);

0 commit comments

Comments
 (0)