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

59 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-06-11 22:15:40 +00:00
.catlinks {
padding-top: 2.4rem;
2020-06-11 22:15:40 +00:00
line-height: 1.2;
.mw-normal-catlinks {
font-size: 0; // Hide colon
> a {
display: block;
color: @color-content-caption;
font-size: @content-caption-size;
letter-spacing: 1px;
text-transform: uppercase;
2020-06-11 22:15:40 +00:00
}
> ul {
display: flex;
flex-wrap: wrap;
padding-top: @content-margin-top;
margin: 0;
2020-06-11 22:15:40 +00:00
font-size: @content-caption-size; // Reset font
li {
display: block;
padding: 0;
border: 0;
margin: 0 @margin-side / 2 @margin-side / 2 0;
2020-06-11 22:15:40 +00:00
&:first-of-type {
margin-left: 0;
}
a {
display: block;
padding: @margin-side / 4 @margin-side / 2;
border: 1px solid var( --border-color-base--lighter );
background-color: var( --background-color-framed );
color: var( --color-base--subtle ) !important; // Override
2020-06-11 22:15:40 +00:00
transition: @transition-background-quick, @transition-color-quick, @transition-border-quick, @transition-transform-quick, @transition-box-shadow-quick;
.boxshadow(1);
2020-06-11 22:15:40 +00:00
&:hover {
2021-01-14 17:53:29 +00:00
border-color: var( --color-primary--hover );
background-color: var( --color-primary--hover );
2020-06-11 22:15:40 +00:00
color: @base-100 !important;
transform: translateY( -2px );
.boxshadow(2);
}
&.new:hover {
2021-01-14 17:53:29 +00:00
border-color: var( --color-destructive--hover );
background-color: var( --color-destructive--hover );
2020-06-11 22:15:40 +00:00
}
}
}
}
}
}