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

Merged
merged 14 commits into from
Jan 14, 2025

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

@ericholscher
Copy link
Member

Would be good to merge this 👍

@humitos
Copy link
Member Author

humitos commented Jan 8, 2025

Yeah, thanks for the review. This PR is based on #473. We can merge it once we have the underlying one merged as well. The referencing PR seems to be pretty close if we agree on the CSS variables.

Base automatically changed from humitos/footer-style to main January 14, 2025 10:00
@humitos humitos merged commit 82e4231 into main Jan 14, 2025
4 checks passed
@humitos humitos deleted the humitos/ethicalad-antora branch January 14, 2025 10:41
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