mediawiki-skins-Citizen/resources/skins.citizen.styles/Catlinks.less
alistair3149 60f15ae089
feat: update catlink styles
* feat: update catlink styles

* ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2021-03-06 14:20:03 -05:00

60 lines
1.1 KiB
Plaintext

.catlinks {
padding-top: 2.4rem;
line-height: 1.2;
.mw-normal-catlinks {
font-size: 0; // Hide colon
> a {
display: block;
color: var( --color-base--subtle );
font-size: @ui-menu-text;
letter-spacing: 0.75px;
}
> ul {
display: flex;
flex-wrap: wrap;
padding-top: @content-margin-top;
margin: 0;
font-size: @content-caption-size; // Reset font
li {
display: block;
overflow: hidden;
padding: 0;
border: 0;
border: 1px solid var( --border-color-base--lighter );
margin: 0 @margin-side / 2 @margin-side / 2 0;
background-color: var( --background-color-framed );
border-radius: 100px;
.boxshadow(1);
&:first-of-type {
margin-left: 0;
}
a {
display: inline-block;
padding: 7px 15px;
color: var( --color-base--subtle ) !important; // Override
transition: @transition-background-quick;
&:hover {
background-color: var( --color-primary--hover );
color: @base-100 !important;
}
&.new:hover {
background-color: var( --color-destructive--hover );
}
}
}
}
}
.mw-hidden-cats-hidden {
display: none;
}
}