Skip to content

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

Open
asmeurer wants to merge 2 commits intosphinx-doc:masterfrom
asmeurer:rellinks-classes
Open

Use separate CSS classes for the next and prev rellinks#135
asmeurer wants to merge 2 commits intosphinx-doc:masterfrom
asmeurer:rellinks-classes

Conversation

@asmeurer
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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