diff --git a/doc/build/html-templates/override.css b/doc/build/html-templates/override.css
index b5a483248..3bee2b636 100644
--- a/doc/build/html-templates/override.css
+++ b/doc/build/html-templates/override.css
@@ -6,6 +6,8 @@ h1 a { color: #333; } h2 a { color: #333; } h3 a { color: #333; }
h4 a { color: #333; } h5 a { color: #333; } h6 a { color: #333; }
h1:hover a { color: #333; } h2:hover a { color: #333; } h3:hover a { color: #333; }
h4:hover a { color: #333; } h5:hover a { color: #333; } h6:hover a { color: #333; }
+h1 { padding-top: 1.5em; }
+h2 { padding-top: 0.5em; }
.toc { margin-top: 30px; }
.toc, .toc ul { padding: 0; }
.toc ul { margin-bottom: 20px; list-style: none; }
@@ -36,4 +38,4 @@ h3 > code
{
font-size: 24.5px;
color: black;
-}
\ No newline at end of file
+}