mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-18 03:41:50 +00:00
4beb15e43d
* feat: update layout in different breakpoints * ci: lint code to MediaWiki standards Check commit and GitHub actions for more details * feat: remove negative margin for namespace and catlinks * 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>
59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
.catlinks {
|
|
padding-top: 2.4rem;
|
|
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;
|
|
}
|
|
|
|
> ul {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding-top: @content-margin-top;
|
|
margin: 0;
|
|
font-size: @content-caption-size; // Reset font
|
|
|
|
li {
|
|
display: block;
|
|
padding: 0;
|
|
border: 0;
|
|
margin: 0 @margin-side / 2 @margin-side / 2 0;
|
|
|
|
&: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
|
|
transition: @transition-background-quick, @transition-color-quick, @transition-border-quick, @transition-transform-quick, @transition-box-shadow-quick;
|
|
.boxshadow(1);
|
|
|
|
&:hover {
|
|
border-color: var( --color-primary--hover );
|
|
background-color: var( --color-primary--hover );
|
|
color: @base-100 !important;
|
|
transform: translateY( -2px );
|
|
.boxshadow(2);
|
|
}
|
|
|
|
&.new:hover {
|
|
border-color: var( --color-destructive--hover );
|
|
background-color: var( --color-destructive--hover );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|