setlang will now display a dialog to confirm with the user that they would like to change their interface language. The preferred language will only be updated if the user confirms. The dialog will be displayed if the setlang parameter is present in the query string and, * A user is logged in, and their preferred language is not the same as the one passed via setlang. * For an anonymous user if the wgULSAnonCanChangeLanguage is true, and the current interface language is not the same as the one passed via setlang. Bug: T63115 Change-Id: I882297d99a594fd82fd0aec3b4664e8bfd1eac3a
41 lines
698 B
Plaintext
41 lines
698 B
Plaintext
@uls-dialog-width: 480px;
|
|
|
|
.uls-dialog {
|
|
position: absolute;
|
|
z-index: 500;
|
|
display: none;
|
|
background-color: #fff;
|
|
border: 1px solid #ccc;
|
|
border-color: rgba( 0, 0, 0, 0.2 );
|
|
box-shadow: 0 5px 10px rgba( 0, 0, 0, 0.2 );
|
|
background-clip: padding-box;
|
|
width: @uls-dialog-width;
|
|
top: 30%;
|
|
left: 50%;
|
|
margin-left: -( @uls-dialog-width / 2 );
|
|
margin-top: -40px;
|
|
padding: 16px;
|
|
|
|
@media screen and ( max-width: 599px ) {
|
|
width: 100%;
|
|
left: 0;
|
|
margin-left: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
|
|
.uls-overlay {
|
|
height: 100vh;
|
|
width: 100vw;
|
|
background-color: #54595d;
|
|
opacity: 0.87;
|
|
display: none;
|
|
z-index: 300;
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
.uls-no-overflow {
|
|
overflow: hidden;
|
|
}
|