Use mx_AuthBody prefix for consistency

pull/21833/head
J. Ryan Stinnett 2019-01-30 12:46:40 -06:00
parent 9a17181f2c
commit 2f006939f2
8 changed files with 19 additions and 19 deletions

View File

@ -36,7 +36,7 @@ limitations under the License.
color: $primary-fg-color; color: $primary-fg-color;
} }
.mx_Auth_editServerDetails { .mx_AuthBody_editServerDetails {
padding-left: 1em; padding-left: 1em;
font-size: 12px; font-size: 12px;
font-weight: normal; font-weight: normal;
@ -47,21 +47,21 @@ limitations under the License.
box-sizing: border-box; box-sizing: border-box;
} }
.mx_Auth_fieldRow { .mx_AuthBody_fieldRow {
display: flex; display: flex;
margin-bottom: 10px; margin-bottom: 10px;
} }
.mx_Auth_fieldRow > * { .mx_AuthBody_fieldRow > * {
margin: 0 5px; margin: 0 5px;
flex: 1; flex: 1;
} }
.mx_Auth_fieldRow > *:first-child { .mx_AuthBody_fieldRow > *:first-child {
margin-left: 0; margin-left: 0;
} }
.mx_Auth_fieldRow > *:last-child { .mx_AuthBody_fieldRow > *:last-child {
margin-right: 0; margin-right: 0;
} }
@ -72,7 +72,7 @@ limitations under the License.
text-decoration: none; text-decoration: none;
} }
.mx_Auth_changeFlow { .mx_AuthBody_changeFlow {
display: block; display: block;
text-align: center; text-align: center;
width: 100%; width: 100%;

View File

@ -14,17 +14,17 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
.mx_Auth_language { .mx_AuthBody_language {
width: 100%; width: 100%;
} }
.mx_Auth_language .mx_Dropdown_input { .mx_AuthBody_language .mx_Dropdown_input {
border: none; border: none;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: $authpage-lang-color; color: $authpage-lang-color;
} }
.mx_Auth_language .mx_Dropdown_arrow { .mx_AuthBody_language .mx_Dropdown_arrow {
background: $authpage-lang-color; background: $authpage-lang-color;
} }

View File

@ -255,7 +255,7 @@ module.exports = React.createClass({
</form> </form>
{ serverConfigSection } { serverConfigSection }
{ errorText } { errorText }
<a className="mx_Auth_changeFlow" onClick={this.onLoginClick} href="#"> <a className="mx_AuthBody_changeFlow" onClick={this.onLoginClick} href="#">
{ _t('Sign in instead') } { _t('Sign in instead') }
</a> </a>
</div> </div>

View File

@ -689,7 +689,7 @@ module.exports = React.createClass({
let loginAsGuestJsx; let loginAsGuestJsx;
if (this.props.enableGuest) { if (this.props.enableGuest) {
loginAsGuestJsx = loginAsGuestJsx =
<a className="mx_Auth_changeFlow" onClick={this._onLoginAsGuestClick} href="#"> <a className="mx_AuthBody_changeFlow" onClick={this._onLoginAsGuestClick} href="#">
{ _t('Try the app first') } { _t('Try the app first') }
</a>; </a>;
} }
@ -714,7 +714,7 @@ module.exports = React.createClass({
{ errorTextSection } { errorTextSection }
{ this.renderServerComponentForStep() } { this.renderServerComponentForStep() }
{ this.renderLoginComponentForStep() } { this.renderLoginComponentForStep() }
<a className="mx_Auth_changeFlow" onClick={this.onRegisterClick} href="#"> <a className="mx_AuthBody_changeFlow" onClick={this.onRegisterClick} href="#">
{ _t('Create account') } { _t('Create account') }
</a> </a>
{ loginAsGuestJsx } { loginAsGuestJsx }

View File

@ -487,7 +487,7 @@ module.exports = React.createClass({
let signIn; let signIn;
if (!this.state.doingUIAuth) { if (!this.state.doingUIAuth) {
signIn = ( signIn = (
<a className="mx_Auth_changeFlow" onClick={this.onLoginClick} href="#"> <a className="mx_AuthBody_changeFlow" onClick={this.onLoginClick} href="#">
{ _t('Sign in instead') } { _t('Sign in instead') }
</a> </a>
); );

View File

@ -32,7 +32,7 @@ export default function LanguageSelector() {
if (SdkConfig.get()['disable_login_language_selector']) return <div />; if (SdkConfig.get()['disable_login_language_selector']) return <div />;
const LanguageDropdown = sdk.getComponent('views.elements.LanguageDropdown'); const LanguageDropdown = sdk.getComponent('views.elements.LanguageDropdown');
return <LanguageDropdown className="mx_Auth_language" return <LanguageDropdown className="mx_AuthBody_language"
onOptionChange={onChange} onOptionChange={onChange}
value={getCurrentLanguage()} value={getCurrentLanguage()}
/>; />;

View File

@ -268,7 +268,7 @@ class PasswordLogin extends React.Component {
let editLink = null; let editLink = null;
if (this.props.onEditServerDetailsClick) { if (this.props.onEditServerDetailsClick) {
editLink = <a className="mx_Auth_editServerDetails" editLink = <a className="mx_AuthBody_editServerDetails"
href="#" onClick={this.props.onEditServerDetailsClick} href="#" onClick={this.props.onEditServerDetailsClick}
> >
{_t('Edit')} {_t('Edit')}

View File

@ -270,7 +270,7 @@ module.exports = React.createClass({
let editLink = null; let editLink = null;
if (this.props.onEditServerDetailsClick) { if (this.props.onEditServerDetailsClick) {
editLink = <a className="mx_Auth_editServerDetails" editLink = <a className="mx_AuthBody_editServerDetails"
href="#" onClick={this.props.onEditServerDetailsClick} href="#" onClick={this.props.onEditServerDetailsClick}
> >
{_t('Edit')} {_t('Edit')}
@ -335,13 +335,13 @@ module.exports = React.createClass({
{editLink} {editLink}
</h3> </h3>
<form onSubmit={this.onSubmit}> <form onSubmit={this.onSubmit}>
<div className="mx_Auth_fieldRow"> <div className="mx_AuthBody_fieldRow">
<input type="text" ref="username" <input type="text" ref="username"
placeholder={placeholderUsername} defaultValue={this.props.defaultUsername} placeholder={placeholderUsername} defaultValue={this.props.defaultUsername}
className={this._classForField(FIELD_USERNAME, 'mx_Login_field')} className={this._classForField(FIELD_USERNAME, 'mx_Login_field')}
onBlur={function() {self.validateField(FIELD_USERNAME);}} /> onBlur={function() {self.validateField(FIELD_USERNAME);}} />
</div> </div>
<div className="mx_Auth_fieldRow"> <div className="mx_AuthBody_fieldRow">
<input type="password" ref="password" <input type="password" ref="password"
className={this._classForField(FIELD_PASSWORD, 'mx_Login_field')} className={this._classForField(FIELD_PASSWORD, 'mx_Login_field')}
onBlur={function() {self.validateField(FIELD_PASSWORD);}} onBlur={function() {self.validateField(FIELD_PASSWORD);}}
@ -352,7 +352,7 @@ module.exports = React.createClass({
onBlur={function() {self.validateField(FIELD_PASSWORD_CONFIRM);}} onBlur={function() {self.validateField(FIELD_PASSWORD_CONFIRM);}}
defaultValue={this.props.defaultPassword} /> defaultValue={this.props.defaultPassword} />
</div> </div>
<div className="mx_Auth_fieldRow"> <div className="mx_AuthBody_fieldRow">
{ emailSection } { emailSection }
{ phoneSection } { phoneSection }
</div> </div>