Files
smartguide/webapp/src/app/shared/ui/dfg-project-table/dfg-project-table.component.scss
T

335 lines
5.8 KiB
SCSS

.page {
padding: 28px 32px 42px;
max-width: 100%;
margin: 0 auto;
}
:host ::ng-deep {
.mat-column-title {
min-width: 280px;
}
.mat-column-names {
min-width: 200px;
}
}
// ------------------------
// Shared tags & chips
// ------------------------
.publication-institution-tag {
display: inline-flex;
align-items: center;
padding: 2px 6px;
border: 1px solid var(--sg-primary-border, var(--sg-border));
border-radius: 4px;
background: var(--sg-primary-soft);
color: var(--sg-primary);
font-size: 10px;
font-weight: 600;
line-height: normal;
max-width: 100%;
margin: 0;
font-family: inherit;
cursor: pointer;
transition: all 0.2s ease;
&:hover,
&:focus-visible {
background: var(--sg-primary);
color: var(--sg-background);
border-color: var(--sg-primary);
outline: none;
box-shadow:
0 0 0 2px var(--sg-background),
0 0 0 4px var(--sg-primary);
}
&.active {
border-color: var(--sg-primary);
box-shadow:
0 0 0 1px var(--sg-background),
0 0 0 3px var(--sg-primary);
}
&.active:hover,
&.active:focus-visible {
background: var(--sg-primary);
color: var(--sg-background);
}
.institution-icon {
flex-shrink: 0;
width: 12px;
height: 12px;
margin-right: 4px;
font-size: 12px;
}
.institution-name {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
min-width: 0;
white-space: normal;
overflow-wrap: anywhere;
}
.flag-img {
flex-shrink: 0;
margin-left: 6px;
border: 1px solid;
}
.country-code {
flex-shrink: 0;
margin-left: 2px;
font-size: 9px;
}
.institution-open-icon {
flex-shrink: 0;
width: 12px;
height: 12px;
margin-left: 5px;
font-size: 12px;
line-height: 1;
cursor: pointer;
opacity: 0;
transition: opacity 0.15s ease;
}
&:hover .institution-open-icon {
opacity: 0.7;
}
.institution-open-icon:hover {
opacity: 1;
}
}
// ------------------------
// Containers for chips
// ------------------------
.topic-chips,
.institution-tags,
.classification-tags,
.author-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.classification-tags {
padding: 0.5rem 0.5rem;
}
.topic-chips {
max-width: 320px;
}
.institution-tags {
align-items: flex-start;
max-width: 280px;
}
.author-tags {
align-items: flex-start;
max-width: 280px;
padding: 0.5rem 0;
}
// ------------------------
// Empty text
// ------------------------
.empty-text {
color: var(--sg-text-muted);
}
// ------------------------
// Classification container
// ------------------------
.classification-tag {
max-width: 280px;
cursor: default; // not clickable/filterable, unlike author/institution tags
.institution-name {
display: block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
// ------------------------
// Responsive adjustments
// ------------------------
@media (max-width: 600px) {
.page {
padding: 16px;
}
}
// ------------------------
// Expanded project highlights
// ------------------------
.project-highlight-details {
width: 100%;
padding: 10px 14px 12px;
color: var(--sg-text);
background: var(--sg-background);
border-top: 1px solid var(--sg-border);
}
.highlight-header {
margin-bottom: 8px;
}
.highlight-header__title {
display: flex;
align-items: flex-start;
gap: 7px;
> mat-icon {
flex: 0 0 auto;
width: 19px;
height: 19px;
color: var(--sg-primary);
font-size: 19px;
}
h3 {
margin: 0;
font-size: 13px;
font-weight: 700;
line-height: 1.2;
}
p {
margin: 1px 0 0;
color: var(--sg-text-muted);
font-size: 10px;
line-height: 1.3;
}
}
.highlight-content-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
gap: 7px;
}
.highlight-section {
min-width: 0;
border: 1px solid var(--sg-border);
border-radius: 5px;
overflow: hidden;
}
.highlight-section__header,
.classification-highlight-section__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 7px;
min-height: 32px;
padding: 4px 7px;
background: var(--sg-primary-soft);
border-bottom: 1px solid var(--sg-border);
}
.highlight-section__heading {
display: flex;
align-items: center;
min-width: 0;
gap: 5px;
mat-icon {
flex: 0 0 auto;
width: 15px;
height: 15px;
color: var(--sg-primary);
font-size: 15px;
}
h4 {
margin: 0;
font-size: 11px;
font-weight: 700;
}
}
.language-toggle {
display: inline-flex;
flex: 0 0 auto;
margin-top: 5px;
padding: 1px;
border: 1px solid var(--sg-border);
border-radius: 4px;
background: var(--sg-background);
}
.language-toggle__button {
min-width: 27px;
padding: 2px 5px;
border: 0;
border-radius: 3px;
color: var(--sg-text-muted);
background: transparent;
font-family: inherit;
font-size: 9px;
font-weight: 700;
line-height: 1.4;
cursor: pointer;
&:hover,
&:focus-visible {
color: var(--sg-primary);
outline: none;
}
&.active {
color: var(--sg-background);
background: var(--sg-primary);
}
}
.language-label {
flex: 0 0 auto;
padding: 2px 5px;
border: 1px solid var(--sg-border);
border-radius: 3px;
color: var(--sg-text-muted);
background: var(--sg-background);
font-size: 9px;
font-weight: 700;
}
.highlight-section__body {
display: grid;
gap: 4px;
padding: 6px 7px;
}
.highlight-snippet {
margin: 0;
padding: 4px 6px;
border-left: 2px solid var(--sg-primary);
border-radius: 0 3px 3px 0;
background: color-mix(
in srgb,
var(--sg-primary-soft) 55%,
var(--sg-background)
);
font-size: 11px;
line-height: 1.4;
overflow-wrap: anywhere;
}
.keka {
background: var(--sg-surface-soft);
}