mediawiki-skins-Citizen/resources/skins.citizen.styles/Pagelinks.less
alistair3149 4beb15e43d
feat: update layout in different breakpoints (#227)
* 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>
2021-01-18 15:18:39 -05:00

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 );
}
}
}
}