Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR] CSS for CustomRecurrenceModal.tsx #3009

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
62 changes: 62 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3485,6 +3485,68 @@ 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%;
}

.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);
}
hustlernik marked this conversation as resolved.
Show resolved Hide resolved

.recurrenceRuleSubmitBtn {
margin-left: 82%;
padding: 7px 15px;
}
hustlernik marked this conversation as resolved.
Show resolved Hide resolved

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