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>
61 lines
1.1 KiB
Plaintext
61 lines
1.1 KiB
Plaintext
// Namespace button
|
|
#p-namespaces {
|
|
position: relative;
|
|
padding-top: 2.4rem;
|
|
float: right;
|
|
|
|
ul {
|
|
display: flex;
|
|
justify-content: flex-end; // Right align
|
|
margin: 0;
|
|
|
|
li {
|
|
list-style: none;
|
|
|
|
a {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.4rem 0.8rem;
|
|
border: 1px solid var( --border-color-base--lighter );
|
|
background-color: var( --background-color-framed );
|
|
color: var( --color-base--subtle );
|
|
transition: @transition-background-quick, @transition-box-shadow-quick;
|
|
.boxshadow(1);
|
|
|
|
&:hover {
|
|
background-color: var( --background-color-framed--hover );
|
|
.boxshadow(2);
|
|
}
|
|
|
|
&:active {
|
|
background-color: var( --background-color-framed--active );
|
|
.boxshadow(0);
|
|
}
|
|
|
|
&:after {
|
|
position: relative;
|
|
width: 14px;
|
|
height: 14px;
|
|
order: -1;
|
|
margin-right: 8px;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: contain;
|
|
content: '';
|
|
opacity: var( --opacity-icon-base );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.skin-citizen-dark {
|
|
#p-namespaces {
|
|
ul li a {
|
|
&:after {
|
|
filter: invert( 1 );
|
|
}
|
|
}
|
|
}
|
|
}
|