/
Ozz
/
my-app
Обзор
Документация
Войти
/
Ozz
/
my-app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/components/Player/Player.css
342 строки
5 KB
Ozz
feat: Автоматизация развертывания веб-приложения в Yandex Cloud через CI/CD
24 июн 2026, 14:07
24 июн 2026, 14:07
17520b2
Код
Авторство
О чём код?
.player { position: fixed; bottom: 0; left: 0; right: 0; background: var(--nav-bg); color: var(--nav-text); z-index: 1000; transition: all 0.3s ease; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); border-top: 1px solid var(--border-color); } .player-mini { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; cursor: pointer; transition: background 0.3s ease; } .player-mini:hover { background: rgba(255, 255, 255, 0.1); } .mini-info { display: flex; align-items: center; gap: 1rem; flex: 1; } .mini-cover { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; } .mini-cover-placeholder { width: 40px; height: 40px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; } .mini-text { min-width: 0; } .mini-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mini-artist { font-size: 0.85rem; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mini-controls { display: flex; gap: 0.5rem; } .control-btn { background: none; border: none; color: white; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.3s ease; position: relative; } .control-btn:hover { background: rgba(255, 255, 255, 0.2); } .control-btn.active { color: #ffd700; } .expand-btn { background: none; border: none; color: white; cursor: pointer; padding: 0.5rem; opacity: 0.7; transition: all 0.3s ease; } .expand-btn:hover { opacity: 1; } /* Expanded Player */ .player-expanded { padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); max-height: 80vh; overflow-y: auto; } .player-cover { width: 250px; height: 250px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); } .player-cover img { width: 100%; height: 100%; object-fit: cover; } .cover-placeholder { width: 100%; height: 100%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; font-size: 4rem; } .player-info { text-align: center; } .player-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; } .player-info p { opacity: 0.8; margin-bottom: 0.25rem; } .album-name { font-size: 0.9rem; opacity: 0.6; font-style: italic; } .progress-section { display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 600px; } .time { font-size: 0.85rem; min-width: 45px; opacity: 0.8; } .progress-bar { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.2); border-radius: 3px; cursor: pointer; position: relative; } .progress-fill { height: 100%; background: white; border-radius: 3px; transition: width 0.1s linear; } .progress-handle { width: 14px; height: 14px; background: white; border-radius: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.2s ease; } .progress-bar:hover .progress-handle { opacity: 1; } .player-controls { display: flex; align-items: center; gap: 1rem; } .play-btn { width: 56px; height: 56px; font-size: 1.5rem; background: white; color: #667eea; } .play-btn:hover { background: rgba(255, 255, 255, 0.9); transform: scale(1.05); } .repeat-one { position: absolute; top: 2px; right: 2px; font-size: 0.6rem; font-weight: bold; } .volume-section { display: flex; align-items: center; gap: 0.5rem; width: 100%; max-width: 300px; } .volume-slider { flex: 1; height: 4px; -webkit-appearance: none; appearance: none; background: rgba(255, 255, 255, 0.2); border-radius: 2px; outline: none; cursor: pointer; } .volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; background: white; border-radius: 50%; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } .volume-slider::-moz-range-thumb { width: 14px; height: 14px; background: white; border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } @media (max-width: 768px) { .player-cover { width: 200px; height: 200px; } .player-expanded { padding: 1.5rem; } .player-info h3 { font-size: 1.2rem; } } @media (max-width: 480px) { .player-mini { padding: 0.5rem 1rem; } .mini-title { font-size: 0.9rem; } .player-cover { width: 150px; height: 150px; } } .player-error { background: rgba(255, 68, 68, 0.2); border: 1px solid #ff4444; border-radius: 8px; padding: 0.5rem 1rem; margin: 0.5rem 0; display: flex; align-items: center; justify-content: space-between; color: #ff6b6b; } .player-error p { margin: 0; font-size: 0.9rem; } .player-error button { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 1.2rem; padding: 0.25rem; } .player-error button:hover { color: #ff4444; }