139 lines
2.8 KiB
CSS
139 lines
2.8 KiB
CSS
/* ── Publications page ── */
|
||
.publications-page {
|
||
max-width: 1100px;
|
||
margin: 0 auto;
|
||
padding: 2rem 0 8rem;
|
||
}
|
||
|
||
/* Year group */
|
||
.pub-year-group { margin-bottom: 3rem; }
|
||
.pub-year {
|
||
font-size: 1.3rem;
|
||
font-weight: 700;
|
||
color: #888;
|
||
margin-bottom: 1rem;
|
||
padding-bottom: 0.5rem;
|
||
border-bottom: 1px solid rgba(0,0,0,0.08);
|
||
}
|
||
html.dark .pub-year {
|
||
color: #666;
|
||
border-color: rgba(255,255,255,0.08);
|
||
}
|
||
|
||
/* Grid */
|
||
.pub-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 1rem;
|
||
}
|
||
|
||
/* Card */
|
||
.pub-card {
|
||
border: 1px solid rgba(0,0,0,0.08);
|
||
border-radius: 12px;
|
||
background: #fff;
|
||
transition: box-shadow 0.2s, transform 0.2s;
|
||
}
|
||
.pub-card:hover {
|
||
box-shadow: 0 4px 16px rgba(0,0,0,0.08);
|
||
transform: translateY(-2px);
|
||
}
|
||
html.dark .pub-card {
|
||
background: #242424;
|
||
border-color: rgba(255,255,255,0.08);
|
||
}
|
||
html.dark .pub-card:hover {
|
||
box-shadow: 0 4px 16px rgba(0,0,0,0.25);
|
||
}
|
||
.pub-card-inner {
|
||
padding: 1.25rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.6rem;
|
||
height: 100%;
|
||
}
|
||
|
||
/* Top row: date + area dot */
|
||
.pub-meta-top {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 0.5rem;
|
||
}
|
||
.pub-date {
|
||
font-size: 0.75rem;
|
||
color: #888;
|
||
font-weight: 500;
|
||
}
|
||
.pub-area-dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
flex-shrink: 0;
|
||
}
|
||
.pub-area-a { background: #ef9052; }
|
||
.pub-area-b { background: #0a8f37; }
|
||
.pub-area-c { background: #dc1a17; }
|
||
|
||
/* Title */
|
||
.pub-title-text {
|
||
font-size: 0.95rem;
|
||
font-weight: 700;
|
||
line-height: 1.35;
|
||
color: inherit;
|
||
margin: 0;
|
||
}
|
||
.pub-title { display: none; } /* hide duplicate – we show pub-title-text */
|
||
.pub-title-text a {
|
||
color: inherit;
|
||
text-decoration: none;
|
||
}
|
||
.pub-title-text a:hover { color: #0a8f37; }
|
||
|
||
/* Contributors */
|
||
.pub-contributors {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 0.3rem;
|
||
margin-top: auto;
|
||
}
|
||
|
||
/* DOI link */
|
||
.pub-doi {
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
color: #0a8f37;
|
||
text-decoration: none;
|
||
margin-top: 0.25rem;
|
||
}
|
||
.pub-doi:hover { text-decoration: underline; }
|
||
|
||
/* Stretched link: ganze Card klickbar via Titel-Link */
|
||
.pub-card {
|
||
position: relative;
|
||
}
|
||
.pub-card-link::after {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 1;
|
||
}
|
||
/* Hover-Effekt für die ganze Card */
|
||
.pub-card:hover {
|
||
transform: translateY(-2px);
|
||
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
||
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
||
}
|
||
/* Andere Links bleiben separat klickbar (liegen über dem Overlay) */
|
||
.pub-card .pub-contributors a,
|
||
.pub-card .pub-doi {
|
||
position: relative;
|
||
z-index: 2;
|
||
}
|
||
/* Cursor zeigt Klickbarkeit auf der ganzen Card */
|
||
.pub-card {
|
||
cursor: pointer;
|
||
}
|
||
|
||
@media (max-width: 700px) {
|
||
.pub-grid { grid-template-columns: 1fr; }
|
||
} |