From b3741f467bc8dc61388cabdd3cc24939b45d62a1 Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Sun, 2 Jun 2024 20:34:26 -0400 Subject: [PATCH] float sidebar --- public/dark.css | 2 +- public/style.css | 15 +++++++-------- templates/nav.html | 2 +- templates/sidebar.html | 4 ++-- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/public/dark.css b/public/dark.css index 25c6d5b..64a5182 100644 --- a/public/dark.css +++ b/public/dark.css @@ -1,4 +1,4 @@ -body { +body, .side { background-color: #262626; color: #ddd; } diff --git a/public/style.css b/public/style.css index 021fcbe..cf188a8 100644 --- a/public/style.css +++ b/public/style.css @@ -646,8 +646,10 @@ form.blockpost { margin: 0 auto; font-size: 12px; width: 300px; - padding-right: 5px; + padding: 0 5px; margin-bottom: 10px; + background-color: white; + border-radius: 0px 0px 0px 4px; } .side img, .md img{ max-width: 100%; @@ -660,9 +662,6 @@ main { display: block !important; } @media (min-width: 900px) { - .wide { - padding-right: 15px; - } .wide .side { display: none !important; } @@ -680,14 +679,14 @@ main { } .side { display: block; - position: absolute; - top: 0; - right: 0; + float:right; } main { - padding-right: 316px; margin-right: 0px; } + main > .comment { + margin-right: 10px; + } } .side form { margin: 0px 0px 5px 0px; diff --git a/templates/nav.html b/templates/nav.html index 408ea73..faf9186 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -89,7 +89,7 @@ {{- end }}{{ end }} {{- end }} diff --git a/templates/sidebar.html b/templates/sidebar.html index 930e2a1..56fb6ac 100644 --- a/templates/sidebar.html +++ b/templates/sidebar.html @@ -65,7 +65,7 @@ {{- end -}} {{- if and .Site (not .Community) (not .User) }} - {{- if or .Site.SiteView.Site.Banner.IsValid .Site.SiteView.Site.Icon.IsValid }} + {{- if (or .Site.SiteView.Site.Banner.IsValid .Site.SiteView.Site.Icon.IsValid) }} {{- end }}

{{ .Site.SiteView.Site.Name }}

@@ -85,7 +85,7 @@ {{- end -}} {{- if .Community }} - {{- if or .Community.CommunityView.Community.Banner.IsValid .Community.CommunityView.Community.Icon.IsValid }} + {{- if (or .Community.CommunityView.Community.Banner.IsValid .Community.CommunityView.Community.Icon.IsValid) }} {{- end }}

{{ if ne .Community.CommunityView.Community.Title ""}}{{ .Community.CommunityView.Community.Title }}{{ else }}{{ .Community.CommunityView.Community.Name }}{{end}}