2013-10-09 22:40:35 +00:00
|
|
|
/**
|
|
|
|
* Stylesheet for the CategoryTree extension.
|
2006-07-26 17:12:30 +00:00
|
|
|
*
|
2018-04-16 06:50:28 +00:00
|
|
|
* © 2006 Daniel Kinzler
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*
|
2010-06-06 15:12:22 +00:00
|
|
|
* @file
|
|
|
|
* @ingroup Extensions
|
2007-03-13 11:39:12 +00:00
|
|
|
* @author Daniel Kinzler, brightbyte.de
|
2013-10-09 22:40:35 +00:00
|
|
|
*/
|
2006-07-26 17:12:30 +00:00
|
|
|
|
2024-10-04 20:02:42 +00:00
|
|
|
@import 'mediawiki.mixins.less';
|
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
|
2016-02-01 09:17:11 +00:00
|
|
|
.client-js #mw-subcategories ul {
|
2024-10-06 06:26:15 +00:00
|
|
|
/* On the list of subcategories hide the normal list bullet */
|
2021-05-03 08:48:51 +00:00
|
|
|
list-style: none;
|
2024-10-06 06:26:15 +00:00
|
|
|
/* and reduce the margin on the margin start side. */
|
|
|
|
.margin-inline( 0.25em, 0 );
|
2019-02-07 17:14:48 +00:00
|
|
|
}
|
|
|
|
|
2020-03-24 05:19:12 +00:00
|
|
|
#mw-panel .portal .body .CategoryTreeTag {
|
2017-04-17 17:19:52 +00:00
|
|
|
margin: 0;
|
|
|
|
font-size: 0.75em;
|
|
|
|
line-height: 1.125em;
|
2013-11-07 04:46:43 +00:00
|
|
|
}
|
|
|
|
|
2020-03-24 05:19:12 +00:00
|
|
|
#mw-panel .portal .body .CategoryTreeItem {
|
2017-04-17 17:19:52 +00:00
|
|
|
padding: 0.25em 0;
|
2013-11-07 04:46:43 +00:00
|
|
|
}
|
|
|
|
|
2024-10-06 06:26:15 +00:00
|
|
|
/* Indent the children on each level on margin start side. */
|
2013-09-23 11:35:08 +00:00
|
|
|
.CategoryTreeChildren {
|
2024-10-06 06:26:15 +00:00
|
|
|
.margin-inline( 1.25em, 0 );
|
2019-02-07 17:14:48 +00:00
|
|
|
}
|
|
|
|
|
2016-02-01 09:17:11 +00:00
|
|
|
.CategoryTreeBullet,
|
|
|
|
.CategoryTreeEmptyBullet {
|
2024-10-04 20:02:42 +00:00
|
|
|
.user-select( none );
|
|
|
|
}
|
|
|
|
|
2024-10-06 09:04:27 +00:00
|
|
|
@arrow-size: 14px;
|
|
|
|
|
2024-10-04 20:02:42 +00:00
|
|
|
.expandable-arrow( @param-color ) {
|
|
|
|
.cdx-mixin-css-icon(
|
2024-10-06 09:04:27 +00:00
|
|
|
@cdx-icon-down-triangle, @param-color, @arrow-size,
|
2024-10-04 20:02:42 +00:00
|
|
|
false, center, text-top
|
|
|
|
);
|
2016-02-01 09:17:11 +00:00
|
|
|
}
|
|
|
|
|
2010-05-28 02:15:44 +00:00
|
|
|
.CategoryTreeEmptyBullet {
|
2024-10-05 12:47:52 +00:00
|
|
|
.expandable-arrow( @background-color-disabled );
|
2010-05-28 02:15:44 +00:00
|
|
|
}
|
2008-11-14 12:47:54 +00:00
|
|
|
|
2016-02-01 09:17:11 +00:00
|
|
|
/* Hide toggle buttons for clients without JavaScript */
|
|
|
|
.client-nojs .CategoryTreeBullet,
|
|
|
|
.client-nojs .CategoryTreeEmptyBullet {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-02-06 17:02:19 +00:00
|
|
|
.CategoryTreeEmptyBullet,
|
|
|
|
.CategoryTreeToggle,
|
2019-02-09 16:21:07 +00:00
|
|
|
.CategoryTreePageBullet {
|
|
|
|
display: inline-block;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
2024-10-04 20:02:42 +00:00
|
|
|
.CategoryTreeToggle {
|
|
|
|
transition: transform 250ms ease;
|
|
|
|
.expandable-arrow( @color-progressive );
|
2019-02-06 11:00:16 +00:00
|
|
|
}
|
|
|
|
|
2024-10-04 20:02:42 +00:00
|
|
|
.CategoryTreeEmptyBullet,
|
|
|
|
.CategoryTreeToggle[ aria-expanded='false' ] {
|
2024-10-05 13:16:19 +00:00
|
|
|
[ dir='ltr' ] &,
|
|
|
|
[ dir='rtl' ] [ dir='ltr' ] & {
|
2024-10-04 20:02:42 +00:00
|
|
|
transform: rotate( -90deg );
|
|
|
|
}
|
2019-02-06 11:00:16 +00:00
|
|
|
|
2024-10-05 13:16:19 +00:00
|
|
|
[ dir='rtl' ] &,
|
|
|
|
[ dir='ltr' ] [ dir='rtl' ] & {
|
2024-10-04 20:02:42 +00:00
|
|
|
transform: rotate( 90deg );
|
|
|
|
}
|
2019-02-06 11:00:16 +00:00
|
|
|
}
|
|
|
|
|
2019-02-09 16:21:07 +00:00
|
|
|
.CategoryTreePageBullet {
|
2024-10-06 09:04:27 +00:00
|
|
|
width: @arrow-size;
|
2019-02-06 11:00:16 +00:00
|
|
|
}
|
|
|
|
|
2006-07-26 17:12:30 +00:00
|
|
|
.CategoryTreeLabelPage {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CategoryTreeParents {
|
|
|
|
margin-top: 1.5ex;
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CategoryTreeTag {
|
|
|
|
margin-top: 0.5ex;
|
2011-06-25 00:09:24 +00:00
|
|
|
margin-bottom: 0.5ex;
|
2006-07-26 17:12:30 +00:00
|
|
|
}
|
|
|
|
|
2021-08-30 14:16:42 +00:00
|
|
|
.CategoryTreeResult {
|
|
|
|
margin-top: 1.5ex;
|
|
|
|
}
|
|
|
|
|
2006-07-26 17:12:30 +00:00
|
|
|
.CategoryTreeNotice {
|
|
|
|
font-style: italic;
|
|
|
|
}
|