From fed44fa8f5c780d12c7fee5c2d414a5da4dfd04f Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Mon, 22 Nov 2021 13:52:55 +0000 Subject: Change styles --- app/directory.mjs | 2 +- app/static/css/globalstyles.css | 16 +++++++++++----- app/views/partials/header.ejs | 10 +++++----- app/wikiparser.mjs | 4 ++-- 4 files changed, 19 insertions(+), 13 deletions(-) (limited to 'app') diff --git a/app/directory.mjs b/app/directory.mjs index 4b5339c..38b05ca 100644 --- a/app/directory.mjs +++ b/app/directory.mjs @@ -66,7 +66,7 @@ export function rebuild() { } } primaryPages.sort((a, b) => { - return a.sortOrder - b.sortOrder; + return pages[a].sortOrder - pages[b].sortOrder; }); metadata.navbar = primaryPages; metadata.fileTreeBuildTime = new Date(); diff --git a/app/static/css/globalstyles.css b/app/static/css/globalstyles.css index c30d992..bdecaa6 100644 --- a/app/static/css/globalstyles.css +++ b/app/static/css/globalstyles.css @@ -17,7 +17,13 @@ html, body { } h1, h2, h3, h4, h5, h6 { - color: #fff; + color: #cc7832 +} + +.code-block { + background-color: #222; + border: solid 1px #333; + padding: 10px; } #navbar { @@ -51,7 +57,7 @@ h1, h2, h3, h4, h5, h6 { } .navbar-element > .highlight { - color: #ffff87; + color: #ffc66d; } #main-container { @@ -62,17 +68,17 @@ h1, h2, h3, h4, h5, h6 { #content { padding: 20px; max-width: 1200px; - background-color: #333; + background-color: #2b2b2b; margin: 0 auto; } a { - color: #ffff87; + color: #ffc66d; text-decoration: underline; } .highlight { - color: #ffff87; + color: #ffc66d; } .footer { diff --git a/app/views/partials/header.ejs b/app/views/partials/header.ejs index 1a8f7bf..67a23d4 100644 --- a/app/views/partials/header.ejs +++ b/app/views/partials/header.ejs @@ -1,11 +1,11 @@
 
 
-██      ███████  ██████  ███    ██  █████  ██████  ██████   ██████      ██████  ██ ███████ ██   ██  ██████  ██████  
-██      ██      ██    ██ ████   ██ ██   ██ ██   ██ ██   ██ ██    ██     ██   ██ ██ ██      ██   ██ ██    ██ ██   ██ 
-██      █████   ██    ██ ██ ██  ██ ███████ ██████  ██   ██ ██    ██     ██████  ██ ███████ ███████ ██    ██ ██████  
-██      ██      ██    ██ ██  ██ ██ ██   ██ ██   ██ ██   ██ ██    ██     ██   ██ ██      ██ ██   ██ ██    ██ ██      
-███████ ███████  ██████  ██   ████ ██   ██ ██   ██ ██████   ██████      ██████  ██ ███████ ██   ██  ██████  ██          
+  ██      ███████  ██████  ███    ██  █████  ██████  ██████   ██████      ██████  ██ ███████ ██   ██  ██████  ██████  
+  ██      ██      ██    ██ ████   ██ ██   ██ ██   ██ ██   ██ ██    ██     ██   ██ ██ ██      ██   ██ ██    ██ ██   ██ 
+  ██      █████   ██    ██ ██ ██  ██ ███████ ██████  ██   ██ ██    ██     ██████  ██ ███████ ███████ ██    ██ ██████  
+  ██      ██      ██    ██ ██  ██ ██ ██   ██ ██   ██ ██   ██ ██    ██     ██   ██ ██      ██ ██   ██ ██    ██ ██      
+  ███████ ███████  ██████  ██   ████ ██   ██ ██   ██ ██████   ██████      ██████  ██ ███████ ██   ██  ██████  ██           
 
 
 
diff --git a/app/wikiparser.mjs b/app/wikiparser.mjs index 4210bd1..cd13b18 100644 --- a/app/wikiparser.mjs +++ b/app/wikiparser.mjs @@ -238,8 +238,8 @@ export function parse(data) { ) // Nonstandard: ``code`` and ```code blocks``` - .replace(re(r` \`\`\` ([^\`]+?) \`\`\` `), '
$1
') - .replace(re(r` \`\` ([^\`]+?) \`\` `), '$1') + .replace(re(r` \`\`\` ([^\`]+?) \`\`\` `), '
$1
') + .replace(re(r`
 ([^\`]+?) 
`), '
$1
') // Spacing .replace(/(\r?\n){2}/g, '\n

\n') -- cgit v1.2.3-70-g09d2