You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "kaxil (via GitHub)" <gi...@apache.org> on 2026/04/16 02:11:05 UTC
[PR] Disable gradients in Docsy Bootstrap bundle for Sphinx theme [airflow-site]
kaxil opened a new pull request, #1505:
URL: https://github.com/apache/airflow-site/pull/1505
## Summary
The `$enable-gradients: false` from #1501 only affected our custom CSS bundle (`main-custom.min.css`). Docsy's `main.scss` compiles Bootstrap separately with its own `_variables.scss` that sets `$enable-gradients: true !default`.
Since the Sphinx docs theme reuses the Docsy-compiled `main.min.css` (via `site.sh prepare-theme`), the docs pages still had gradient overlays on buttons and navbar — especially visible in dark mode.
Fix: add `_variables_project.scss` — the [Docsy hook point](https://www.docsy.dev/docs/adding-content/lookandfeel/#project-style-files) loaded before Docsy's own variables — setting `$enable-gradients: false`.
## Verification
After rebuild, `main.min.css` contains only 1 reference to `--bs-gradient`: the `.bg-gradient` utility class (always emitted by Bootstrap). Zero component-level gradient usage (no `.btn`, `.navbar` etc).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Disable gradients in Docsy Bootstrap bundle for Sphinx theme [airflow-site]
Posted by "kaxil (via GitHub)" <gi...@apache.org>.
kaxil commented on PR #1505:
URL: https://github.com/apache/airflow-site/pull/1505#issuecomment-4256982909
Closing — this is redundant. Hugo's asset overlay already resolves our `_variables.scss` (with `$enable-gradients: false`) over Docsy's when compiling `main.scss`. The production landing pages' `main.min.css` already has only 1 gradient reference (the `.bg-gradient` utility class, which is always emitted).
The docs pages at `/docs/apache-airflow/stable/` show the old gradient because they were built with an older theme version whose `main.min.css` was compiled before the gradient fix. The fix will propagate when the theme is rebuilt and docs are recompiled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Disable gradients in Docsy Bootstrap bundle for Sphinx theme [airflow-site]
Posted by "kaxil (via GitHub)" <gi...@apache.org>.
kaxil closed pull request #1505: Disable gradients in Docsy Bootstrap bundle for Sphinx theme
URL: https://github.com/apache/airflow-site/pull/1505
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org