Skip to content

Commit

Permalink
[REFACTOR] CSS for CustomRecurrenceModal.tsx (#3009)
Browse files Browse the repository at this point in the history
* refactor css for CustomRecurrenceModal.tsx

* css variable

* Update src/style/app.module.css

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update src/style/app.module.css

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
hustlernik and coderabbitai[bot] authored Dec 28, 2024
1 parent 81c66d9 commit 0973ad2
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 0973ad2

Please sign in to comment.