/
2FIVE
/
Laba2_Mobile_app
Обзор
Документация
Войти
/
2FIVE
/
Laba2_Mobile_app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
styles.css
597 строк
11 KB
2FIVE192
Add files via upload
13 дек 2025, 09:56
Не верифицирован
13 дек 2025, 09:56
77315a1
Код
Авторство
О чём код?
:root { --primary-color: #4f46e5; --primary-dark: #4338ca; --secondary-color: #f3f4f6; --danger-color: #ef4444; --danger-dark: #dc2626; --success-color: #10b981; --text-color: #1f2937; --text-light: #6b7280; --border-color: #d1d5db; --background-color: #ffffff; --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --transition: all 0.3s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-color); background-color: #f9fafb; min-height: 100vh; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; min-height: 100vh; } header { text-align: center; margin-bottom: 40px; padding: 30px 20px; background: linear-gradient(135deg, var(--primary-color), #6366f1); color: white; border-radius: 12px; box-shadow: var(--card-shadow); } header h1 { font-size: 2.2rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; } .subtitle { font-size: 1.1rem; opacity: 0.9; margin-bottom: 20px; } .install-btn-container { margin-top: 20px 0; display: flex; justify-content: center; width: 100%; } .install-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; background: linear-gradient(135deg, #4f46e5, #7c73ff); color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); margin: 0 auto; } /* Специальные стили для Яндекс.Браузера */ @media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) { .install-btn-container { justify-content: center !important; text-align: center !important; } .install-btn { margin-left: auto !important; margin-right: auto !important; display: flex !important; } } .install-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); } main { display: grid; grid-template-columns: 1fr; gap: 30px; flex: 1; } @media (min-width: 992px) { main { grid-template-columns: 1fr 1fr; } .password-list { grid-column: span 2; } } .password-generator, .add-password, .password-list { background-color: var(--background-color); border-radius: 12px; padding: 25px; box-shadow: var(--card-shadow); } h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--primary-color); display: flex; align-items: center; gap: 10px; } h2 i { font-size: 1.3rem; width: 24px; text-align: center; } /* Генератор паролей */ .generator-controls { display: flex; flex-direction: column; gap: 20px; } .control-group { display: flex; flex-direction: column; gap: 12px; } .control-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; } /* слайдер */ input[type="range"] { width: 100%; height: 8px; border-radius: 4px; background: var(--secondary-color); outline: none; /* -webkit-appearance: none; */ } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-color); cursor: pointer; } input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary-color); cursor: pointer; border: none; } #lengthValue { font-weight: bold; color: var(--primary-color); min-width: 20px; display: inline-block; } /* Результат генерации */ .generator-result { display: flex; flex-direction: column; gap: 15px; } @media (min-width: 768px) { .generator-result { flex-direction: row; align-items: center; } } #generatedPassword { flex: 1; padding: 12px 15px; border: 2px solid var(--border-color); border-radius: 8px; font-family: monospace; font-size: 1.1rem; background-color: #f8fafc; width: 100%; } /* Кнопки */ .btn-primary, .btn-secondary, .btn-danger, .btn-small { padding: 12px 20px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; } .btn-primary { background-color: var(--primary-color); color: white; } .btn-primary:hover { background-color: var(--primary-dark); } .btn-secondary { background-color: var(--secondary-color); color: var(--text-color); } .btn-secondary:hover { background-color: #e5e7eb; } .btn-danger { background-color: var(--danger-color); color: white; } .btn-danger:hover { background-color: var(--danger-dark); } .btn-small { padding: 8px 12px; font-size: 0.9rem; } /* Форма */ .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; } .form-group input, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid var(--border-color); border-radius: 8px; font-size: 1rem; transition: var(--transition); } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); } .password-input-group { flex: 1; min-width: 300px; position: relative; display: flex; gap: 10px; } .password-input-group input { flex: 1; padding-right: 45px; } .toggle-password { position: absolute; left: 185px; top: 0; height: 100%; width: 45px; background: transparent; border: none; color: var(--text-light); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; } /* Список паролей */ .list-controls { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; } #searchInput { flex: 1; min-width: 200px; padding: 12px 15px; border: 2px solid var(--border-color); border-radius: 8px; } .passwords-container { display: flex; flex-direction: column; gap: 15px; min-height: 200px; } .password-item { background-color: var(--secondary-color); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 15px; transition: var(--transition); border-left: 4px solid var(--primary-color); } .password-item:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); } .password-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .password-title { font-weight: 600; font-size: 1.1rem; color: var(--primary-color); word-break: break-all; } .password-actions { display: flex; gap: 10px; } .password-details { display: grid; grid-template-columns: 1fr; gap: 10px; } @media (min-width: 768px) { .password-details { grid-template-columns: 1fr 1fr; } } .detail-item { display: flex; flex-direction: column; gap: 5px; } .detail-label { font-size: 0.9rem; color: var(--text-light); } .detail-value { font-weight: 500; word-break: break-all; } .password-value { font-family: monospace; font-size: 1.1rem; background-color: rgba(0, 0, 0, 0.05); padding: 8px 12px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; } .copy-btn { background: none; border: none; color: var(--primary-color); cursor: pointer; font-size: 1.2rem; padding: 5px; display: flex; align-items: center; gap: 5px; } .copy-btn i { font-size: 1rem; } .empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); } .empty-state i { font-size: 3rem; margin-bottom: 20px; color: var(--border-color); } /* Футер */ footer { text-align: center; margin-top: 50px; padding: 20px; color: var(--text-light); font-size: 0.9rem; border-top: 1px solid var(--border-color); } .app-version { margin-top: 10px; font-size: 0.8rem; opacity: 0.7; } /* Модальное окно */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; } .modal-content { background-color: white; padding: 30px; border-radius: 12px; max-width: 500px; width: 90%; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); } .modal-actions { display: flex; gap: 15px; margin-top: 25px; justify-content: flex-end; } /* Уведомления */ .notification { position: fixed; bottom: 20px; right: 20px; padding: 15px 25px; border-radius: 8px; color: white; font-weight: 500; z-index: 1001; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); transform: translateY(100px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; max-width: 300px; } .notification.show { transform: translateY(0); opacity: 1; } .notification.success { background-color: var(--success-color); } .notification.error { background-color: var(--danger-color); } .notification.info { background-color: var(--primary-color); } /* Чекбоксы и радио кнопки */ input[type="checkbox"] { width: 18px; height: 18px; margin-right: 8px; cursor: pointer; } /* Адаптивность для мобильных */ @media (max-width: 768px) { .container { padding: 10px; } header h1 { font-size: 1.8rem; } .password-generator, .add-password, .password-list { padding: 20px; } h2 { font-size: 1.3rem; } .list-controls { flex-direction: column; } #searchInput { min-width: 100%; } .modal-content { padding: 20px; } .modal-actions { flex-direction: column; } .btn-primary, .btn-secondary, .btn-danger { width: 100%; justify-content: center; } }