| 1 |
.bkbg-card-stack-wrap { |
| 2 |
box-sizing: border-box; |
| 3 |
} |
| 4 |
|
| 5 |
.bkbg-cardstack-outer { |
| 6 |
display: flex; |
| 7 |
flex-direction: column; |
| 8 |
align-items: center; |
| 9 |
} |
| 10 |
|
| 11 |
.bkbg-cardstack { |
| 12 |
cursor: pointer; |
| 13 |
-webkit-tap-highlight-color: transparent; |
| 14 |
user-select: none; |
| 15 |
} |
| 16 |
|
| 17 |
/* Ghost cards (JS applies transforms) */ |
| 18 |
.bkbg-cardstack-ghost { |
| 19 |
pointer-events: none; |
| 20 |
} |
| 21 |
|
| 22 |
/* Active (front) card */ |
| 23 |
.bkbg-cardstack-card.is-active { |
| 24 |
position: relative !important; |
| 25 |
z-index: 10 !important; |
| 26 |
} |
| 27 |
.bkbg-cardstack-card:not(.is-active) { |
| 28 |
pointer-events: none; |
| 29 |
} |
| 30 |
|
| 31 |
/* ── Fan hover ── */ |
| 32 |
.bkbg-cardstack[data-style="fan"]:hover .bkbg-cardstack-ghost:nth-child(1) { |
| 33 |
opacity: 0.85; |
| 34 |
} |
| 35 |
.bkbg-cardstack[data-style="fan"]:hover .bkbg-cardstack-ghost:nth-child(2) { |
| 36 |
opacity: 0.65; |
| 37 |
} |
| 38 |
|
| 39 |
/* ── Animate in ── */ |
| 40 |
.bkbg-cardstack[data-animate="1"] { |
| 41 |
opacity: 0; |
| 42 |
transform: translateY(24px); |
| 43 |
transition: opacity 0.55s ease, transform 0.55s ease; |
| 44 |
} |
| 45 |
.bkbg-cardstack[data-animate="1"].is-visible { |
| 46 |
opacity: 1; |
| 47 |
transform: translateY(0); |
| 48 |
} |
| 49 |
|
| 50 |
/* ── Editor: always show regardless of animation state ── */ |
| 51 |
.editor-styles-wrapper .bkbg-cardstack[data-animate="1"] { |
| 52 |
opacity: 1 !important; |
| 53 |
transform: none !important; |
| 54 |
} |
| 55 |
|
| 56 |
/* ── Nav dots ── */ |
| 57 |
.bkbg-cardstack-dots { |
| 58 |
display: flex; |
| 59 |
gap: 8px; |
| 60 |
align-items: center; |
| 61 |
} |
| 62 |
.bkbg-cardstack-dot { |
| 63 |
width: 8px; |
| 64 |
height: 8px; |
| 65 |
border-radius: 50%; |
| 66 |
border: none; |
| 67 |
padding: 0; |
| 68 |
cursor: pointer; |
| 69 |
transition: background 0.2s ease, transform 0.2s ease; |
| 70 |
background: #d1d5db; |
| 71 |
} |
| 72 |
.bkbg-cardstack-dot.is-active { |
| 73 |
transform: scale(1.3); |
| 74 |
} |
| 75 |
|
| 76 |
/* ── Card styles ── */ |
| 77 |
.bkbg-cardstack-title { |
| 78 |
word-break: break-word; |
| 79 |
font-family: var(--bkbg-cst-tt-font-family, inherit); |
| 80 |
font-size: var(--bkbg-cst-tt-font-size-d, 20px); |
| 81 |
font-weight: var(--bkbg-cst-tt-font-weight, 700); |
| 82 |
line-height: var(--bkbg-cst-tt-line-height-d, 1.2); |
| 83 |
text-transform: var(--bkbg-cst-tt-text-transform, none); |
| 84 |
font-style: var(--bkbg-cst-tt-font-style, normal); |
| 85 |
text-decoration: var(--bkbg-cst-tt-text-decoration, none); |
| 86 |
letter-spacing: var(--bkbg-cst-tt-letter-spacing-d, normal); |
| 87 |
word-spacing: var(--bkbg-cst-tt-word-spacing-d, normal); |
| 88 |
} |
| 89 |
.bkbg-cardstack-desc { |
| 90 |
word-break: break-word; |
| 91 |
font-family: var(--bkbg-cst-td-font-family, inherit); |
| 92 |
font-size: var(--bkbg-cst-td-font-size-d, 15px); |
| 93 |
font-weight: var(--bkbg-cst-td-font-weight, inherit); |
| 94 |
line-height: var(--bkbg-cst-td-line-height-d, 1.65); |
| 95 |
text-transform: var(--bkbg-cst-td-text-transform, none); |
| 96 |
font-style: var(--bkbg-cst-td-font-style, normal); |
| 97 |
text-decoration: var(--bkbg-cst-td-text-decoration, none); |
| 98 |
letter-spacing: var(--bkbg-cst-td-letter-spacing-d, normal); |
| 99 |
word-spacing: var(--bkbg-cst-td-word-spacing-d, normal); |
| 100 |
} |
| 101 |
.bkbg-cardstack-avatar img { |
| 102 |
display: block; |
| 103 |
width: 100%; |
| 104 |
height: 100%; |
| 105 |
object-fit: cover; |
| 106 |
} |
| 107 |
.bkbg-cardstack-tag { |
| 108 |
white-space: nowrap; |
| 109 |
overflow: hidden; |
| 110 |
text-overflow: ellipsis; |
| 111 |
max-width: 100%; |
| 112 |
} |
| 113 |
|
| 114 |
/* Click-cycle flash */ |
| 115 |
.bkbg-cardstack-card.is-exit { |
| 116 |
animation: bkbg-card-exit 0.25s ease forwards; |
| 117 |
} |
| 118 |
.bkbg-cardstack-card.is-enter { |
| 119 |
animation: bkbg-card-enter 0.3s ease forwards; |
| 120 |
} |
| 121 |
@keyframes bkbg-card-exit { |
| 122 |
from { opacity: 1; transform: scale(1); } |
| 123 |
to { opacity: 0; transform: scale(0.92) rotate(-3deg); } |
| 124 |
} |
| 125 |
@keyframes bkbg-card-enter { |
| 126 |
from { opacity: 0; transform: scale(0.96) translateY(8px); } |
| 127 |
to { opacity: 1; transform: scale(1) translateY(0); } |
| 128 |
} |
| 129 |
|
| 130 |
/* ── Typography responsive ── */ |
| 131 |
@media (max-width: 1024px) { |
| 132 |
.bkbg-cardstack-title { |
| 133 |
font-size: var(--bkbg-cst-tt-font-size-t, var(--bkbg-cst-tt-font-size-d, 20px)); |
| 134 |
line-height: var(--bkbg-cst-tt-line-height-t, var(--bkbg-cst-tt-line-height-d, 1.2)); |
| 135 |
letter-spacing: var(--bkbg-cst-tt-letter-spacing-t, var(--bkbg-cst-tt-letter-spacing-d, normal)); |
| 136 |
word-spacing: var(--bkbg-cst-tt-word-spacing-t, var(--bkbg-cst-tt-word-spacing-d, normal)); |
| 137 |
} |
| 138 |
.bkbg-cardstack-desc { |
| 139 |
font-size: var(--bkbg-cst-td-font-size-t, var(--bkbg-cst-td-font-size-d, 15px)); |
| 140 |
line-height: var(--bkbg-cst-td-line-height-t, var(--bkbg-cst-td-line-height-d, 1.65)); |
| 141 |
letter-spacing: var(--bkbg-cst-td-letter-spacing-t, var(--bkbg-cst-td-letter-spacing-d, normal)); |
| 142 |
word-spacing: var(--bkbg-cst-td-word-spacing-t, var(--bkbg-cst-td-word-spacing-d, normal)); |
| 143 |
} |
| 144 |
} |
| 145 |
@media (max-width: 767px) { |
| 146 |
.bkbg-cardstack-title { |
| 147 |
font-size: var(--bkbg-cst-tt-font-size-m, var(--bkbg-cst-tt-font-size-t, var(--bkbg-cst-tt-font-size-d, 20px))); |
| 148 |
line-height: var(--bkbg-cst-tt-line-height-m, var(--bkbg-cst-tt-line-height-t, var(--bkbg-cst-tt-line-height-d, 1.2))); |
| 149 |
letter-spacing: var(--bkbg-cst-tt-letter-spacing-m, var(--bkbg-cst-tt-letter-spacing-t, var(--bkbg-cst-tt-letter-spacing-d, normal))); |
| 150 |
word-spacing: var(--bkbg-cst-tt-word-spacing-m, var(--bkbg-cst-tt-word-spacing-t, var(--bkbg-cst-tt-word-spacing-d, normal))); |
| 151 |
} |
| 152 |
.bkbg-cardstack-desc { |
| 153 |
font-size: var(--bkbg-cst-td-font-size-m, var(--bkbg-cst-td-font-size-t, var(--bkbg-cst-td-font-size-d, 15px))); |
| 154 |
line-height: var(--bkbg-cst-td-line-height-m, var(--bkbg-cst-td-line-height-t, var(--bkbg-cst-td-line-height-d, 1.65))); |
| 155 |
letter-spacing: var(--bkbg-cst-td-letter-spacing-m, var(--bkbg-cst-td-letter-spacing-t, var(--bkbg-cst-td-letter-spacing-d, normal))); |
| 156 |
word-spacing: var(--bkbg-cst-td-word-spacing-m, var(--bkbg-cst-td-word-spacing-t, var(--bkbg-cst-td-word-spacing-d, normal))); |
| 157 |
} |
| 158 |
} |
| 159 |
|
| 160 |
@media (max-width: 640px) { |
| 161 |
.bkbg-cardstack { |
| 162 |
width: 100% !important; |
| 163 |
max-width: 100%; |
| 164 |
} |
| 165 |
.bkbg-cardstack-card { |
| 166 |
width: 100% !important; |
| 167 |
} |
| 168 |
} |
| 169 |
|