aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2020-11-11 14:21:15 +0300
committerBonfaceKilz2020-11-11 14:21:15 +0300
commit0422cea46205ef6477949b1f0dc188f94024f8cf (patch)
tree9b17edb87612ad9bd83f64e9d6ad634c35a76639
parent74ba91ade4ed0a875abf7417c33249f42f7c367e (diff)
downloadgenenetwork2-0422cea46205ef6477949b1f0dc188f94024f8cf.tar.gz
Add basic markdown styling
* wqflask/wqflask/static/new/css/markdown.css: New file. * wqflask/wqflask/templates/glossary.html: add markdown id to markdown container.
-rw-r--r--wqflask/wqflask/static/new/css/markdown.css13
-rw-r--r--wqflask/wqflask/templates/glossary.html6
2 files changed, 18 insertions, 1 deletions
diff --git a/wqflask/wqflask/static/new/css/markdown.css b/wqflask/wqflask/static/new/css/markdown.css
new file mode 100644
index 00000000..91167908
--- /dev/null
+++ b/wqflask/wqflask/static/new/css/markdown.css
@@ -0,0 +1,13 @@
+#markdown {
+ padding: 20px;
+}
+
+#markdown h2, #markdown h3, #markdown h4, #markdown h5 {
+ font-weight: bold;
+}
+
+#markdown img {
+ display: block;
+ margin-right: auto;
+ margin-left: auto;
+}
diff --git a/wqflask/wqflask/templates/glossary.html b/wqflask/wqflask/templates/glossary.html
index 3b29f20e..146c7e86 100644
--- a/wqflask/wqflask/templates/glossary.html
+++ b/wqflask/wqflask/templates/glossary.html
@@ -2,9 +2,13 @@
{% block title %}Glossary{% endblock %}
+{% block css %}
+<link rel="stylesheet" type="text/css" href="/static/new/css/markdown.css" />
+{% endblock %}
+
{% block content %}
-<div class="container">
+<div id="markdown" class="container">
<small>
<a href="https://raw.githubusercontent.com/genenetwork/genenetwork2/wqflask/wqflask/static/glossary.md" target="_">[Edit on Github]</a></small>
{{ rendered_markdown|safe }}