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
|
|
|
|
2019-02-07 17:14:48 +00:00
|
|
|
/* On the list of subcategories hide the normal list bullet */
|
2016-02-01 09:17:11 +00:00
|
|
|
.client-js #mw-subcategories ul {
|
2021-05-03 08:48:51 +00:00
|
|
|
list-style: none;
|
2019-02-07 17:14:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* and reduce the margin on the margin start side. */
|
|
|
|
/* @noflip */
|
|
|
|
.client-js #mw-subcategories .mw-content-ltr ul {
|
2013-09-23 11:35:08 +00:00
|
|
|
margin-left: 0.25em;
|
2006-07-26 17:12:30 +00:00
|
|
|
}
|
|
|
|
|
2019-02-07 17:14:48 +00:00
|
|
|
/* @noflip */
|
|
|
|
.client-js #mw-subcategories .mw-content-rtl ul {
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-02-07 17:14:48 +00:00
|
|
|
/*
|
|
|
|
* Indent the children on each level on margin start side.
|
|
|
|
* A category tree in the sidebar is in user interface language therefor
|
|
|
|
* a flipped margin-left is the margin start side.
|
|
|
|
*/
|
2013-09-23 11:35:08 +00:00
|
|
|
.CategoryTreeChildren {
|
|
|
|
margin-left: 1.25em;
|
|
|
|
}
|
2008-11-14 12:47:54 +00:00
|
|
|
|
2019-02-07 17:14:48 +00:00
|
|
|
/*
|
|
|
|
* Category trees in the content are in content language and therefor
|
|
|
|
* an unflipped margin-left or margin-right is the margin start side.
|
|
|
|
* Use margin: 0 0 0 1.25em instead of margin-left: 1.25em here to
|
|
|
|
* overwrite the flipped margin-left from above.
|
|
|
|
*/
|
|
|
|
/* @noflip */
|
|
|
|
.mw-content-ltr .CategoryTreeChildren,
|
|
|
|
.mw-content-rtl .mw-content-ltr .CategoryTreeChildren {
|
|
|
|
margin: 0 0 0 1.25em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* @noflip */
|
|
|
|
.mw-content-rtl .CategoryTreeChildren,
|
|
|
|
.mw-content-ltr .mw-content-rtl .CategoryTreeChildren {
|
|
|
|
margin: 0 1.25em 0 0;
|
|
|
|
}
|
|
|
|
|
2016-02-01 09:17:11 +00:00
|
|
|
.CategoryTreeBullet,
|
|
|
|
.CategoryTreeEmptyBullet {
|
|
|
|
cursor: default;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2010-05-28 02:15:44 +00:00
|
|
|
.CategoryTreeEmptyBullet {
|
2017-04-17 17:19:52 +00:00
|
|
|
color: #c0c0c0;
|
2010-05-28 02:15:44 +00:00
|
|
|
}
|
2008-11-14 12:47:54 +00:00
|
|
|
|
2008-06-28 20:13:20 +00:00
|
|
|
.CategoryTreeBullet a,
|
|
|
|
.CategoryTreeBullet a:link,
|
|
|
|
.CategoryTreeBullet a:active,
|
|
|
|
.CategoryTreeBullet a:visited {
|
2006-07-26 17:12:30 +00:00
|
|
|
text-decoration: none;
|
|
|
|
color: inherit;
|
2008-06-28 20:13:20 +00:00
|
|
|
speak: none;
|
2006-07-26 17:12:30 +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;
|
|
|
|
}
|
|
|
|
|
2013-09-23 11:35:08 +00:00
|
|
|
.CategoryTreeToggle {
|
2017-04-17 17:19:52 +00:00
|
|
|
color: #0645ad;
|
2013-09-23 11:35:08 +00:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2019-02-06 17:02:19 +00:00
|
|
|
.CategoryTreeEmptyBullet,
|
2024-01-23 05:03:40 +00:00
|
|
|
.CategoryTreeToggle[ aria-expanded='false' ] {
|
2019-02-09 16:21:07 +00:00
|
|
|
border-top: 5px solid transparent;
|
|
|
|
border-left: 10px solid;
|
|
|
|
border-bottom: 5px solid transparent;
|
|
|
|
border-right: 0 none;
|
|
|
|
}
|
|
|
|
|
2019-02-06 11:00:16 +00:00
|
|
|
/* @noflip */
|
2019-02-06 17:02:19 +00:00
|
|
|
.mw-content-ltr .CategoryTreeEmptyBullet,
|
2024-01-23 05:03:40 +00:00
|
|
|
.mw-content-ltr .CategoryTreeToggle[ aria-expanded='false' ],
|
2019-02-06 17:02:19 +00:00
|
|
|
.mw-content-rtl .mw-content-ltr .CategoryTreeEmptyBullet,
|
2024-01-23 05:03:40 +00:00
|
|
|
.mw-content-rtl .mw-content-ltr .CategoryTreeToggle[ aria-expanded='false' ] {
|
2019-02-09 16:21:07 +00:00
|
|
|
border-left: 10px solid;
|
|
|
|
border-right: 0 none;
|
2019-02-06 11:00:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* @noflip */
|
2019-02-06 17:02:19 +00:00
|
|
|
.mw-content-rtl .CategoryTreeEmptyBullet,
|
2024-01-23 05:03:40 +00:00
|
|
|
.mw-content-rtl .CategoryTreeToggle[ aria-expanded='false' ],
|
2019-02-06 17:02:19 +00:00
|
|
|
.mw-content-ltr .mw-content-rtl .CategoryTreeEmptyBullet,
|
2024-01-23 05:03:40 +00:00
|
|
|
.mw-content-ltr .mw-content-rtl .CategoryTreeToggle[ aria-expanded='false' ] {
|
2019-02-09 16:21:07 +00:00
|
|
|
border-right: 10px solid;
|
|
|
|
border-left: 0 none;
|
2019-02-06 11:00:16 +00:00
|
|
|
}
|
|
|
|
|
2024-01-23 05:03:40 +00:00
|
|
|
.CategoryTreeToggle[ aria-expanded='true' ] {
|
2019-02-09 16:21:07 +00:00
|
|
|
border-left: 5px solid transparent;
|
|
|
|
border-right: 5px solid transparent;
|
|
|
|
border-top: 10px solid;
|
2019-02-06 11:00:16 +00:00
|
|
|
}
|
|
|
|
|
2019-02-09 16:21:07 +00:00
|
|
|
.CategoryTreePageBullet {
|
|
|
|
border-left: 10px solid transparent;
|
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;
|
|
|
|
}
|