From 92fa550c6edfeb9acc9a5cbc31c0c272f8703898 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 29 May 2020 11:00:08 -0500 Subject: Blog stuff --- bh20simplewebuploader/main.py | 2 +- bh20simplewebuploader/static/blog.css | 44 +++++++++++++++++++++++++++++ bh20simplewebuploader/templates/banner.html | 2 +- bh20simplewebuploader/templates/header.html | 5 +++- 4 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 bh20simplewebuploader/static/blog.css (limited to 'bh20simplewebuploader') diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index 847e36b..81fe571 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -451,7 +451,7 @@ def blog_page(): buf = None; if blog_content: buf = get_html_body('doc/blog/'+blog_content+'.html') - return render_template('blog.html',menu='BLOG',embed=buf) + return render_template('blog.html',menu='BLOG',embed=buf,blog=blog_content) @app.route('/about') diff --git a/bh20simplewebuploader/static/blog.css b/bh20simplewebuploader/static/blog.css new file mode 100644 index 0000000..145bada --- /dev/null +++ b/bh20simplewebuploader/static/blog.css @@ -0,0 +1,44 @@ +.title { font-family: Lucida Sans Typewriter,Lucida Console,monaco,Bitstream Vera Sans Mono,monospace } +.table-of-contents { font-family: monospace; color: red; } +/* .text-table-of-contents { font-family: monospace; color: black; font-size:80%; } */ +.timestamp { font-family: monospace; color: darkgreen; } + +h1,h2 { font-family: Lucida Sans Typewriter,Lucida Console,monaco,Bitstream Vera Sans Mono,monospace; color:black;background-color:#F0F8FF; } +h2,h3,h4 { color: darkblue; } +code { color: darkblue; } +body {font-family: Palatino, 'Palatino Linotype', serif; color:black;background-color:#e5d8f0; font-size: large } + +div.verbatim { margin: 30px; color: black; background-color: white; border-style:outset; font-family: palatino font, monospace; font-size:80%; font-weight:bold; } +div.quote { font-family: palatino font, monospace; font-size:80%; } +div.quotation { font-family: palatino font, monospace; font-size:80%; } +pre.example { font-family: prestige, monospace; color:black; font-size:70%; background-color: lightyellow; } +pre.src { margin: 30px; font-family: prestige, monospace; font-weight: bold; color:white; font-size:80%; background-color: black; } + +div[id="text-table-of-contents"]{ + font-family: palatino font, monospace; background-color:white; + border-style: dotted; + border-color: #98bf21; + border-width: 1px; +} +div[class^="outline-text"] { + background-color:#ebe6f0; + border-style: dotted; + border-color: #98bf21; + border-width: 1px; + font-family: Palatino, 'Palatino Linotype', serif; color:black; font-size: large +} +span[class="todo TESTING"] { + color:purple; +} +span[class="todo IN_PROGRESS"] { + color:brown; +} +span[class^="section-number"] { + color:grey; +} +span[class="journal"] { + color:darkblue; +} +span[class="year"] { + color:darkred; +} diff --git a/bh20simplewebuploader/templates/banner.html b/bh20simplewebuploader/templates/banner.html index 3e2ee9d..8f2b09a 100644 --- a/bh20simplewebuploader/templates/banner.html +++ b/bh20simplewebuploader/templates/banner.html @@ -1,6 +1,6 @@
-

Web uploader for Public SARS-CoV-2 Sequence Resource

+

COVID-19 PubSeq: Public SARS-CoV-2 Sequence Resource

Database contains public sequences!

diff --git a/bh20simplewebuploader/templates/header.html b/bh20simplewebuploader/templates/header.html index 0c06f62..6e326ee 100644 --- a/bh20simplewebuploader/templates/header.html +++ b/bh20simplewebuploader/templates/header.html @@ -3,6 +3,9 @@ - Web uploader for Public SARS-CoV-2 Sequence Resource + COVID-19 PubSeq: Public SARS-CoV-2 Sequence Resource + {% if blog %} + + {% endif %} -- cgit v1.2.3