Skip to content

WIP: add styling for new PR #1

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

Merged
merged 2 commits into from
May 21, 2025
Merged

Conversation

agoose77
Copy link

This PR accompanies jupyter-book/myst-theme#565

It should be fairly self-explanatory --- the interesting parts are in jupyter-book/myst-theme#565

Note that jupyter-book/myst-theme#565 annotates the footer with a .footer class for easier targeting (avoiding the user needing to fiddle with specificity rules)

@agoose77
Copy link
Author

image

@@ -1,35 +1,40 @@
<h1></h1>
Copy link
Owner

Choose a reason for hiding this comment

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

Doesn't removing this again make us end up with a bigger title?

Copy link
Author

Choose a reason for hiding this comment

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

Yes. But leaving it adds a new element that has non zero height. Rather than adding a blank header and removing it in the CSS, I propose just leaving it as is for now? Semantically, it's not clear but I believe we should have an h2 here.

Copy link
Owner

Choose a reason for hiding this comment

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

OK, just curious how we replicate what we had before: a smaller header.

Copy link
Author

Choose a reason for hiding this comment

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

For now, you can add a style rule to the .footer block:

  & h1 {
    font-size: 1.5rem;
  }

@stefanv stefanv merged commit dca703b into stefanv:footer May 21, 2025
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