Toggle menu
83
56
34
2.9K
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:NewsItem/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
/* News Card Base Styles */
.news-card {
.news-card {
   border: 1px solid #e8ede5;
   background: #fff;
  border-left: 4px solid #c75b3c;
   border-radius: 12px;
   border-radius: 12px;
   background: #fff;
   border-left: 4px solid #d2ddce;
   padding: 0;
   box-shadow: 0 2px 6px rgba(0,0,0,0.04);
   margin: 0 0 16px 0;
   margin: 0 0 16px 0;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
   overflow: hidden;
   transition: box-shadow 0.2s ease, transform 0.2s ease;
   transition: all 0.2s ease;
}
}


.news-card:hover {
.news-card:hover {
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
   box-shadow: 0 4px 12px rgba(0,0,0,0.08);
   transform: translateY(-2px);
   transform: translateY(-2px);
}
}


/* Adjust left border color by category */
/* Category-specific left border colors */
.news-card--policy {
.news-card--Policy {
   border-left-color: #5b7a45;
   border-left-color: #5b7a45;
}
}


.news-card--enforcement {
.news-card--Enforcement {
   border-left-color: #c75b3c;
   border-left-color: #c75b3c;
}
}


.news-card--fieldwork {
.news-card--Fieldwork {
   border-left-color: #4a7c9d;
   border-left-color: #4a7c9d;
}
}


.news-card--research {
.news-card--Research {
   border-left-color: #7a6c3a;
   border-left-color: #7a6c3a;
}
}


.news-card--community {
.news-card--Community {
   border-left-color: #6a5b86;
   border-left-color: #6a5b86;
}
}


