mirror of
https://git.meshkee.com/Meshkee/dashboards.git
synced 2026-08-12 06:40:57 +04:30
RTL carousels/FABs, special key+title fields, slider gallery fixes, and dashboard SSL sync agent for super-admin. Co-authored-by: Cursor <cursoragent@cursor.com>
216 lines
3.9 KiB
CSS
216 lines
3.9 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;
|
|
}
|
|
|
|
.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 .nameFa,
|
|
.clickable:hover .nameEnPrimary {
|
|
color: var(--primary);
|
|
}
|
|
|
|
.imageWrap {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 1 / 1;
|
|
overflow: hidden;
|
|
background: #ffffff;
|
|
border-bottom: 1px solid rgba(148, 163, 184, 0.12);
|
|
border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
|
|
}
|
|
|
|
.image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
padding: 10px;
|
|
}
|
|
|
|
.badge {
|
|
position: absolute;
|
|
top: 8px;
|
|
left: 8px;
|
|
padding: 3px 8px;
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
color: #b45309;
|
|
background: rgba(251, 191, 36, 0.9);
|
|
border-radius: 50px;
|
|
}
|
|
|
|
.body {
|
|
padding: 10px 10px 8px;
|
|
flex: 1;
|
|
direction: rtl;
|
|
text-align: right;
|
|
}
|
|
|
|
.nameFa {
|
|
font-family: var(--font-ui);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
line-height: 1.3;
|
|
margin-bottom: 3px;
|
|
direction: rtl;
|
|
text-align: right;
|
|
unicode-bidi: plaintext;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.nameEn {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
line-height: 1.3;
|
|
margin-bottom: 6px;
|
|
direction: ltr;
|
|
text-align: right;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.nameEnPrimary {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
line-height: 1.3;
|
|
margin-bottom: 3px;
|
|
direction: ltr;
|
|
text-align: left;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.nameFaSecondary {
|
|
font-family: var(--font-ui);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
direction: rtl;
|
|
text-align: left;
|
|
unicode-bidi: plaintext;
|
|
margin-bottom: 6px;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 1;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.categoryChip {
|
|
display: inline-block;
|
|
padding: 3px 10px;
|
|
font-family: var(--font-ui);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
background: rgba(148, 163, 184, 0.15);
|
|
border-radius: 50px;
|
|
direction: rtl;
|
|
unicode-bidi: plaintext;
|
|
}
|
|
|
|
.bodyLtr {
|
|
direction: ltr;
|
|
text-align: left;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
padding: 8px 6px 10px;
|
|
border-top: 1px solid rgba(148, 163, 184, 0.15);
|
|
overflow: visible;
|
|
}
|
|
|
|
.controls button {
|
|
position: relative;
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.iconBtn {
|
|
position: relative;
|
|
}
|
|
|
|
.variantBadge,
|
|
.commentBadge {
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -4px;
|
|
min-width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 4px;
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
color: white;
|
|
border-radius: 50px;
|
|
line-height: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.variantBadge {
|
|
background: var(--primary);
|
|
}
|
|
|
|
.commentBadge {
|
|
background: #ef4444;
|
|
}
|
|
|
|
.controls button:hover {
|
|
background: rgba(var(--primary-rgb) / 0.1);
|
|
color: var(--primary);
|
|
}
|
|
|
|
.controls button:disabled {
|
|
opacity: 0.35;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.controls button.danger:hover {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
}
|