Toggle menu
17
24
14
1.7K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:PortalCurrentEvents/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
/* ============================================ */
/* ============================================ */
/* CURRENT EVENTS PORTAL - DAY-BASED FEED */
/* CURRENT EVENTS PORTAL - COMPLETE STYLESHEET */
/* Two-column layout with chronological feed + sidebar */
/* Day-based chronological feed with full month calendar */
/* ============================================ */
/* ============================================ */


Line 17: Line 17:
     padding: 1.2rem 1.5rem;
     padding: 1.2rem 1.5rem;
     margin-bottom: 1.25rem;
     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;
}
}


Line 56: Line 33:
}
}


/* CALENDAR NAVIGATION */
/* ============================================ */
/* CALENDAR NAVIGATION - Full Month Grid */
/* ============================================ */
 
.portal-events-calendar {
.portal-events-calendar {
     background: #ffffff;
     background: #ffffff;
     border: 1px solid #d2ddce;
     border: 1px solid #d2ddce;
     border-radius: 10px;
     border-radius: 10px;
     padding: 1rem 1.25rem;
     padding: 1.25rem 1.5rem;
     margin-bottom: 1.5rem;
     margin-bottom: 1.5rem;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
}


.calendar-controls {
/* Month Navigation */
.calendar-month-nav {
     display: flex;
     display: flex;
     justify-content: space-between;
     justify-content: space-between;
     align-items: center;
     align-items: center;
     margin-bottom: 0.75rem;
     margin-bottom: 1rem;
     padding-bottom: 0.75rem;
     padding-bottom: 1rem;
     border-bottom: 1px solid #e8ede5;
     border-bottom: 1px solid #e8ede5;
}
}


.calendar-prev,
.calendar-current-month {
.calendar-next {
    font-size: 1.2rem;
    font-weight: 600;
    color: #26351a;
}
 
.calendar-nav-link {
    display: inline-block;
     background: #f0f5ed;
     background: #f0f5ed;
     border: 1px solid #d2ddce;
     border: 1px solid #d2ddce;
     border-radius: 6px;
     border-radius: 6px;
     padding: 0.4rem 0.9rem;
     padding: 0.5rem 1rem;
     font-size: 0.9rem;
     font-size: 0.9rem;
     color: #3a4a2e;
     color: #3a4a2e;
    cursor: pointer;
     font-weight: 500;
     font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
}


.calendar-prev:hover,
.calendar-nav-link a {
.calendar-next:hover {
    color: #3a4a2e;
    text-decoration: none;
}
 
.calendar-nav-link:hover {
     background: #e3ebe0;
     background: #e3ebe0;
}
}


.calendar-current {
.calendar-nav-disabled {
     font-size: 1.1rem;
    opacity: 0.5;
}
 
/* Weekday Headers */
.calendar-week-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
 
.calendar-weekday {
    text-align: center;
     font-size: 0.75rem;
    font-weight: 600;
    color: #5a6650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
}
 
/* Month Grid */
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
 
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbf9;
    border: 1px solid #e8ede5;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #7a8472;
    transition: all 0.2s;
    position: relative;
}
 
.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;
    cursor: pointer;
}
 
.calendar-day.has-events a {
    color: #ffffff;
     font-weight: 600;
     font-weight: 600;
    color: #26351a;
}
}


.calendar-jump {
.calendar-day.has-events:hover {
    background: #4a6337;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px 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 3px rgba(212, 132, 47, 0.2);
}
 
.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: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}
 
/* Archive Links */
.calendar-archive-link {
    text-align: center;
     font-size: 0.85rem;
     font-size: 0.85rem;
     color: #5a6650;
     padding-top: 0.75rem;
    border-top: 1px solid #e8ede5;
}
}


.calendar-jump a {
.calendar-archive-link a {
     color: #3a5228;
     color: #3a5228;
     text-decoration: none;
     text-decoration: none;
     padding: 0.2rem 0.4rem;
     padding: 0.25rem 0.5rem;
     border-radius: 4px;
     border-radius: 4px;
    transition: background 0.2s;
}
}


