2022-11-15 16:16:39 +00:00
|
|
|
/*
|
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* Module: mediawiki.skinning.interface.category
|
|
|
|
* Version: REL1_39
|
|
|
|
*
|
|
|
|
* Date: 2022-11-15
|
|
|
|
*/
|
|
|
|
|
|
|
|
.catlinks {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
clear: both;
|
|
|
|
gap: var( --space-xl );
|
|
|
|
|
|
|
|
ul {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
margin: var( --space-xs ) 0 0 0;
|
|
|
|
/* Reset font */
|
2022-11-16 23:06:23 +00:00
|
|
|
font-size: 0.8125rem;
|
2022-11-15 16:16:39 +00:00
|
|
|
gap: var( --space-xs );
|
|
|
|
letter-spacing: 0; // hidden-catlink title does not have a selector
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
// Be more specific because gadgets like hotcat can attach links in category
|
|
|
|
> a {
|
|
|
|
display: block;
|
|
|
|
padding: var( --space-xs ) var( --space-md );
|
|
|
|
border: 1px solid var( --border-color-base--darker );
|
2022-11-15 16:21:04 +00:00
|
|
|
border-radius: var( --border-radius--pill );
|
2022-11-15 16:16:39 +00:00
|
|
|
color: var( --color-base--subtle );
|
2023-07-07 20:36:27 +00:00
|
|
|
transition: var( --transition-hover );
|
|
|
|
transition-property: background, color;
|
2022-11-15 16:16:39 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-primary--hover );
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2023-06-15 18:37:07 +00:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2022-11-15 16:16:39 +00:00
|
|
|
// Make new categories distinct
|
|
|
|
&.new {
|
|
|
|
border-style: dashed;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-destructive--hover );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// HACK: Hide colon
|
|
|
|
.mw-normal-catlinks {
|
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Category label
|
|
|
|
.mw-normal-catlinks > a,
|
|
|
|
.mw-hidden-catlinks {
|
|
|
|
display: block;
|
|
|
|
color: var( --color-base--subtle );
|
2022-11-23 19:47:14 +00:00
|
|
|
font-size: 0.8125rem;
|
2022-11-15 16:16:39 +00:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-hidden-cats-hidden,
|
|
|
|
.catlinks-allhidden {
|
|
|
|
display: none;
|
|
|
|
}
|