From b152a2e5e8ad0b04ffe2408f57c07af358b57038 Mon Sep 17 00:00:00 2001 From: arctic-hen7 Date: Sun, 2 Oct 2022 14:58:32 +1100 Subject: [PATCH] refactor(website): added some nicer padding on docs pages --- website/src/templates/docs/template.rs | 2 +- website/static/styles/markdown.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/website/src/templates/docs/template.rs b/website/src/templates/docs/template.rs index dfdc506a26..11bc43f253 100644 --- a/website/src/templates/docs/template.rs +++ b/website/src/templates/docs/template.rs @@ -37,7 +37,7 @@ pub fn docs_page(cx: Scope, props: DocsPageProps) -> View { docs_links: sidebar_content, children: view! { cx, // Because this is in a grid, we have to make sure it doesn't overflow by specifying this minimum width - div(class = "markdown min-w-0", dangerously_set_inner_html = &content) + div(class = "markdown min-w-0 pb-10", dangerously_set_inner_html = &content) }, status, manifest, diff --git a/website/static/styles/markdown.css b/website/static/styles/markdown.css index 5cf7489cb7..a88058a060 100644 --- a/website/static/styles/markdown.css +++ b/website/static/styles/markdown.css @@ -23,6 +23,7 @@ font-size: 2.25rem; line-height: 2.5rem; margin-top: 0.5rem; /* Otherwise the warnings about versions look quite cramped */ + margin-bottom: 0.5rem; /* This just looks good */ } .markdown h2 { font-size: 1.875rem;