Template:PortalCurrentEvents/styles.css
Template page
More actions
/* ============================================ */
/* COMPLETE SIDEBAR SECTION REPLACEMENT */
/* For: Template:PortalCurrentEvents/styles.css */
/* ============================================ */
/* REPLACE the entire "SIDEBAR CARDS" section (lines 237-319 in your current CSS)
with this cleaned-up version */
/* -------------------------------------------- */
/* SIDEBAR CARDS & WIDGETS */
/* -------------------------------------------- */
.sidebar-card {
background: #ffffff;
border: 1px solid #d2ddce;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.sidebar-title {
font-size: 1rem;
font-weight: 700;
color: #ffffff;
padding: 0.85rem 1.1rem;
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.sidebar-icon {
font-size: 1.1rem;
}
.sidebar-ongoing .sidebar-title {
background: linear-gradient(135deg, #6a5b86 0%, #54486b 100%);
}
.sidebar-enforcement .sidebar-title {
background: linear-gradient(135deg, #c75b3c 0%, #a84a2f 100%);
}
.sidebar-fieldwork .sidebar-title {
background: linear-gradient(135deg, #4a7c9d 0%, #3a6379 100%);
}
.sidebar-policy .sidebar-title {
background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%);
}
.sidebar-list {
padding: 0.7rem 1.1rem 0.9rem;
}
.sidebar-item {
padding: 0.65rem 0;
border-bottom: 1px solid #e8ede5;
}
.sidebar-item:last-child {
border-bottom: none;
}
.sidebar-date {
font-size: 0.75rem;
color: #5a6650;
font-weight: 700;
margin-bottom: 0.3rem;
}
.sidebar-region {
font-size: 0.85rem;
color: #26351a;
font-weight: 700;
margin-bottom: 0.1rem;
}
.sidebar-headline {
font-size: 0.9rem;
font-weight: 600;
line-height: 1.4;
margin: 0.3rem 0;
color: #1a2612;
}
.sidebar-status {
font-size: 0.75rem;
color: #5a6650;
margin-bottom: 0.3rem;
}
.sidebar-source-btn {
display: inline-block;
margin-top: 0.5rem;
padding: 0.4rem 0.75rem;
background: #ffffff;
border: 1px solid #2d6a4f;
border-radius: 5px;
color: #2d6a4f;
font-size: 0.75rem;
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
}
.sidebar-source-btn:hover {
background: rgba(45, 106, 79, 0.05);
border-color: #245a42;
color: #245a42;
}
.sidebar-source-btn a {
color: inherit !important;
text-decoration: none !important;
}
.sidebar-link {
font-size: 0.85rem;
color: #3a4a2e;
line-height: 1.4;
}
.sidebar-link a {
color: #3a5228;
text-decoration: none;
}
.sidebar-link a:hover {
text-decoration: underline;
}
.sidebar-footer {
padding: 0.65rem 1.1rem;
background: #f7faf6;
border-top: 1px solid #e8ede5;
font-size: 0.85rem;
}
.sidebar-footer a {
color: #3a5228;
text-decoration: none;
font-weight: 600;
}
.sidebar-footer a:hover {
text-decoration: underline;
}
/* -------------------------------------------- */
/* SIDEBAR RESPONSIVE */
/* -------------------------------------------- */
@media (max-width: 768px) {
.sidebar-title {
padding: 0.8rem 1rem;
font-size: 0.95rem;
}
.sidebar-list {
padding: 0.6rem 1rem 0.85rem;
}
.sidebar-item {
padding: 0.6rem 0;
}
.sidebar-headline {
font-size: 0.88rem;
}
.sidebar-source-btn {
font-size: 0.72rem;
padding: 0.35rem 0.65rem;
}
.sidebar-link {
font-size: 0.83rem;
}
.sidebar-footer {
padding: 0.6rem 1rem;
font-size: 0.82rem;
}
}
/* ============================================ */
/* CHANGES MADE: */
/* ============================================ */
/*
* ✓ Removed verbose ChatGPT-style comments
* ✓ Cleaned up structure and organization
* ✓ Added .sidebar-source-btn for article links
* ✓ Updated .sidebar-headline to be standalone
* ✓ Removed old .sidebar-link nesting patterns
* ✓ Consistent spacing and naming
* ✓ Mobile-responsive button sizing
* ✓ Matches main feed button aesthetic
*/