Skip to content
Snippets Groups Projects
Unverified Commit e33f60de authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Fix vertical center (#4906)

* Fix vertical center

* logged in fixes
parent 37aae641
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 35 deletions
......@@ -26,40 +26,22 @@
}
.vertical-center {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
height: 75%;
@include media-breakpoint-down(xxl) {
height: 85%;
}
min-height: calc(100vh - $header-height - $footer-height - $footer-buffer-height);
display: flex;
align-items: stretch;
flex-direction: column;
justify-content: center;
}
.no-header-height {
min-height: calc(100vh - $footer-height - $footer-buffer-height);
.vertical-buffer {
padding-top: 10%;
@include media-breakpoint-down(xxl) {
height: 5%;
}
}
}
.regular-height {
min-height: calc(100vh - $header-height - $footer-height - $footer-buffer-height);
.vertical-buffer {
padding-top: 5%;
@include media-breakpoint-down(xxl) {
height: 3%;
}
.vertical-center {
min-height: calc(100vh - $header-height - $header-height - $footer-height - $footer-buffer-height);
}
}
......
......@@ -36,7 +36,7 @@ export default function CantCreateRoom() {
const parsedUrl = meetingUrl.match(regex);
return (
<div className="vertical-buffer">
<div className="vertical-center">
<Card className="col-md-8 mx-auto border-0 card-shadow">
<div className="p-5 pb-4">
<h2><strong>{t('homepage.enter_meeting_url')}</strong></h2>
......
......@@ -32,7 +32,7 @@ export default function RequireAuthentication({ path }) {
<div className="text-center pb-4">
<Logo />
</div>
<Card className="col-xl-4 col-lg-5 col-md-7 col-8 mx-auto p-0 border-0 card-shadow text-center">
<Card className="col-xl-6 col-lg-7 col-md-9 col-10 mx-auto p-0 border-0 card-shadow text-center">
<Card.Body className="pt-4 px-5">
<p className="mb-0">{ t('room.settings.require_signed_in_message') }</p>
</Card.Body>
......
......@@ -162,7 +162,7 @@ export default function RoomJoin() {
);
return (
<div className="vertical-buffer">
<div className="vertical-center">
<div className="text-center pb-4">
<Logo />
</div>
......
......@@ -28,7 +28,7 @@ export default function RoomJoinPlaceholder() {
const { t } = useTranslation();
return (
<div className="vertical-buffer">
<div className="vertical-center">
<div className="text-center pb-4">
<Logo />
</div>
......
......@@ -32,7 +32,7 @@ export default function VerifyAccount() {
const { t } = useTranslation();
return (
<div className="vertical-buffer">
<div className="vertical-center">
<div className="text-center pb-4">
<Logo />
</div>
......
......@@ -31,7 +31,7 @@ export default function SignIn() {
<div className="text-center pb-4">
<Logo />
</div>
<Card className="col-xl-3 col-lg-4 col-md-6 col-8 mx-auto p-4 border-0 card-shadow">
<Card className="col-xl-5 col-lg-6 col-md-8 col-10 mx-auto p-4 border-0 card-shadow">
<Card.Title className="text-center pb-2"> { t('authentication.sign_in') } </Card.Title>
<SigninForm />
{ registrationMethod !== 'invite' && (
......
......@@ -39,7 +39,7 @@ export default function Signup() {
<div className="text-center pb-4">
<Logo />
</div>
<Card className="col-xl-3 col-lg-4 col-md-6 col-8 mx-auto p-4 border-0 card-shadow">
<Card className="col-xl-5 col-lg-6 col-md-8 col-10 mx-auto p-4 border-0 card-shadow">
<Card.Title className="text-center pb-2"> { t('authentication.create_an_account') } </Card.Title>
<SignupForm />
<span className="text-center text-muted small"> { t('authentication.already_have_account') }
......
......@@ -29,7 +29,7 @@ export default function ForgetPassword() {
<div className="text-center pb-4">
<Logo />
</div>
<Card className="col-xl-3 col-lg-4 col-md-6 col-8 mx-auto p-4 border-0 card-shadow">
<Card className="col-xl-4 col-lg-6 col-md-8 col-10 mx-auto p-4 border-0 card-shadow">
<Card.Title className="text-center pb-2"> { t('user.account.reset_password')} </Card.Title>
<ForgetPwdForm />
<span className="text-center text-muted small"> { t('or') }
......
......@@ -36,7 +36,7 @@ export default function ResetPassword() {
<div className="text-center pb-4">
<Logo />
</div>
<Card className="col-xl-3 col-lg-4 col-md-6 col-8 mx-auto p-4 border-0 card-shadow">
<Card className="col-xl-5 col-lg-6 col-md-8 col-10 mx-auto p-4 border-0 card-shadow">
<ResetPwdForm token={token} />
</Card>
</div>
......
......@@ -25,7 +25,7 @@ export default function PendingRegistration() {
const { t } = useTranslation();
return (
<div className="vertical-buffer">
<div className="vertical-center">
<div className="text-center pb-4">
<Logo />
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment