More actions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 34: | Line 34: | ||
.image-wrapper { | .image-wrapper { | ||
flex-shrink: 1; | |||
flex-grow: 0; | |||
flex-basis: auto; | |||
min-height: 50px; | |||
max-height: 140px; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
Line 50: | Line 53: | ||
} | } | ||
.card-description { | |||
flex-grow: 1; | |||
font-size: 0.7em; | |||
color: #444; | color: #444; | ||
padding: 0 0.5rem; | padding: 0 0.5rem; | ||
white-space: normal; | white-space: normal; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
word-break: break-word; | word-break: break-word; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
flex- | text-align: left; | ||
overflow: hidden; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; | |||
} | } | ||
.card-description .snippet-text { | .card-description .snippet-text { | ||
font-size: 0.75em; | font-size: 0.75em; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
Line 77: | Line 79: | ||
text-align: right; | text-align: right; | ||
display: block; | display: block; | ||
margin-top: 0. | margin-top: 0.5rem; | ||
font-weight: bold; | font-weight: bold; | ||
color: #007acc; | color: #007acc; |
Revision as of 02:05, 25 May 2025
/* CSS placed here will be applied to all skins */ .card-carousel { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; /* critical: lets tall cards grow down, not squish */ overflow-x: auto; gap: 1rem; padding: 1rem; } .card-carousel::-webkit-scrollbar { height: 6px; } .card-carousel::-webkit-scrollbar-thumb { background: #999; border-radius: 3px; } .card { display: flex; flex-direction: column; align-items: center; width: 200px; height: 320px; /* uniform height */ background: #fff; border: 1px solid #ccc; border-radius: 6px; overflow: hidden; padding: 0; margin: 0; } .image-wrapper { flex-shrink: 1; flex-grow: 0; flex-basis: auto; min-height: 50px; max-height: 140px; display: flex; align-items: center; justify-content: center; overflow: hidden; } .image-wrapper img { max-width: 100%; max-height: 100%; height: auto; width: auto; display: block; } .card-description { flex-grow: 1; font-size: 0.7em; color: #444; padding: 0 0.5rem; white-space: normal; overflow-wrap: anywhere; word-break: break-word; box-sizing: border-box; text-align: left; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; } .card-description .snippet-text { font-size: 0.75em; overflow: hidden; } .card-description .read-more { font-size: 0.75em; text-align: right; display: block; margin-top: 0.5rem; font-weight: bold; color: #007acc; } .card-description * { white-space: normal !important; overflow-wrap: anywhere !important; word-break: break-word !important; } .no-display { display: none; }