/
Rito4ka444
/
Lab_2
Обзор
Документация
Войти
/
Rito4ka444
/
Lab_2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
CSS/style.css
239 строк
3 KB
Rito4ka444
лабораторная №8
31 мар 2026, 15:42
31 мар 2026, 15:42
bbe5009
Код
Авторство
О чём код?
* { box-sizing: border-box; } body { background-color: #f5f5f5; color: #000; font-family: 'Open Sans', sans-serif; font-size: 16px; margin: 20px; text-align: center; } header { background-color: rgb(245, 245, 245); width: 100%; height: 20px; top: 0px; left: 40px; position: fixed; z-index: 1000; display: flex; justify-content: center; gap: 10px; } .text { flex-basis: 75px; } h1 { font-size: 2rem; text-align: center; background-color: rgba(240, 236, 10, 0.5); } h2 { font-size: 150%; text-align: left; background-color: #f0ec0a; position: relative; left: 30px; } p { line-height: 1.5; text-align: center; } a { color: #007bff; text-decoration: none; transition: 0.2s; } a:hover { color: #0056b3; text-decoration: underline; } a:active { color: #ff0000; } a:focus { outline: 2px solid #ff0000; } button, .button { background: #007bff; color: white; border: none; padding: 10px 20px; border-radius: 6px; cursor: pointer; transition: all 0.3s ease; } button:hover { background: #210ab5; transform: scale(1.05); } button:active { background: #45ff01; } button:focus { outline: 3px solid #ff0000; } input::placeholder { color: #000000; font-style: italic; font-size: 14px; } .content { border: 1px solid #ccc; border-radius: 20px; background-color: #ebaf0b; text-align: left; width: 100%; max-width: 1020px; margin: 1px auto; padding: 40px; flex: 1; } figure img { width: 100%; height: 300px; object-fit: cover; object-position: center; border-radius: 8px; background-color: #ddd; } figure { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr auto; gap: 10px; } figure img:first-child { grid-area: 1 / 1 / 2 / 2 ; } figure img:last-of-type { grid-area: 2 / 2 / 3 / 3 ; } figcaption { grid-area: 3 / 1 / 4 / 3; text-align: center; font-style: italic; color: #333; padding: 15px; background: rgba(255, 255, 255, 0.7); border-radius: 8px; margin-top: 10px; } ::selection { background: #b3d4fc; color: #000; } h1::selection { background: #ff9999; color: white; } input { font-family: Arial, sans-serif; font-size: 16px; padding: 10px; margin: 10px 0; border: 1px solid #da5512; border-radius: 6px; } input[type="radio"]:checked + label { color: #fb0000; font-weight: bolder; } input:required { border: 2px solid #e74c3c; background-color: #ffe6e6; } input[type="checkbox"]:checked + label { text-decoration: line-through; color: #999; } li:nth-child(even) { background-color: #ebaf0b; padding: 8px; } li:nth-child(odd) { background-color: #f0ec0a; padding: 8px; } .card { position: relative; padding: 20px; margin: 20px 0; background: #f0ec0a; border-radius: 10px; overflow: hidden; } .loader { width: 40px; height: 40px; border: 5px solid #ccc; border-top: 5px solid #007bff; border-radius: 50%; animation: spin 1s linear infinite; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .card-content { opacity: 0; transition: opacity 1s ease; } .card.loaded .loader { opacity: 0; } .card.loaded .card-content { opacity: 1; } @keyframes spin { to { transform: rotate(360deg); } } form { box-shadow: 0 4px 15px rgba(0,0,0,0.2); padding: 20px; border-radius: 10px; }