More actions
No edit summary |
No edit summary Tag: Reverted |
||
| Line 52: | Line 52: | ||
.card-description { | .card-description { | ||
font-size: 0. | display: flex; | ||
flex-direction: column; | |||
justify-content: flex-start; | |||
flex-grow: 1; | |||
font-size: 0.3em !important; | |||
padding: 0 0.5rem; | |||
text-align: left; | text-align: left; | ||
overflow-wrap: break-word; | |||
word-break: break-word; | |||
white-space: normal; | white-space: normal; | ||
height: auto; | |||
} | } | ||
.snippet-text { | .snippet-text { | ||
font-size: 0. | font-size: 0.8em; | ||
line-height: 1.2; | |||
display: block; | |||
} | } | ||
| Line 89: | Line 81: | ||
font-weight: bold; | font-weight: bold; | ||
color: #007acc; | color: #007acc; | ||
align-self: flex-end; | align-self: flex-end; | ||
text-align: right; | |||
margin-top: 0.25rem; | margin-top: 0.25rem; | ||
padding-right: 0 | padding-right: 0; | ||
} | } | ||
Revision as of 02:36, 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 {
display: flex;
flex-direction: column;
justify-content: flex-start;
flex-grow: 1;
font-size: 0.3em !important;
padding: 0 0.5rem;
text-align: left;
overflow-wrap: break-word;
word-break: break-word;
white-space: normal;
height: auto;
}
.snippet-text {
font-size: 0.8em;
line-height: 1.2;
display: block;
}
.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;
align-self: flex-end;
text-align: right;
margin-top: 0.25rem;
padding-right: 0;
}
.no-display {
display: none;
}