From 7d1fdeb456a30bd9479b978a65604db19b0170cf Mon Sep 17 00:00:00 2001 From: Midou Date: Sun, 18 Jun 2023 10:56:55 +0100 Subject: [PATCH] Base styling for wiki is done and ready to be merged. --- public/css/global.css | 14 +++++++++++++- views/wiki.html | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/public/css/global.css b/public/css/global.css index 9fea7cf..88b4889 100644 --- a/public/css/global.css +++ b/public/css/global.css @@ -34,6 +34,17 @@ main { margin: 0 24vw; } +.margin-ow { + margin: 0 12vw; +} + +pre { + overflow: scroll; + background: var(--secondary-background); + border-radius: 4px; + padding: 4px; +} + #wrap { display: flex; } @@ -323,7 +334,8 @@ a:hover { } #wrap { - display: inline-grid; + display: flex; + flex-direction: column; } .float-right { diff --git a/views/wiki.html b/views/wiki.html index e366923..5e60e22 100644 --- a/views/wiki.html +++ b/views/wiki.html @@ -1,7 +1,7 @@ {{ template "header" .}} -
+
{{ if .wiki }} {{ range $key, $value := .wiki}}
@@ -11,7 +11,7 @@ {{.LastEditor}} edited this page on {{.LastEdit}} ยท {{.RevisionNum}} revisions


-
+
{{ unescape .PageContent }}