Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion devel-common/sphinx_design/static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ div.admonition.warning {
/* Needs to be cleaned in a follow-up to source this from the origin style in */
/* https://github.com/apache/airflow-site/blob/main/landing-pages/site/assets/scss/_rst-content.scss */
.base-layout {
padding-top: 123px !important;
padding-top: 163px !important; /* banner + navbar + 2px padding */
}

section {
Expand All @@ -66,3 +66,18 @@ a.headerlink::after {
content: " [link]" !important; /* Theme image not existing */
visibility: visible !important;
}

/* compensate for sticky headers for anchored links */
:target::before {
content: "";
display: block;
height: 161px; /* 40px banner + 121px navbar */
margin: -161px 0 0; /* negative fixed header height */
}

@media (max-width: 1280px) {
:target::before {
height: 117px; /* 40px banner + 77px mobile navbar */
margin: -117px 0 0; /* negative fixed header height */
}
}
Loading