/
Luiza
/
learning-web
Обзор
Документация
Войти
/
Luiza
/
learning-web
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
CSS/style.css
396 строк
7 KB
Luiza
Выполнена 9 работа
31 мар 2026, 12:19
31 мар 2026, 12:19
b94349e
Код
Авторство
О чём код?
* { box-sizing: border-box; } body { font-family: 'Cormorant Garamond', sans-serif; font-size: 20px; font-weight: 400; line-height: 1.5; text-align: left; color: black; background-color: whitesmoke; margin: 0; padding: 20px; } ::selection { background: rgba(100,0,200,0.4); color: #2c3e50; } h1 { position: relative; top: 10px; left: 9px; font-size: 3rem; font-weight: 700; color: grey; text-align: center; } h4 {margin:40px 0 0 10px} p { min-height: 100px; max-height: 300px; overflow: auto; background-color: white; padding: 1em; border: 1px solid grey; border-radius: 10px; } a { color: steelblue; text-decoration: none; background-color: powderblue; padding: 1px 5px; border: 1px solid steelblue; border-radius: 10px; } .figure-lab img { width: 100%; max-width: 600px; object-fit: cover; object-position: center; margin: 10px; border: 3px solid grey; border-radius: 15px; } .icon { width: 40px; height: 40px; border: none; padding:5px; margin:5px; } h3 { font-size: 2rem; font-weight: 600; color: gray; } ol { background-color: grey; background-image: url("../fone.jpg"); background-blend-mode: multiply; /* смешивание с фоном*/ background-size: cover; border: 5px solid grey; border-radius: 7px ; padding: 20px 30px; } ol li:nth-child(2n) { background: rgba(20,50,140,0.7); color: white; } ol li:nth-child(2n+1) { background: white; color: rgb(20,50,140); } .fixed { position: fixed; width: 400px; height: 40px; bottom: 5px; right: 10px; color: white; text-align: center; margin: 1px; background: steelblue; z-index: 2; } .flex-demo { display: flex; justify-content: flex-start; flex-wrap: wrap; background-color: #f0f0f0; gap: 2vw; padding: 2ch; /* отступ шириной в два символа "0" */ border-radius: 10px; } .flex-item { font-size: 3rem; color: white; width: 6rem; height: 6rem; align-items: center; text-align: center; border-radius: 8px; } .grid-demo { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); margin: 10px; justify-content: start; gap:10px; } .grid-demo > *{ font-size: 2rem; text-align: center; color: white; width: 100%; height: 100%; border-radius: 8px; margin:20px; padding:10px ; } .grid-demo>div:first-child { grid-column: 1/-1; } .grid-demo>div:nth-child(3) { background: rgb(190,10,100); grid-column:span 2; } .grid-demo>div:nth-child(5) { grid-row:span 2; } .grid-demo>div:nth-child(4) { background-color:rgba(45,200,200,0.7); grid-column:span 2; width: auto; height: auto; justify-self: center; } /* ----------------------------------*/ .registration-form { max-width: 600px; margin: 2rem auto; padding: 2rem; background: white; border-radius: 12px; box-shadow: -17px 0 20px 7px rgba(0,0,0,0.2); } .registration-form fieldset { border: 1px solid #ccc; border-radius: 8px; margin-bottom: 1.5rem; padding: 1rem; } .registration-form legend { font-weight: bold; } .registration-form label { display: block; margin-top: 0.8rem; margin-bottom: 0.2rem; font-weight: 500; text-shadow: 2px 2px 2px rgba(0,0,0,0.3); } .registration-form input[type="text"], .registration-form input[type="email"], .registration-form input[type="tel"], .registration-form input[type="password"], .registration-form input[type="date"] { width: 100%; padding: 0.6rem; border: 1px solid #aaa; border-radius: 6px; font-size: 1.5rem; box-sizing: border-box; } .registration-form input:hover { border-color: black; box-shadow: 0 0 5px rgba(170,10,180,0.5); } .radio-group label, .checkbox-group label { font-size: 1.2rem; display: inline; /* строчный элемент*/ margin: 0; } .radio-group input, .checkbox-group input { width: auto; margin-right: 0.2rem; } .radio-group input:checked + label, .checkbox-group input:checked + label { font-weight: bold; text-decoration: line-through; } .btn-group { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; } .btn-submit, .btn-reset { padding: 0.7rem 2rem; border: none; border-radius: 30px; font-size: 1.5rem; } .btn-submit { background: rgba(100,0,200,0.7); color: white; text-shadow: 2px 2px 2px rgba(255,255,255,0.3) } .btn-reset { background: #f0f0f0; color: #333; text-shadow: 2px 2px 2px rgba(0,0,0,0.4) } p.foot { border:none; min-height: auto; background-color: white; padding: 0.5em; margin:5px; } a:visited { color: steelblue; } a:hover { background-color: #1e6f9f; color: white; transition: all 0.7s ease;} a:active { background-color: darkblue; } button:hover, .btn-submit:hover, .btn-reset:hover { background: #2c3e50; color: white; transition: all 0.7s ease; box-shadow: 0 0 5px rgba(170,10,180,0.5); } button:active, .btn-submit:active { background-color: hsl(260,90%, 80%); color: grey; } .btn-reset:active { background: red; } a:focus, button:focus, .btn-submit:focus, .btn-reset:focus { outline: none; box-shadow: 0 0 5px grey; } input::placeholder { color: #aaa; font-style: italic; font-size: 1.3rem; } input:required { background: rgba(45,20,200,0.2); } input:required:focus { background-color: white; } .loader { width: 70px; height: 70px; border: 5px solid white; border-top: 5px solid rgb(200,10,30); border-radius: 50%; animation: spin 1.5s linear infinite, fadeOut 1.4s forwards; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(720deg); } } @keyframes fadeOut { 0% { opacity: 1; visibility: visible; } 85% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } } .card-content { opacity: 0; visibility: hidden; animation: fadeIn 1s forwards; animation-delay: 2s; } @keyframes fadeIn { to { opacity: 1; visibility: visible; } } /* -------------- DEMO------------*/ .transform-section { display: flex; gap: 40px; margin: 10px; } .transform-box { width: 200px; height: 200px; background: purple; color: white; display: flex; align-items: center; justify-content: center; transition: all 1s; } /* 2D */ .translate:hover { transform: translate(50px, 0); } .rotate:hover { transform: rotate(360deg); } /* 3D */ .container-3d { perspective: 500px; margin: 10px; width: 200px; height: 200px; transition: all 0.5s; } .rotate3d { background: tomato; } .rotate3d:hover {transform: rotateY(45deg); } .translate3d:hover { transform: translate3d(30px, 20px, 70px); } /* цвет */ .transform-one { background: black; transition: background 0.5s, transform 0.3s; transition-delay:2s; } .transform-one:hover { background: aqua; transform: scale(1.1); } /* размер */ .transform-two { background: steelblue; width: 100px; height: 100px; transition: width 0.8s, height 0.8s; } .transform-two:hover { width: 200px; height: 200px; }