More actions
No edit summary Tag: Reverted |
No edit summary Tags: Manual revert Reverted |
||
| Line 22: | Line 22: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | |||
width: 200px; | width: 200px; | ||
height: 320px; | height: 320px; /* uniform height */ | ||
background: #fff; | background: #fff; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
| Line 31: | Line 31: | ||
padding: 0; | padding: 0; | ||
margin: 0; | margin: 0; | ||
} | } | ||
.image-wrapper { | .image-wrapper { | ||
max-height: 140px; /* allows room for text below */ | |||
flex-shrink: 1; /* allow it to shrink when space is tight */ | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Line 52: | Line 50: | ||
} | } | ||
. | .card-carousel .card .card-description { | ||
font- | font-size: 0.3em !important; /* force override */ | ||
margin: 0.5rem | color: #444; | ||
margin-top: 0.5rem; | |||
text-align: center; | text-align: center; | ||
padding: 0 0.5rem; | |||
white-space: normal; | |||
overflow-wrap: anywhere; | |||
word-break: break-word; | |||
width: 100%; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
flex-grow: 1; | |||
overflow: visible; | |||
} | } | ||
.snippet-text { | .snippet-text { | ||
display: -webkit-box; | display: -webkit-box; | ||
-webkit-line-clamp: 5; | |||
-webkit-box-orient: vertical; | -webkit-box-orient: vertical; | ||
overflow: hidden; | overflow: hidden; | ||
line-height: 1.3; | |||
- | font-size: 0.5em; | ||
text-align: center; | |||
} | } | ||
. | .card-description * { | ||
white-space: normal !important; | |||
overflow-wrap: anywhere !important; | |||
word-break: break-word !important; | |||
} | } | ||
Revision as of 02:16, 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 {
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-carousel .card .card-description {
font-size: 0.3em !important; /* force override */
color: #444;
margin-top: 0.5rem;
text-align: center;
padding: 0 0.5rem;
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
width: 100%;
box-sizing: border-box;
flex-grow: 1;
overflow: visible;
}
.snippet-text {
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.3;
font-size: 0.5em;
text-align: center;
}
.card-description * {
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
}
.no-display {
display: none;
}