More actions
No edit summary Tag: Manual revert |
No edit summary |
||
Line 34: | Line 34: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
width: 200px; | width: 200px; | ||
height: 320px; | height: 320px; | ||
border-radius: | background: var(--card-bg); | ||
color: var(--card-text); | |||
border: 1px solid var(--card-border); | |||
border-radius: 6px; | |||
overflow: hidden; | overflow: hidden; | ||
padding: 0; | padding: 0; | ||
margin: 0; | margin: 0; | ||
} | } | ||
.image-wrapper { | .image-wrapper { | ||
min-height: 50px; | min-height: 50px; /* Do not shrink below this */ | ||
max-height: 140px; /* | max-height: 140px; /* Optional max if needed */ | ||
flex-shrink: 1; | flex-shrink: 1; | ||
overflow: hidden; | |||
display: flex; | display: flex; | ||
justify-content: center; | |||
align-items: center; | align-items: center; | ||
} | } | ||
Line 62: | Line 61: | ||
width: auto; | width: auto; | ||
display: block; | display: block; | ||
} | } | ||
.card-description { | .card-description { | ||
font-size: 0.5em; | font-size: 0.5em; | ||
padding: 0.1rem; | |||
flex-grow: 1; | |||
overflow: hidden; | |||
text-align: left; | text-align: left; | ||
display: -webkit-box; | |||
-webkit-box-orient: vertical; | |||
/* No fixed clamp, let it grow naturally */ | |||
/* | |||
} | } | ||
/* | |||
.snippet-text { | .snippet-text { | ||
font-size: 0.75em; | font-size: 0.75em; | ||
Line 93: | Line 84: | ||
line-height: 1.2em; | line-height: 1.2em; | ||
} | } | ||
*/ | |||
.card-description | .card-description .snippet-text { | ||
display: block; | |||
line-height: 1.2; | |||
} | } | ||
.read-more { | .read-more { | ||
font-size: 0. | font-size: 0.8em; | ||
color: var(--card-link); | |||
font-weight: bold; | font-weight: bold; | ||
margin-top: 0.25rem; | margin-top: 0.25rem; | ||
display: block; | |||
text-align: right; | |||
} | } | ||
Revision as of 20:19, 29 May 2025
/* CSS placed here will be applied to all skins */ html.skin-citizen-light { --card-bg: rgb(221, 229, 242); --card-text: #222222; --card-link: #007acc; } html.skin-citizen-dark { --card-bg: rgb(7, 10, 15); --card-text: #dddddd; --card-link: #66c0ff; } .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; width: 200px; height: 320px; background: var(--card-bg); color: var(--card-text); border: 1px solid var(--card-border); border-radius: 6px; overflow: hidden; padding: 0; margin: 0; } .image-wrapper { min-height: 50px; /* Do not shrink below this */ max-height: 140px; /* Optional max if needed */ flex-shrink: 1; overflow: hidden; display: flex; justify-content: center; align-items: center; } .image-wrapper img { max-width: 100%; max-height: 100%; height: auto; width: auto; display: block; } .card-description { font-size: 0.5em; padding: 0.1rem; flex-grow: 1; overflow: hidden; text-align: left; display: -webkit-box; -webkit-box-orient: vertical; /* No fixed clamp, let it grow naturally */ } /* .snippet-text { font-size: 0.75em; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; line-height: 1.2em; } */ .card-description .snippet-text { display: block; line-height: 1.2; } .read-more { font-size: 0.8em; color: var(--card-link); font-weight: bold; margin-top: 0.25rem; display: block; text-align: right; } .no-display { display: none; }