Skip to content

Commit b152a2e

Browse files
committed
refactor(website): added some nicer padding on docs pages
1 parent 5f0c704 commit b152a2e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

website/src/templates/docs/template.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub fn docs_page<G: Html>(cx: Scope, props: DocsPageProps) -> View<G> {
3737
docs_links: sidebar_content,
3838
children: view! { cx,
3939
// Because this is in a grid, we have to make sure it doesn't overflow by specifying this minimum width
40-
div(class = "markdown min-w-0", dangerously_set_inner_html = &content)
40+
div(class = "markdown min-w-0 pb-10", dangerously_set_inner_html = &content)
4141
},
4242
status,
4343
manifest,

website/static/styles/markdown.css

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
font-size: 2.25rem;
2424
line-height: 2.5rem;
2525
margin-top: 0.5rem; /* Otherwise the warnings about versions look quite cramped */
26+
margin-bottom: 0.5rem; /* This just looks good */
2627
}
2728
.markdown h2 {
2829
font-size: 1.875rem;

0 commit comments

Comments
 (0)