/
spirzen
/
it-knowledge-base
Обзор
Документация
Войти
/
spirzen
/
it-knowledge-base
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components/GettingStartedPaths.module.css
348 строк
6 KB
Spirzen
Fixes
02 июн 2026, 21:04
02 июн 2026, 21:04
07578ac
Код
Авторство
О чём код?
.section { padding: 3rem 0 3.5rem; background: linear-gradient( 180deg, var(--ifm-background-color) 0%, var(--ifm-color-emphasis-100) 100% ); } .sectionEmbedded { padding: 0; background: none; } .header { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; } .title { font-size: 2.25rem; margin-bottom: 0.75rem; color: var(--ifm-color-content); } .subtitle { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ifm-color-content-secondary); } .groups { display: flex; flex-direction: column; gap: 2.5rem; width: 100%; } .group { width: 100%; } .groupTitle { font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; padding-left: 0.75rem; border-left: 3px solid var(--ifm-color-primary); color: var(--ifm-color-content); } .accordionStack { display: grid; grid-template-columns: 1fr; gap: 0.75rem; width: 100%; align-items: stretch; } @media screen and (min-width: 768px) { .accordionStack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } } @media screen and (min-width: 1200px) { .accordionStack { grid-template-columns: repeat(3, minmax(0, 1fr)); } } .accordion { display: flex; flex-direction: column; height: 100%; min-height: 7.5rem; border-radius: 12px; border: 1px solid var(--ifm-color-emphasis-300); background: var(--ifm-card-background-color); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04); transition: border-color 0.25s ease, box-shadow 0.25s ease; } .accordionOpen { grid-column: 1 / -1; border-color: var(--ifm-color-primary-light); box-shadow: 0 8px 24px rgba(123, 104, 238, 0.12); min-height: 0; } .accordionHeader { display: flex; align-items: flex-start; gap: 0.85rem; width: 100%; padding: 1rem 1.15rem; border: none; background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: 12px; transition: background 0.2s ease; } .accordionHeader:hover { background: var(--ifm-color-emphasis-100); } .accordionHeader:focus-visible { outline: 2px solid var(--ifm-color-primary); outline-offset: 2px; } .cardNum { flex-shrink: 0; width: 1.75rem; height: 1.75rem; margin-top: 0.1rem; margin-right: 0; border-radius: 8px; background: color-mix(in srgb, var(--ifm-color-primary) 14%, transparent); color: var(--ifm-color-primary); font-size: 0.8rem; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center; } .cardBody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; } .cardTitle { font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--ifm-color-content); } .cardDescription { font-size: 0.875rem; line-height: 1.45; color: var(--ifm-color-content-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .cardMeta { font-size: 0.75rem; font-weight: 500; color: var(--ifm-color-primary); } .chevron { flex-shrink: 0; align-self: center; width: 0.55rem; height: 0.55rem; margin-left: 0.25rem; border-right: 2px solid var(--ifm-color-primary); border-bottom: 2px solid var(--ifm-color-primary); transform: rotate(45deg) translateY(-2px); transition: transform 0.25s ease; } .chevronOpen { transform: rotate(-135deg) translateY(2px); } .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; } .panelOpen { grid-template-rows: 1fr; } .panelInner { overflow: hidden; min-height: 0; padding: 0 1rem 0; border-top: 1px solid transparent; transition: padding 0.3s ease, border-color 0.3s ease; } .panelOpen .panelInner { padding: 0.35rem 1rem 1rem; border-top-color: var(--ifm-color-emphasis-200); } .articleList { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; max-height: min(22rem, 55vh); overflow-y: auto; overscroll-behavior: contain; } .articleItem { margin: 0; } .articleLink { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.65rem; border-radius: 8px; text-decoration: none; color: var(--ifm-color-content); transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; } .articleLink:hover { text-decoration: none; color: var(--ifm-color-primary-dark); background: var(--ifm-color-emphasis-100); transform: translateX(3px); } .articleIndex { flex-shrink: 0; min-width: 1.6rem; height: 1.6rem; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--ifm-color-primary); background: rgba(123, 104, 238, 0.1); border-radius: 6px; } .articleTitle { flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.35; } .articleArrow { flex-shrink: 0; font-size: 0.95rem; font-weight: 600; color: var(--ifm-color-primary); opacity: 0; transition: opacity 0.2s ease; } .articleLink:hover .articleArrow, .articleLink:focus-visible .articleArrow { opacity: 1; } .panelFooter { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed var(--ifm-color-emphasis-300); } .startRouteLink { display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 600; color: var(--ifm-color-primary); text-decoration: none; } .startRouteLink:hover { text-decoration: underline; color: var(--ifm-color-primary-dark); } @media screen and (max-width: 996px) { .section { padding: 2.5rem 0 3rem; } .title { font-size: 1.85rem; } .subtitle { font-size: 1rem; } .accordionOpen { grid-column: 1 / -1; } } @media screen and (max-width: 576px) { .accordionHeader { padding: 0.9rem; } .panelOpen .panelInner { padding: 0.25rem 0.75rem 0.85rem; } .articleList { max-height: min(18rem, 50vh); } .cardMeta { font-size: 0.7rem; } } html[data-theme='dark'] .articleIndex { background: rgba(147, 112, 219, 0.2); } html[data-theme='dark'] .accordion { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); } html[data-theme='dark'] .accordionOpen { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }