File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -1727,6 +1727,19 @@ input.editButton:active
17271727}
17281728input .resetButton {display : none}
17291729
1730+ .editButton , .openInEditorButton , .runButton , .resetButton {
1731+ display : inline-block;
1732+ margin-right : 10px ;
1733+ cursor : pointer;
1734+ color : # 333 ;
1735+ background : white;
1736+ border : 1px solid # CCC ;
1737+ border-radius : 4px ;
1738+ padding : 0.3em 0.6em ;
1739+ display : inline-block;
1740+ text-decoration : none;
1741+ }
1742+
17301743/* Style for the example run buttons on the Phobos library documentation */
17311744.d_example_buttons {
17321745 text-align : left;
Original file line number Diff line number Diff line change @@ -229,10 +229,10 @@ function setupTextarea(el, opts)
229229 return ( parseInt ( par . css ( 'height' ) ) - diff ) + 'px' ;
230230 } ;
231231
232- var runBtn = parent . children ( "input .runButton" ) ;
233- var editBtn = parent . children ( "input .editButton" ) ;
234- var resetBtn = parent . children ( "input .resetButton" ) ;
235- var openInEditorBtn = parent . children ( "input .openInEditorButton" ) ;
232+ var runBtn = parent . children ( ".runButton" ) ;
233+ var editBtn = parent . children ( ".editButton" ) ;
234+ var resetBtn = parent . children ( ".resetButton" ) ;
235+ var openInEditorBtn = parent . children ( ".openInEditorButton" ) ;
236236
237237 var code = $ ( editor . getWrapperElement ( ) ) ;
238238 code . css ( 'display' , 'none' ) ;
Original file line number Diff line number Diff line change @@ -72,10 +72,10 @@ $(document).ready(function()
7272 currentExample . replaceWith (
7373 '<div>'
7474 + '<div class="d_example_buttons">'
75- + '<input type="button" class="editButton" value="Edit" >'
76- + '<input type="button" class="openInEditorButton" value=" Edit (external)" style="width: 90px" >'
77- + '<input type="button" class="runButton" value="Run" >'
78- + '<input type="button" class="resetButton" value="Reset" >'
75+ + '<div class="editButton"><i class="fa fa-edit" aria-hidden="true"></i> Edit</div >'
76+ + '<div class="openInEditorButton"><i class="fa fa-external-link" aria-hidden="true"></i> Edit (external)</div >'
77+ + '<div class="runButton"><i class="fa fa-play" aria-hidden="true"></i> Run</div >'
78+ + '<div class="resetButton"><i class="fa fa-undo " aria-hidden="true"></i> Reset</div >'
7979 + '</div>'
8080 + '<div class="d_code">'
8181 + '<pre class="d_code">' + orig + '</pre>'
You can’t perform that action at this time.
0 commit comments