aboutsummaryrefslogtreecommitdiffstats
path: root/webface
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-15 21:03:33 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-15 21:03:33 -0800
commitb1c5303b180fa5475b6907c7f86b889f7d6c9911 (patch)
tree19efe10a8afcdc45fdd22edb7d7ec96376397e3b /webface
parentb6b328d1a47b97ae4988bf6d1091a5cfa81fb708 (diff)
downloadmodelthing-b1c5303b180fa5475b6907c7f86b889f7d6c9911.tar.gz
modelthing-b1c5303b180fa5475b6907c7f86b889f7d6c9911.zip
tweak KaTeX styling
Diffstat (limited to 'webface')
-rw-r--r--webface/templates/model_view.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/webface/templates/model_view.html b/webface/templates/model_view.html
index 7b8a64d..8aad444 100644
--- a/webface/templates/model_view.html
+++ b/webface/templates/model_view.html
@@ -8,6 +8,11 @@
renderMathInElement(document.body);
});
</script>
+
+<style>
+.mfrac { font-size:0.8em; }
+.infoblock { margin-left: 0.25em; border-left: 4px solid #BBBBBB; }
+</style>
{{/partial}}
@@ -21,7 +26,7 @@
<a href="edit/">edit</a> -
{{/if }}
<a href="markdown/">markdown</a> -
-<a href="raw/">modelica</a> -
+<a href="raw/">original modelica</a> -
<a href="repr/?format=scheme">scheme</a> -
<a href="repr/?format=javascript">javascript</a> -
<a href="repr/?format=latex">latex</a>
@@ -31,15 +36,16 @@
<br><br>
{{# if latex }}
-<div style="margin-left: 0.25em; border-left: 4px solid #BBBBBB; padding: 0.5em;" id="model_latex">
+<div id="model_latex" class="infoblock">
$${{ latex }}$$
</div>
{{/if}}
{{{ markdown_html }}}
+<br>
<h2>Modelica Code</h2>
-<pre style="margin-left: 0.25em; border-left: 4px solid #BBBBBB; padding: 0.5em;">
+<pre id="model_modelica" class="infobox" style="padding: 0.5em;">
{{ modelica }}</pre>
<br>