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

75 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-06-12 17:44:24 +00:00
// Namespace button
#p-namespaces {
position: relative;
padding: @margin-side;
margin: 0 @negative-margin;
float: right;
2020-06-12 17:44:24 +00:00
ul {
display: flex;
justify-content: flex-end; // Right align
margin: 1.6rem 0 0 0;
2020-06-12 17:44:24 +00:00
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 );
2020-06-12 17:44:24 +00:00
transition: @transition-background-quick, @transition-box-shadow-quick;
.boxshadow(1);
&:hover {
background-color: var( --background-color-framed--hover );
2020-06-12 17:44:24 +00:00
.boxshadow(2);
}
&:active {
background-color: var( --background-color-framed--active );
.boxshadow(0);
}
2020-06-12 17:44:24 +00:00
&:after {
position: relative;
width: 14px;
height: 14px;
order: -1;
2020-06-12 17:44:24 +00:00
margin-right: 8px;
background-position: center;
background-repeat: no-repeat;
background-size: contain;
content: '';
2021-01-14 17:20:15 +00:00
opacity: var( --opacity-icon-base );
2020-06-12 17:44:24 +00:00
}
}
}
}
}
.skin-citizen-dark {
#p-namespaces {
ul li a {
&:after {
filter: invert( 1 );
}
}
}
}
2020-06-12 17:44:24 +00:00
@media ( max-width: @screen1 ) {
#p-namespaces {
padding: @margin-side 0;
margin: 0 !important; // somehow got overrided
2020-06-12 17:44:24 +00:00
}
}
@media ( max-width: @screen2 ) {
#p-namespaces {
margin: 0 ~'calc((100vw - @{page-width}) / -2)';
2020-06-12 17:44:24 +00:00
}
}