More actions
No edit summary |
No edit summary |
||
| Line 51: | Line 51: | ||
} | } | ||
.card-description { | |||
font-size: 0. | font-size: 0.5em; | ||
color: #444; | color: #444; | ||
text-align: left; | text-align: left; | ||
padding: 0 0.5rem; | padding: 0 0.5rem 0.5rem; | ||
white-space: normal; | white-space: normal; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
| Line 62: | Line 61: | ||
width: 100%; | width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
/* Make it flexible within the card */ | |||
flex-grow: 1; | flex-grow: 1; | ||
display: flex; | |||
flex-direction: column; | |||
justify-content: space-between; | |||
} | } | ||
.snippet-text { | |||
font-size: | display: -webkit-box; | ||
line-height: 1. | -webkit-line-clamp: 6; /* Dynamically tweakable */ | ||
-webkit-box-orient: vertical; | |||
overflow: hidden; | |||
text-overflow: ellipsis; | |||
font-size: inherit; | |||
line-height: 1.2em; | |||
} | } | ||
| Line 78: | Line 85: | ||
} | } | ||
.read-more { | |||
font-size: 0.6em; | |||
font-size: 0. | font-weight: bold; | ||
color: #007acc; | |||
text-align: right; | text-align: right; | ||
margin-top: 0.25rem; | margin-top: 0.25rem; | ||
} | } | ||
Revision as of 02:29, 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 {
min-height: 50px;
max-height: 140px; /* allows room for text below */
flex-shrink: 1; /* allow it to shrink when space is tight */
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 {
font-size: 0.5em;
color: #444;
text-align: left;
padding: 0 0.5rem 0.5rem;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
width: 100%;
box-sizing: border-box;
/* Make it flexible within the card */
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.snippet-text {
display: -webkit-box;
-webkit-line-clamp: 6; /* Dynamically tweakable */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
font-size: inherit;
line-height: 1.2em;
}
.card-description * {
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
}
.read-more {
font-size: 0.6em;
font-weight: bold;
color: #007acc;
text-align: right;
margin-top: 0.25rem;
}
.no-display {
display: none;
}