Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EthicalAd: specific placement for Antora and mdBook #475

Open
wants to merge 2 commits into
base: humitos/footer-style
Choose a base branch
from

Conversation

humitos
Copy link
Member

@humitos humitos commented Dec 18, 2024

Screenshot_2024-12-18_16-55-02

Based on #473

@humitos humitos requested a review from a team as a code owner December 18, 2024 15:55
@humitos humitos requested a review from agjohnson December 18, 2024 15:55
@humitos
Copy link
Member Author

humitos commented Dec 18, 2024

I also added the placement for mdBook as well:

Screenshot_2024-12-18_16-59-00

@humitos humitos changed the title EthicalAd: specific placement for Antora EthicalAd: specific placement for Antora and mdBook Dec 18, 2024
element = document.querySelector(selector);

if (this.elementAboveTheFold(element)) {
placement.classList.add("ethical-alabaster");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename this something more generic?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. We should use something like ethical-light-theme; considering that we are using it for that use case. However, it's not a 1:1 match. We will need to keep -alabaster as well since there are some thing very specific to it, I think. I opened #477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants