Template:PortalCurrentEvents/styles.css
Template page
More actions
/* ============================================ */
/* CURRENT EVENTS PORTAL - DAY-BASED FEED */
/* Two-column layout with chronological feed + sidebar */
/* ============================================ */
/* WRAPPER & HEADER */
.portal-events-wrapper {
max-width: 1400px;
margin: 0 auto 2rem;
padding: 0 1rem;
}
.portal-events-header {
background: linear-gradient(135deg, #f7faf6 0%, #eef4ea 100%);
border-radius: 12px;
border: 1px solid #c5d2c0;
padding: 1.2rem 1.5rem;
margin-bottom: 1.25rem;
}
.portal-events-eyebrow {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #60724f;
font-weight: 600;
margin: 0 0 0.25rem;
}
.portal-events-title {
font-size: 2rem;
margin: 0 0 0.35rem;
color: #233017;
font-weight: 600;
}
.portal-events-subtitle {
font-size: 0.95rem;
margin: 0 0 0.5rem;
color: #55614b;
line-height: 1.5;
}
.portal-events-nav {
font-size: 0.85rem;
color: #4b5f3c;
}
.portal-events-nav a {
color: #324625;
text-decoration: none;
}
.portal-events-nav a:hover {
text-decoration: underline;
}
/* CALENDAR NAVIGATION */
.portal-events-calendar {
background: #ffffff;
border: 1px solid #d2ddce;
border-radius: 10px;
padding: 1rem 1.25rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.calendar-controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid #e8ede5;
}
.calendar-prev,
.calendar-next {
background: #f0f5ed;
border: 1px solid #d2ddce;
border-radius: 6px;
padding: 0.4rem 0.9rem;
font-size: 0.9rem;
color: #3a4a2e;
cursor: pointer;
font-weight: 500;
}
.calendar-prev:hover,
.calendar-next:hover {
background: #e3ebe0;
}
.calendar-current {
font-size: 1.1rem;
font-weight: 600;
color: #26351a;
}
.calendar-jump {
font-size: 0.85rem;
color: #5a6650;
}
.calendar-jump a {
color: #3a5228;
text-decoration: none;
padding: 0.2rem 0.4rem;
border-radius: 4px;
}
.calendar-jump a:hover {
background: #f0f5ed;
text-decoration: underline;
}
/* TWO-COLUMN GRID */
.portal-events-grid {
display: grid;
grid-template-columns: 60% 38%;
gap: 2%;
}
/* LEFT COLUMN: CHRONOLOGICAL FEED */
.portal-events-feed {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
/* DAY CARD */
.day-card {
background: #ffffff;
border: 1px solid #d2ddce;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.day-header {
background: linear-gradient(135deg, #3a5228 0%, #2d4120 100%);
padding: 0.9rem 1.25rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.day-date {
font-size: 1.1rem;
font-weight: 600;
color: #ffffff;
}
.day-count {
font-size: 0.85rem;
color: #b8d4a8;
background: rgba(255, 255, 255, 0.15);
padding: 0.25rem 0.7rem;
border-radius: 12px;
}
.day-events {
padding: 1rem 1.25rem 1.25rem;
}
/* EVENT ITEM */
.event-item {
padding: 1rem;
margin-bottom: 1rem;
border-left: 4px solid #d2ddce;
background: #fafbf9;
border-radius: 6px;
}
.event-item:last-child {
margin-bottom: 0;
}
/* Event Type Color Coding */
.event-policy {
border-left-color: #5b7a45;
background: #f7faf5;
}
.event-enforcement {
border-left-color: #c75b3c;
background: #fef7f5;
}
.event-fieldwork {
border-left-color: #4a7c9d;
background: #f5f9fb;
}
.event-meta {
display: flex;
gap: 0.6rem;
margin-bottom: 0.5rem;
align-items: center;
}
.event-tag {
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.25rem 0.6rem;
border-radius: 4px;
}
.tag-policy {
background: #5b7a45;
color: #ffffff;
}
.tag-enforcement {
background: #c75b3c;
color: #ffffff;
}
.tag-fieldwork {
background: #4a7c9d;
color: #ffffff;
}
.event-region {
font-size: 0.8rem;
color: #5a6650;
font-weight: 500;
}
.event-title {
font-size: 1rem;
font-weight: 600;
color: #26351a;
margin-bottom: 0.5rem;
line-height: 1.4;
}
.event-body {
font-size: 0.9rem;
color: #3a4a2e;
line-height: 1.6;
margin-bottom: 0.6rem;
}
.event-links {
font-size: 0.8rem;
color: #5a6650;
padding-top: 0.5rem;
border-top: 1px solid #e8ede5;
}
.event-links a {
color: #3a5228;
text-decoration: none;
}
.event-links a:hover {
text-decoration: underline;
}
/* FEED PAGINATION */
.feed-pagination {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.25rem;
background: #f7faf6;
border: 1px solid #d2ddce;
border-radius: 8px;
margin-top: 1.5rem;
}
.pagination-btn {
background: #5b7a45;
color: #ffffff;
padding: 0.6rem 1.2rem;
border-radius: 6px;
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
}
.pagination-btn:hover {
background: #4a6337;
}
.pagination-info {
font-size: 0.85rem;
color: #5a6650;
}
/* RIGHT COLUMN: SIDEBAR */
.portal-events-sidebar {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.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: 600;
color: #ffffff;
padding: 0.9rem 1.25rem;
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
}
.sidebar-icon {
font-size: 1.1rem;
}
/* Sidebar Card Type Styling */
.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-conservation .sidebar-title {
background: linear-gradient(135deg, #3a5228 0%, #2d4120 100%);
}
.sidebar-list {
padding: 0.75rem 1.25rem 1rem;
}
.sidebar-item {
padding: 0.75rem 0;
border-bottom: 1px solid #e8ede5;
}
.sidebar-item:last-child {
border-bottom: none;
}
.sidebar-date {
font-size: 0.75rem;
color: #5a6650;
font-weight: 600;
margin-bottom: 0.25rem;
}
.sidebar-region {
font-size: 0.85rem;
color: #26351a;
font-weight: 600;
margin-bottom: 0.15rem;
}
.sidebar-status {
font-size: 0.75rem;
color: #5a6650;
margin-bottom: 0.35rem;
}
.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.75rem 1.25rem;
background: #f7faf6;
border-top: 1px solid #e8ede5;
font-size: 0.85rem;
}
.sidebar-footer a {
color: #3a5228;
text-decoration: none;
font-weight: 500;
}
.sidebar-footer a:hover {
text-decoration: underline;
}
/* CONSERVATION STATUS GRID */
.status-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.75rem;
padding: 1rem 1.25rem;
}
.status-item {
text-align: center;
padding: 0.75rem 0.5rem;
border-radius: 6px;
border: 2px solid;
}
.status-critical {
border-color: #c75b3c;
background: #fef7f5;
}
.status-eradications {
border-color: #d4842f;
background: #fef9f3;
}
.status-active {
border-color: #5b7a45;
background: #f7faf5;
}
.status-label {
font-size: 0.75rem;
font-weight: 600;
color: #3a4a2e;
margin-bottom: 0.25rem;
}
.status-count {
font-size: 1.25rem;
font-weight: 700;
color: #26351a;
}
/* UPDATE GUIDELINES */
.portal-events-guidelines {
background: #f7faf6;
border: 1px dashed #c5d2c0;
border-radius: 10px;
padding: 1.25rem 1.5rem;
margin-top: 2rem;
}
.portal-events-guidelines h3 {
font-size: 1.1rem;
color: #26351a;
margin: 0 0 1rem;
}
.guidelines-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
margin-bottom: 1rem;
}
.guideline-item {
font-size: 0.85rem;
color: #3a4a2e;
line-height: 1.5;
}
.guideline-item strong {
color: #26351a;
}
.portal-events-guidelines p {
font-size: 0.85rem;
color: #4c5d44;
margin: 0;
line-height: 1.6;
}
/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
.portal-events-grid {
grid-template-columns: 1fr;
}
.portal-events-sidebar {
margin-top: 1.5rem;
}
.guidelines-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.portal-events-title {
font-size: 1.5rem;
}
.calendar-controls {
flex-direction: column;
gap: 0.75rem;
}
.feed-pagination {
flex-direction: column;
gap: 0.75rem;
text-align: center;
}
.status-grid {
grid-template-columns: 1fr;
}
}