mediawiki-skins-Citizen/resources/skins.citizen.styles/Catlinks.less

69 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-06-11 22:15:40 +00:00
.catlinks {
2021-03-07 23:44:24 +00:00
margin-top: @content-margin-top * 2;
2021-03-09 18:39:55 +00:00
clear: both;
2020-06-11 22:15:40 +00:00
line-height: 1.2;
.mw-normal-catlinks {
font-size: 0; // Hide colon
2021-03-07 18:53:11 +00:00
}
.mw-hidden-catlinks {
color: var( --color-base--subtle );
font-size: @ui-menu-text;
letter-spacing: 0.75px;
}
.mw-normal-catlinks,
.mw-hidden-catlinks {
padding: @content-margin-top 0;
2020-06-11 22:15:40 +00:00
> a {
display: block;
2021-03-01 16:30:06 +00:00
color: var( --color-base--subtle );
font-size: @ui-menu-text;
letter-spacing: 0.75px;
2020-06-11 22:15:40 +00:00
}
> ul {
display: flex;
flex-wrap: wrap;
padding-top: 0.5rem;
margin: 0;
2021-03-07 18:53:11 +00:00
/* Reset font */
font-size: @content-caption-size;
gap: 0.375rem;
letter-spacing: 0; // hidden-catlink title does not have a selector
2020-06-11 22:15:40 +00:00
li {
display: block;
a {
display: inline-block;
padding: 0.5rem 1rem;
border: 1px solid var( --border-color-base--darker );
border-radius: 100px;
color: var( --color-base--subtle );
transition: @transition-background;
2020-06-11 22:15:40 +00:00
&:hover {
2021-01-14 17:53:29 +00:00
background-color: var( --color-primary--hover );
color: #fff;
2020-06-11 22:15:40 +00:00
}
&.new {
border-style: dashed;
&:hover {
background-color: var( --color-destructive--hover );
}
2020-06-11 22:15:40 +00:00
}
}
}
}
}
2021-03-01 15:37:07 +00:00
.mw-hidden-cats-hidden {
display: none;
}
2020-06-11 22:15:40 +00:00
}