Files
smartguide/webapp/src/app/modules/topic-hierarchy/topic-hierarchy.component.scss
T

228 lines
3.7 KiB
SCSS

.hierarchy-container {
width: 100%;
max-height: 400px;
overflow-y: auto;
overflow-x: hidden;
border: 1px solid var(--sg-border);
border-radius: var(--sg-radius-sm);
background: var(--sg-background);
padding: 4px 8px 4px 4px;
margin-top: 4px;
box-sizing: border-box;
}
.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;
display: block;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.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;
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;
min-width: 0;
}
}
.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: 10px;
border-left: 1px solid var(--sg-border-soft);
margin-left: 12px;
margin-bottom: 4px;
}
.field-children {
padding-left: 10px;
border-left: 1px solid var(--sg-border-soft);
margin-left: 12px;
}
.subfield-children {
padding-left: 10px;
border-left: 1px dashed var(--sg-border-soft);
margin-left: 12px;
margin-bottom: 2px;
}
.tree-leaf {
padding: 2px 4px;
width: 100%;
box-sizing: border-box;
}
.topic-node {
width: 100%;
box-sizing: border-box;
.topic-label {
font-size: 11px;
color: var(--sg-text);
display: block;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
mat-checkbox {
display: block !important;
width: 100% !important;
::ng-deep {
.mdc-form-field {
width: 100% !important;
display: flex !important;
align-items: center;
}
.mdc-label {
flex: 1 !important;
min-width: 0 !important;
overflow: hidden;
padding-left: 8px !important;
}
}
}