/
Coderdev
/
web-static-labs
Обзор
Документация
Войти
/
Coderdev
/
web-static-labs
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
html/lab2/task9/style.css
340 строк
6 KB
Coderdev
finish
03 мар 2026, 11:54
03 мар 2026, 11:54
5e81a6d
Код
Авторство
О чём код?
:root{ --bg: #0b1020; --card: rgba(255,255,255,.08); --card2: rgba(255,255,255,.11); --text: rgba(255,255,255,.92); --muted: rgba(255,255,255,.66); --border: rgba(255,255,255,.14); --accent: #7c5cff; --accent2: #2ee59d; --r: 18px; --shadow: 0 18px 55px rgba(0,0,0,.38); } *{ box-sizing: border-box; } html, body{ height: 100%; } body{ margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; color: var(--text); background: radial-gradient(900px 520px at 10% 12%, rgba(124,92,255,.38), transparent 60%), radial-gradient(900px 520px at 90% 15%, rgba(46,229,157,.24), transparent 60%), radial-gradient(900px 520px at 50% 110%, rgba(255,255,255,.08), transparent 60%), var(--bg); } a{ color: inherit; } .container{ width: min(1100px, calc(100% - 32px)); margin: 0 auto; } .muted{ color: var(--muted); } /* Topbar */ .topbar{ position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(11,16,32,.58); border-bottom: 1px solid rgba(255,255,255,.08); } .topbar__inner{ display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 14px; flex-wrap: wrap; } .logo{ display: flex; gap: 12px; align-items: center; text-decoration: none; } .logo__mark{ width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; letter-spacing: .5px; background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,229,157,.85)); box-shadow: var(--shadow); } .logo__text{ display: grid; } .logo__title{ font-weight: 900; line-height: 1.1; } .logo__sub{ font-size: 13px; color: var(--muted); } .menu{ display: flex; gap: 10px; flex-wrap: wrap; } .menu__link{ text-decoration: none; padding: 8px 12px; border-radius: 12px; color: var(--muted); border: 1px solid transparent; background: transparent; } .menu__link:hover{ color: var(--text); border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); } .menu__link--active{ color: var(--text); border-color: rgba(124,92,255,.45); background: rgba(124,92,255,.12); } /* Hero */ .hero{ margin-top: 22px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; } .hero__title{ margin: 0 0 10px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.02em; } .hero__desc{ margin: 0 0 14px; color: var(--muted); line-height: 1.6; max-width: 65ch; } .hero__actions{ display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; } .note{ margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border); background: rgba(255,255,255,.06); border-radius: var(--r); color: var(--muted); } .note code{ color: rgba(255,255,255,.88); } /* Buttons */ .btn{ display: inline-flex; align-items: center; justify-content: center; padding: 11px 14px; border-radius: 14px; text-decoration: none; font-weight: 800; border: 1px solid var(--border); transition: transform .08s ease, background .2s ease, border-color .2s ease; } .btn:active{ transform: translateY(1px); } .btn--primary{ border-color: rgba(124,92,255,.55); background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(124,92,255,.55)); box-shadow: 0 12px 30px rgba(124,92,255,.25); } .btn--primary:hover{ border-color: rgba(124,92,255,.8); } .btn--ghost{ background: rgba(255,255,255,.06); } .btn--ghost:hover{ background: rgba(255,255,255,.10); } /* Cards */ .card{ border: 1px solid var(--border); background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; } .card--progress{ background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.06)); } .card__title{ font-weight: 900; margin-bottom: 12px; } .card__head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .card__h{ margin: 0; font-size: 18px; } .card__p{ margin: 0 0 14px; color: var(--muted); line-height: 1.6; } .card__actions{ display: flex; gap: 10px; flex-wrap: wrap; } /* Tags */ .tag{ font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: var(--muted); font-weight: 800; } .tag--ok{ border-color: rgba(46,229,157,.35); color: rgba(46,229,157,.95); background: rgba(46,229,157,.12); } .tag--work{ border-color: rgba(255,210,77,.35); color: rgba(255,210,77,.95); background: rgba(255,210,77,.12); } /* Progress */ .progress__row{ display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 10px; } .progress__bar{ height: 12px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); overflow: hidden; } .progress__fill{ height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; } .progress__meta{ margin-top: 10px; color: var(--muted); font-size: 13px; } /* Scores */ .scores{ margin-top: 14px; display: grid; gap: 10px; } .scores__item{ display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); } .scores__item span{ color: var(--muted); font-size: 13px; } .scores__item strong{ font-weight: 900; } /* Grid */ .grid{ margin: 18px 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .list{ margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.85; } .list a{ color: rgba(255,255,255,.90); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.28); } .list a:hover{ border-bottom-color: rgba(255,255,255,.60); } /* Footer */ .footer{ border-top: 1px solid rgba(255,255,255,.08); background: rgba(11,16,32,.45); backdrop-filter: blur(10px); } .footer__inner{ padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; } /* Responsive */ @media (max-width: 950px){ .hero{ grid-template-columns: 1fr; } .grid{ grid-template-columns: 1fr; } }