/
J33K77
/
cdg_practice2
Обзор
Документация
Войти
/
J33K77
/
cdg_practice2
Код
Запросы
2
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
lab.css
336 строк
5 KB
max max
lab5 перекрасил фон в серые цвета и добавил контур для заголовка, чтобы его всегда было видно
15 дек 2025, 17:05
15 дек 2025, 17:05
19fe033
Код
Авторство
О чём код?
* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Times New Roman', Times, serif; line-height: 2; background-color: #000000; color: #fff; scroll-behavior: smooth; } .container { max-width: 1200px; margin: 0 auto; padding: 0 5%; } /* Заголовок */ .header { background-color: #2b2a2a; padding: 5px 0; position: fixed; top: 0; z-index: 100; width: 100%; border: 3px solid; border-radius: 12px; border-color: #7E3AF2; } .header .container { display: flex; justify-content: space-around; align-items: center; } .logo { font-family: 'Times New Roman', Times, serif; font-size: 20px; font-weight: bold; color: #7E3AF2; margin-right: 10px; border: 5px solid; border-radius: 10px; background-color: #fff } .nav ol { list-style: none; display: flex; gap: 60px; } .nav a { text-decoration: none; border: 5px solid; border-radius: 10px; text-wrap: wrap; color: #7E3AF2; font-weight: bold; padding: 10px; background-color: #fff; } .nav a:hover { color: #1f08b4 } .btn { cursor: pointer; font-weight: bold; transition: background-color 0.3s ease; } .btn-primary { padding: 10px; border: solid; border-radius: 10px; color: #7E3AF2; margin-top: 5px; margin-left: 20px; } .btn-primary:hover { color: #1f08b4 } .btn-secondary { border: solid; padding: 10px; margin-top: 5px; margin-left: 20px; margin-bottom: 10px; border-radius: 15px; color: #7E3AF2; } .btn-secondary:hover { background-color: #1f08b4; } /* ОПИСАНИЕ */ .description { background: linear-gradient(134deg, #2b2a2a 0%, #2b2a2a 100%); padding: 60px 0; align-items: center; } .description-content { margin: 10px; padding-left: 10px; /*border: 10px solid;*/ background-color: #2b2a2a; /*border-color: #7E3AF2;*/ } .description .container { display: flex; justify-content: space-between; align-items: center; } .description-content h2 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; } .description-content p { font-size: 1.3rem; margin-bottom: 10px; color: #fff; } .photo-description img{ width: 100%; height: auto; border-radius: 10px; } /* ИНФОРМАЦИЯ */ .information { background: linear-gradient(134deg, #2b2a2a 0%, #2b2a2a 100%); padding: 60px 0; align-items: center; } .information-content { margin: 10px; } .information .container { display: flex; justify-content: space-between; align-items: center; } .information-content h2 { text-align: center; font-size: 2.5rem; margin-bottom: 40px; color: #333; } .information-content p { display: flex; gap: 40px; margin-bottom: 40px; } .photo-information img{ width: 300px; height: 300px; border-radius: 50%; object-fit: cover; } .information-txt p { font-size: 1rem; color: #ffff; margin-bottom: 20px; } .information-txt button{ margin-top: 10px; } .icon { font-size: 2rem; color: #6c757d; } .message h4 { font-size: 1.2rem; margin-bottom: 5px; color: #333; } .message p { font-size: 1rem; color: #666; } .discuss { background: linear-gradient(134deg, #2b2a2a 0%, #2b2a2a 100%); padding: 60px 0; text-align: center; } .discuss h2 { font-size: 2.5rem; margin-bottom: 40px; color: #fff; } .discuss-template { background-color: #050a48; padding: 40px; border-radius: 10px; max-width: 600px; margin: 0 auto; } .template-lines { margin-bottom: 20px; } .template-lines label { display: block; margin-bottom: 5px; font-weight: bold; color: #099cdb; } .template-lines input, .template-lines textarea { width: 100%; padding: 10px; border: 1px solid #fff; border-radius: 5px; font-size: 1rem; } .template-lines input:focus, .template-lines textarea:focus { outline: none; border-color: #007bff; } .template-lines textarea{ resize: vertical; min-height: 100px; } .footer { background-color: #373d44; color: #fff; padding: 30px 0; text-align: center; } .footer p { font-size: 0.9rem; } /* МЕДИА ЗАПРОСЫ*/ @media (max-width: 768px) { .header .container{ flex-direction: column; gap: 10px; } .description .container { flex-direction: column; gap: 20px; } .description-content { width: 100%; text-align: center; } .information-content { flex-direction: column; gap: 20px; } .photo-information img { width: 200px; height: 200px; } .discuss-template { padding: 20px; } } @media (max-width: 480px) { .header { padding: 10px, 0; } .logo{ font-size: 1.5rem; } .btn { padding: 10px 15px; font-size: 0.9rem; } .description-title { font-size: 2rem; } .features-title { font-size: 2rem; } } /* ПЛАВНОЕ ПОЯВЛЕНИЕ*/ .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6 ease; } .fade-in.visible { opacity: 1; transform: translateY(0); }