fix card info layout

This commit is contained in:
2026-01-28 17:19:49 +09:00
parent ab34468717
commit fc3f2da3c8
5 changed files with 326 additions and 24 deletions

View File

@@ -522,3 +522,127 @@
color: var(--text-secondary, #aaa);
}
}
/* RSE section title */
.rse-section-title {
margin: 24px 0 12px;
font-size: 1.1em;
color: var(--text-primary, #333);
}
/* RSE character sections */
.rse-characters {
display: flex;
flex-direction: column;
gap: 32px;
}
.rse-character-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
}
.rse-character-main {
display: flex;
justify-content: center;
}
.rse-character-main .card-wrapper {
width: 250px;
max-width: 250px;
}
/* RSE card grid (smaller cards below character) */
.rse-card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 16px;
width: 100%;
max-width: 500px;
padding: 16px;
background: rgba(128, 128, 128, 0.08);
border-radius: 12px;
}
.rse-card-grid .card-item {
max-width: 140px;
}
.rse-card-grid .card-wrapper {
max-width: 140px;
}
/* Card info (below card) */
.card-info {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
margin-top: 8px;
text-align: center;
}
.card-info-header {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
position: relative;
}
.card-info-name {
font-size: 13px;
font-weight: 600;
color: var(--text-primary, #333);
}
.card-info-header .card-key-btn {
position: absolute;
right: 0;
}
.card-info-text {
font-size: 11px;
color: var(--text-secondary, #666);
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card-key-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
color: white;
padding: 3px 10px;
border-radius: 10px;
font-size: 10px;
font-weight: 600;
cursor: default;
box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Dark mode for RSE */
@media (prefers-color-scheme: dark) {
.rse-section-title {
color: var(--text-primary, #eee);
}
.rse-card-grid {
background: rgba(255, 255, 255, 0.05);
}
.card-info-name {
color: var(--text-primary, #eee);
}
.card-info-text {
color: var(--text-secondary, #aaa);
}
}