/
ssm255
/
lb1
Обзор
Документация
Войти
/
ssm255
/
lb1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
CSS/style.css
504 строки
8 KB
Sofya Sysoeva
Лабораторная работа №9
30 мар 2026, 18:53
30 мар 2026, 18:53
d76443f
Код
Авторство
О чём код?
* { box-sizing: border-box; } body { font-family: "Open Sans", sans-serif; font-size: 1.1rem; font-weight: 400; line-height: 1.7; color: rgb(51, 51, 51); background-color: hsl(35, 30%, 93%); max-width: 65rem; min-width: 20rem; margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; min-height: 100vh; grid-template-areas: "header header" "nav nav" "img1 img2" "text text" "loader loader" "links links" "list list" "footer footer"; background: linear-gradient(135deg, hsl(35, 30%, 93%), hsl(35, 30%, 85%)); } h1, h2, h3 { font-weight: 700; text-align: center; color: #222222; } h1{ grid-area: header; text-shadow: 0.1rem 0.1rem 0.3rem rgba(0,0,0,0.3); } .paragraph-container { grid-area: text; display: grid; grid-template-columns: 2fr 2fr 1fr; grid-auto-rows: 13rem; gap: 1.5rem; } .paragraph-container p { background-color: white; padding: 1.5rem; border-radius: 0.5rem; min-height: 12rem; box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; } .paragraph-container p:hover { transform: translateY(-6px); box-shadow: 0 0.4rem 1rem rgba(0,0,0,0.15); } .first-paragraph { color: #584738; position: relative; padding-left: 1rem; grid-column: 1 / 3; grid-row: 1 / 2; } .second-paragraph { color: rgba(181, 158, 125, 1); border: 0.06rem solid #d6cfc7; grid-column: 3; grid-row: 1 / 3; } .third-paragraph { color: brown; grid-column: 1 / 3; grid-row: 2 / 3; } .first-paragraph::before { content: "❝"; position: absolute; top: -0.6rem; left: -0.6rem; font-size: 2.5rem; color: hsla(35, 30%, 60%, 0.8); } .links { grid-area: links; display: flex; gap: 1rem; justify-content: center; } .links a:last-child { position: fixed; bottom: 2vh; right: 2vw; background-color: #736046; color: white; padding: 0.6rem 1rem; border-radius: 0.3rem; box-shadow: 0 0.2rem 0.6rem rgba(0,0,0,0.2); } a { color: #50311d; text-decoration: none; font-size: 1.1rem; font-weight: 600; background: white; padding: 0.7rem 1.2rem; border-radius: 0.4rem; box-shadow: 0 0.15rem 0.4rem rgba(0,0,0,0.1); transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease; } a:hover { color: white; background-color: orange; transform: translateY(-2px); box-shadow: 0 0.3rem 0.6rem rgba(0,0,0,0.15); } ul { grid-area: list; width: 100%; padding: 1.5rem; background-color: white; display: grid; grid-template-columns: 1fr; gap: 0.7rem; border-radius: 0.4rem; box-shadow: 0 0.2rem 0.5rem rgba(0,0,0,0.1); } .nav-links { display: flex; gap: 1rem; justify-content: center; } header { grid-area: nav; } footer { grid-area: footer; text-align: center; padding: 1rem; } form { background: white; padding: 2rem; border-radius: 0.5rem; box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.15); transition: box-shadow 0.3s ease; display: flex; flex-direction: column; gap: 1.5rem; width: 100%; max-width: 500px; } form:hover { box-shadow: 0 0.8rem 1.8rem rgba(0,0,0,0.2); } fieldset { border: 1px solid #ddd; padding: 1rem; border-radius: 0.4rem; display: flex; flex-direction: column; gap: 0.8rem; } legend { font-weight: bold; color: #50311d; } input, select { padding: 0.5rem; border-radius: 0.3rem; border: 1px solid #ccc; transition: border-color 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 0.1rem 0.2rem rgba(0,0,0,0.05); } button { padding: 0.8rem; border: none; border-radius: 0.4rem; background-color: orange; color: white; font-size: 1rem; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; box-shadow: 0 0.2rem 0.4rem rgba(0,0,0,0.15); } button:hover { background-color: #e69500; transform: translateY(-2px); box-shadow: 0 0.4rem 0.8rem rgba(0,0,0,0.2); } main { grid-area: text; display: flex; justify-content: center; } a:active { transform: scale(0.97); } a:visited { opacity: 0.8; } button:disabled { background-color: gray; cursor: not-allowed; } a:focus, button:focus { outline: 2px dashed orange; outline-offset: 3px; } input::placeholder { color: hsl(35, 30%, 60%); font-style: italic; } input:required { border: 2px solid orange; } input[type="radio"]:checked, input[type="checkbox"]:checked { outline: 2px solid orange; outline-offset: 2px; background-color: #ffd8a8; } .second-paragraph::first-line { font-weight: bold; } ::selection { background-color: orange; color: white; } ul li:nth-child(even) { background-color: #f5f0e6; padding: 0.5rem; } ul li:nth-child(odd) { background-color: #fff7e6; padding: 0.5rem; } h1::after { content: " ❂"; color: #0f4d1c; } ul li::before { content: "• "; color: orange; font-weight: bold; } ul li::marker { color: brown; font-size: 1.2rem; } select { border: 2px solid orange; border-radius: 0.4rem; padding: 0.5rem; background-color: #fff7e6; } select:focus { outline: 2px dashed orange; box-shadow: 0 0 0.4rem rgba(255,165,0,0.4); } label { display: inline-flex; align-items: center; gap: 0.3rem; } input:focus { border-color: #d49855; outline: 2px dashed orange; box-shadow: 0 0 0.4rem rgba(255,165,0,0.4); } .image-wrapper { background-color: hsl(35, 30%, 87%); border-radius: 0.5rem; overflow: hidden; box-shadow: 0 0.25rem 0.7rem rgba(0,0,0,0.15); display: flex; justify-content: center; align-items: center; padding: 1rem; margin: 1rem 0; } .image-wrapper img { width: 100%; height: 340px; object-fit: cover; display: block; border-radius: 0.5rem; } .image-wrapper:nth-of-type(1) { grid-area: img1; } .image-wrapper:nth-of-type(2) { grid-area: img2; } .card.loader-card { grid-area: loader; position: relative; background-color: white; border-radius: 0.5rem; box-shadow: 0 0.25rem 0.7rem rgba(0,0,0,0.15); padding: 1.5rem; min-height: 12rem; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; } .card.loader-card .card-content { opacity: 0; transition: opacity 0.5s ease-in-out; text-align: center; } .card.loader-card .loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 0.4rem solid #f3f3f3; border-top: 0.4rem solid orange; border-radius: 50%; width: 3rem; height: 3rem; animation: spin 1s linear infinite; } .card.loader-card.loaded .loader { opacity: 0; } .card.loader-card.loaded .card-content { opacity: 1; } @keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } } .demo { display: flex; flex-direction: column; gap: 1rem; align-items: center; } .box { width: 200px; height: 100px; display: flex; align-items: center; justify-content: center; color: white; border-radius: 0.5rem; font-weight: bold; } .linear { background: linear-gradient(to right, orange, brown); } .radial { background: radial-gradient(circle, orange, brown); } .conic { background: conic-gradient(orange, brown, orange); } .move:hover { transform: translateX(50px); transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease; } .rotate:hover { transform: rotate(15deg); transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease; } .rotate3d:hover { transform: rotateY(45deg); transition-property: transform; transition-duration: 0.5s; transition-timing-function: ease; } .scale3d:hover { transform: scale(1.3); transition-property: transform; transition-duration: 0.3s; transition-timing-function: ease; } .hover1 { background-color: orange; transition-property: background-color; transition-duration: 0.3s; transition-timing-function: ease; } .hover1:hover { background-color: brown; transition-property: background-color; transition-duration: 0.3s; transition-timing-function: ease; } .hover2 { background-color: brown; transition-property: background-color, transform; transition-duration: 0.3s; transition-timing-function: ease; } .hover2:hover { transform: scale(1.2); background-color: orange; transition-property: background-color, transform; transition-duration: 0.3s; transition-timing-function: ease; }