/
RoditelevVV
/
web-static-labs
Обзор
Документация
Войти
/
RoditelevVV
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab5/task7/styles.css
501 строка
9 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: 20px; 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: 8px; } .subtitle { font-size: 1.1rem; opacity: 0.9; } .main-content { padding: 30px; } .settings-section { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); margin-bottom: 30px; } .settings-section h2 { color: #2c3e50; margin-bottom: 20px; font-size: 1.5rem; text-align: center; } .settings-form { display: flex; flex-direction: column; gap: 20px; } .input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .input-field { display: flex; flex-direction: column; gap: 8px; } .input-field label { font-weight: 600; color: #2c3e50; font-size: 0.95rem; } .input-field input { padding: 12px 15px; border: 2px solid #ddd; border-radius: 8px; font-size: 1.1rem; transition: all 0.3s ease; } .input-field input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .input-field input:invalid { border-color: #e74c3c; } .create-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: center; min-width: 200px; } .create-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 176, 155, 0.3); } .create-btn:active { transform: translateY(0); } .table-section { background: white; padding: 25px; border-radius: 15px; 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; flex-wrap: wrap; gap: 15px; } .section-header h2 { color: #2c3e50; font-size: 1.5rem; } .table-info { background: #34495e; color: white; padding: 8px 15px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; } .table-container { position: relative; min-height: 200px; overflow-x: auto; } .multiplication-table { display: inline-block; border: 2px solid #34495e; border-radius: 8px; overflow: hidden; background: white; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); } .table-row { display: flex; } .table-cell { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border: 1px solid #e9ecef; font-size: 1.1rem; font-weight: 600; color: #2c3e50; cursor: pointer; transition: all 0.3s ease; position: relative; } .table-cell.header-cell { background: linear-gradient(135deg, #667eea, #764ba2); color: white; font-weight: 700; cursor: default; } .table-cell.header-cell:hover { background: linear-gradient(135deg, #667eea, #764ba2); transform: none; } .table-cell:not(.header-cell):hover { background: #e3f2fd; border-color: #667eea; transform: scale(1.05); z-index: 1; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); } .table-row:nth-child(even) .table-cell:not(.header-cell) { background: #f8f9fa; } .table-row:nth-child(odd) .table-cell:not(.header-cell) { background: white; } .table-cell:not(.header-cell):hover { background: #e3f2fd !important; } .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; } .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); animation: fadeIn 0.3s ease; } .modal-content { background: white; margin: 10% auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); width: 90%; max-width: 400px; animation: slideIn 0.3s ease; position: relative; } .modal-header { background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 20px 25px; border-radius: 15px 15px 0 0; display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { margin: 0; font-size: 1.3rem; } .close-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s ease; } .close-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); } .modal-body { padding: 25px; } .cell-info { display: flex; flex-direction: column; gap: 15px; } .info-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #ecf0f1; } .info-item:last-child { border-bottom: none; } .info-item.result { background: linear-gradient(135deg, #00b09b, #96c93d); color: white; padding: 15px 20px; border-radius: 8px; margin-top: 10px; border: none; } .info-label { font-weight: 600; color: #2c3e50; } .info-item.result .info-label { color: white; } .info-value { font-weight: 600; color: #667eea; font-family: 'Courier New', monospace; font-size: 1.1rem; } .info-item.result .info-value { color: white; font-size: 1.3rem; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideIn { from { opacity: 0; transform: translateY(-50px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes tableAppear { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .multiplication-table { animation: tableAppear 0.5s ease; } @media (max-width: 1024px) { .table-cell { width: 50px; height: 50px; font-size: 1rem; } } @media (max-width: 768px) { .container { margin: 10px; border-radius: 15px; } .header { padding: 20px; } .header h1 { font-size: 2rem; } .main-content { padding: 20px; } .input-group { grid-template-columns: 1fr; gap: 15px; } .section-header { flex-direction: column; align-items: flex-start; } .table-info { align-self: flex-end; } .table-cell { width: 45px; height: 45px; font-size: 0.9rem; } .modal-content { margin: 5% auto; width: 95%; } } @media (max-width: 480px) { .table-cell { width: 40px; height: 40px; font-size: 0.8rem; } .settings-section, .table-section { padding: 20px 15px; } .create-btn { width: 100%; min-width: auto; } .modal-body { padding: 20px; } .info-item { flex-direction: column; align-items: flex-start; gap: 5px; } .info-value { align-self: flex-end; } } @media (max-width: 600px) { .table-cell { width: 35px; height: 35px; font-size: 0.8rem; } } .table-container::-webkit-scrollbar { height: 8px; } .table-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } .table-container::-webkit-scrollbar-thumb { background: #667eea; border-radius: 4px; } .table-container::-webkit-scrollbar-thumb:hover { background: #5a6fd8; }