/* Header: Date on left, badges on right */
/* Header Section */
.news-card__header {
.news-card__header {
   display: flex;
   display: flex;
  justify-content: space-between;
   align-items: center;
   align-items: center;
  justify-content: space-between;
   padding: 12px 18px;
   padding: 12px 18px;
   background: linear-gradient(180deg, #fafbf9 0%, #f5f7f4 100%);
   background: linear-gradient(to bottom, #fafbf9, #f5f7f4);
   border-bottom: 1px solid #e8ede5;
   border-bottom: 1px solid #e8ede5;
  border-radius: 12px 12px 0 0;
  gap: 12px;
}
}


.news-card__date {
.news-card__date {
   font-size: 0.8rem;
   font-size: 0.8rem;
   font-weight: 700;
   font-weight: 600;
   color: #5a6650;
   color: #7a8472;
   text-transform: uppercase;
   text-transform: uppercase;
   letter-spacing: 0.05em;
   letter-spacing: 0.5px;
}
}


/* Badges container on right side */
.news-card__badges {
.news-card__badges {
   display: flex;
   display: flex;
  gap: 8px;
   align-items: center;
   align-items: center;
  gap: 8px;
}
}


/* Campaign badge - subtle, next to category badge */
.news-card__campaign-badge {
.news-card__campaign-badge {
  font-size: 0.68rem;
  font-weight: 600;
   padding: 4px 10px;
   padding: 4px 10px;
  border-radius: 6px;
   background: #f0f5ed;
   background: rgba(45, 106, 79, 0.08);
   border: 1px solid #d2ddce;
  color: #2d6a4f;
   border-radius: 4px;
   border: 1px solid rgba(45, 106, 79, 0.2);
   font-size: 0.75rem;
   white-space: nowrap;
   color: #5b7a45;
   max-width: 200px;
   font-weight: 500;
   overflow: hidden;
   text-overflow: ellipsis;
}
}


/* Category badge */
.news-card__category-badge {
.news-card__category-badge {
  font-size: 0.65rem;
  font-weight: 800;
   padding: 5px 12px;
   padding: 5px 12px;
   border-radius: 999px;
   border-radius: 5px;
   letter-spacing: 0.08em;
   font-size: 0.72rem;
  font-weight: 700;
   text-transform: uppercase;
   text-transform: uppercase;
  letter-spacing: 0.5px;
   color: #fff;
   color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
}
}


/* Category badge colors */
.news-card__category-badge--Policy {
.news-card--policy .news-card__category-badge {
   background: linear-gradient(135deg, #5b7a45, #6d8f55);
   background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%);
}
}


.news-card--enforcement .news-card__category-badge {
.news-card__category-badge--Enforcement {
   background: linear-gradient(135deg, #c75b3c 0%, #a84a2f 100%);
   background: linear-gradient(135deg, #c75b3c, #d97152);
}
}


.news-card--fieldwork .news-card__category-badge {
.news-card__category-badge--Fieldwork {
   background: linear-gradient(135deg, #4a7c9d 0%, #3a6379 100%);
   background: linear-gradient(135deg, #4a7c9d, #5a91b5);
}
}


.news-card--research .news-card__category-badge {
.news-card__category-badge--Research {
   background: linear-gradient(135deg, #7a6c3a 0%, #63572e 100%);
   background: linear-gradient(135deg, #7a6c3a, #8f8148);
}
}


.news-card--community .news-card__category-badge {
.news-card__category-badge--Community {
   background: linear-gradient(135deg, #6a5b86 0%, #54486b 100%);
   background: linear-gradient(135deg, #6a5b86, #7d6d9a);
}
}


/* Location hierarchy - italic, with bullet separators for better spacing */
/* Location */
.news-card__location {
.news-card__location {
   padding: 10px 18px 0;
   padding: 10px 18px 0;
   font-size: 0.85rem;
   font-size: 0.85rem;
   color: #7a8472;
   color: #7a8472;
  font-weight: 500;
   font-style: italic;
   font-style: italic;
   line-height: 1.5;
   line-height: 1.4;
  letter-spacing: 0.01em;
}
}


/* Title */
.news-card__title {
.news-card__title {
   padding: 8px 18px 10px;
   padding: 8px 18px 10px;
  margin: 0;
   font-size: 1.15rem;
   font-size: 1.15rem;
   font-weight: 700;
   font-weight: 700;
   line-height: 1.35;
   line-height: 1.4;
   color: #1a2612;
   color: #1a2612;
  margin: 0;
}
}


/* Summary */
.news-card__summary {
.news-card__summary {
   padding: 0 18px 14px;
   padding: 0 18px 14px;
Line 140: Line 127:
}
}


/* Source URL display */
/* Enforcement Section */
.news-card__source {
.news-card__enforcement {
   padding: 12px 18px;
   padding: 10px 18px;
  font-size: 0.78rem;
  color: #7a8472;
   background: #fafbf9;
   background: #fafbf9;
   border-top: 1px solid #e8ede5;
   border-top: 1px solid #e8ede5;
   border-radius: 0 0 12px 12px;
   border-bottom: 1px solid #e8ede5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
}


.news-card__source::before {
.news-card__enforcement-label {
   content: "🔗";
   font-size: 0.72rem;
   font-size: 0.85rem;
   font-weight: 600;
   opacity: 0.5;
  color: #7a8472;
   flex-shrink: 0;
   text-transform: uppercase;
   margin-top: 1px;
   letter-spacing: 0.5px;
   margin-bottom: 4px;
}
}


.news-card__source a {
.news-card__enforcement-value {
   color: #2d6a4f;
   font-size: 0.88rem;
  text-decoration: none;
   color: #34402d;
   word-break: break-all;
   line-height: 1.5;
   font-weight: 500;
}
}


.news-card__source a:hover {
/* Metrics Section */
   text-decoration: underline;
.news-card__metrics {
   color: #245a42;
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  background: #f5f7f4;
   border-top: 1px solid #e8ede5;
   border-bottom: 1px solid #e8ede5;
  flex-wrap: wrap;
}
}


/* Responsive adjustments */
.news-card__metric {
@media (max-width: 768px) {
   display: flex;
  .news-card__header {
   align-items: center;
    flex-wrap: wrap;
   gap: 6px;
    gap: 8px;
   }
 
  .news-card__date {
    width: 100%;
    margin-bottom: 4px;
   }
 
  .news-card__badges {
    width: 100%;
    justify-content: flex-start;
   }
 
  .news-card__campaign-badge {
    max-width: none;
    flex: 1;
  }
}
}


@media (max-width: 480px) {
.news-card__metric-icon {
  .news-card__badges {
  font-size: 1rem;
    flex-direction: column;
   line-height: 1;
    align-items: flex-start;
    gap: 6px;
  }
    
  .news-card__campaign-badge,
  .news-card__category-badge {
    max-width: 100%;
  }
}
}


/* Enforcement Data Section */
.news-card__metric-value {
.news-card__enforcement-data {
   font-size: 0.88rem;
   display: flex;
   font-weight: 600;
  flex-wrap: wrap;
   color: #34402d;
  gap: 8px;
  margin: 12px 0 8px 0;
  padding: 10px;
  background: rgba(199, 91, 60, 0.05);
   border-radius: 6px;
   border: 1px solid rgba(199, 91, 60, 0.15);
}
}


.enforcement-metric {
/* Source */
  display: inline-block;
.news-card__source {
   padding: 4px 10px;
   padding: 12px 18px;
   background: white;
   background: #fafbf9;
  border-radius: 4px;
   font-size: 0.78rem;
   font-size: 0.85rem;
   color: #7a8472;
   font-weight: 500;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
}
}


.enforcement-metric--agency {
.news-card__source-label {
   color: #c75b3c;
   font-weight: 600;
  border-color: #c75b3c;
}
 
.enforcement-metric--scale {
  color: #54595d;
}
}


/* Responsive */
/* Responsive */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .news-card__enforcement-data {
   .news-card__header {
     gap: 6px;
    flex-direction: column;
    align-items: flex-start;
     gap: 8px;
   }
   }
    
    
   .enforcement-metric {
   .news-card__metrics {
     font-size: 0.8rem;
     flex-direction: column;
     padding: 3px 8px;
     gap: 8px;
   }
   }
}
}

Revision as of 09:20, 18 January 2026

/* News Card Base Styles */
.news-card {
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid #d2ddce;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  margin: 0 0 16px 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Category-specific left border colors */
.news-card--Policy {
  border-left-color: #5b7a45;
}

.news-card--Enforcement {
  border-left-color: #c75b3c;
}

.news-card--Fieldwork {
  border-left-color: #4a7c9d;
}

.news-card--Research {
  border-left-color: #7a6c3a;
}

.news-card--Community {
  border-left-color: #6a5b86;
}

/* Header Section */
.news-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(to bottom, #fafbf9, #f5f7f4);
  border-bottom: 1px solid #e8ede5;
}

.news-card__date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a8472;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-card__badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.news-card__campaign-badge {
  padding: 4px 10px;
  background: #f0f5ed;
  border: 1px solid #d2ddce;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #5b7a45;
  font-weight: 500;
}

.news-card__category-badge {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.news-card__category-badge--Policy {
  background: linear-gradient(135deg, #5b7a45, #6d8f55);
}

.news-card__category-badge--Enforcement {
  background: linear-gradient(135deg, #c75b3c, #d97152);
}

.news-card__category-badge--Fieldwork {
  background: linear-gradient(135deg, #4a7c9d, #5a91b5);
}

.news-card__category-badge--Research {
  background: linear-gradient(135deg, #7a6c3a, #8f8148);
}

.news-card__category-badge--Community {
  background: linear-gradient(135deg, #6a5b86, #7d6d9a);
}

/* Location */
.news-card__location {
  padding: 10px 18px 0;
  font-size: 0.85rem;
  color: #7a8472;
  font-style: italic;
  line-height: 1.4;
}

/* Title */
.news-card__title {
  padding: 8px 18px 10px;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a2612;
}

/* Summary */
.news-card__summary {
  padding: 0 18px 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #34402d;
}

/* Enforcement Section */
.news-card__enforcement {
  padding: 10px 18px;
  background: #fafbf9;
  border-top: 1px solid #e8ede5;
  border-bottom: 1px solid #e8ede5;
}

.news-card__enforcement-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #7a8472;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.news-card__enforcement-value {
  font-size: 0.88rem;
  color: #34402d;
  line-height: 1.5;
}

/* Metrics Section */
.news-card__metrics {
  display: flex;
  gap: 16px;
  padding: 10px 18px;
  background: #f5f7f4;
  border-top: 1px solid #e8ede5;
  border-bottom: 1px solid #e8ede5;
  flex-wrap: wrap;
}

.news-card__metric {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card__metric-icon {
  font-size: 1rem;
  line-height: 1;
}

.news-card__metric-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: #34402d;
}

/* Source */
.news-card__source {
  padding: 12px 18px;
  background: #fafbf9;
  font-size: 0.78rem;
  color: #7a8472;
}

.news-card__source-label {
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .news-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .news-card__metrics {
    flex-direction: column;
    gap: 8px;
  }
}