280 lines
4.3 KiB
SCSS
280 lines
4.3 KiB
SCSS
.compare-layout {
|
|
padding: 28px 32px 42px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
max-width: 1280px;
|
|
margin: 0 auto;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* ---- header ---- */
|
|
.compare-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--sg-text, #101a3d);
|
|
}
|
|
}
|
|
|
|
.compare-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.meta-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 12px;
|
|
border-radius: 999px;
|
|
background: var(--sg-surface-muted, #f7f9ff);
|
|
border: 1px solid var(--sg-border, #dde5f2);
|
|
color: var(--sg-text-muted, #64708f);
|
|
font-size: 13px;
|
|
|
|
mat-icon {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--sg-text-soft, #8a95b3);
|
|
}
|
|
}
|
|
|
|
.author-legend {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px 18px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--sg-text, #101a3d);
|
|
}
|
|
|
|
.legend-swatch {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 3px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
/* ---- cards ---- */
|
|
.card {
|
|
background: #fff;
|
|
border: 1px solid #d7e4ff;
|
|
border-radius: 16px;
|
|
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
|
|
padding: 20px 22px;
|
|
}
|
|
|
|
.card-title {
|
|
margin: 0;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--sg-text, #101a3d);
|
|
}
|
|
|
|
.card-sub {
|
|
margin: 4px 0 0;
|
|
font-size: 13px;
|
|
color: var(--sg-text-muted, #64708f);
|
|
}
|
|
|
|
.compare-hint {
|
|
padding: 24px;
|
|
text-align: center;
|
|
color: var(--sg-text-muted, #64708f);
|
|
}
|
|
|
|
/* ---- comparison table ---- */
|
|
.table-scroll {
|
|
margin-top: 14px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.compare-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
|
|
thead th {
|
|
text-align: left;
|
|
padding: 0 16px 10px;
|
|
border-bottom: 2px solid var(--sg-border, #dde5f2);
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
.author-col {
|
|
text-align: right;
|
|
}
|
|
|
|
.th-name {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 700;
|
|
color: var(--sg-text, #101a3d);
|
|
}
|
|
|
|
tbody tr + tr th,
|
|
tbody tr + tr td {
|
|
border-top: 1px solid var(--sg-border, #dde5f2);
|
|
}
|
|
|
|
tbody th,
|
|
tbody td {
|
|
padding: 12px 16px;
|
|
}
|
|
}
|
|
|
|
.metric-col {
|
|
min-width: 220px;
|
|
}
|
|
|
|
.metric-label {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: var(--sg-text, #101a3d);
|
|
}
|
|
|
|
.metric-hint {
|
|
display: block;
|
|
margin-top: 2px;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
color: var(--sg-text-soft, #8a95b3);
|
|
}
|
|
|
|
.value-cell {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--sg-text, #101a3d);
|
|
white-space: nowrap;
|
|
|
|
&.best {
|
|
font-weight: 700;
|
|
color: var(--sg-primary, #0b1020);
|
|
background: var(--sg-surface-soft, #f3f6fd);
|
|
}
|
|
}
|
|
|
|
.value-empty {
|
|
color: var(--sg-text-soft, #8a95b3);
|
|
}
|
|
|
|
/* author-position row: first / middle / last shown together, colour-coded */
|
|
.position-cell {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.pos {
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
|
|
&.pos-first {
|
|
color: #16a34a;
|
|
}
|
|
&.pos-middle {
|
|
color: #d97706;
|
|
}
|
|
&.pos-last {
|
|
color: #2563eb;
|
|
}
|
|
&.rel-count {
|
|
color: #7c3aed;
|
|
}
|
|
&.rel-avg {
|
|
color: #0891b2;
|
|
}
|
|
&.cit-total {
|
|
color: #b91c1c;
|
|
}
|
|
&.cit-avg {
|
|
color: #ea580c;
|
|
}
|
|
&.fwci-count {
|
|
color: #4d7c0f;
|
|
}
|
|
&.fwci-avg {
|
|
color: #0d9488;
|
|
}
|
|
&.year-from {
|
|
color: #6d28d9;
|
|
}
|
|
&.year-to {
|
|
color: #be185d;
|
|
}
|
|
&.ind-count {
|
|
color: #92400e;
|
|
}
|
|
&.ind-share {
|
|
color: #1d4ed8;
|
|
}
|
|
}
|
|
|
|
.pos-sep {
|
|
margin: 0 4px;
|
|
color: var(--sg-text-soft, #b6bed6);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.position-legend {
|
|
display: block;
|
|
margin-top: 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ---- section 3: topic profile charts ---- */
|
|
.chart-title {
|
|
margin: 18px 0 0;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--sg-text, #101a3d);
|
|
}
|
|
|
|
.chart-hint {
|
|
margin: 2px 0 8px;
|
|
font-size: 12px;
|
|
color: var(--sg-text-muted, #64708f);
|
|
}
|
|
|
|
.profile-chart {
|
|
width: 100%;
|
|
height: 260px;
|
|
}
|
|
|
|
.profile-chart-wide {
|
|
height: 320px;
|
|
}
|
|
|
|
.chart-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 8px 24px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.compare-layout {
|
|
padding: 20px 16px 32px;
|
|
}
|
|
|
|
.chart-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|