Commit ef141553 by marco

cleaned up latex styling, polyfill function wrapper, draft number template update for polyfill

parent bbb6a3c6
<ul class="list-input settings-list"> <ul class="list-input settings-list">
<% _.each(metadata_entries, function(entry) { %> <% _.each(metadata_entries, function(entry) { %>
<li class="field comp-setting-entry metadata_entry"> <li class="field comp-setting-entry metadata_entry" id="settings-listing">
</li> </li>
<% }) %> <% }) %>
</ul> </ul>
% if showHighLevelSource: \ No newline at end of file
<a href="#hls-modal-${hlskey}" class="launch-latex-compiler" id="hls-trig-${hlskey}" >Edit High Level Source</a>
<%include file="source-edit.html" />
% endif
\ No newline at end of file
<div class="wrapper-comp-setting"> <div class="wrapper-comp-setting">
<label class="label setting-label" for="<%= uniqueId %>"><%= model.get('display_name') %></label> <label class="label setting-label" for="<%= uniqueId %>"><%= model.get('display_name') %></label>
<input class="input setting-input" type="number" id="<%= uniqueId %>" value='<%= model.get("value") %>' onblur="this.checkNumberSettingValidity();"/> <input class="input setting-input" type="number" id="<%= uniqueId %>" value='<%= model.get("value") %>' onkeyup="checkNumberSettingValidity(this);"/>
<button class="action setting-clear inactive" type="button" name="setting-clear" value="Clear" data-tooltip="Clear"> <button class="action setting-clear inactive" type="button" name="setting-clear" value="Clear" data-tooltip="Clear">
<i class="ss-icon ss-symbolicons-block undo">&#x21A9;</i><span class="sr">Clear Value</span> <i class="ss-icon ss-symbolicons-block undo">&#x21A9;</i><span class="sr">Clear Value</span>
</button> </button>
......
...@@ -12,13 +12,12 @@ ...@@ -12,13 +12,12 @@
## source-edit.html needs access to the 'source_code' value, so delete from a copy. ## source-edit.html needs access to the 'source_code' value, so delete from a copy.
<% del metadata_field_copy['source_code'] %> <% del metadata_field_copy['source_code'] %>
% endif % endif
<div class="wrapper-comp-settings metadata_edit" id="settings-tab" data-metadata='${json.dumps(metadata_field_copy)}'/>
% if showHighLevelSource: % if showHighLevelSource:
<div class="launch-latex-compiler"> <div class="launch-latex-compiler">
<label class="label setting-label">Latex Compiler Mode</label> <a href="#hls-modal-${hlskey}" id="hls-trig-${hlskey}">Launch Latex Source Compiler</a>
<a href="#hls-modal-${hlskey}" id="hls-trig-${hlskey}" >Launch Latex Source Compiler</a></div> </div>
<%include file="source-edit.html" /> <%include file="source-edit.html" />
% endif % endif
</div>
<div class="wrapper-comp-settings metadata_edit" id="settings-tab" data-metadata='${json.dumps(metadata_field_copy)}'/>
\ No newline at end of file
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
.row { .row {
position: relative; position: relative;
.CodeMirror {
padding: 15px;
}
} }
.editor-bar { .editor-bar {
......
...@@ -99,6 +99,13 @@ ...@@ -99,6 +99,13 @@
} }
} }
.problem-editor {
// adding padding to simple editor only - adjacent selector is needed since there are no toggles for CodeMirror
.markdown-box+.CodeMirror {
padding: 10px;
}
}
.problem-editor-icon { .problem-editor-icon {
display: inline-block; display: inline-block;
width: 26px; width: 26px;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
/* /*
HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-polyfill HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-polyfill
*/ */
(function() { (function() {
(function($) { (function($) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment