/
MashkoA
/
web-nodejs
Обзор
Документация
Войти
/
MashkoA
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
public/lab7/task2/styles.css
326 строк
6 KB
umarovazizjohn
l7
09 апр 2026, 10:12
09 апр 2026, 10:12
48a32d1
Код
Авторство
О чём код?
* { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; box-sizing: border-box; } body { background-color: #141526; color: white; min-height: 100vh; padding: 2em 1em; display: flex; flex-direction: column; align-items: center; } h1 { text-align: center; margin-bottom: 1em; color: #e4ebff; font-size: clamp(1.5rem, 3vw, 2.2rem); text-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.3); } .content-container { background: #4965c8; border-radius: 1.25em; padding: 2em 2.5em; box-shadow: 0 0.5em 1.5625em rgba(0, 0, 0, 0.3); max-width: 80em; width: 100%; border: 0.125em solid #7c85d6; text-align: center; } /* Стили для формы */ .student-form { text-align: left; max-width: 600px; margin: 0 auto; } .form-section { background-color: rgba(43, 53, 103, 0.85); border: 0.125em solid #7c85d6; border-radius: 0.9375em; padding: 1.5em; margin-bottom: 1.5em; } .form-section h3 { color: #e4ebff; margin-bottom: 1em; font-size: 1.2rem; text-align: center; } .input-group { display: flex; flex-direction: column; gap: 1em; } .form-label { display: flex; flex-direction: column; gap: 0.5em; color: #e4ebff; font-weight: 500; } .form-input, .form-select { background-color: rgba(43, 53, 103, 0.85); border: 0.125em solid #7c85d6; border-radius: 0.9375em; padding: 0.75em 1em; color: white; font-size: 1rem; transition: all 0.3s ease; box-shadow: 0 0.25em 0.625em rgba(60, 70, 150, 0.5); } .form-input:focus, .form-select:focus { outline: none; border-color: #c0d1ff; box-shadow: 0 0 0 0.1875em rgba(192, 209, 255, 0.3); } .form-select { cursor: pointer; } /* Стили для радиокнопок */ .radio-group { display: flex; align-items: center; gap: 1.5em; margin-bottom: 1em; flex-wrap: wrap; } .radio-label { color: #e4ebff; font-weight: 500; margin-right: 0.5em; } .radio-option { display: flex; align-items: center; gap: 0.5em; cursor: pointer; color: #e4ebff; transition: all 0.3s ease; } .radio-option:hover { color: #c0d1ff; } .radio-option input { display: none; } .radio-custom { width: 1.2em; height: 1.2em; border: 0.125em solid #7c85d6; border-radius: 50%; position: relative; transition: all 0.3s ease; } .radio-option input:checked + .radio-custom { border-color: #4caf50; background-color: #4caf50; } .radio-option input:checked + .radio-custom::after { content: ''; width: 0.6em; height: 0.6em; background: white; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } /* Стили для чекбокса */ .checkbox-option { display: flex; align-items: center; gap: 0.5em; cursor: pointer; color: #e4ebff; margin-bottom: 1em; transition: all 0.3s ease; } .checkbox-option:hover { color: #c0d1ff; } .checkbox-option input { display: none; } .checkbox-custom { width: 1.2em; height: 1.2em; border: 0.125em solid #7c85d6; border-radius: 0.25em; position: relative; transition: all 0.3s ease; } .checkbox-option input:checked + .checkbox-custom { border-color: #4caf50; background-color: #4caf50; } .checkbox-option input:checked + .checkbox-custom::after { content: '✓'; color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 0.9em; font-weight: bold; } .form-actions { display: flex; justify-content: center; gap: 1em; margin-top: 2em; flex-wrap: wrap; } .btn { padding: 0.75em 1.5em; border: none; border-radius: 0.9375em; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; min-width: 140px; } .btn-save { background: #45a049; color: white; box-shadow: 0 0.25em 0.625em rgba(76, 175, 80, 0.4); } .btn-save:hover { background:#4cae4c; transform: translateY(-0.125em); box-shadow: 0 0.375em 0.75em rgba(76, 175, 80, 0.6); } .btn-submit { background: #2d8be9; color: white; box-shadow: 0 0.25em 0.625em rgba(33, 150, 243, 0.4); } .btn-submit:hover { background: #1e88e5; transform: translateY(-0.125em); box-shadow: 0 0.375em 0.75em rgba(33, 150, 243, 0.6); } .hidden { display: none; } .error { color: #ff6b6b; background-color: rgba(255, 107, 107, 0.1); border: 0.0625em solid #ff6b6b; border-radius: 0.625em; padding: 1em; text-align: center; font-weight: 500; margin-bottom: 1em; } .data-table-container { text-align: left; } .data-table-container h2 { color: #e4ebff; margin-bottom: 1em; text-align: center; font-size: 1.5rem; } .data-table { width: 100%; border-collapse: collapse; background-color: rgba(43, 53, 103, 0.85); border-radius: 0.9375em; overflow: hidden; box-shadow: 0 0.25em 0.625em rgba(0, 0, 0, 0.3); } .data-table th, .data-table td { padding: 0.75em 1em; text-align: left; border-bottom: 0.0625em solid #7c85d6; } .data-table th { background-color: #2b3567; color: #e4ebff; font-weight: 600; width: 30%; } .data-table td { color: white; background-color: rgba(43, 53, 103, 0.6); } .data-table td.source { width: 20%; color: #c0d1ff; font-style: italic; font-size: 0.9em; } .data-set-header th { background-color: #3a4580; color: #e4ebff; font-size: 1.1em; text-align: center; padding: 1em; border-bottom: 0.125em solid #7c85d6; } .separator td { background-color: #2b3567; height: 1.5em; border-bottom: 0.125em solid #7c85d6; } .no-data { text-align: center; color: #c0d1ff; font-style: italic; padding: 2em; } .error-row td { background-color: rgba(255, 107, 107, 0.1); color: #ff6b6b; text-align: center; font-style: italic; }