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 |
||
| Line 1: | Line 1: | ||
/* ============================================ */ | /* ============================================ */ | ||
/* CURRENT EVENTS PORTAL - | /* CURRENT EVENTS PORTAL - COMPACT CALENDAR VERSION */ | ||
/* ============================================ */ | /* ============================================ */ | ||
| Line 34: | Line 33: | ||
/* ============================================ */ | /* ============================================ */ | ||
/* CALENDAR NAVIGATION - | /* CALENDAR NAVIGATION - COMPACT VERSION */ | ||
/* ============================================ */ | /* ============================================ */ | ||
| Line 40: | Line 39: | ||
background: #ffffff; | background: #ffffff; | ||
border: 1px solid #d2ddce; | border: 1px solid #d2ddce; | ||
border-radius: | border-radius: 6px; | ||
padding: | padding: 0.6rem 0.75rem; | ||
margin-bottom: | margin-bottom: 1rem; | ||
box-shadow: 0 1px | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); | ||
} | } | ||
| Line 51: | Line 50: | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
margin-bottom: | margin-bottom: 0.5rem; | ||
padding-bottom: | padding-bottom: 0.5rem; | ||
border-bottom: 1px solid #e8ede5; | border-bottom: 1px solid #e8ede5; | ||
} | } | ||
.calendar-current-month { | .calendar-current-month { | ||
font-size: | font-size: 0.85rem; | ||
font-weight: 600; | font-weight: 600; | ||
color: #26351a; | color: #26351a; | ||
| Line 66: | Line 65: | ||
background: #f0f5ed; | background: #f0f5ed; | ||
border: 1px solid #d2ddce; | border: 1px solid #d2ddce; | ||
border-radius: | border-radius: 4px; | ||
padding: 0.5rem | padding: 0.25rem 0.5rem; | ||
font-size: 0. | font-size: 0.75rem; | ||
color: #3a4a2e; | color: #3a4a2e; | ||
font-weight: 500; | font-weight: 500; | ||
| Line 92: | Line 91: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(7, 1fr); | grid-template-columns: repeat(7, 1fr); | ||
gap: 0. | gap: 0.25rem; | ||
margin-bottom: 0. | margin-bottom: 0.25rem; | ||
} | } | ||
.calendar-weekday { | .calendar-weekday { | ||
text-align: center; | text-align: center; | ||
font-size: 0. | font-size: 0.6rem; | ||
font-weight: 600; | font-weight: 600; | ||
color: #5a6650; | color: #5a6650; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
letter-spacing: 0. | letter-spacing: 0.03em; | ||
padding: 0. | padding: 0.15rem 0; | ||
} | } | ||
| Line 110: | Line 109: | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(7, 1fr); | grid-template-columns: repeat(7, 1fr); | ||
gap: 0. | gap: 0.25rem; | ||
margin-bottom: | margin-bottom: 0.5rem; | ||
} | } | ||
| Line 121: | Line 120: | ||
background: #fafbf9; | background: #fafbf9; | ||
border: 1px solid #e8ede5; | border: 1px solid #e8ede5; | ||
border-radius: | border-radius: 3px; | ||
font-size: 0. | font-size: 0.7rem; | ||
font-weight: 500; | font-weight: 500; | ||
color: #7a8472; | color: #7a8472; | ||
transition: all 0.2s; | transition: all 0.2s; | ||
position: relative; | position: relative; | ||
min-height: 24px; | |||
} | } | ||
| Line 150: | Line 150: | ||
background: #5b7a45; | background: #5b7a45; | ||
border-color: #4a6337; | border-color: #4a6337; | ||
} | } | ||
| Line 160: | Line 159: | ||
.calendar-day.has-events:hover { | .calendar-day.has-events:hover { | ||
background: #4a6337; | background: #4a6337; | ||
transform: translateY(- | transform: translateY(-1px); | ||
box-shadow: 0 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); | ||
} | } | ||
| Line 177: | Line 176: | ||
background: #5b7a45; | background: #5b7a45; | ||
border: 2px solid #d4842f; | border: 2px solid #d4842f; | ||
box-shadow: 0 0 0 | box-shadow: 0 0 0 2px rgba(212, 132, 47, 0.15); | ||
} | } | ||
| Line 194: | Line 193: | ||
content: ''; | content: ''; | ||
position: absolute; | position: absolute; | ||
bottom: | bottom: 2px; | ||
left: 50%; | left: 50%; | ||
transform: translateX(-50%); | transform: translateX(-50%); | ||
width: | width: 3px; | ||
height: | height: 3px; | ||
background: rgba(255, 255, 255, 0.8); | background: rgba(255, 255, 255, 0.8); | ||
border-radius: 50%; | border-radius: 50%; | ||
| Line 206: | Line 205: | ||
.calendar-archive-link { | .calendar-archive-link { | ||
text-align: center; | text-align: center; | ||
font-size: 0. | font-size: 0.7rem; | ||
padding-top: 0. | padding-top: 0.4rem; | ||
border-top: 1px solid #e8ede5; | border-top: 1px solid #e8ede5; | ||
} | } | ||
| Line 214: | Line 213: | ||
color: #3a5228; | color: #3a5228; | ||
text-decoration: none; | text-decoration: none; | ||
padding: 0. | padding: 0.15rem 0.3rem; | ||
border-radius: | border-radius: 3px; | ||
transition: background 0.2s; | transition: background 0.2s; | ||
} | } | ||
| Line 638: | Line 637: | ||
.calendar-month-nav { | .calendar-month-nav { | ||
flex-direction: column; | flex-direction: column; | ||
gap: 0. | gap: 0.4rem; | ||
} | |||
.calendar-current-month { | |||
font-size: 0.8rem; | |||
} | |||
.calendar-nav-link { | |||
font-size: 0.7rem; | |||
padding: 0.2rem 0.4rem; | |||
} | } | ||
} | } | ||
| Line 645: | Line 653: | ||
.calendar-month-grid, | .calendar-month-grid, | ||
.calendar-week-headers { | .calendar-week-headers { | ||
gap: 0. | gap: 0.2rem; | ||
} | } | ||
.calendar-day { | .calendar-day { | ||
font-size: 0. | font-size: 0.65rem; | ||
min-height: 20px; | |||
} | } | ||
.calendar-weekday { | .calendar-weekday { | ||
font-size: 0. | font-size: 0.55rem; | ||
padding: 0. | padding: 0.1rem 0; | ||
} | |||
.portal-events-calendar { | |||
padding: 0.5rem 0.6rem; | |||
} | } | ||
} | } | ||
Revision as of 11:31, 22 November 2025
/* ============================================ */
/* CURRENT EVENTS PORTAL - COMPACT CALENDAR VERSION */
/* ============================================ */
/* 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-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 - COMPACT VERSION */
/* ============================================ */
.portal-events-calendar {
background: #ffffff;
border: 1px solid #d2ddce;
border-radius: 6px;
padding: 0.6rem 0.75rem;
margin-bottom: 1rem;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
/* Month Navigation */
.calendar-month-nav {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #e8ede5;
}
.calendar-current-month {
font-size: 0.85rem;
font-weight: 600;
color: #26351a;
}
.calendar-nav-link {
display: inline-block;
background: #f0f5ed;
border: 1px solid #d2ddce;
border-radius: 4px;
padding: 0.25rem 0.5rem;
font-size: 0.75rem;
color: #3a4a2e;
font-weight: 500;
text-decoration: none;
transition: background 0.2s;
}
.calendar-nav-link a {
color: #3a4a2e;
text-decoration: none;
}
.calendar-nav-link:hover {
background: #e3ebe0;
}
.calendar-nav-disabled {
opacity: 0.5;
}
/* Weekday Headers */
.calendar-week-headers {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.25rem;
margin-bottom: 0.25rem;
}
.calendar-weekday {
text-align: center;
font-size: 0.6rem;
font-weight: 600;
color: #5a6650;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 0.15rem 0;
}
/* Month Grid */
.calendar-month-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.25rem;
margin-bottom: 0.5rem;
}
.calendar-day {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
background: #fafbf9;
border: 1px solid #e8ede5;
border-radius: 3px;
font-size: 0.7rem;
font-weight: 500;
color: #7a8472;
transition: all 0.2s;
position: relative;
min-height: 24px;
}
.calendar-day a {
display: block;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: inherit;
text-decoration: none;
}
/* Empty cells */
.calendar-day.empty {
background: transparent;
border: none;
}
/* Days with events */
.calendar-day.has-events {
background: #5b7a45;
border-color: #4a6337;
}
.calendar-day.has-events a {
color: #ffffff;
font-weight: 600;
}
.calendar-day.has-events:hover {
background: #4a6337;
transform: translateY(-1px);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
/* Today indicator */
.calendar-day.today {
border: 2px solid #d4842f;
background: #fef9f3;
}
.calendar-day.today a {
color: #d4842f;
}
.calendar-day.today.has-events {
background: #5b7a45;
border: 2px solid #d4842f;
box-shadow: 0 0 0 2px rgba(212, 132, 47, 0.15);
}
.calendar-day.today.has-events a {
color: #ffffff;
}
/* Regular days hover */
.calendar-day:not(.has-events):not(.empty):hover {
background: #f0f5ed;
border-color: #d2ddce;
}
/* Event indicator dot */
.calendar-day.has-events::after {
content: '';
position: absolute;
bottom: 2px;
left: 50%;
transform: translateX(-50%);
width: 3px;
height: 3px;
background: rgba(255, 255, 255, 0.8);
border-radius: 50%;
}
/* Archive Links */
.calendar-archive-link {
text-align: center;
font-size: 0.7rem;
padding-top: 0.4rem;
border-top: 1px solid #e8ede5;
}
.calendar-archive-link a {
color: #3a5228;
text-decoration: none;
padding: 0.15rem 0.3rem;
border-radius: 3px;
transition: background 0.2s;
}
.calendar-archive-link 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) {
.feed-pagination {
flex-direction: column;
gap: 0.75rem;
text-align: center;
}
.status-grid {
grid-template-columns: 1fr;
}
.calendar-month-nav {
flex-direction: column;
gap: 0.4rem;
}
.calendar-current-month {
font-size: 0.8rem;
}
.calendar-nav-link {
font-size: 0.7rem;
padding: 0.2rem 0.4rem;
}
}
@media (max-width: 600px) {
.calendar-month-grid,
.calendar-week-headers {
gap: 0.2rem;
}
.calendar-day {
font-size: 0.65rem;
min-height: 20px;
}
.calendar-weekday {
font-size: 0.55rem;
padding: 0.1rem 0;
}
.portal-events-calendar {
padding: 0.5rem 0.6rem;
}
}