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
Tag: Reverted
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* News Card Base Styles */
.news-card {
.news-card {
  background: #fff;
border: 1px solid #e8ede5;
  border-radius: 12px;
border-left: 4px solid #c75b3c;
  border-left: 4px solid #d2ddce;
border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
background: #fff;
  margin: 0 0 16px 0;
padding: 0;
  overflow: hidden;
margin: 0 0 4px 0;
  transition: all 0.2s ease;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
transition: box-shadow 0.2s ease, transform 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);
}
}
 
.news-card--policy {
/* Category-specific left border colors */
border-left-color: #5b7a45;
.news-card--Policy {
  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 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: 4px 8px;
  background: linear-gradient(to bottom, #fafbf9, #f5f7f4);
background: linear-gradient(180deg, #fafbf9 0%, #f5f7f4 100%);
  border-bottom: 1px solid #e8ede5;
border-bottom: 1px solid #e8ede5;
border-radius: 8px 8px 0 0;
gap: 5px;
}
}
.news-card__date {
.news-card__date {
  font-size: 0.8rem;
font-size: 0.7rem;
  font-weight: 600;
font-weight: 700;
  color: #7a8472;
color: #5a6650;
  text-transform: uppercase;
text-transform: uppercase;
  letter-spacing: 0.5px;
letter-spacing: 0.05em;
}
}
.news-card__badges {
.news-card__badges {
  display: flex;
display: flex;
  gap: 8px;
align-items: center;
  align-items: center;
gap: 4px;
}
}
.news-card__campaign-badge {
.news-card__campaign-badge {
  padding: 4px 10px;
font-size: 0.6rem;
  background: #f0f5ed;
font-weight: 600;
  border: 1px solid #d2ddce;
padding: 1px 5px;
  border-radius: 4px;
border-radius: 4px;
  font-size: 0.75rem;
background: rgba(45, 106, 79, 0.08);
  color: #5b7a45;
color: #2d6a4f;
  font-weight: 500;
border: 1px solid rgba(45, 106, 79, 0.2);
white-space: nowrap;
max-width: 140px;
overflow: hidden;
text-overflow: ellipsis;
}
}
.news-card__category-badge {
.news-card__category-badge {
  padding: 5px 12px;
font-size: 0.58rem;
  border-radius: 5px;
font-weight: 800;
  font-size: 0.72rem;
padding: 2px 7px;
  font-weight: 700;
border-radius: 999px;
  text-transform: uppercase;
letter-spacing: 0.08em;
  letter-spacing: 0.5px;
text-transform: uppercase;
  color: #fff;
color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
white-space: nowrap;
flex-shrink: 0;
}
}
 
.news-card--policy .news-card__category-badge {
.news-card__category-badge--Policy {
background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%);
  background: linear-gradient(135deg, #5b7a45, #6d8f55);
}
}
 
.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 */
.news-card__location {
.news-card__location {
  padding: 10px 18px 0;
padding: 2px 8px 0;
  font-size: 0.85rem;
font-size: 0.74rem;
  color: #7a8472;
color: #7a8472;
  font-style: italic;
font-weight: 500;
  line-height: 1.4;
font-style: italic;
line-height: 1.2;
letter-spacing: 0.01em;
}
}
/* Title */
.news-card__title {
.news-card__title {
  padding: 8px 18px 10px;
padding: 2px 8px 2px;
  margin: 0;
font-size: 0.98rem;
  font-size: 1.15rem;
font-weight: 700;
  font-weight: 700;
line-height: 1.15;
  line-height: 1.4;
color: #1a2612;
  color: #1a2612;
margin: 0;
}
}
/* Summary */
.news-card__summary {
.news-card__summary {
  padding: 0 18px 14px;
padding: 0 8px 4px;
  font-size: 0.95rem;
font-size: 0.84rem;
  line-height: 1.6;
line-height: 1.35;
  color: #34402d;
color: #34402d;
}
}
 
.news-card__enforcement-data {
/* Enforcement Section */
display: flex;
.news-card__enforcement {
flex-wrap: wrap;
  padding: 10px 18px;
gap: 3px;
  background: #fafbf9;
margin: 0;
  border-top: 1px solid #e8ede5;
padding: 4px 8px;
  border-bottom: 1px solid #e8ede5;
background: rgba(199, 91, 60, 0.04);
border-top: 1px solid rgba(199, 91, 60, 0.1);
border-bottom: 1px solid rgba(199, 91, 60, 0.1);
}
}
 
.enforcement-metric {
.news-card__enforcement-label {
display: inline-block;
  font-size: 0.72rem;
padding: 1px 5px;
  font-weight: 600;
background: white;
  color: #7a8472;
border-radius: 3px;
  text-transform: uppercase;
font-size: 0.74rem;
  letter-spacing: 0.5px;
font-weight: 500;
  margin-bottom: 4px;
border: 1px solid #e0e0e0;
white-space: nowrap;
}
}
 
.enforcement-metric--agency {
.news-card__enforcement-value {
color: #c75b3c;
  font-size: 0.88rem;
border-color: rgba(199, 91, 60, 0.3);
  color: #34402d;
background: rgba(199, 91, 60, 0.05);
  line-height: 1.5;
}
}
 
.enforcement-metric--scale {
/* Metrics Section */
color: #54595d;
.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__source {
.news-card__metric {
padding: 4px 8px;
  display: flex;
font-size: 0.68rem;
  align-items: center;
color: #7a8472;
  gap: 6px;
background: #fafbf9;
border-top: 1px solid #e8ede5;
border-radius: 0 0 8px 8px;
display: flex;
align-items: flex-start;
gap: 3px;
}
.news-card__source::before {
content: "🔗";
font-size: 0.74rem;
opacity: 0.5;
flex-shrink: 0;
margin-top: 0px;
}
.news-card__source a {
color: #2d6a4f;
text-decoration: none;
word-break: break-all;
font-weight: 500;
}
.news-card__source a:hover {
text-decoration: underline;
color: #245a42;
}
@media (max-width: 768px) {
.news-card__header {
flex-wrap: wrap;
gap: 3px;
}
.news-card__date {
width: 100%;
margin-bottom: 1px;
}
}
 
.news-card__badges {
.news-card__metric-icon {
width: 100%;
  font-size: 1rem;
justify-content: flex-start;
  line-height: 1;
}
}
 
.news-card__campaign-badge {
.news-card__metric-value {
max-width: none;
  font-size: 0.88rem;
flex: 1;
  font-weight: 600;
  color: #34402d;
}
}
 
.news-card__enforcement-data {
/* Source */
gap: 2px;
.news-card__source {
}
  padding: 12px 18px;
.enforcement-metric {
  background: #fafbf9;
font-size: 0.7rem;
  font-size: 0.78rem;
padding: 1px 4px;
  color: #7a8472;
}
}
@media (max-width: 480px) {
.news-card__badges {
flex-direction: column;
align-items: flex-start;
gap: 2px;
}
}
 
.news-card__campaign-badge,
.news-card__source-label {
.news-card__category-badge {
  font-weight: 600;
max-width: 100%;
}
}
/* 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;
  }
}
}

Latest revision as of 10:05, 18 January 2026

.news-card {
border: 1px solid #e8ede5;
border-left: 4px solid #c75b3c;
border-radius: 8px;
background: #fff;
padding: 0;
margin: 0 0 4px 0;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
transform: translateY(-2px);
}
.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;
}
.news-card__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 4px 8px;
background: linear-gradient(180deg, #fafbf9 0%, #f5f7f4 100%);
border-bottom: 1px solid #e8ede5;
border-radius: 8px 8px 0 0;
gap: 5px;
}
.news-card__date {
font-size: 0.7rem;
font-weight: 700;
color: #5a6650;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.news-card__badges {
display: flex;
align-items: center;
gap: 4px;
}
.news-card__campaign-badge {
font-size: 0.6rem;
font-weight: 600;
padding: 1px 5px;
border-radius: 4px;
background: rgba(45, 106, 79, 0.08);
color: #2d6a4f;
border: 1px solid rgba(45, 106, 79, 0.2);
white-space: nowrap;
max-width: 140px;
overflow: hidden;
text-overflow: ellipsis;
}
.news-card__category-badge {
font-size: 0.58rem;
font-weight: 800;
padding: 2px 7px;
border-radius: 999px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
white-space: nowrap;
flex-shrink: 0;
}
.news-card--policy .news-card__category-badge {
background: linear-gradient(135deg, #5b7a45 0%, #4a6337 100%);
}
.news-card--enforcement .news-card__category-badge {
background: linear-gradient(135deg, #c75b3c 0%, #a84a2f 100%);
}
.news-card--fieldwork .news-card__category-badge {
background: linear-gradient(135deg, #4a7c9d 0%, #3a6379 100%);
}
.news-card--research .news-card__category-badge {
background: linear-gradient(135deg, #7a6c3a 0%, #63572e 100%);
}
.news-card--community .news-card__category-badge {
background: linear-gradient(135deg, #6a5b86 0%, #54486b 100%);
}
.news-card__location {
padding: 2px 8px 0;
font-size: 0.74rem;
color: #7a8472;
font-weight: 500;
font-style: italic;
line-height: 1.2;
letter-spacing: 0.01em;
}
.news-card__title {
padding: 2px 8px 2px;
font-size: 0.98rem;
font-weight: 700;
line-height: 1.15;
color: #1a2612;
margin: 0;
}
.news-card__summary {
padding: 0 8px 4px;
font-size: 0.84rem;
line-height: 1.35;
color: #34402d;
}
.news-card__enforcement-data {
display: flex;
flex-wrap: wrap;
gap: 3px;
margin: 0;
padding: 4px 8px;
background: rgba(199, 91, 60, 0.04);
border-top: 1px solid rgba(199, 91, 60, 0.1);
border-bottom: 1px solid rgba(199, 91, 60, 0.1);
}
.enforcement-metric {
display: inline-block;
padding: 1px 5px;
background: white;
border-radius: 3px;
font-size: 0.74rem;
font-weight: 500;
border: 1px solid #e0e0e0;
white-space: nowrap;
}
.enforcement-metric--agency {
color: #c75b3c;
border-color: rgba(199, 91, 60, 0.3);
background: rgba(199, 91, 60, 0.05);
}
.enforcement-metric--scale {
color: #54595d;
}
.news-card__source {
padding: 4px 8px;
font-size: 0.68rem;
color: #7a8472;
background: #fafbf9;
border-top: 1px solid #e8ede5;
border-radius: 0 0 8px 8px;
display: flex;
align-items: flex-start;
gap: 3px;
}
.news-card__source::before {
content: "🔗";
font-size: 0.74rem;
opacity: 0.5;
flex-shrink: 0;
margin-top: 0px;
}
.news-card__source a {
color: #2d6a4f;
text-decoration: none;
word-break: break-all;
font-weight: 500;
}
.news-card__source a:hover {
text-decoration: underline;
color: #245a42;
}
@media (max-width: 768px) {
.news-card__header {
flex-wrap: wrap;
gap: 3px;
}
.news-card__date {
width: 100%;
margin-bottom: 1px;
}
.news-card__badges {
width: 100%;
justify-content: flex-start;
}
.news-card__campaign-badge {
max-width: none;
flex: 1;
}
.news-card__enforcement-data {
gap: 2px;
}
.enforcement-metric {
font-size: 0.7rem;
padding: 1px 4px;
}
}
@media (max-width: 480px) {
.news-card__badges {
flex-direction: column;
align-items: flex-start;
gap: 2px;
}
.news-card__campaign-badge,
.news-card__category-badge {
max-width: 100%;
}
}