More actions
No edit summary |
No edit summary |
||
| Line 62: | Line 62: | ||
width: auto; | width: auto; | ||
display: block; | display: block; | ||
border: | border: none; | ||
} | } | ||
| Line 81: | Line 81: | ||
flex-direction: column; | flex-direction: column; | ||
justify-content: space-between; | justify-content: space-between; | ||
border: | border: none; | ||
} | } | ||
Revision as of 20:07, 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;
align-items: center;
width: 200px;
height: 320px;
border-radius: 10px;
overflow: hidden;
padding: 0;
margin: 0;
background-color: var(--card-bg);
color: var(--card-text);
border: 1px solid var(--border-color-base);
}
.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;
border: none;
}
.card-description {
font-size: 0.5em;
color: var(--card-text);
text-align: left;
padding: 0 0.1rem 0;
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;
border: none;
}
.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 * {
white-space: normal !important;
overflow-wrap: anywhere !important;
word-break: break-word !important;
}
.read-more {
font-size: 0.6em;
font-weight: bold;
align-self: flex-end;
margin-top: 0.25rem;
padding-right: 0.5rem;
color: var(--card-link);
}
.no-display {
display: none;
}