/
android113
/
react_todo
Обзор
Документация
Войти
/
android113
/
react_todo
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/App.css
162 строки
3 KB
Скороходов Андрей Андреевич
initial commit
08 дек 2025, 15:01
08 дек 2025, 15:01
b4d75a2
Код
Авторство
О чём код?
/* Основной контейнер, центрирует карточку по экрану */ .app-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; } /* Белая карточка приложения */ .card { background: white; width: 100%; max-width: 500px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Мягкая тень */ padding: 30px; display: flex; flex-direction: column; transition: all 0.3s ease; } .header { color: #2c3e50; margin-bottom: 25px; text-align: center; font-size: 1.8rem; font-weight: 700; } /* Группа ввода (инпут + кнопка) */ .input-group { display: flex; gap: 10px; margin-bottom: 30px; } input { flex-grow: 1; padding: 12px 16px; border: 2px solid #e1e8ed; border-radius: 12px; font-size: 1rem; outline: none; transition: border-color 0.2s; } input:focus { border-color: #3498db; /* Голубой при фокусе */ } .add-btn { background: linear-gradient(135deg, #3498db, #2980b9); color: white; border: none; padding: 0 20px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: transform 0.1s; } .add-btn:active { transform: scale(0.96); /* Эффект нажатия */ } /* Список задач */ .todo-list { list-style: none; padding: 0; margin-bottom: 20px; } .todo-item { background: #f8f9fa; margin-bottom: 10px; border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; animation: slideIn 0.3s ease; } .todo-item:hover { background: #f1f3f4; transform: translateY(-2px); } .todo-text { display: flex; align-items: center; cursor: pointer; flex-grow: 1; font-size: 1.05rem; } .check-circle { width: 20px; height: 20px; border: 2px solid #adb5bd; border-radius: 50%; margin-right: 12px; transition: all 0.2s; } /* Состояние выполненной задачи */ .todo-item.completed { background: #e9ecef; } .todo-item.completed .todo-text { text-decoration: line-through; color: #adb5bd; } .todo-item.completed .check-circle { background-color: #27ae60; /* Зеленый круг */ border-color: #27ae60; } .delete-btn { background: transparent; border: none; font-size: 1.2rem; cursor: pointer; opacity: 0; transition: opacity 0.2s; } .todo-item:hover .delete-btn { opacity: 1; /* Показываем кнопку только при наведении */ } .delete-btn:hover { transform: scale(1.1); } .footer { text-align: right; font-size: 0.8rem; color: #999; } .empty-msg { text-align: center; color: #999; font-style: italic; margin: 20px 0; } @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }