1 /* This style adds a toggle button with internationalized message for the TOC. */
3 /* When the browser supports :checked then overwrite the style="display:none" and make the */
4 /* checkbox invisible on another way to allow to focus the checkbox with keyboard. */
5 :not( :checked ) > .toctogglecheckbox {
6 // Make the checkbox visible to allow it to focus with keyboard.
7 display: inline !important; /* stylelint-disable-line declaration-no-important */
8 // Remove any size of the checkbox.
10 // Make the checkbox invisible.
12 // Prevent that the checkbox is clickable and changes the cursor.
20 /* IE8 does not support :checked and therefor it does not support the hiding at all. */
21 /* The selector ":not( :checked ) >" prevents that the useless brackets are shown on IE8. */
22 :not( :checked ) > .toctogglespan:before {
26 :not( :checked ) > .toctogglespan:after {
30 /* Make the label look like a link. */
36 .toctogglelabel:hover {
37 text-decoration: underline;
40 /* Show a focus ring around the label when focusing the invisible checkbox. */
41 /* This simulates that the label is in focus. */
42 .toctogglecheckbox:focus + .toctitle .toctogglelabel {
43 text-decoration: underline;
44 outline: dotted 1px; /* Firefox style for focus */
45 outline: auto -webkit-focus-ring-color; /* Webkit style for focus */
48 /* Change the text of the button based on the state of the checkbox. */
49 .toctogglecheckbox:checked + .toctitle .toctogglelabel:after {
50 content: '@{msg-showtoc}';
53 .toctogglecheckbox:not( :checked ) + .toctitle .toctogglelabel:after {
54 content: '@{msg-hidetoc}';