FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

ENH: Toggle arrow to the right by choldgraf · Pull Request #49 · executablebooks/sphinx-togglebutton · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .css  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
14 changes: 7 additions & 7 deletions sphinx_togglebutton/_static/togglebutton.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ button.toggle-button {
stroke: currentColor; /* So that we inherit the color of other text */
}

/* Rotate icon with admonitions so that it points down */
.admonition.toggle .tb-icon {
transform: rotate(-90deg);
/* The icon should point right when closed, down when open. */
/* Open */
.admonition.toggle button .tb-icon {
transform: rotate(90deg);
}

/* When the admonition is hidden, icon should flip upwards but retain rotation */
/* We scaleX, in order to flip along Y, because it is rotated */
.admonition.toggle .toggle-button-hidden .tb-icon {
transform: rotate(-90deg) scaleX(-1);
/* Closed */
.admonition.toggle button.toggle-button-hidden .tb-icon {
transform: rotate(0deg);
}

/* With details toggles, we don't rotate the icon so it points right */
Expand Down

Back | FazBrowse Home | New Git URL