Debian Codegraph @

resources/src/jquery/jquery.makeCollapsible.less

raw
1 /*
2 * Please do not add any CSS rules here that impact the positioning of the element
3 * e.g. padding, margin, position or float.
4 * These instead should live in jquery.makeCollapsible.styles
5 */
6
7 @import 'mediawiki.skin.variables.less';
8 @import 'mediawiki.mixins.less';
9
10 /* See also jquery.makeCollapsible.js */
11 .mw-collapsible-toggle {
12 float: right;
13 .user-select( none );
14 }
15
16 .mw-collapsible-toggle-default {
17 // This element is now a button, but it used to be a link, so keep link styles for now
18 // (until someone dares to try to change the design).
19 -webkit-appearance: none;
20 -moz-appearance: none;
21 appearance: none;
22 background: none;
23 margin: 0;
24 padding: 0;
25 border: 0;
26 font: inherit;
27
28 .mw-collapsible-text {
29 .cdx-mixin-link-base();
30
31 .mw-underline-always & {
32 text-decoration: underline;
33 }
34
35 .mw-underline-never & {
36 text-decoration: none;
37 }
38 }
39
40 &::before {
41 content: '[';
42 }
43
44 &::after {
45 content: ']';
46 }
47 }
48
49 .mw-customtoggle,
50 .mw-collapsible-toggle {
51 cursor: pointer;
52 }
53
54 /* Collapse links in captions should be inline */
55 caption .mw-collapsible-toggle,
56 .mw-content-ltr caption .mw-collapsible-toggle,
57 .mw-content-rtl caption .mw-collapsible-toggle,
58 .mw-content-rtl .mw-content-ltr caption .mw-collapsible-toggle,
59 .mw-content-ltr .mw-content-rtl caption .mw-collapsible-toggle {
60 float: none;
61 }