/
Dmitry_SH79
/
FeelWordGap
Обзор
Документация
Войти
/
Dmitry_SH79
/
FeelWordGap
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
frontend/src/app/app.component.css
216 строк
4 KB
Dmitry_SH79
оно работает
21 май 2026, 17:20
21 май 2026, 17:20
c2626e7
Код
Авторство
О чём код?
:host { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; display: block; max-width: 600px; /* Сузили до размера сетки */ margin: 0 auto; padding: 20px; } .game-header { display: flex; justify-content: space-between; align-items: center; background-color: #f8f9fa; padding: 15px 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); margin-bottom: 25px; } .user-profile { display: flex; align-items: center; gap: 8px; font-weight: bold; } .category-selector select { padding: 6px 12px; font-size: 14px; border-radius: 4px; border: 1px solid #ccc; margin-left: 8px; cursor: pointer; } .stat-item { font-size: 15px; } .game-container { min-height: 350px; /* Немного уменьшили минимальную высоту для сетки 6х6 */ display: flex; justify-content: center; align-items: center; border: 2px solid #dee2e6; border-radius: 12px; background-color: #ffffff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); padding: 15px; } /* Стилизация сетки */ .field-grid { display: flex; flex-direction: column; gap: 4px; background-color: #e9ecef; padding: 6px; border-radius: 8px; } .grid-row { display: flex; gap: 4px; } .grid-cell { width: 45px; height: 45px; font-size: 18px; font-weight: bold; color: #495057; background-color: #ffffff; border: none; border-radius: 4px; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.15s ease; user-select: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); } .grid-cell:hover { background-color: #e8f4fd; color: #007bff; transform: scale(1.05); } /* Статус 1: Буква выделена пользователем прямо сейчас */ .grid-cell.selected { background-color: #007bff !important; color: #ffffff !important; } /* Статус 2: Слово успешно разгадано */ .grid-cell.guessed { background-color: #28a745 !important; color: #ffffff !important; cursor: default; pointer-events: none; /* Полностью блокирует любые события мыши на клетке */ box-shadow: none; transform: none !important; } .welcome-message, .placeholder-grid { color: #6c757d; font-size: 16px; text-align: center; } .game-layout { display: flex; gap: 30px; align-items: flex-start; } .words-sidebar { min-width: 200px; background-color: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #dee2e6; display: flex; flex-direction: column; gap: 12px; } .words-list { list-style: none; padding: 0; margin: 15px 0; } .words-list li { padding: 6px 10px; margin-bottom: 6px; background-color: #ffffff; border-radius: 4px; font-weight: bold; color: #495057; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: all 0.2s ease; } /* Стиль для уже найденного слова в списке */ .words-list li.found { background-color: #d4edda; color: #155724; text-decoration: line-through; opacity: 0.7; } .score-counter { font-size: 15px; color: #495057; text-align: center; border-bottom: 1px solid #dee2e6; padding-bottom: 8px; margin: 0; } .spoiler-link { background: none; border: none; color: #007bff; text-decoration: underline; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; text-align: center; transition: color 0.15s ease; } .spoiler-link:hover { color: #0056b3; } .sidebar-content h3 { margin-top: 10px; margin-bottom: 10px; font-size: 14px; color: #6c757d; text-transform: uppercase; letter-spacing: 0.5px; } .words-list { list-style: none; padding: 0; margin: 0; } .words-list li { padding: 6px 10px; margin-bottom: 6px; background-color: #ffffff; border-radius: 4px; font-weight: bold; color: #495057; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); font-size: 14px; } .words-list li.found { background-color: #d4edda; color: #155724; text-decoration: line-through; opacity: 0.6; }