/
astralimprisonment
/
main_rep
Обзор
Документация
Войти
/
astralimprisonment
/
main_rep
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
css/style.css
298 строк
4 KB
astralimprisonment
laba8
30 мар 2026, 22:02
30 мар 2026, 22:02
152ea92
Код
Авторство
О чём код?
* { box-sizing: border-box; } .demo-box { width: 100%; height: 100px; margin: 10px 0; padding: 10px; border: 3px solid white; background-color: white; overflow: scroll; } body { font-family: "Press Start 2P", system-ui; font-size: 14px; font-weight: 400; font-style: normal; line-height: 1.6; text-align: center; color: #333333; background-color: #C5D0E6; padding: 20px; display: grid; grid-template-columns: 1fr 3fr 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "header header header" "left main right" "footer footer footer"; gap: 20px; min-height: 100vh; } header { grid-area: header; background: lightblue; padding: 20px; border-radius: 10px; text-align: center; } header h1 { margin-bottom: 20px; font-size: 20px; } header nav { } header nav a { display: inline-block; width: auto; min-width: 150px; padding: 10px 20px; border: 3px solid #0077cc; background-color: white; color: #0077cc; font-size: 12px; text-decoration: none; border-radius: 20px; } .left { grid-area: left; background: lightgreen; padding: 20px; border-radius: 10px; } main { grid-area: main; background: white; padding: 20px; border-radius: 10px; } .right { grid-area: right; background: pink; padding: 20px; border-radius: 10px; } footer { grid-area: footer; background: lightblue; padding: 20px; border-radius: 10px; text-align: center; } footer a { display: inline-block; width: auto; padding: 10px 20px; margin: 0 10px; border: 2px solid white; background-color: #0077cc; color: white; text-decoration: none; border-radius: 20px; } p { font-size: 16px; background-color: #ffffff; padding: 10px; border-radius: 8px; } .fixed-box { position: fixed; bottom: 20px; right: 20px; background: red; color: white; padding: 15px; z-index: 10; border-radius: 10px; font-weight: bold; } .buttons { display: flex; justify-content: flex-end; gap: 40px; margin-top: 40px; } .img-box { position: relative; display: inline-block; } .img-box img { width: 100%; } .text-on-img { position: absolute; bottom: 1%; color: black; font-size: 8px; background-color: #ffffff; padding: 1%; margin: 1px; border-radius: 8px; } .registration-form { text-align: left; } .form-group { margin-top: 10px; } .required { color: red; opacity: 0.5; } legend { font-size: 18px; font-weight: bold; } /* Добавьте в конец файла */ .radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 5px; } .radio-label, .checkbox-label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: normal; cursor: pointer; } .form-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 20px; } .submit-btn, .reset-btn { padding: 10px 25px; font-size: 12px; border: none; border-radius: 10px; cursor: pointer; font-family: "Press Start 2P", system-ui; } .submit-btn { background: #0077cc; color: white; } .reset-btn { background: #ff6b6b; color: white; } ::selection { background: #0077cc; color: red; } a:hover { background-color: lightblue; color: blue; transform: scale(1.2); } a:active { background-color: red; } a:focus { outline: 10px solid green; } button:hover { opacity: 0.5; } button:active { transform: scale(2.4); } button:focus { outline: 3px solid lightblue; } ::placeholder { color: #06402B; font-size: 10px; opacity: 0.7; } input:focus { border: 2px solid #0077cc; background-color: lightblue; } input:required { border-bottom: 2px solid red; } .radio-label input:checked { accent-color: green; } input:disabled { background: red; } input:enabled { background: white; } .right ol li:nth-child(even) { background: lightgray; } .right ol li:nth-child(odd) { background: lightblue; } p::first-letter { font-size: 20px; color: purple; } p::first-line { font-weight: bold; } h1::before { content: "🔥 "; } h1::after { content: " 🔥"; } ol li::marker { color: purple; font-size: 14px; }