Skip to content

Commit 27319be

Browse files
thomasjpfanGaelVaroquaux
authored andcommitted
DOC Reduce whitespace above h1 tag (scikit-learn#26787)
Co-authored-by: Gael Varoquaux <[email protected]>
1 parent 6470b0e commit 27319be

File tree

1 file changed

+7
-1
lines changed
  • doc/themes/scikit-learn-modern/static/css

1 file changed

+7
-1
lines changed

doc/themes/scikit-learn-modern/static/css/theme.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,13 +661,19 @@ div.sk-sidebar-global-toc ul ul {
661661
div.sk-page-content h1 {
662662
background-color: #cde8ef;
663663
padding: 0.5rem;
664-
margin-top: calc(max(2.5rem, 1vh));
664+
margin-top: calc(max(1rem, 1vh));
665665
border-radius: 0 1rem;
666666
text-align: center;
667667
font-size: 2rem;
668668
word-wrap: break-word;
669669
}
670670

671+
/* General sibling selector: does not apply to first h1, to avoid gap in
672+
* top of page */
673+
div.sk-page-content ~ h1 {
674+
margin-top: calc(max(2.5rem, 1vh));
675+
}
676+
671677
div.sk-page-content h2 {
672678
padding: 0.5rem;
673679
background-color: #BED4EB;

0 commit comments

Comments
 (0)