/
enn
/
WebSite1_lab
Обзор
Документация
Войти
/
enn
/
WebSite1_lab
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
lab5
CSS/style.css
216 строк
4 KB
Sebastiana
Лаба 5
08 мар 2026, 03:15
08 мар 2026, 03:15
725adb7
Код
Авторство
О чём код?
/* style.css - лаб. работа 2 + 5 (Flexbox, цвета, единицы) */ /* Убраны все z-index */ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap'); * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Roboto', sans-serif; font-size: 1rem; font-weight: 300; line-height: 1.6; color: #2c3e50; background-color: hsl(192, 15%, 94%); margin: 0 auto; padding: 2rem; min-width: 320px; max-width: 1200px; min-height: 100vh; position: relative; display: flex; flex-direction: column; } .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 2rem; } h1 { font-weight: 500; text-align: center; color: darkred; background-color: rgba(255, 255, 255, 0.9); border: 0.2rem solid #e67e22; border-radius: 10px; padding: 1rem; width: 80%; max-width: 800px; min-height: 60px; margin: 0 auto 2rem; position: relative; } .content-row { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 2rem; margin: 2rem 0; } .text-column { flex: 1 1 45%; min-width: 300px; display: flex; flex-direction: column; gap: 1rem; } p { font-size: 1.1rem; font-weight: 400; line-height: 1.7; background-color: rgb(255, 255, 255); border-left: 0.4rem solid #e67e22; border-radius: 0 8px 8px 0; padding: 1rem; max-width: 100%; min-height: 80px; margin: 0; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.1); } .sidebar-column { flex: 1 1 45%; min-width: 300px; display: flex; flex-direction: column; gap: 1.5rem; } .image-container { width: 100%; max-width: 500px; margin: 0 auto; position: relative; } img { border: 0.3rem solid #e67e22; border-radius: 15px; max-width: 100%; height: auto; display: block; margin: 0 auto; width: 100%; max-width: 500px; min-width: 200px; min-height: 150px; max-height: 400px; object-fit: cover; position: relative; } .image-container::after { content: ""; position: absolute; top: -10px; left: -10px; width: 100%; height: 100%; border: 2px dashed #e67e22; border-radius: 15px; pointer-events: none; } .links-container { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin: 2rem 0; } a { color: #2980b9; text-decoration: none; font-weight: 500; display: inline-block; min-width: 120px; height: 2.5rem; line-height: 2.5rem; text-align: center; background-color: rgba(255, 255, 255, 0.8); border: 1px solid #e67e22; border-radius: 2rem; padding: 0 1rem; position: relative; transition: all 0.3s ease; } a:hover { color: hsl(16, 100%, 50%); background-color: hsla(30, 80%, 60%, 0.3); text-decoration: underline; transform: scale(1.05); } ul { font-size: 1.1rem; font-weight: 400; line-height: 1.8; border: 0.2rem dashed #e67e22; border-radius: 0.5rem; background-color: #fff; padding: 1.5rem 2rem; width: 100%; max-width: 600px; min-height: 150px; margin: 0 auto; position: relative; list-style: none; } li { color: hsl(0, 0%, 20%); min-height: 2rem; position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; } li::before { content: "•"; position: absolute; left: 0; color: orangered; font-size: 1.5rem; font-weight: bold; } footer { background-color: #34495e; color: #ecf0f1; text-align: center; border: 1px solid #e67e22; border-radius: 0.3rem; padding: 0.8rem; margin-top: 3rem; min-height: 60px; position: relative; bottom: 0; width: 100%; } footer p { font-size: 0.9rem; font-weight: 300; line-height: 1.4; border: none; background: transparent; color: #bdc3c7; padding: 0; min-height: 20px; }