195 lines
3.1 KiB
SCSS
195 lines
3.1 KiB
SCSS
.hierarchy-container {
|
|
width: 100%;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--sg-border);
|
|
border-radius: var(--sg-radius-sm);
|
|
background: var(--sg-background);
|
|
padding: 4px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.loading-state {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 16px;
|
|
color: var(--sg-text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Flat Search Results Styles */
|
|
.search-results {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.results-meta {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--sg-text-muted);
|
|
text-transform: uppercase;
|
|
padding-left: 4px;
|
|
}
|
|
|
|
.flat-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.flat-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 6px;
|
|
border-bottom: 1px solid var(--sg-border-soft);
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.topic-name {
|
|
font-size: 12px;
|
|
color: var(--sg-text);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.topic-path {
|
|
font-size: 10px;
|
|
color: var(--sg-text-soft);
|
|
padding-left: 28px;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.empty-search {
|
|
padding: 16px;
|
|
font-size: 12px;
|
|
color: var(--sg-text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
/* Hierarchy Tree Styles */
|
|
.tree-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.tree-node {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.node-header {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
background: transparent;
|
|
border: none;
|
|
padding: 4px 6px;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
color: var(--sg-text);
|
|
|
|
&:hover {
|
|
background: var(--sg-surface-soft);
|
|
}
|
|
|
|
.toggle-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--sg-text-soft);
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.folder-icon {
|
|
font-size: 14px;
|
|
width: 14px;
|
|
height: 14px;
|
|
color: var(--sg-primary-soft);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.node-title {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.domain-header {
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
|
|
.domain-title {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--sg-text);
|
|
}
|
|
}
|
|
|
|
.field-header {
|
|
.field-title {
|
|
font-size: 11.5px;
|
|
font-weight: 500;
|
|
color: var(--sg-text-muted);
|
|
}
|
|
}
|
|
|
|
.subfield-header {
|
|
.subfield-title {
|
|
font-size: 11px;
|
|
color: var(--sg-text-muted);
|
|
}
|
|
}
|
|
|
|
.node-children {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.domain-children {
|
|
padding-left: 12px;
|
|
border-left: 1px solid var(--sg-border-soft);
|
|
margin-left: 12px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.field-children {
|
|
padding-left: 14px;
|
|
border-left: 1px solid var(--sg-border-soft);
|
|
margin-left: 14px;
|
|
}
|
|
|
|
.subfield-children {
|
|
padding-left: 14px;
|
|
border-left: 1px dashed var(--sg-border-soft);
|
|
margin-left: 14px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.tree-leaf {
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
.topic-node {
|
|
.topic-label {
|
|
font-size: 11px;
|
|
color: var(--sg-text);
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
display: block;
|
|
max-width: 190px;
|
|
}
|
|
}
|