Debian Codegraph @

extensions/CategoryTree/modules/ext.categoryTree.styles.less

raw
1 /**
2 * Stylesheet for the CategoryTree extension.
3 *
4 * © 2006 Daniel Kinzler
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * http://www.gnu.org/copyleft/gpl.html
20 *
21 * @file
22 * @ingroup Extensions
23 * @author Daniel Kinzler, brightbyte.de
24 */
25
26 @import 'mediawiki.mixins.less';
27 @import 'mediawiki.skin.variables.less';
28
29 .client-js #mw-subcategories ul {
30 /* On the list of subcategories hide the normal list bullet */
31 list-style: none;
32 /* and reduce the margin on the margin start side. */
33 .margin-inline( 0.25em, 0 );
34 }
35
36 #mw-panel .portal .body .CategoryTreeTag {
37 margin: 0;
38 font-size: 0.75em;
39 line-height: 1.125em;
40 }
41
42 #mw-panel .portal .body .CategoryTreeItem {
43 padding: 0.25em 0;
44 }
45
46 /* Indent the children on each level on margin start side. */
47 .CategoryTreeChildren {
48 .margin-inline( 1.25em, 0 );
49 }
50
51 .CategoryTreeBullet,
52 .CategoryTreeEmptyBullet {
53 .user-select( none );
54 }
55
56 @arrow-size: 14px;
57
58 .expandable-arrow( @param-color ) {
59 .cdx-mixin-css-icon(
60 @cdx-icon-down-triangle, @param-color, @arrow-size,
61 false, center, text-top
62 );
63 }
64
65 .CategoryTreeEmptyBullet {
66 .expandable-arrow( @background-color-disabled );
67 }
68
69 /* Hide toggle buttons for clients without JavaScript */
70 .client-nojs .CategoryTreeBullet,
71 .client-nojs .CategoryTreeEmptyBullet {
72 display: none;
73 }
74
75 .CategoryTreeEmptyBullet,
76 .CategoryTreeToggle,
77 .CategoryTreePageBullet {
78 display: inline-block;
79 width: 0;
80 height: 0;
81 }
82
83 .CategoryTreeToggle {
84 transition: transform 250ms ease;
85 .expandable-arrow( @color-progressive );
86
87 &:visited {
88 .expandable-arrow( @color-visited );
89 }
90 }
91
92 .CategoryTreeEmptyBullet,
93 .CategoryTreeToggle[ aria-expanded='false' ] {
94 [ dir='ltr' ] &,
95 [ dir='rtl' ] [ dir='ltr' ] & {
96 transform: rotate( -90deg );
97 }
98
99 [ dir='rtl' ] &,
100 [ dir='ltr' ] [ dir='rtl' ] & {
101 transform: rotate( 90deg );
102 }
103 }
104
105 .CategoryTreePageBullet {
106 width: @arrow-size;
107 }
108
109 .CategoryTreeLabelPage {
110 font-style: italic;
111 }
112
113 .CategoryTreeParents {
114 margin-top: 1.5ex;
115 font-style: italic;
116 }
117
118 .CategoryTreeTag {
119 margin-top: 0.5ex;
120 margin-bottom: 0.5ex;
121 }
122
123 .CategoryTreeResult {
124 margin-top: 1.5ex;
125 }
126
127 .CategoryTreeNotice {
128 font-style: italic;
129 }