.calendar-jump a:hover {
.calendar-archive-link a:hover {
     background: #f0f5ed;
     background: #f0f5ed;
     text-decoration: underline;
     text-decoration: underline;
}
}


/* ============================================ */
/* TWO-COLUMN GRID */
/* TWO-COLUMN GRID */
/* ============================================ */
.portal-events-grid {
.portal-events-grid {
     display: grid;
     display: grid;
Line 122: Line 234:
}
}


/* ============================================ */
/* LEFT COLUMN: CHRONOLOGICAL FEED */
/* LEFT COLUMN: CHRONOLOGICAL FEED */
/* ============================================ */
.portal-events-feed {
.portal-events-feed {
     display: flex;
     display: flex;
Line 292: Line 407:
}
}


/* ============================================ */
/* RIGHT COLUMN: SIDEBAR */
/* RIGHT COLUMN: SIDEBAR */
/* ============================================ */
.portal-events-sidebar {
.portal-events-sidebar {
     display: flex;
     display: flex;
Line 447: Line 565:
}
}


/* ============================================ */
/* UPDATE GUIDELINES */
/* UPDATE GUIDELINES */
/* ============================================ */
.portal-events-guidelines {
.portal-events-guidelines {
     background: #f7faf6;
     background: #f7faf6;
Line 486: Line 607:
}
}


/* ============================================ */
/* RESPONSIVE DESIGN */
/* RESPONSIVE DESIGN */
/* ============================================ */
@media (max-width: 1100px) {
@media (max-width: 1100px) {
     .portal-events-grid {
     .portal-events-grid {
Line 502: Line 626:


@media (max-width: 768px) {
@media (max-width: 768px) {
     .portal-events-title {
     .feed-pagination {
         font-size: 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
   
    .status-grid {
         grid-template-columns: 1fr;
     }
     }
      
      
     .calendar-controls {
     .calendar-month-nav {
         flex-direction: column;
         flex-direction: column;
         gap: 0.75rem;
         gap: 0.75rem;
    }
}
@media (max-width: 600px) {
    .calendar-month-grid,
    .calendar-week-headers {
        gap: 0.35rem;
     }
     }
      
      
     .feed-pagination {
     .calendar-day {
         flex-direction: column;
         font-size: 0.8rem;
        gap: 0.75rem;
        text-align: center;
     }
     }
      
      
     .status-grid {
     .calendar-weekday {
         grid-template-columns: 1fr;
         font-size: 0.65rem;
        padding: 0.35rem 0;
     }
     }
}
}

Revision as of 11:12, 22 November 2025

/* ============================================ */
/* CURRENT EVENTS PORTAL - COMPLETE STYLESHEET */
/* Day-based chronological feed with full month calendar */
/* ============================================ */

/* 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 - Full Month Grid */
/* ============================================ */

.portal-events-calendar {
    background: #ffffff;
    border: 1px solid #d2ddce;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Month Navigation */
.calendar-month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8ede5;
}

.calendar-current-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: #26351a;
}

.calendar-nav-link {
    display: inline-block;
    background: #f0f5ed;
    border: 1px solid #d2ddce;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    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.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5a6650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
}

/* Month Grid */
.calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbf9;
    border: 1px solid #e8ede5;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #7a8472;
    transition: all 0.2s;
    position: relative;
}

.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;
    cursor: pointer;
}

.calendar-day.has-events a {
    color: #ffffff;
    font-weight: 600;
}

.calendar-day.has-events:hover {
    background: #4a6337;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px 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 3px rgba(212, 132, 47, 0.2);
}

.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: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* Archive Links */
.calendar-archive-link {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e8ede5;
}

.calendar-archive-link a {
    color: #3a5228;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    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.75rem;
    }
}

@media (max-width: 600px) {
    .calendar-month-grid,
    .calendar-week-headers {
        gap: 0.35rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .calendar-weekday {
        font-size: 0.65rem;
        padding: 0.35rem 0;
    }
}