Debian Codegraph @

resources/src/mediawiki.action/mediawiki.action.edit.collapsibleFooter.less

raw
1 /* Styles for collapsible lists of templates used and hidden categories */
2 @import 'mediawiki.skin.variables.less';
3
4 .mw-editfooter-toggler {
5 cursor: pointer;
6 display: flex;
7 align-items: center;
8
9 // Different skins have different values for <p>'s spacing making toggle
10 // arrow hard to vertically align correctly with heading paragraph, this
11 // resets it to the symmetric spacing of Vector-2010.
12 p {
13 margin: 0.5em 0;
14 padding: 0;
15 }
16
17 // This doesn't follow the best practice of Codex icons, use a separate
18 // element rather than pseudo-element where possible.
19 &::before {
20 content: '';
21 margin-right: 4px;
22 .cdx-mixin-css-icon( @cdx-icon-down-triangle, @color-disabled, @size-icon-x-small );
23 transition: transform 250ms ease;
24
25 .mw-editfooter-toggler-collapsed& {
26 [ dir='ltr' ] & {
27 transform: rotate( -90deg );
28 }
29
30 [ dir='rtl' ] & {
31 transform: rotate( 90deg );
32 }
33 }
34 }
35 }
36
37 .mw-editfooter-list {
38 margin-bottom: 1em;
39 margin-left: 2.5em;
40 }
41
42 /* Show/hide animation is incorrect if the table has a margin set. Extra
43 * ".wikitable" is needed in the selector for CSS specificity. */
44 /* stylelint-disable-next-line selector-class-pattern */
45 .wikitable.preview-limit-report {
46 margin: 0;
47 }