Skip to content

Linear alignment wrong in rtd-theme #75

@dafeder

Description

@dafeder

Describe the bug

context
When I load a document with togglebutton added to an admonition

expectation
I expected it to look correct in the readthedocs theme

bug
But instead the alignment is off and "Click to show" is falling out of the admonition title

I can see this in Chrome and Firefox currently in the spinx-lesson site, which was provided as an example in this repo of a working implementation of this extension using the rtd theme

Image

On our RTD site, we added some custom CSS to fix:

button.toggle-button::before {
  vertical-align: top;
  color: white;
}
.tb-icon {
  height: 1.1em;
  width: 1.1em;
  color: white;
}

Reproduce the bug

Visit https://coderefinery.github.io/sphinx-lesson/sample-episode-rst/

Or implement togglebutton on an admonition on your own RTD-themed build.

List your environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions