2 * Styling for Special:Watchlist and Special:RecentChanges when preference 'usenewrc'
3 * a.k.a. Enhanced Recent Changes is enabled.
6 @import 'mediawiki.skin.variables.less';
8 .mw-enhancedchanges-checkbox {
9 // The checkbox must be hidden. A display:none would also hide the
10 // checkbox. But an element hidden by display:none is not focusable
11 // via keyboard. Therefor make the checkbox invisible on another way
12 // to allow to focus the checkbox with keyboard.
14 // Remove any size of the checkbox.
16 // Make the checkbox invisible.
18 // Prevent that the checkbox is clickable and changes the cursor.
19 z-index: @z-index-bottom;
21 // Hide the nested changes if the checkbox is not checked.
22 &:not( :checked ) + * .mw-rcfilters-ui-highlights-enhanced-nested {
27 table.mw-enhanced-rc {
37 td.mw-enhanced-rc-nested {
44 font-family: monospace, monospace;
47 .mw-enhanced-rc-time {
48 font-family: monospace, monospace;
51 @width-arrow-space: 15px;
53 .mw-enhancedchanges-arrow {
57 .mw-enhancedchanges-checkbox + * & {
58 .cdx-mixin-css-icon( @cdx-icon-down-triangle, @color-base, @size-icon-x-small );
59 transition: transform 250ms ease;
62 .mw-enhancedchanges-checkbox:not( :checked ) + * & {
63 // Rotate is not flipped by CSS Janus. [T353099]
65 transform: rotate( -90deg );
69 transform: rotate( 90deg );
73 .mw-enhancedchanges-checkbox[ type ] + * & {
74 // Restore enforced space to make sure arrows align
76 width: @width-arrow-space;
77 height: @width-arrow-space;
80 // Show a focus ring around the label when focusing the invisible checkbox.
81 // This simulates that the label is in focus.
82 .mw-enhancedchanges-checkbox:focus + * & {
87 .mw-enhancedchanges-arrow-space {
88 display: inline-block;
89 width: @width-arrow-space;
90 height: @width-arrow-space;
93 .mw-enhanced-watched .mw-enhanced-rc-time {
97 /* stylelint-disable-next-line selector-class-pattern */