Difference between revisions of "Common.css"
| Line 74: | Line 74: | ||
max-width: 32%; | max-width: 32%; | ||
} | } | ||
/* | /* Give a full feed page a single-column option by adding class feed-single to the wrapping div manually if desired */ | ||
.feed-single .feed-item { | .feed-single .feed-item { | ||
max-width: 100%; | max-width: 100%; | ||
| Line 87: | Line 87: | ||
.feed-items { flex-direction: column; } | .feed-items { flex-direction: column; } | ||
.feed-item { max-width: 100%; } | .feed-item { max-width: 100%; } | ||
} | } | ||
Revision as of 20:25, 13 October 2026
/* ---- Feed block ---- */
.feed-block {
margin: 2em 0;
}
.feed-title, .feed-title a {
font-size: 1.4em;
margin-bottom: 0.5em;
color: inherit;
text-decoration: none;
}
.feed-title a:hover {
text-decoration: underline;
}
.feed-items {
display: flex;
flex-wrap: wrap;
gap: 1em;
}
/* Individual card */
.feed-item {
flex: 1 1 300px;
max-width: 32%;
box-sizing: border-box;
}
.feed-item-link {
display: block;
text-decoration: none;
color: inherit;
}
.feed-item-thumb {
height: 180px;
background-size: cover;
background-position: center;
position: relative;
border-radius: 6px;
overflow: hidden;
}
.feed-item-title {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0,0,0,0.75));
padding: 0.5em 0.75em;
}
.feed-item-title h3 {
color: #fff;
margin: 0;
font-size: 1.1em;
}
.feed-item-desc {
margin-top: 0.5em;
font-size: 0.9em;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.feed-item-more {
color: #0645ad;
font-weight: bold;
margin-left: 0.3em;
}
/* Preview mode (homepage): force max 3 per row on wide screens */
.feed-mode-preview .feed-item {
max-width: 32%;
}
/* Full mode (dedicated "view all" page) */
.feed-mode-full .feed-item {
max-width: 32%;
}
/* Give a full feed page a single-column option by adding class feed-single to the wrapping div manually if desired */
.feed-single .feed-item {
max-width: 100%;
flex: 1 1 100%;
}
/* ---- Responsive breakpoints ---- */
@media (max-width: 900px) {
.feed-item { max-width: 48%; }
}
@media (max-width: 600px) {
.feed-items { flex-direction: column; }
.feed-item { max-width: 100%; }
}