Skip to content

Commit

Permalink
Refactor CSS files in src/screens/ForgotPassword (fixes #2506) (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
devender18 authored Dec 26, 2024
1 parent d99fc8b commit 47f57a9
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 73 deletions.
71 changes: 0 additions & 71 deletions src/screens/ForgotPassword/ForgotPassword.module.css

This file was deleted.

4 changes: 2 additions & 2 deletions src/screens/ForgotPassword/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Form } from 'react-bootstrap';
import Button from 'react-bootstrap/Button';
import { useTranslation } from 'react-i18next';
import { errorHandler } from 'utils/errorHandler';
import styles from './ForgotPassword.module.css';
import styles from 'style/app.module.css';
import useLocalStorage from 'utils/useLocalstorage';

/**
Expand Down Expand Up @@ -162,7 +162,7 @@ const ForgotPassword = (): JSX.Element => {
<div className={styles.pageWrapper}>
<div className="row container-fluid d-flex justify-content-center items-center">
<div className="col-12 col-lg-4 px-0">
<div className={styles.cardBody}>
<div className={styles.cardTemplate}>
<div className={styles.keyWrapper}>
<div className={styles.themeOverlay} />
<KeyLogo className={styles.keyLogo} fill="var(--bs-primary)" />
Expand Down
72 changes: 72 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,50 @@ form > input {
margin-bottom: 20px;
}

.pageWrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}

.cardTemplate {
padding: 2rem;
background-color: #fff;
border-radius: 0.8rem;
border: 1px solid var(--bs-gray-200);
}

.keyWrapper {
height: 72px;
width: 72px;
transform: rotate(180deg);
transform-origin: center;
position: relative;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
margin: 1rem auto;
}

.keyWrapper .themeOverlay {
position: absolute;
background-color: var(--bs-primary);
height: 100%;
width: 100%;
opacity: var(--theme-overlay-opacity, 0.15);
}

.keyWrapper .keyLogo {
height: 42px;
width: 42px;
-webkit-animation: zoomIn 0.3s ease-in-out;
animation: zoomIn 0.3s ease-in-out;
}

@media (max-width: 1020px) {
.btnsContainerOrgPost {
flex-direction: column;
Expand Down Expand Up @@ -1952,3 +1996,31 @@ button[data-testid='createPostBtn'] {
top: 45%;
}
}

@-webkit-keyframes zoomIn {
0% {
opacity: 0;
-webkit-transform: scale(0.5);
transform: scale(0.5);
}

100% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
}

@keyframes zoomIn {
0% {
opacity: 0;
-webkit-transform: scale(0.5);
transform: scale(0.5);
}

100% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
}

0 comments on commit 47f57a9

Please sign in to comment.