/
spirzen
/
it-knowledge-base
Обзор
Документация
Войти
/
spirzen
/
it-knowledge-base
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
Mobile
src/components/RandomArticle/styles.module.css
164 строки
3 KB
Spirzen
Refactor - design, search, styles
01 июн 2026, 16:08
01 июн 2026, 16:08
840a53a
Код
Авторство
О чём код?
.wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.5rem; margin: 0 auto; padding: 0.5rem 0; max-width: 42rem; } .wrapDiscover { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; max-width: none; padding: 0; text-align: center; } .label { font-size: 0.9rem; font-weight: 600; color: var(--ifm-color-content-secondary); white-space: nowrap; } .wrapDiscover .label { white-space: normal; margin: 0 0 0.75rem; font-size: 0.82rem; } .articleBlock { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1rem; } .link { font-size: 1rem; font-weight: 600; color: var(--ifm-color-primary); text-decoration: none; line-height: 1.4; transition: color 0.2s ease; } .wrapDiscover .link { font-size: 1.1rem; display: block; width: 100%; } .link:hover { color: var(--ifm-color-primary-dark); text-decoration: underline; } .section { font-size: 0.75rem; font-weight: 500; padding: 0.12rem 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--ifm-color-primary) 12%, transparent); color: var(--ifm-color-primary); border: 1px solid color-mix(in srgb, var(--ifm-color-primary) 22%, transparent); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wrapDiscover .section { display: block; max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; font-size: 0.85rem; padding: 0; border: none; border-radius: 0; background: none; color: var(--ifm-color-content-secondary); font-weight: 600; } .loading, .muted, .error { font-size: 0.9rem; color: var(--ifm-color-content-secondary); } .wrapDiscover .loading, .wrapDiscover .muted, .wrapDiscover .error { margin-bottom: 1rem; } .error { color: var(--ifm-color-danger, #c62828); } .shuffle { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; margin-left: 0.25rem; padding: 0.2rem 0.55rem; border: 1px solid var(--ifm-color-emphasis-300); border-radius: 6px; background: var(--ifm-background-surface-color); color: var(--ifm-color-primary); cursor: pointer; font-size: 0.78rem; font-weight: 600; font-family: inherit; line-height: 1.3; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; } .wrapDiscover .shuffle { margin: 0 auto; padding: 0.45rem 1.25rem; min-width: 6rem; } .shuffle:hover:not(:disabled) { background: color-mix(in srgb, var(--ifm-color-primary) 10%, var(--ifm-background-surface-color)); border-color: color-mix(in srgb, var(--ifm-color-primary) 40%, var(--ifm-color-emphasis-300)); color: var(--ifm-color-primary-dark); } .shuffle:disabled { opacity: 0.45; cursor: wait; } .shuffle:focus-visible { outline: 2px solid var(--ifm-color-primary); outline-offset: 2px; } @media (max-width: 576px) { .wrap:not(.wrapDiscover) { flex-direction: column; text-align: center; padding: 0.75rem; } .wrap:not(.wrapDiscover) .section { max-width: 100%; } }