Compare commits

...
Author SHA1 Message Date
khalti 9c3231a403 feat(funding): adjust stat box size
LocationBasedServices/smartguide/pipeline/head This commit looks good
2026-06-07 10:58:44 +02:00
@@ -1,298 +1,298 @@
.message {
padding: 16px;
color: #666;
}
.funding-container {
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
.filter-bar {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
span {
font-weight: 500;
color: #555;
}
button {
padding: 6px 14px;
border: 1px solid #ccc;
border-radius: 20px;
background: white;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
&:hover {
background: #f0f0f0;
}
}
button:nth-child(2) {
background: #f0f6ff;
color: #0b63ce;
border-color: #bdd4ff;
}
button:nth-child(3) {
background: #effaf3;
color: #24834f;
border-color: #bdebcf;
}
button:nth-child(4) {
background: #f6f0ff;
color: #7255d9;
border-color: #d8cafe;
}
button:nth-child(5) {
background: #fff7e8;
color: #c67500;
border-color: #ffd796;
}
}
.funding-content {
display: flex;
gap: 24px;
align-items: flex-start;
}
.funding-list {
flex: 1;
table {
width: 100%;
border-collapse: collapse;
th {
text-align: left;
padding: 10px 12px;
border-bottom: 2px solid #e0e0e0;
font-weight: 600;
color: #333;
}
tr {
cursor: pointer;
transition: background 0.15s;
&:hover {
background: #f5f5f5;
}
&.selected {
background: #f0f0f0;
}
}
td {
padding: 10px 12px;
border-bottom: 1px solid #f0f0f0;
}
.funder-name {
color: #333;
font-weight: 500;
}
}
}
.funding-detail {
width: 440px;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 20px;
background: #fafafa;
&.empty {
display: flex;
align-items: center;
justify-content: center;
color: #999;
min-height: 200px;
}
h3 {
margin: 0 0 16px 0;
font-size: 16px;
color: #333;
}
h4 {
margin: 16px 0 8px 0;
font-size: 14px;
color: #555;
}
}
.position-stats {
display: flex;
gap: 12px;
margin-bottom: 16px;
width: fit-content;
margin-left: auto;
margin-right: auto;
.stat {
flex: 0.0 auto;
min-width: 100px;
text-align: center;
background: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 10px;
.stat-label {
display: block;
font-size: 12px;
color: #666;
margin-bottom: 4px;
}
.stat-value {
display: block;
font-size: 22px;
font-weight: bold;
color: #333;
}
}
.stat-first {
background: #effaf3;
border-color: #bdebcf;
}
.stat-middle {
background: #f6f0ff;
border-color: #d8cafe;
}
.stat-last {
background: #fff7e8;
border-color: #ffd796;
}
}
.publication-list {
list-style: none;
padding: 0;
margin: 0;
max-height: 300px;
overflow-y: auto;
li {
padding: 6px 0;
border-bottom: 1px solid #5b5555;
font-size: 13px;
a {
color: #2563eb;
text-decoration: none;
word-break: break-all;
&:hover {
color: #1d4ed8;
text-decoration: underline;
}
}
}
}
.publication-pagination {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-top: 12px;
button {
padding: 4px 10px;
border: 1px solid #d0d0d0;
border-radius: 6px;
background: white;
cursor: pointer;
font-size: 12px;
&:disabled {
opacity: 0.5;
cursor: default;
}
}
span {
font-size: 12px;
color: #666;
}
}
.funding-summary {
margin-bottom: 16px;
.summary-line {
margin: 0 0 4px 0;
font-size: 14px;
color: #333;
}
.summary-label {
color: #333;
}
.summary-value {
font-weight: 600;
color: #333;
}
}
.publication-item {
padding: 8px 0;
border-bottom: 2px solid #5b5555;
cursor: pointer;
&:hover {
background: #f9f9f9;
}
}
.publication-title {
font-size: 0.875rem;
color: #333;
white-space: normal;
word-break: break-word;
display: block;
}
.publication-more-info {
display: flex;
align-items: center;
flex-direction: row;
gap: 4px;
margin-top: 6px;
}
.mehr-infos-label {
font-size: 0.8rem;
color: #1976d2;
font-weight: 500;
}
.publication-link-icon {
display: flex;
align-items: center;
color: #1976d2;
text-decoration: none;
flex-shrink: 0;
.material-icons {
font-size: 16px;
}
&:hover {
color: #0d47a1;
}
}
.message {
padding: 16px;
color: #666;
}
.funding-container {
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
.filter-bar {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
span {
font-weight: 500;
color: #555;
}
button {
padding: 6px 14px;
border: 1px solid #ccc;
border-radius: 20px;
background: white;
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
&:hover {
background: #f0f0f0;
}
}
button:nth-child(2) {
background: #f0f6ff;
color: #0b63ce;
border-color: #bdd4ff;
}
button:nth-child(3) {
background: #effaf3;
color: #24834f;
border-color: #bdebcf;
}
button:nth-child(4) {
background: #f6f0ff;
color: #7255d9;
border-color: #d8cafe;
}
button:nth-child(5) {
background: #fff7e8;
color: #c67500;
border-color: #ffd796;
}
}
.funding-content {
display: flex;
gap: 24px;
align-items: flex-start;
}
.funding-list {
flex: 1;
table {
width: 100%;
border-collapse: collapse;
th {
text-align: left;
padding: 10px 12px;
border-bottom: 2px solid #e0e0e0;
font-weight: 600;
color: #333;
}
tr {
cursor: pointer;
transition: background 0.15s;
&:hover {
background: #f5f5f5;
}
&.selected {
background: #f0f0f0;
}
}
td {
padding: 10px 12px;
border-bottom: 1px solid #f0f0f0;
}
.funder-name {
color: #333;
font-weight: 500;
}
}
}
.funding-detail {
width: 580px;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 20px;
background: #fafafa;
&.empty {
display: flex;
align-items: center;
justify-content: center;
color: #999;
min-height: 200px;
}
h3 {
margin: 0 0 16px 0;
font-size: 16px;
color: #333;
}
h4 {
margin: 8px 0 6px 0;
font-size: 14px;
color: #555;
}
}
.position-stats {
display: flex;
gap: 12px;
margin-bottom: 8px;
width: fit-content;
margin-left: auto;
margin-right: auto;
.stat {
flex: 0.0 auto;
min-width: 100px;
text-align: center;
background: white;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 10px;
.stat-label {
display: block;
font-size: 12px;
color: #666;
margin-bottom: 4px;
}
.stat-value {
display: block;
font-size: 22px;
font-weight: bold;
color: #333;
}
}
.stat-first {
background: #effaf3;
border-color: #bdebcf;
}
.stat-middle {
background: #f6f0ff;
border-color: #d8cafe;
}
.stat-last {
background: #fff7e8;
border-color: #ffd796;
}
}
.publication-list {
list-style: none;
padding: 0;
margin: 0;
max-height: 300px;
overflow-y: auto;
li {
padding: 6px 0;
border-bottom: 1px solid #5b5555;
font-size: 13px;
a {
color: #2563eb;
text-decoration: none;
word-break: break-all;
&:hover {
color: #1d4ed8;
text-decoration: underline;
}
}
}
}
.publication-pagination {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-top: 12px;
button {
padding: 4px 10px;
border: 1px solid #d0d0d0;
border-radius: 6px;
background: white;
cursor: pointer;
font-size: 12px;
&:disabled {
opacity: 0.5;
cursor: default;
}
}
span {
font-size: 12px;
color: #666;
}
}
.funding-summary {
margin-bottom: 16px;
.summary-line {
margin: 0 0 4px 0;
font-size: 14px;
color: #333;
}
.summary-label {
color: #333;
}
.summary-value {
font-weight: 600;
color: #333;
}
}
.publication-item {
padding: 8px 0;
border-bottom: 2px solid #5b5555;
cursor: pointer;
&:hover {
background: #f9f9f9;
}
}
.publication-title {
font-size: 0.875rem;
color: #333;
white-space: normal;
word-break: break-word;
display: block;
}
.publication-more-info {
display: flex;
align-items: center;
flex-direction: row;
gap: 4px;
margin-top: 6px;
}
.mehr-infos-label {
font-size: 0.8rem;
color: #1976d2;
font-weight: 500;
}
.publication-link-icon {
display: flex;
align-items: center;
color: #1976d2;
text-decoration: none;
flex-shrink: 0;
.material-icons {
font-size: 16px;
}
&:hover {
color: #0d47a1;
}
}