2020-06-12 17:44:24 +00:00
|
|
|
// Namespace button
|
|
|
|
#p-namespaces {
|
|
|
|
position: relative;
|
|
|
|
padding: @margin-side;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin: 0 @negative-margin;
|
|
|
|
float: right;
|
2020-06-12 17:44:24 +00:00
|
|
|
|
|
|
|
ul {
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end; // Right align
|
2021-01-11 16:45:52 +00:00
|
|
|
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;
|
2021-01-09 21:56:28 +00:00
|
|
|
border: 1px solid var( --pagelinks-p-namespaces-ul-li-a-border-color );
|
|
|
|
background-color: var( --pagelinks-p-namespaces-ul-li-a-background-color );
|
2021-01-11 16:45:52 +00:00
|
|
|
color: var( --pagelinks-p-namespaces-ul-li-a-color );
|
2020-06-12 17:44:24 +00:00
|
|
|
transition: @transition-background-quick, @transition-box-shadow-quick;
|
|
|
|
.boxshadow(1);
|
|
|
|
|
|
|
|
&:hover {
|
2021-01-09 21:56:28 +00:00
|
|
|
background-color: var( --pagelinks-p-namespaces-ul-li-a-hover-background-color );
|
2020-06-12 17:44:24 +00:00
|
|
|
.boxshadow(2);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
position: relative;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
2021-01-11 16:45:52 +00:00
|
|
|
order: -1;
|
2020-06-12 17:44:24 +00:00
|
|
|
margin-right: 8px;
|
|
|
|
background-position: center;
|
2021-01-11 16:45:52 +00:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: contain;
|
|
|
|
content: '';
|
2020-06-12 17:44:24 +00:00
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-09 21:56:28 +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;
|
2021-01-11 16:45:52 +00:00
|
|
|
margin: 0 !important; // somehow got overrided
|
2020-06-12 17:44:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media ( max-width: @screen2 ) {
|
|
|
|
#p-namespaces {
|
2020-06-17 02:49:41 +00:00
|
|
|
margin: 0 ~'calc((100vw - @{page-width}) / -2)';
|
2020-06-12 17:44:24 +00:00
|
|
|
}
|
|
|
|
}
|