Files
play-life/play-life-web/src/components/TaskDetail.css.bak
poignatov ba0f34c91b
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m29s
4.2.0: Драфты задач и автовыполнение
2026-01-28 20:19:53 +03:00

320 lines
5.2 KiB
CSS

/* Модальное окно */
.task-detail-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1700;
padding: 1rem;
}
.task-detail-modal {
background: white;
border-radius: 0.5rem;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
max-width: 400px;
width: 100%;
max-height: 90vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.task-detail-modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.5rem;
}
.task-detail-close-button {
background: none;
border: none;
font-size: 1.5rem;
color: #6b7280;
cursor: pointer;
padding: 0;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.25rem;
transition: all 0.2s;
}
.task-detail-close-button:hover {
background: #f3f4f6;
color: #1f2937;
}
.task-detail-modal-content {
padding: 0 1.5rem 1.5rem 1.5rem;
overflow-y: auto;
flex: 1;
}
.task-detail-title {
font-size: 1.25rem;
font-weight: 600;
color: #1f2937;
margin: 0;
}
.task-reward-message {
margin-bottom: 2rem;
padding: 1rem;
background: #f9fafb;
border-radius: 0.375rem;
border-left: 3px solid #6366f1;
}
.reward-message-text {
color: #374151;
line-height: 1.6;
}
.reward-message-text strong {
color: #1f2937;
font-weight: 600;
}
.task-subtasks {
margin-bottom: 1rem;
}
.subtasks-title {
font-size: 1rem;
font-weight: 600;
color: #1f2937;
margin: 0 0 1rem 0;
}
.subtask-item {
margin-bottom: 0.5rem;
}
.subtask-checkbox-label {
display: flex;
align-items: center;
gap: 0.75rem;
cursor: pointer;
}
.subtask-checkbox {
flex-shrink: 0;
width: 1.25rem;
height: 1.25rem;
cursor: pointer;
}
.subtask-content {
flex: 1;
}
.subtask-name {
font-weight: 500;
color: #1f2937;
}
.subtask-reward-message {
margin-top: 0.5rem;
padding: 0.75rem;
background: white;
border-radius: 0.25rem;
}
.progression-section {
margin-bottom: 1.5rem;
}
.progression-label {
display: block;
font-size: 0.875rem;
font-weight: 600;
color: #374151;
margin-bottom: 0.5rem;
}
.progression-input {
width: 100%;
padding: 0.75rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
font-size: 1rem;
box-sizing: border-box;
}
.progression-input:focus {
outline: none;
border-color: #6366f1;
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.task-detail-divider {
height: 1px;
background: #e5e7eb;
margin: 1.5rem 0;
}
.telegram-message-preview {
margin-bottom: 1.5rem;
padding: 1rem;
background: #f9fafb;
border-radius: 0.375rem;
border-left: 3px solid #6366f1;
}
.telegram-message-label {
font-size: 0.875rem;
font-weight: 600;
color: #374151;
margin-bottom: 0.5rem;
}
.telegram-message-text {
color: #1f2937;
line-height: 1.6;
white-space: pre-wrap;
}
.telegram-message-text strong {
font-weight: 600;
color: #1f2937;
}
.task-actions-section {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.task-actions-buttons {
display: flex;
gap: 0.75rem;
align-items: center;
}
.complete-button {
flex: 1;
padding: 0.75rem 1.5rem;
background: linear-gradient(to right, #6366f1, #8b5cf6);
color: white;
border: none;
border-radius: 0.375rem;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.complete-button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.complete-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.close-button-outline {
padding: 0.75rem;
background: transparent;
color: #6366f1;
border: 2px solid #6366f1;
border-radius: 0.375rem;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
min-width: 2.75rem;
height: 2.75rem;
}
.close-button-outline:hover:not(:disabled) {
transform: translateY(-1px);
background: rgba(99, 102, 241, 0.1);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.close-button-outline:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.next-task-date-info {
font-size: 0.875rem;
color: #6b7280;
text-align: left;
margin-top: -0.125rem;
margin-bottom: -0.5rem;
}
.loading,
.error-message {
text-align: center;
padding: 3rem 1rem;
color: #6b7280;
}
.error-message {
color: #ef4444;
}
.task-wishlist-link {
margin-bottom: 1.5rem;
padding: 0.75rem;
background-color: #f0f9ff;
border-radius: 6px;
border: 1px solid #bae6fd;
}
.task-wishlist-link-info {
display: flex;
align-items: center;
gap: 0.5rem;
}
.task-wishlist-link-info svg {
color: #6366f1;
flex-shrink: 0;
}
.task-wishlist-link-label {
font-size: 0.9rem;
color: #374151;
font-weight: 500;
}
.task-wishlist-link-button {
background: none;
border: none;
color: #6366f1;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
padding: 0.25rem 0.5rem;
border-radius: 4px;
transition: all 0.2s;
text-decoration: underline;
margin-left: auto;
}
.task-wishlist-link-button:hover {
background-color: rgba(99, 102, 241, 0.1);
text-decoration: none;
}