feat: expand and secure mentor library
This commit is contained in:
@@ -11753,3 +11753,470 @@ button.account-role-badge:focus-visible { outline: 2px solid var(--blue); outlin
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.heaven-reading-mark { animation: none; }
|
||||
}
|
||||
|
||||
/* Mentor directory: dense evidence-aware navigation for larger skill libraries. */
|
||||
.mentor-layout {
|
||||
height: clamp(620px, calc(100dvh - 198px), 760px);
|
||||
min-height: 620px;
|
||||
grid-template-columns: 320px minmax(0, 1fr);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mentor-sidebar {
|
||||
min-height: 0;
|
||||
position: relative;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mentor-directory-toggle,
|
||||
.mentor-directory-close,
|
||||
.mentor-directory-backdrop {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mentor-directory-content {
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-rows: auto auto auto minmax(0, 1fr) auto;
|
||||
gap: 10px;
|
||||
padding: 14px 12px 10px;
|
||||
}
|
||||
|
||||
.mentor-directory-heading {
|
||||
min-height: 34px;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.mentor-directory-heading > div {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.mentor-directory-heading h3 {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.mentor-directory-heading span {
|
||||
color: var(--text-muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.mentor-search-field {
|
||||
height: 40px;
|
||||
display: grid;
|
||||
grid-template-columns: 18px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 6px;
|
||||
background: var(--surface);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.mentor-search-field:focus-within {
|
||||
border-color: var(--action);
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--action) 14%, transparent);
|
||||
}
|
||||
|
||||
.mentor-search-field .lucide {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.mentor-search-field input {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 38px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.mentor-evidence-filters {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 4px;
|
||||
padding: 3px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.mentor-evidence-filters button {
|
||||
min-width: 0;
|
||||
min-height: 30px;
|
||||
padding: 0 4px;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mentor-evidence-filters button:hover,
|
||||
.mentor-evidence-filters button.active {
|
||||
background: var(--action-soft);
|
||||
color: var(--action);
|
||||
}
|
||||
|
||||
.mentor-evidence-filters button:focus-visible {
|
||||
outline: 2px solid var(--action);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
.mentor-list {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
align-content: start;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 2px;
|
||||
padding-right: 3px;
|
||||
overflow-y: auto;
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.mentor-option {
|
||||
min-height: 66px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 9px;
|
||||
border: 1px solid transparent;
|
||||
border-bottom-color: var(--border);
|
||||
border-radius: 4px;
|
||||
background: transparent;
|
||||
transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
|
||||
}
|
||||
|
||||
.mentor-option:hover {
|
||||
border-color: var(--border-strong);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.mentor-option.active {
|
||||
border-color: color-mix(in srgb, var(--action) 42%, var(--border));
|
||||
background: var(--action-soft);
|
||||
box-shadow: inset 3px 0 var(--action);
|
||||
}
|
||||
|
||||
.mentor-option:focus-visible {
|
||||
outline: 2px solid var(--action);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
|
||||
.mentor-option-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.mentor-option-copy strong {
|
||||
overflow: hidden;
|
||||
font-size: 13px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mentor-option-copy em {
|
||||
overflow: hidden;
|
||||
color: var(--text-muted);
|
||||
font-size: 10px;
|
||||
font-style: normal;
|
||||
line-height: 1.4;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mentor-option-badges,
|
||||
.mentor-active-badges {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.mentor-option-badges {
|
||||
max-width: 76px;
|
||||
}
|
||||
|
||||
.mentor-badge {
|
||||
min-height: 21px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 3px;
|
||||
padding: 0 6px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
background: var(--surface);
|
||||
color: var(--text-secondary);
|
||||
font-size: 9px;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mentor-badge .lucide {
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
}
|
||||
|
||||
.mentor-badge.grade-a { border-color: #a9c9b9; background: #eef7f1; color: #2f6a50; }
|
||||
.mentor-badge.grade-b { border-color: #b3c8db; background: #eff5fa; color: #315f83; }
|
||||
.mentor-badge.grade-c { border-color: #d9c49c; background: #faf5e9; color: #805d24; }
|
||||
.mentor-badge.private { border-color: #d7c28e; background: #fff8e5; color: #7a5d16; }
|
||||
.mentor-badge.quality { background: var(--surface-muted); color: var(--text-muted); }
|
||||
.mentor-badge.quality.conditional { border-style: dashed; color: #805d24; }
|
||||
|
||||
.mentor-list-empty {
|
||||
padding: 28px 12px;
|
||||
color: var(--text-muted);
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mentor-evidence-legend {
|
||||
margin: 0;
|
||||
padding: 7px 3px 0;
|
||||
border-top: 1px solid var(--border);
|
||||
color: var(--text-muted);
|
||||
font-size: 9px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.mentor-chat-panel {
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto auto auto;
|
||||
}
|
||||
|
||||
.mentor-chat-header {
|
||||
min-height: 96px;
|
||||
padding: 12px 18px;
|
||||
}
|
||||
|
||||
.mentor-active-profile {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.mentor-active-title {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.mentor-active-title h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mentor-active-profile > p {
|
||||
max-width: 760px;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
color: var(--text-secondary);
|
||||
font-size: 11px;
|
||||
line-height: 1.45;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mentor-active-focus {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.mentor-active-focus span {
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
background: var(--surface-muted);
|
||||
color: var(--text-secondary);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.mentor-messages {
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
@media (min-width: 721px) and (max-width: 1023px) {
|
||||
.mentor-layout {
|
||||
grid-template-columns: 280px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.mentor-sidebar {
|
||||
max-height: none;
|
||||
overflow: hidden;
|
||||
border-right: 1px solid var(--line);
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.mentor-list {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
body.mentor-directory-open {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.mentor-layout {
|
||||
height: auto;
|
||||
min-height: 580px;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.mentor-sidebar {
|
||||
height: 56px;
|
||||
min-height: 56px;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
}
|
||||
|
||||
.mentor-directory-toggle {
|
||||
width: 100%;
|
||||
min-height: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 0 12px;
|
||||
border: 0;
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.mentor-directory-toggle > span {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.mentor-directory-toggle > span > span {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.mentor-directory-toggle small {
|
||||
color: var(--text-muted);
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
.mentor-directory-toggle strong {
|
||||
overflow: hidden;
|
||||
font-size: 13px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.mentor-directory-toggle > .lucide {
|
||||
transition: transform var(--motion-medium) var(--ease-out);
|
||||
}
|
||||
|
||||
.mentor-sidebar.is-open .mentor-directory-toggle > .lucide {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.mentor-directory-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 79;
|
||||
display: block;
|
||||
background: rgba(20, 27, 33, 0.48);
|
||||
}
|
||||
|
||||
.mentor-directory-content {
|
||||
height: auto;
|
||||
position: fixed;
|
||||
inset: 66px 8px 72px;
|
||||
z-index: 80;
|
||||
padding: 14px 12px 10px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 8px;
|
||||
background: var(--surface-muted);
|
||||
box-shadow: var(--shadow);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transform: translateY(12px);
|
||||
transition: opacity var(--motion-medium) ease, transform var(--motion-medium) var(--ease-out);
|
||||
}
|
||||
|
||||
.mentor-sidebar.is-open .mentor-directory-content {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.mentor-directory-close {
|
||||
width: 44px;
|
||||
min-height: 44px;
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.mentor-search-field {
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.mentor-search-field input {
|
||||
height: 42px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.mentor-evidence-filters button {
|
||||
min-height: 44px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.mentor-option {
|
||||
min-height: 68px;
|
||||
}
|
||||
|
||||
.mentor-chat-panel {
|
||||
min-height: 580px;
|
||||
}
|
||||
|
||||
.mentor-chat-header {
|
||||
min-height: 104px;
|
||||
padding: 11px 12px;
|
||||
}
|
||||
|
||||
.mentor-active-profile > p {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.mentor-directory-content,
|
||||
.mentor-directory-toggle > .lucide,
|
||||
.mentor-option {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user