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

Object definitions look very out of place #184

Open
CendioOssman opened this issue Oct 25, 2021 · 0 comments
Open

Object definitions look very out of place #184

CendioOssman opened this issue Oct 25, 2021 · 0 comments

Comments

@CendioOssman
Copy link

For object references, alabaster uses this styling (since objects are wrapped in a <code>):

pre, tt, code {
    font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
    font-size: 0.9em;
}

This styling is very appropriate as the monospace font looks larger than the other text otherwise.

However object ''definitions'', Sphinx never uses a <code> element, insted applying the monospace font to the <dt class="sig"> element. This makes the definitions look very out of place as the text for those is much larger.

Since monospace and a font size reduction go hand in hand, I would suggest that Alabaster needs this addition:

.sig {
    font-size: 0.9em;
}

I wonder if these lines were originally supposed to handle this, and the HTML build has changed what it outputs since then:

https://github.com/bitprophet/alabaster/blob/6a0a56ffe79bd039085e1ad7ed26da5b217bd4ab/alabaster/static/alabaster.css_t#L399-L401

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

No branches or pull requests

1 participant