mediawiki-skins-MinervaNeue/skinStyles/mediawiki.special.userlogin.common.styles/minerva.less

212 lines
4.1 KiB
Plaintext
Raw Normal View History

@import 'minerva.variables';
@import 'minerva.mixins';
// hide the texts inside these selectors because they push the login form below the fold
#userloginprompt,
#languagelinks,
// This serves no purpose on the login screen as you are not logged in so cannot use.
#user-button {
display: none;
}
.errorbox,
.successbox,
.warningbox {
padding: 0.5em 1em;
margin: 1em 0;
}
// FIXME: Move to ConfirmEdit extension
/* fancycaptcha reload button */
.confirmedit-captcha-reload,
#mf-captcha-reload-container {
border-top: 1px dashed #e1e1e1;
display: inline-block;
padding: 14px 25%;
// FIXME: Make use of icon classes
.fancycaptcha-reload,
&.fancycaptcha-reload {
color: @colorGray7;
font-weight: bold;
background: none;
/* stylelint-disable no-descending-specificity */
&:before {
// Note icon is provided in mobile.ajax
content: '';
background-position: center left;
background-repeat: no-repeat;
.background-size( 16px, 16px );
width: 1em;
height: 1em;
display: inline-block;
padding-right: 8px;
line-height: 1;
}
/* stylelint-enable no-descending-specificity */
}
}
.mw-ui-container {
.mw-ui-vform {
margin: auto;
width: auto;
max-width: @contentMaxWidthTablet;
}
.mw-form-related-link-container {
a {
padding-bottom: 12px;
display: block;
}
}
.fancycaptcha-image-container {
display: inherit;
}
// reason for account creation is not so important on mobile - it should be obvious through the workflows
.mw-createacct-benefits-container {
display: none;
}
// CAPTCHA style improvements
.captcha {
margin: 0.8em 0 0;
border: solid 1px @colorGray12;
border-radius: @borderRadius;
overflow: hidden;
background: #fff;
text-align: center;
input:not( [type='submit'] ) {
-webkit-appearance: none;
border-radius: 0;
padding: 0.8em 0.5em;
margin: 0;
}
input:not( [type='submit'] ),
img,
#wpCaptchaWord {
border: 0;
border-top: solid 1px @colorGray12;
&:first-child {
border-top: 0;
}
}
// CAPTCHA's are well known by internet users, save the space of the explanation
> p,
label {
display: none;
}
// FancyCaptcha things
.fancycaptcha-image-container img {
display: block;
margin-left: auto;
margin-right: auto;
}
.mw-createacct-captcha-assisted {
font-size: 0.8em;
}
.confirmedit-captcha-reload {
position: relative;
}
}
}
#mw-mf-login,
#mw-mf-accountcreate,
#userloginForm {
.watermark {
text-align: center;
// FIXME: Should we set the height here?
height: 72px;
margin-bottom: @headingMargin;
img {
// Important to override default max-width and height auto combo
height: 72px !important;
}
}
}
// FIXME: Some of these rules should actually be mobile first, only hiding inputs needs to be wrapped in a media query
@media all and ( max-width: @deviceWidthTablet ) {
@margin: 12px;
#userloginForm {
// tips are not useful
.prefsectiontip, .htmlform-tip,
// hide help link
#mw-userlogin-help, .mw-userlogin-help,
// benefits are obvious through the workflows
#wpReason,
// real name in account creation is not so important on mobile
#wpRealName,
// Hide keep me logged in checkbox on mobile.
.mw-ui-checkbox {
display: none !important;
}
}
// do not show langage link list
// FIXME: After the language list is mobile friendly, it can be re-enabled - Bug T110403
#languagelinks {
display: none;
}
// account creation
#userlogin2 {
.mw-ui-checkbox {
margin: @margin 0;
}
}
.mw-ui-vform-field {
text-align: center;
}
// Make the inputs look connected in mobile mode
.mw-ui-input {
&#wpEmail,
&.loginPassword {
border-top-left-radius: 0;
border-top-right-radius: 0;
margin-top: -1px;
}
}
.mw-ui-vform {
margin: auto;
.mw-ui-input {
padding: 0.8em 0.5em;
}
// hide on mobile only media queries (placeholder support)
.mw-ui-vform-field {
margin-bottom: 0;
.mw-ui-button {
margin: @margin 0;
}
// user can rely on placeholder attributes in fields media query support should mean placeholder support
// but don't hide any checkbox labels
> label {
display: none;
}
}
}
#mw-createaccount-another {
margin-top: @margin;
}
}