Fix login screen style (#9611)
This commit is contained in:
parent
55921e4888
commit
5c60211d76
4 changed files with 29 additions and 10 deletions
|
@ -17,13 +17,12 @@ limitations under the License.
|
||||||
|
|
||||||
.mx_AuthBody {
|
.mx_AuthBody {
|
||||||
width: 500px;
|
width: 500px;
|
||||||
font-size: $font-14px;
|
font-size: $font-12px;
|
||||||
color: $primary-content;
|
color: $authpage-secondary-color;
|
||||||
background-color: $background;
|
background-color: $background;
|
||||||
border-radius: 0 4px 4px 0;
|
border-radius: 0 4px 4px 0;
|
||||||
padding: 50px 32px;
|
padding: 25px 60px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-height: 600px;
|
|
||||||
|
|
||||||
b {
|
b {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
@ -37,8 +36,7 @@ limitations under the License.
|
||||||
h1 {
|
h1 {
|
||||||
font-size: $font-24px;
|
font-size: $font-24px;
|
||||||
font-weight: $font-semi-bold;
|
font-weight: $font-semi-bold;
|
||||||
margin-bottom: $spacing-20;
|
margin-top: $spacing-8;
|
||||||
margin-top: $spacing-24;
|
|
||||||
color: $authpage-primary-color;
|
color: $authpage-primary-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,6 +78,10 @@ limitations under the License.
|
||||||
color: $authpage-primary-color;
|
color: $authpage-primary-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_Field label {
|
||||||
|
color: $authpage-secondary-color;
|
||||||
|
}
|
||||||
|
|
||||||
.mx_Field input,
|
.mx_Field input,
|
||||||
.mx_Field select {
|
.mx_Field select {
|
||||||
color: $authpage-primary-color;
|
color: $authpage-primary-color;
|
||||||
|
@ -100,7 +102,7 @@ limitations under the License.
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_Login_submit {
|
.mx_Login_submit {
|
||||||
height: 33px;
|
height: 32px;
|
||||||
margin-top: $spacing-16;
|
margin-top: $spacing-16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -134,6 +136,19 @@ limitations under the License.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* specialisation for password reset views */
|
||||||
|
.mx_AuthBody_forgot-password {
|
||||||
|
font-size: $font-14px;
|
||||||
|
color: $primary-content;
|
||||||
|
padding: 50px 32px;
|
||||||
|
min-height: 600px;
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-bottom: $spacing-20;
|
||||||
|
margin-top: $spacing-24;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.mx_AuthBody_did-not-receive {
|
.mx_AuthBody_did-not-receive {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
color: $secondary-content;
|
color: $secondary-content;
|
||||||
|
|
|
@ -15,6 +15,9 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_VerifyEMailDialog {
|
.mx_VerifyEMailDialog {
|
||||||
|
height: auto;
|
||||||
|
top: 300px;
|
||||||
|
|
||||||
.mx_Dialog {
|
.mx_Dialog {
|
||||||
color: $primary-content;
|
color: $primary-content;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
|
@ -481,7 +481,7 @@ export default class ForgotPassword extends React.Component<Props, State> {
|
||||||
return (
|
return (
|
||||||
<AuthPage>
|
<AuthPage>
|
||||||
<AuthHeader />
|
<AuthHeader />
|
||||||
<AuthBody>
|
<AuthBody className="mx_AuthBody_forgot-password">
|
||||||
{ resetPasswordJsx }
|
{ resetPasswordJsx }
|
||||||
</AuthBody>
|
</AuthBody>
|
||||||
</AuthPage>
|
</AuthPage>
|
||||||
|
|
|
@ -18,11 +18,12 @@ import classNames from "classnames";
|
||||||
import React, { PropsWithChildren } from 'react';
|
import React, { PropsWithChildren } from 'react';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
className?: string;
|
||||||
flex?: boolean;
|
flex?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function AuthBody({ flex, children }: PropsWithChildren<Props>) {
|
export default function AuthBody({ flex, className, children }: PropsWithChildren<Props>) {
|
||||||
return <main className={classNames("mx_AuthBody", { "mx_AuthBody_flex": flex })}>
|
return <main className={classNames("mx_AuthBody", className, { "mx_AuthBody_flex": flex })}>
|
||||||
{ children }
|
{ children }
|
||||||
</main>;
|
</main>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue