Bump sort_order above the page leader instead of swapping, and align category left with date right on one meta row. Co-authored-by: Cursor <cursoragent@cursor.com>
153 lines
2.7 KiB
CSS
153 lines
2.7 KiB
CSS
.card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--glass-bg);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border: 1px solid var(--glass-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--glass-shadow);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 12px 32px rgba(31, 38, 135, 0.1);
|
|
}
|
|
|
|
.clickable {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.clickable:hover .titleFa,
|
|
.clickable:hover .titleEn {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.imageWrap {
|
|
position: relative;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
background: rgba(148, 163, 184, 0.08);
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
|
|
}
|
|
|
|
.image {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.imagePlaceholder {
|
|
width: 100%;
|
|
aspect-ratio: 3 / 2;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(148, 163, 184, 0.12) 0%,
|
|
rgba(148, 163, 184, 0.04) 100%
|
|
);
|
|
}
|
|
|
|
.body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 14px 16px 16px;
|
|
flex: 1;
|
|
}
|
|
|
|
.titleFa {
|
|
margin: 0;
|
|
font-family: var(--font-ui);
|
|
font-size: 15px;
|
|
font-weight: 500;
|
|
line-height: 1.4;
|
|
color: var(--text-primary);
|
|
direction: rtl;
|
|
text-align: right;
|
|
transition: color 0.2s;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.titleEn {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
line-height: 1.35;
|
|
color: var(--text-secondary);
|
|
text-align: left;
|
|
transition: color 0.2s;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.titleEn[dir='rtl'] {
|
|
text-align: right;
|
|
}
|
|
|
|
.abstract {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
color: var(--text-secondary);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.abstract[dir='rtl'] {
|
|
text-align: right;
|
|
}
|
|
|
|
.abstract[dir='ltr'] {
|
|
text-align: left;
|
|
}
|
|
|
|
.metaRow {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-top: auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.categoryChip {
|
|
display: inline-block;
|
|
max-width: 60%;
|
|
padding: 3px 10px;
|
|
font-family: var(--font-ui);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
line-height: 1.35;
|
|
color: var(--text-secondary);
|
|
background: rgba(148, 163, 184, 0.15);
|
|
border-radius: 50px;
|
|
unicode-bidi: isolate;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex-shrink: 1;
|
|
}
|
|
|
|
.metaDate {
|
|
flex-shrink: 0;
|
|
font-size: 12px;
|
|
line-height: 1.4;
|
|
color: var(--text-muted);
|
|
unicode-bidi: isolate;
|
|
text-align: right;
|
|
}
|