mediawiki-skins-Citizen/resources/skins.citizen.styles/Catlinks.less
alistair3149 47e1259bc3
feat: implement a more adaptive smooth shadow
* Looks more natural
* Can be customized through the surface-shadow and shadow-strength CSS var
* Light mode and dark mode have been different shadow now, it should be more visible in dark mode
* Box-shadow is a CSS var, which can be used in templates and wiki CSS
2022-04-24 15:24:09 -04:00

74 lines
1.4 KiB
Plaintext

.catlinks {
margin-top: @content-margin-top * 2;
clear: both;
line-height: 1.2;
.mw-normal-catlinks {
font-size: 0; // Hide colon
}
.mw-hidden-catlinks {
color: var( --color-base--subtle );
font-size: @ui-menu-text;
letter-spacing: 0.75px;
}
.mw-normal-catlinks,
.mw-hidden-catlinks {
margin-top: @content-margin-top;
> 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;
/* Reset font */
font-size: @content-caption-size;
letter-spacing: 0;
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;
box-shadow: var( --box-shadow-card );
&: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;
}
}