mediawiki-skins-Citizen/resources/skins.citizen.styles/Pagelinks.less
alistair3149 f72af5e76d
Improve CI and code clean up (#143)
* Replace existing grunt linter

* Fix stylesheet issues picked up by stylelint

* Update the git workflow

* Fix incorrect slash in workflow file

* Github CI lint - eslint/stylelint

* Clean up composer

* Fix phpcb error

* MediaWiki CI

* Change commit message

* Update status badge

* Add JSDoc

* Add SVGO

* Make a dinner reservation - MediaWiki CI

I clean up code to MediaWiki standards

* Optimize SVG files with SVGO

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2020-06-16 22:49:41 -04:00

77 lines
1.3 KiB
Plaintext

// Namespace button
#p-namespaces {
position: relative;
float: right;
margin: 0 @negative-margin;
padding: @margin-side;
ul {
margin: 1.6rem 0 0 0;
display: flex;
justify-content: flex-end; // Right align
li {
list-style: none;
a {
display: flex;
align-items: center;
padding: 0.4rem 0.8rem;
border: 1px solid @base-80;
color: @base-20;
background-color: @base-90;
transition: @transition-background-quick, @transition-box-shadow-quick;
.boxshadow(1);
&:hover {
background-color: @base-80;
.boxshadow(2);
}
&:after {
order: -1;
content: '';
position: relative;
width: 14px;
height: 14px;
margin-right: 8px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
opacity: 0.5;
}
}
}
}
}
@media ( max-width: @screen1 ) {
#p-namespaces {
margin: 0 !important; // somehow got overrided
padding: @margin-side 0;
}
}
@media ( max-width: @screen2 ) {
#p-namespaces {
margin: 0 ~'calc((100vw - @{page-width}) / -2)';
}
}
@media ( prefers-color-scheme: dark ) {
#p-namespaces {
ul li a {
background-color: @dark-bg-10;
border-color: @dark-bg-20;
&:hover {
background-color: @dark-bg-20;
}
&:after {
filter: invert( 1 );
}
}
}
}