/
Cybran65
/
Project_0
Обзор
Документация
Войти
/
Cybran65
/
Project_0
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/components/AppHeader/AppHeader.module.css
229 строк
4 KB
Cybran65
@
09 авг 2026, 20:30
09 авг 2026, 20:30
98a9bb5
Код
Авторство
О чём код?
.header { display: flex; align-items: center; gap: 10px; height: var(--h-title); padding: 0 6px; background: var(--c-title-bar); color: var(--c-title-text); user-select: none; } .left, .right { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; } .mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-title-bar); background: #ffffff; border-radius: var(--r-sm); } .menuItem { position: relative; } .menuButton, .menuButtonActive { height: 20px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: inherit; font-size: var(--fs-sm); } .menuButton:hover { background: rgb(255 255 255 / 16%); } .menuButtonActive { background: #ffffff; color: var(--c-accent); font-weight: 600; } .backdrop { position: fixed; inset: 0; z-index: 40; } .dropdown { position: absolute; top: 23px; left: 0; z-index: 41; min-width: 200px; margin: 0; padding: 3px; list-style: none; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: 0 6px 14px rgb(0 0 0 / 18%); } .dropdown button { display: block; width: 100%; padding: 4px 8px; text-align: left; border: 0; border-radius: var(--r-sm); background: transparent; font-size: var(--fs-sm); } .dropdown button:hover { background: var(--c-hover); } .quick { display: flex; gap: 3px; padding-left: 4px; } .quickButton { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgb(255 255 255 / 55%); border-radius: var(--r-sm); background: rgb(255 255 255 / 12%); color: #ffffff; font-size: 9px; line-height: 1; } .quickButton:hover { background: #ffffff; color: var(--c-title-bar); } .title { flex: 1; min-width: 0; text-align: center; font-size: var(--fs-md); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .role { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 10px 0 3px; border: 0; border-radius: 10px; background: var(--c-role); color: #ffffff; font-size: var(--fs-sm); font-weight: 600; } .role:hover { filter: brightness(1.08); } .roleMark { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: rgb(255 255 255 / 85%); color: var(--c-role); font-size: 9px; font-weight: 700; } .panelToggles { display: flex; gap: 2px; } .panelOn, .panelOff { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / 45%); border-radius: var(--r-sm); background: transparent; color: #ffffff; font-size: var(--fs-sm); } .panelOn { background: #ffffff; color: var(--c-title-bar); } .panelOff:hover { background: rgb(255 255 255 / 20%); } /* --------------------------------------------- компактные экраны */ @media (max-width: 1200px) { .quick { display: none; } } @media (max-width: 900px) { .header { gap: 6px; } .title { font-size: var(--fs-sm); } .role { padding: 0 8px 0 3px; max-width: 150px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } } @media (max-width: 560px) { .title { display: none; } .roleText { display: none; } .role { padding: 0 3px; } }