/
RoditelevVV
/
web-static-labs
Обзор
Документация
Войти
/
RoditelevVV
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab5/task4/styles.css
427 строк
7 KB
karpov
finish lab3, lab4
12 мар 2026, 08:19
12 мар 2026, 08:19
74cd197
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #333; min-height: 100vh; padding: 20px; } .container { max-width: 1200px; margin: 0 auto; background: rgba(255, 255, 255, 0.95); border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); overflow: hidden; } .header { background: linear-gradient(135deg, #2c3e50, #34495e); color: white; padding: 30px; text-align: center; } .header h1 { font-size: 2.5rem; margin-bottom: 10px; } .subtitle { font-size: 1.1rem; opacity: 0.9; } .main-content { padding: 30px; } .add-contact-section { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); margin-bottom: 30px; } .add-contact-section h2 { color: #2c3e50; margin-bottom: 20px; font-size: 1.5rem; } .contact-form { display: flex; flex-direction: column; gap: 20px; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .form-group { display: flex; flex-direction: column; gap: 8px; } .form-group label { font-weight: 600; color: #2c3e50; font-size: 0.9rem; } .form-group input { padding: 12px 15px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; } .form-group input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .form-group input:invalid { border-color: #e74c3c; } .add-btn { padding: 15px 25px; background: linear-gradient(135deg, #00b09b, #96c93d); color: white; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; align-self: flex-start; min-width: 200px; } .add-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3); } .add-btn:active { transform: translateY(0); } .filters-section { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); margin-bottom: 30px; } .filters-section h2 { color: #2c3e50; margin-bottom: 20px; font-size: 1.5rem; } .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; align-items: end; } .filter-group { display: flex; flex-direction: column; gap: 8px; } .filter-group label { font-weight: 600; color: #2c3e50; font-size: 0.9rem; } .filter-group input { padding: 10px 12px; border: 2px solid #ddd; border-radius: 6px; font-size: 0.9rem; transition: all 0.3s ease; width: 100%; } .filter-group input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .filter-buttons { display: flex; gap: 10px; grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; } .filter-btn, .reset-btn { padding: 12px 20px; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; min-width: 140px; } .filter-btn { background: linear-gradient(135deg, #3498db, #2980b9); color: white; } .filter-btn:hover { background: linear-gradient(135deg, #2980b9, #2471a3); transform: translateY(-1px); } .reset-btn { background: linear-gradient(135deg, #95a5a6, #7f8c8d); color: white; } .reset-btn:hover { background: linear-gradient(135deg, #7f8c8d, #707b7c); transform: translateY(-1px); } .contacts-section { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .section-header h2 { color: #2c3e50; font-size: 1.5rem; } .contacts-count { background: #34495e; color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; } .table-container { position: relative; min-height: 200px; } .contacts-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .contacts-table th, .contacts-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #ecf0f1; } .contacts-table th { background: linear-gradient(135deg, #667eea, #764ba2); color: white; font-weight: 600; font-size: 1rem; } .contacts-table tr:nth-child(even) { background-color: #f8f9fa; } .contacts-table tr:hover { background-color: #e3f2fd; } .contacts-table td:last-child { white-space: nowrap; } .action-btn { padding: 6px 12px; border: none; border-radius: 4px; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.3s ease; margin-right: 5px; } .delete-btn { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; } .delete-btn:hover { background: linear-gradient(135deg, #c0392b, #a93226); transform: translateY(-1px); } .empty-state { text-align: center; padding: 60px 20px; color: #7f8c8d; font-size: 1.2rem; background: #f8f9fa; border-radius: 10px; border: 2px dashed #ddd; position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; } .empty-state small { font-size: 0.9rem; opacity: 0.7; margin-top: 10px; } @keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .contact-row { animation: slideIn 0.3s ease-out; } @media (max-width: 1024px) { .filters { grid-template-columns: repeat(2, 1fr); } .filter-buttons { justify-content: center; } } @media (max-width: 768px) { .container { margin: 10px; border-radius: 10px; } .header { padding: 20px; } .header h1 { font-size: 2rem; } .main-content { padding: 20px; } .form-row { grid-template-columns: 1fr; gap: 15px; } .filters { grid-template-columns: 1fr; } .filter-buttons { flex-direction: column; } .filter-btn, .reset-btn { width: 100%; min-width: auto; } .section-header { flex-direction: column; gap: 15px; align-items: flex-start; } .contacts-table { font-size: 0.9rem; } .contacts-table th, .contacts-table td { padding: 10px 12px; } .add-btn { width: 100%; align-self: stretch; } } @media (max-width: 480px) { .contacts-table { display: block; overflow-x: auto; } .action-btn { display: block; width: 100%; margin-bottom: 5px; } .filters-section { padding: 20px 15px; } .filter-group input { font-size: 16px; } }