File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
sphinx_togglebutton/_static Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,15 @@ button.toggle-button {
80
80
stroke : currentColor; /* So that we inherit the color of other text */
81
81
}
82
82
83
- /* Rotate icon with admonitions so that it points down */
84
- .admonition .toggle .tb-icon {
85
- transform : rotate (-90deg );
83
+ /* The icon should point right when closed, down when open. */
84
+ /* Open */
85
+ .admonition .toggle button .tb-icon {
86
+ transform : rotate (90deg );
86
87
}
87
88
88
- /* When the admonition is hidden, icon should flip upwards but retain rotation */
89
- /* We scaleX, in order to flip along Y, because it is rotated */
90
- .admonition .toggle .toggle-button-hidden .tb-icon {
91
- transform : rotate (-90deg ) scaleX (-1 );
89
+ /* Closed */
90
+ .admonition .toggle button .toggle-button-hidden .tb-icon {
91
+ transform : rotate (0deg );
92
92
}
93
93
94
94
/* With details toggles, we don't rotate the icon so it points right */
You can’t perform that action at this time.
0 commit comments