Template:PortalCurrentEvents/styles.css: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* ============================================ */ | /* ============================================ */ | ||
/* | /* 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 | /* SIDEBAR CARDS & WIDGETS */ | ||
/* -------------------------------------------- */ | /* -------------------------------------------- */ | ||
| Line 282: | Line 31: | ||
} | } | ||
.sidebar-icon { font-size: 1.1rem; } | .sidebar-icon { | ||
font-size: 1.1rem; | |||
} | |||
.sidebar-ongoing .sidebar-title { | .sidebar-ongoing .sidebar-title { | ||
background: linear-gradient(135deg, #6a5b86 0%, #54486b 100%); | background: linear-gradient(135deg, #6a5b86 0%, #54486b 100%); | ||
} | } | ||
.sidebar-enforcement .sidebar-title { | .sidebar-enforcement .sidebar-title { | ||
background: linear-gradient(135deg, #c75b3c 0%, #a84a2f 100%); | background: linear-gradient(135deg, #c75b3c 0%, #a84a2f 100%); | ||
} | } | ||
.sidebar-fieldwork .sidebar-title { | .sidebar-fieldwork .sidebar-title { | ||
background: linear-gradient(135deg, #4a7c9d 0%, #3a6379 100%); | background: linear-gradient(135deg, #4a7c9d 0%, #3a6379 100%); | ||
} | } | ||
.sidebar-policy .sidebar-title { | .sidebar-policy .sidebar-title { | ||
background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%); | background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%); | ||
| Line 307: | Line 60: | ||
} | } | ||
.sidebar-item:last-child { border-bottom: none; } | .sidebar-item:last-child { | ||
border-bottom: none; | |||
} | |||
.sidebar-date { | .sidebar-date { | ||
| Line 313: | Line 68: | ||
color: #5a6650; | color: #5a6650; | ||
font-weight: 700; | font-weight: 700; | ||
margin-bottom: 0. | margin-bottom: 0.3rem; | ||
} | } | ||
| Line 321: | Line 76: | ||
font-weight: 700; | font-weight: 700; | ||
margin-bottom: 0.1rem; | margin-bottom: 0.1rem; | ||
} | |||
.sidebar-headline { | |||
font-size: 0.9rem; | |||
font-weight: 600; | |||
line-height: 1.4; | |||
margin: 0.3rem 0; | |||
color: #1a2612; | |||
} | } | ||
| Line 327: | Line 90: | ||
color: #5a6650; | color: #5a6650; | ||
margin-bottom: 0.3rem; | 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; | |||
} | } | ||
| Line 340: | Line 128: | ||
} | } | ||
.sidebar-link a:hover { text-decoration: underline; } | .sidebar-link a:hover { | ||
text-decoration: underline; | |||
} | |||
.sidebar-footer { | .sidebar-footer { | ||
| Line 355: | Line 145: | ||
} | } | ||
.sidebar-footer a:hover | .sidebar-footer a:hover { | ||
text-decoration: underline; | |||
} | } | ||
/* -------------------------------------------- */ | /* -------------------------------------------- */ | ||
/* RESPONSIVE | /* SIDEBAR RESPONSIVE */ | ||
/* -------------------------------------------- */ | /* -------------------------------------------- */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
. | .sidebar-title { | ||
padding: 0.8rem 1rem; | |||
font-size: 0.95rem; | |||
padding: 0. | |||
} | } | ||
. | .sidebar-list { | ||
padding: 0.6rem 1rem 0.85rem; | |||
} | } | ||
. | .sidebar-item { | ||
padding: 0.6rem 0; | |||
padding: 0. | |||
} | } | ||
.sidebar-headline { | |||
. | |||
font-size: 0.88rem; | font-size: 0.88rem; | ||
} | } | ||
. | |||
.sidebar-source-btn { | |||
font-size: 0.72rem; | |||
padding: 0.35rem 0.65rem; | |||
} | } | ||
.sidebar- | .sidebar-link { | ||
font-size: 0.83rem; | |||
font-size: 0. | |||
} | } | ||
.sidebar-footer { | .sidebar-footer { | ||
padding: 0.6rem 1rem; | padding: 0.6rem 1rem; | ||
| Line 681: | Line 187: | ||
} | } | ||
/* ============================================ */ | |||
/* 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 | |||
*/ | |||
/* | |||
/* | |||
.sidebar- | |||
.sidebar- | |||
.sidebar-link | |||
Revision as of 17:00, 17 January 2026
/* ============================================ */
/* 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
*/