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

Improve styling of the Previous / Next buttons #473

Merged
merged 6 commits into from Sep 24, 2021

Conversation

choldgraf
Copy link
Collaborator

This makes the previous / next buttons align with the arrows when they span multiple lines. It also makes them an explicit HTML element rather than using a CSS rule to put in the text. This is probably easiest shown by example.

current behavior:

chrome_pHuuQwM71s

this PR:

chrome_uShGpwWi4E

closes #469

@jorisvandenbossche
Copy link
Member

We could also more completely copy what you did for sphinx-book-theme? (I personally like the layout and styling as you have it there (and in furo ..))

@choldgraf
Copy link
Collaborator Author

Sounds good, i will give it a shot

@choldgraf
Copy link
Collaborator Author

@jorisvandenbossche done in the latest push!

I also factored out the prevnext stuff into its own little template so that it was easier to reason with

image

@jorisvandenbossche
Copy link
Member

Thanks! I tweaked the css a bit to have it only underline the title (underlying the icon gives a bit strange effect I think). And made the space between the two lines a bit smaller

@choldgraf
Copy link
Collaborator Author

I love it, thanks! +1 from me

@jorisvandenbossche jorisvandenbossche changed the title Prev Next buttons center Improve styling of the Previous / Next buttons Sep 24, 2021
@jorisvandenbossche jorisvandenbossche merged commit 501dde2 into pydata:master Sep 24, 2021
matthewevans pushed a commit to aptech/pydata-sphinx-theme that referenced this pull request Dec 16, 2021
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
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.

Improve Previous / Next button and alignment
2 participants