Files
ukaiautomation/article-fixes-v2.css

150 lines
3.1 KiB
CSS
Raw Normal View History

2025-06-08 11:21:30 +01:00
/* Fix for Related Articles section formatting */
/* Remove any conflicting styles and reset the section */
.article-footer {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid #e5e7eb;
width: 100%;
clear: both;
}
.article-footer h2 {
font-size: 1.75rem;
font-weight: 600;
margin-bottom: 1.5rem;
color: #1f2937;
width: 100%;
text-align: left;
}
/* Force the articles grid to be below the heading */
.article-footer .articles-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
width: 100%;
clear: both;
}
/* Ensure article cards take full width of their grid cell */
.article-footer .article-card {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 8px;
padding: 1.5rem;
transition: all 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
width: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.article-footer .article-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
border-color: #179e83;
}
.article-footer .article-card .article-meta {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
font-size: 0.875rem;
color: #6b7280;
}
.article-footer .article-card .category {
background: #179e83;
color: white;
padding: 0.25rem 0.75rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
}
.article-footer .article-card h3 {
margin-bottom: 0.75rem;
font-size: 1.125rem;
line-height: 1.4;
}
.article-footer .article-card h3 a {
color: #1f2937;
text-decoration: none;
transition: color 0.3s ease;
}
.article-footer .article-card h3 a:hover {
color: #179e83;
}
.article-footer .article-card p {
color: #6b7280;
font-size: 0.875rem;
line-height: 1.5;
margin-bottom: 1rem;
flex-grow: 1;
}
/* Fix the nested article-footer class conflict */
.article-footer .article-card .article-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: auto;
padding-top: 1rem;
border-top: 1px solid #f3f4f6;
font-size: 0.875rem;
margin: 0;
border-top: 1px solid #f3f4f6;
}
.article-footer .article-card .read-time {
color: #9ca3af;
}
.article-footer .article-card .read-more {
color: #179e83;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
.article-footer .article-card .read-more:hover {
color: #11725e;
}
.article-footer .category-links {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
margin-top: 2rem;
width: 100%;
}
.article-footer .category-links .btn {
min-width: 200px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.article-footer .articles-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.article-footer .category-links {
flex-direction: column;
align-items: center;
}
.article-footer .category-links .btn {
width: 100%;
max-width: 300px;
}
}