Skip to content

Commit

Permalink
Merge branch 'develop-postgres' into issue-2527-gurramkarthiknetha
Browse files Browse the repository at this point in the history
  • Loading branch information
gurramkarthiknetha authored Dec 29, 2024
2 parents 0ed6fdd + 0973ad2 commit c1b0976
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 61 deletions.
59 changes: 0 additions & 59 deletions src/components/RecurrenceOptions/CustomRecurrenceModal.module.css

This file was deleted.

6 changes: 4 additions & 2 deletions src/components/RecurrenceOptions/CustomRecurrenceModal.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';
import { Button, Dropdown, Form, FormControl, Modal } from 'react-bootstrap';
import styles from './CustomRecurrenceModal.module.css';
import styles from '../../style/app.module.css';
import { DatePicker } from '@mui/x-date-pickers';
import {
Days,
Expand Down Expand Up @@ -153,7 +153,9 @@ const CustomRecurrenceModal: React.FC<InterfaceCustomRecurrenceModalProps> = ({
centered
>
<Modal.Header>
<p className={styles.titlemodal}>{t('customRecurrence')}</p>
<p className={styles.titlemodalCustomRecurrenceModal}>
{t('customRecurrence')}
</p>
<Button
variant="danger"
onClick={hideCustomRecurrenceModal}
Expand Down
82 changes: 82 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3485,6 +3485,88 @@ button[data-testid='createPostBtn'] {
}
}

/* CustomRecurrenceModal.tsx */

.titlemodalCustomRecurrenceModal {
color: var(--grey-bg-color-dark);
font-weight: 600;
font-size: 20px;
margin-bottom: 20px;
padding-bottom: 5px;
border-bottom: 3px solid var(--subtle-blue-grey);
width: 65%;
}

.recurrenceRuleNumberInput {
width: 70px;
}

.recurrenceRuleDateBox {
width: 70%;
}

.recurrenceDayButton {
width: 33px;
height: 33px;
border: 1px solid var(--bs-gray);
cursor: pointer;
transition: background-color 0.3s;
display: inline-flex;
justify-content: center;
align-items: center;
margin-right: 0.5rem;
border-radius: 50%;
position: relative;
outline: none;
}

.recurrenceDayButton:focus-visible {
outline: 2px solid var(--bs-primary);
outline-offset: 2px;
}

.recurrenceDayButton:hover {
background-color: var(--bs-gray);
}

.recurrenceDayButton.selected {
background-color: var(--bs-primary);
border-color: var(--bs-primary);
color: var(--bs-white);
}

.recurrenceDayButton span {
color: var(--bs-gray);
padding: 0.25rem;
text-align: center;
}

.recurrenceDayButton:hover span {
color: var(--bs-white);
}

.recurrenceDayButton.selected span {
color: var(--bs-white);
}

.recurrenceRuleSubmitBtn {
display: block;
margin-left: auto;
padding: 7px 15px;
transition: all 0.2s ease;
border-radius: 4px;
}

.recurrenceRuleSubmitBtn:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recurrenceRuleSubmitBtn:focus-visible {
outline: 2px solid var(--bs-primary);
outline-offset: 2px;
}

.attendance-modal .borderRightGreen {
border-right: 1px solid green;
}
Expand Down

0 comments on commit c1b0976

Please sign in to comment.