You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EthicalAd: fixed footer placement for specific themes (#618)
This is a POC to show how we can use fixed footer ad on specific known
themes. The logic is as follows:
- the theme has to be a known theme
- the image ad added to the navbar has to be below the fold
- show a fixed footer ad and we add some `padding-bottom` CSS style to
the
content container (theme-specific selector) with the height of the fixed
footer ad (using fixed `47.2px` for now but it can be dynamically
calculated)
The technique of adding the `padding-bottom` to a theme-specific element
solves the problem highlighted in the previous approach done in
#447
### Sphinx Furo theme
[Peek 2025-07-07
12-59.webm](https://github.com/user-attachments/assets/62c455d5-3fbd-4e8c-b2b9-9e5f0987e502)
### Material for MkDocs
[Peek 2025-07-07
13-10.webm](https://github.com/user-attachments/assets/ec2cf1f1-47d3-4670-ae42-d8b4efcaa1e4)
Closes#616
0 commit comments