style
Browse files
src/lib/components/Piclets/PicletCard.svelte
CHANGED
|
@@ -17,7 +17,7 @@
|
|
| 17 |
|
| 18 |
<button
|
| 19 |
class="piclet-card"
|
| 20 |
-
style="width: {size}px;
|
| 21 |
onclick={onClick}
|
| 22 |
type="button"
|
| 23 |
>
|
|
@@ -35,9 +35,6 @@
|
|
| 35 |
<p class="nickname">{piclet.nickname || piclet.objectName}</p>
|
| 36 |
<div class="info-row">
|
| 37 |
<span class="type-badge">{piclet.primaryType}</span>
|
| 38 |
-
{#if piclet.scanCount}
|
| 39 |
-
<span class="scan-count">×{piclet.scanCount}</span>
|
| 40 |
-
{/if}
|
| 41 |
</div>
|
| 42 |
</div>
|
| 43 |
|
|
@@ -77,7 +74,6 @@
|
|
| 77 |
align-items: center;
|
| 78 |
justify-content: center;
|
| 79 |
background: linear-gradient(135deg, var(--soft-type-color) 0%, rgba(255, 255, 255, 0.9) 100%);
|
| 80 |
-
overflow: hidden;
|
| 81 |
}
|
| 82 |
|
| 83 |
.logo-watermark {
|
|
@@ -104,7 +100,8 @@
|
|
| 104 |
}
|
| 105 |
|
| 106 |
.tier-banner {
|
| 107 |
-
|
|
|
|
| 108 |
font-size: 9px;
|
| 109 |
font-weight: bold;
|
| 110 |
text-transform: uppercase;
|
|
@@ -130,6 +127,7 @@
|
|
| 130 |
}
|
| 131 |
|
| 132 |
.details-section {
|
|
|
|
| 133 |
padding: 8px;
|
| 134 |
display: flex;
|
| 135 |
flex-direction: column;
|
|
|
|
| 17 |
|
| 18 |
<button
|
| 19 |
class="piclet-card"
|
| 20 |
+
style="width: {size}px; --type-color: {typeColor}; --soft-type-color: {softTypeColor}; --type-logo: url('{typeLogoPath}');"
|
| 21 |
onclick={onClick}
|
| 22 |
type="button"
|
| 23 |
>
|
|
|
|
| 35 |
<p class="nickname">{piclet.nickname || piclet.objectName}</p>
|
| 36 |
<div class="info-row">
|
| 37 |
<span class="type-badge">{piclet.primaryType}</span>
|
|
|
|
|
|
|
|
|
|
| 38 |
</div>
|
| 39 |
</div>
|
| 40 |
|
|
|
|
| 74 |
align-items: center;
|
| 75 |
justify-content: center;
|
| 76 |
background: linear-gradient(135deg, var(--soft-type-color) 0%, rgba(255, 255, 255, 0.9) 100%);
|
|
|
|
| 77 |
}
|
| 78 |
|
| 79 |
.logo-watermark {
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
.tier-banner {
|
| 103 |
+
width: 100%;
|
| 104 |
+
padding: 4px 12px;
|
| 105 |
font-size: 9px;
|
| 106 |
font-weight: bold;
|
| 107 |
text-transform: uppercase;
|
|
|
|
| 127 |
}
|
| 128 |
|
| 129 |
.details-section {
|
| 130 |
+
width: 100%;
|
| 131 |
padding: 8px;
|
| 132 |
display: flex;
|
| 133 |
flex-direction: column;
|