Updated CSS

This commit is contained in:
Mark Qvist 2022-11-14 11:26:59 +01:00
parent ad914d3515
commit 706ec2161b
2 changed files with 12 additions and 9 deletions

View File

@ -28,6 +28,14 @@
--select-arrow: url("data:image/svg+xml;charset=utf-8,%3C?xml version='1.0' encoding='utf-8'?%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='62.5' width='116.9' fill='%23161f27'%3E %3Cpath d='M115.3,1.6 C113.7,0 111.1,0 109.5,1.6 L58.5,52.7 L7.4,1.6 C5.8,0 3.2,0 1.6,1.6 C0,3.2 0,5.8 1.6,7.4 L55.5,61.3 C56.3,62.1 57.3,62.5 58.4,62.5 C59.4,62.5 60.5,62.1 61.3,61.3 L115.2,7.4 C116.9,5.8 116.9,3.2 115.3,1.6Z'/%3E %3C/svg%3E");
}
div.top_menu {
font-size: 1.1em;
}
div.lang_menu {
margin-bottom: 0.35em;
}
@media (prefers-color-scheme: dark) {
:root {
--background-body: #202b38;

View File

@ -10,7 +10,7 @@ document_start = """
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="css/water.css?v=1">
<link rel="stylesheet" href="css/water.css?v=3">
<meta charset="utf-8"/>
<title>Reticulum Network</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -23,13 +23,8 @@ document_end = """
</html>
"""
langs_md = """
<center>{LANGS}</center>
"""
menu_md = """
<center>[{RETICULUM}](index{LANG_EXT}.html) | [{START}](start{LANG_EXT}.html) | [{HARDWARE}](hardware{LANG_EXT}.html) | [{TESTNET}](connect{LANG_EXT}.html) | [{MANUAL}](docs{LANG_EXT}.html) | [{CRYPTO}](crypto{LANG_EXT}.html) | [{CREDITS}](credits{LANG_EXT}.html) | [{SOURCE}](https://github.com/markqvist/reticulum) | [{DONATE}](donate{LANG_EXT}.html)</center>
"""
langs_md = """<div class="top_menu lang_menu">{LANGS}</div>"""
menu_md = """<div class="top_menu">[{RETICULUM}](index{LANG_EXT}.html) | [{START}](start{LANG_EXT}.html) | [{HARDWARE}](hardware{LANG_EXT}.html) | [{TESTNET}](connect{LANG_EXT}.html) | [{MANUAL}](docs{LANG_EXT}.html) | [{CRYPTO}](crypto{LANG_EXT}.html) | [{CREDITS}](credits{LANG_EXT}.html) | [{SOURCE}](https://github.com/markqvist/reticulum) | [{DONATE}](donate{LANG_EXT}.html)</div>"""
primary_lang = "en"
langs = [
@ -129,7 +124,7 @@ for mdf in source_files:
page_lang_ext = ""
md = f.read().decode(INPUT_ENCODING)
page_md = get_languages_md(mdf)+get_menu_md(page_lang).replace("{LANG_EXT}", page_lang_ext) + md
page_md = "<center>"+get_languages_md(mdf)+""+get_menu_md(page_lang).replace("{LANG_EXT}", page_lang_ext) + "</center>\n\n" + md
html = markdown.markdown(page_md, extensions=["markdown.extensions.fenced_code"])
html = document_start + html + document_end