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;
|
|
|
|
gap: var( --space-xl );
|
2023-07-28 01:19:27 +00:00
|
|
|
clear: both;
|
2022-11-15 16:16:39 +00:00
|
|
|
|
|
|
|
ul {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2023-07-28 01:19:27 +00:00
|
|
|
gap: var( --space-xs );
|
2022-11-15 16:16:39 +00:00
|
|
|
margin: var( --space-xs ) 0 0 0;
|
|
|
|
/* Reset font */
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2022-11-15 16:16:39 +00:00
|
|
|
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 );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2024-07-15 06:07:25 +00:00
|
|
|
border: var( --border-width-base ) solid var( --border-color-interactive );
|
2024-07-05 17:24:31 +00:00
|
|
|
border-radius: var( --border-radius-pill );
|
2022-11-15 16:16:39 +00:00
|
|
|
|
|
|
|
&:hover {
|
2024-06-10 23:47:49 +00:00
|
|
|
color: var( --color-inverted-primary );
|
2024-06-30 05:04:30 +00:00
|
|
|
background-color: var( --color-progressive--hover );
|
2022-11-15 16:16:39 +00:00
|
|
|
}
|
|
|
|
|
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;
|
2024-02-26 22:14:19 +00:00
|
|
|
font-size: var( --font-size-x-small );
|
2024-06-30 05:04:30 +00:00
|
|
|
color: var( --color-subtle );
|
2022-11-15 16:16:39 +00:00
|
|
|
letter-spacing: 0.05em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-hidden-cats-hidden,
|
|
|
|
.catlinks-allhidden {
|
|
|
|
display: none;
|
|
|
|
}
|