Reduce person-funding component styles below 10 kB CI budget
This commit is contained in:
@@ -29,11 +29,6 @@
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
transition: background 0.15s ease, border-color 0.15s ease;
|
||||
|
||||
&:not(.active):hover {
|
||||
background: #fafafa;
|
||||
}
|
||||
|
||||
&.active {
|
||||
font-weight: 600;
|
||||
@@ -45,61 +40,25 @@
|
||||
button:nth-child(2) {
|
||||
color: #3b82c4;
|
||||
border-color: #c7dcfa;
|
||||
|
||||
&:not(.active):hover {
|
||||
background: #f5f9ff;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #0b4f9e;
|
||||
background: #e8f2ff;
|
||||
border-color: #3b82c4;
|
||||
}
|
||||
&.active { color: #0b4f9e; background: #e8f2ff; border-color: #3b82c4; }
|
||||
}
|
||||
|
||||
button:nth-child(3) {
|
||||
color: #3d9a66;
|
||||
border-color: #b8e6cb;
|
||||
|
||||
&:not(.active):hover {
|
||||
background: #f4fbf7;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #1a6b3f;
|
||||
background: #e8f7ee;
|
||||
border-color: #3d9a66;
|
||||
}
|
||||
&.active { color: #1a6b3f; background: #e8f7ee; border-color: #3d9a66; }
|
||||
}
|
||||
|
||||
button:nth-child(4) {
|
||||
color: #7c65d9;
|
||||
border-color: #d5c8f8;
|
||||
|
||||
&:not(.active):hover {
|
||||
background: #f8f5ff;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #5b3fc9;
|
||||
background: #f0ebff;
|
||||
border-color: #7c65d9;
|
||||
}
|
||||
&.active { color: #5b3fc9; background: #f0ebff; border-color: #7c65d9; }
|
||||
}
|
||||
|
||||
button:nth-child(5) {
|
||||
color: #d1435f;
|
||||
border-color: #f8c4ce;
|
||||
|
||||
&:not(.active):hover {
|
||||
background: #fff5f6;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: #a61e3a;
|
||||
background: #ffe8ec;
|
||||
border-color: #d1435f;
|
||||
}
|
||||
&.active { color: #a61e3a; background: #ffe8ec; border-color: #d1435f; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,9 +73,7 @@
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
|
||||
span {
|
||||
color: #555;
|
||||
}
|
||||
span { color: #555; }
|
||||
|
||||
select {
|
||||
border: 0;
|
||||
@@ -146,9 +103,7 @@
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.sort-control {
|
||||
margin-left: auto;
|
||||
}
|
||||
.sort-control { margin-left: auto; }
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
@@ -164,14 +119,7 @@
|
||||
|
||||
tr {
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background: #f0f0f0;
|
||||
}
|
||||
&.selected { background: #f0f0f0; }
|
||||
}
|
||||
|
||||
td {
|
||||
@@ -206,13 +154,13 @@
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0 0 16px 0;
|
||||
margin: 0 0 16px;
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 16px 0 8px 0;
|
||||
margin: 16px 0 8px;
|
||||
font-size: 14px;
|
||||
color: #555;
|
||||
}
|
||||
@@ -221,16 +169,13 @@
|
||||
.position-stats {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
margin: 0 auto 16px;
|
||||
width: fit-content;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
.stat {
|
||||
flex: 0.0 auto;
|
||||
min-width: 100px;
|
||||
text-align: center;
|
||||
background: white;
|
||||
background: #fff;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
@@ -249,20 +194,48 @@
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
.stat-first {
|
||||
background: #effaf3;
|
||||
border-color: #bdebcf;
|
||||
}
|
||||
}
|
||||
|
||||
.stat-middle {
|
||||
background: #f6f0ff;
|
||||
border-color: #d8cafe;
|
||||
}
|
||||
.stat-first,
|
||||
.position-badge--first,
|
||||
.hero-highlight--open,
|
||||
.publication-detail-grid .access-badge--open {
|
||||
background: #effaf3;
|
||||
}
|
||||
|
||||
.stat-last {
|
||||
background: #fff1f2;
|
||||
border-color: #fda4af;
|
||||
}
|
||||
.stat-first { border-color: #bdebcf; }
|
||||
|
||||
.position-badge--first {
|
||||
color: #24834f;
|
||||
border: 1px solid #bdebcf;
|
||||
}
|
||||
|
||||
.hero-highlight--open,
|
||||
.publication-detail-grid .access-badge--open {
|
||||
border-color: #bdebcf;
|
||||
color: #24834f;
|
||||
}
|
||||
|
||||
.stat-middle,
|
||||
.position-badge--middle {
|
||||
background: #f6f0ff;
|
||||
border-color: #d8cafe;
|
||||
}
|
||||
|
||||
.position-badge--middle {
|
||||
color: #7255d9;
|
||||
border: 1px solid #d8cafe;
|
||||
}
|
||||
|
||||
.stat-last,
|
||||
.position-badge--last {
|
||||
background: #fff1f2;
|
||||
border-color: #fda4af;
|
||||
}
|
||||
|
||||
.position-badge--last {
|
||||
color: #be123c;
|
||||
border: 1px solid #fda4af;
|
||||
}
|
||||
|
||||
.publication-list {
|
||||
@@ -290,7 +263,7 @@
|
||||
padding: 4px 10px;
|
||||
border: 1px solid #d0d0d0;
|
||||
border-radius: 6px;
|
||||
background: white;
|
||||
background: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
|
||||
@@ -320,7 +293,6 @@
|
||||
color: #475569;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
@@ -378,8 +350,6 @@
|
||||
text-align: left;
|
||||
|
||||
.material-icons {
|
||||
flex-shrink: 0;
|
||||
margin-top: 1px;
|
||||
font-size: 20px;
|
||||
color: #3b82c4;
|
||||
}
|
||||
@@ -393,19 +363,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
.funding-publication-page {
|
||||
padding: 16px;
|
||||
}
|
||||
.funding-publication-page { padding: 16px; }
|
||||
|
||||
.publication-detail-back {
|
||||
.publication-detail-back,
|
||||
.publication-more-info {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.publication-detail-back { gap: 6px; }
|
||||
|
||||
.publication-more-info {
|
||||
gap: 4px;
|
||||
margin-top: 6px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.publication-detail-hero {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -439,7 +415,6 @@
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -475,7 +450,6 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
padding: 10px 16px;
|
||||
border: 1px solid #bdd4ff;
|
||||
border-radius: 8px;
|
||||
@@ -484,33 +458,14 @@
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
background: #e3efff;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
font-size: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.publication-detail-hero {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
|
||||
&__action {
|
||||
justify-content: center;
|
||||
}
|
||||
.material-icons { font-size: 18px; }
|
||||
}
|
||||
}
|
||||
|
||||
.hero-highlight {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
min-width: 72px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid #e0e6f0;
|
||||
border-radius: 8px;
|
||||
@@ -527,7 +482,6 @@
|
||||
font-size: 0.7rem;
|
||||
color: #64748b;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
&--badge {
|
||||
@@ -539,12 +493,6 @@
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
&--open {
|
||||
border-color: #bdebcf;
|
||||
background: #effaf3;
|
||||
color: #24834f;
|
||||
}
|
||||
|
||||
&--closed {
|
||||
border-color: #e0e6f0;
|
||||
background: #f8fafc;
|
||||
@@ -560,24 +508,6 @@
|
||||
font-size: 0.8rem;
|
||||
font-weight: 700;
|
||||
|
||||
&--first {
|
||||
background: #effaf3;
|
||||
color: #24834f;
|
||||
border: 1px solid #bdebcf;
|
||||
}
|
||||
|
||||
&--middle {
|
||||
background: #f6f0ff;
|
||||
color: #7255d9;
|
||||
border: 1px solid #d8cafe;
|
||||
}
|
||||
|
||||
&--last {
|
||||
background: #fff1f2;
|
||||
color: #be123c;
|
||||
border: 1px solid #fda4af;
|
||||
}
|
||||
|
||||
&--unknown {
|
||||
background: #f1f5f9;
|
||||
color: #64748b;
|
||||
@@ -585,179 +515,123 @@
|
||||
}
|
||||
}
|
||||
|
||||
.publication-detail-grid {
|
||||
$g: '.publication-detail-grid';
|
||||
|
||||
#{$g} {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.publication-detail-main,
|
||||
.publication-detail-side {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
#{$g} .publication-detail-main,
|
||||
#{$g} .publication-detail-side {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.publication-detail-section {
|
||||
border: 1px solid #e0e6f0;
|
||||
border-radius: 10px;
|
||||
padding: 18px;
|
||||
background: #fff;
|
||||
#{$g} .publication-detail-section {
|
||||
border: 1px solid #e0e6f0;
|
||||
border-radius: 10px;
|
||||
padding: 18px;
|
||||
background: #fff;
|
||||
|
||||
h3 {
|
||||
margin: 0 0 14px;
|
||||
font-size: 1rem;
|
||||
color: #1e3a5f;
|
||||
}
|
||||
|
||||
&--funding {
|
||||
background: #fafbfd;
|
||||
}
|
||||
}
|
||||
|
||||
.publication-overview,
|
||||
.publication-abstract {
|
||||
margin: 0;
|
||||
color: #334155;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.publication-detail-facts {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin: 0;
|
||||
|
||||
div {
|
||||
display: grid;
|
||||
grid-template-columns: 130px minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
dt {
|
||||
color: #64748b;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
color: #1e293b;
|
||||
}
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
|
||||
&--compact .tag {
|
||||
font-size: 0.75rem;
|
||||
padding: 3px 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.tag {
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: #f0f6ff;
|
||||
border: 1px solid #dbeafe;
|
||||
color: #1e40af;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.access-badge {
|
||||
display: inline-flex;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
background: #f1f5f9;
|
||||
color: #64748b;
|
||||
|
||||
&--open {
|
||||
background: #effaf3;
|
||||
color: #24834f;
|
||||
}
|
||||
|
||||
&--closed {
|
||||
background: #f8fafc;
|
||||
color: #475569;
|
||||
}
|
||||
}
|
||||
|
||||
.access-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.inline-action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: #0b63ce;
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
text-decoration: none;
|
||||
|
||||
.material-icons {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.warning-badge {
|
||||
display: inline-flex;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: #fef2f2;
|
||||
border: 1px solid #fecaca;
|
||||
color: #b91c1c;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.citation-year-table {
|
||||
border-collapse: collapse;
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 2px 0;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
th {
|
||||
padding-right: 20px;
|
||||
font-weight: 600;
|
||||
color: #334155;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
td {
|
||||
color: #1e293b;
|
||||
}
|
||||
h3 {
|
||||
margin: 0 0 14px;
|
||||
font-size: 1rem;
|
||||
color: #1e3a5f;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.publication-detail-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
#{$g} .publication-overview,
|
||||
#{$g} .publication-abstract {
|
||||
margin: 0;
|
||||
color: #334155;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
#{$g} .publication-detail-facts {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#{$g} .publication-detail-facts div {
|
||||
display: grid;
|
||||
grid-template-columns: 130px minmax(0, 1fr);
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
#{$g} .publication-detail-facts dt {
|
||||
color: #64748b;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
#{$g} .publication-detail-facts dd {
|
||||
margin: 0;
|
||||
word-break: break-word;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
#{$g} .tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
#{$g} .tag,
|
||||
#{$g} .access-badge,
|
||||
#{$g} .warning-badge {
|
||||
display: inline-flex;
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
#{$g} .tag {
|
||||
background: #f0f6ff;
|
||||
border: 1px solid #dbeafe;
|
||||
color: #1e40af;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
#{$g} .access-badge {
|
||||
font-weight: 600;
|
||||
background: #f1f5f9;
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
#{$g} .access-badge--closed {
|
||||
background: #f8fafc;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
#{$g} .inline-action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: #0b63ce;
|
||||
font-weight: 600;
|
||||
font-size: 0.875rem;
|
||||
text-decoration: none;
|
||||
|
||||
.material-icons { font-size: 16px; }
|
||||
}
|
||||
|
||||
#{$g} .warning-badge {
|
||||
background: #fef2f2;
|
||||
border: 1px solid #fecaca;
|
||||
color: #b91c1c;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.publication-item {
|
||||
padding: 8px 0;
|
||||
border-bottom: 2px solid #5b5555;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
background: #f9f9f9;
|
||||
}
|
||||
}
|
||||
|
||||
.publication-title {
|
||||
@@ -767,30 +641,31 @@
|
||||
word-break: break-word;
|
||||
display: block;
|
||||
}
|
||||
.publication-more-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-top: 6px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mehr-infos-label,
|
||||
.publication-link-icon { color: #1976d2; }
|
||||
|
||||
.mehr-infos-label {
|
||||
font-size: 0.8rem;
|
||||
color: #1976d2;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.publication-link-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #1976d2;
|
||||
flex-shrink: 0;
|
||||
|
||||
.material-icons {
|
||||
font-size: 16px;
|
||||
.material-icons { font-size: 16px; }
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.publication-detail-hero {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
|
||||
&__action { justify-content: center; }
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
#{$g} { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user