More actions
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 22: | Line 22: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: | align-items: stretch; | ||
width: 200px; | width: 200px; | ||
height: 320px; | height: 320px; | ||
background: #fff; | background: #fff; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
| Line 30: | Line 30: | ||
overflow: hidden; | overflow: hidden; | ||
padding: 0; | padding: 0; | ||
} | } | ||
.image-wrapper { | .image-wrapper { | ||
min-height: 50px; /* Minimum image height */ | |||
max-height: 140px; /* Preferred max */ | |||
flex- | flex-shrink: 1; /* Allows shrinking */ | ||
overflow: hidden; | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
.image-wrapper img { | .image-wrapper img { | ||
max-height: 100%; | |||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
width: auto; | width: auto; | ||
| Line 55: | Line 52: | ||
.card-description { | .card-description { | ||
flex-grow: 1; | flex-grow: 1; | ||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; | |||
padding: 0.5rem; | |||
font-size: 0.7em; | font-size: 0.7em; | ||
color: #444; | color: #444; | ||
text-align: left; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.snippet-text { | |||
overflow: hidden; | overflow: hidden; | ||
text-overflow: ellipsis; | |||
display: -webkit-box; | |||
-webkit-box-orient: vertical; | |||
/* No line clamp — we let flex do the work! */ | |||
} | } | ||
.read-more { | |||
margin-top: 0.5rem; | margin-top: 0.5rem; | ||
color: #007acc; | |||
font-weight: bold; | font-weight: bold; | ||
flex-shrink: 0; | |||
} | } | ||
.card-description * { | .card-description * { | ||
white-space: normal !important; | white-space: normal !important; | ||
Revision as of 02:09, 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: stretch;
width: 200px;
height: 320px;
background: #fff;
border: 1px solid #ccc;
border-radius: 6px;
overflow: hidden;
padding: 0;
}
.image-wrapper {
min-height: 50px; /* Minimum image height */
max-height: 140px; /* Preferred max */
flex-shrink: 1; /* Allows shrinking */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.image-wrapper img {
max-height: 100%;
max-width: 100%;
height: auto;
width: auto;
display: block;
}
.card-description {
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 0.5rem;
font-size: 0.7em;
color: #444;
text-align: left;
box-sizing: border-box;
overflow: hidden;
}
.snippet-text {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
/* No line clamp — we let flex do the work! */
}
.read-more {
margin-top: 0.5rem;
color: #007acc;
font-weight: bold;
flex-shrink: 0;
}
.card-description * {
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
}
.no-display {
display: none;
}