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

Use separate CSS classes for the next and prev rellinks #135

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

asmeurer
Copy link

This is as suggested at #101. This makes them easier to style separately, such
as making the previous link float left.

I personally am using a custom.css like

nav#rellinks {
    float: left;
    width: 100%;
}

.related.prev {
    float: left;
    text-align: left;
    width: 50%;
}

.related.next {
    float: right;
    text-align: right;
    width: 50%
}

nav#rellinks li+li:before {
    content: "";
}

Which makes it look like

screenshot 2018-06-13 21 16 56

This is as suggested at sphinx-doc#101. This makes them easier to style separately, such
as making the previous link float left.
@bitprophet
Copy link
Collaborator

bitprophet commented Jun 14, 2018

Thanks, nice and simple. Figure I'll put this out with the next release, while we're stuck in this horrid "all releases are tertiary releases" nobody's gonna be put out by a purely additive new feature. Semver only goes so far :D

@bitprophet bitprophet modified the milestones: 0.7.11, 0.7.12 Sep 6, 2018
@asmeurer
Copy link
Author

The Travis failure is some unrelated Python 2 thing by the way.

@bitprophet bitprophet modified the milestones: 0.7.12, 0.7.13 Dec 18, 2018
@asmeurer
Copy link
Author

Can this be merged?

@bitprophet bitprophet deleted the branch sphinx-doc:master January 13, 2023 00:42
@bitprophet bitprophet closed this Jan 13, 2023
@AA-Turner AA-Turner reopened this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants