File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
sphinx_togglebutton/_static Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -64,15 +64,24 @@ button.toggle-button {
64
64
stroke : currentColor; /* So that we inherit the color of other text */
65
65
}
66
66
67
+ /* Rotate icon with admonitions so that it points down */
68
+ .admonition .toggle .tb-icon {
69
+ transform : rotate (-90deg );
70
+ }
71
+
72
+ /* When the admonition is hidden, icon should flip upwards but retain rotation */
73
+ /* We scaleX, in order to flip along Y, because it is rotated */
74
+ .admonition .toggle .toggle-button-hidden .tb-icon {
75
+ transform : rotate (-90deg ) scaleX (-1 );
76
+ }
77
+
78
+ /* With details toggles, we don't rotate the icon so it points right */
67
79
details .toggle-details .tb-icon {
68
80
height : 1.4em ;
69
81
width : 1.4em ;
70
82
margin-top : 0.1em ; /* To center the button vertically */
71
83
}
72
84
73
- .toggle-button-hidden .tb-icon {
74
- transform : rotate (90deg );
75
- }
76
85
77
86
/**
78
87
* Details-based toggles.
You can’t perform that action at this time.
0 commit comments