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:LWPortal/styles.css: Difference between revisions

Template page
Created page with "Landrace.wiki – Portal base: .lw-portal{font-size:14px;line-height:1.35} .lw-portal *{box-sizing:border-box} .lw-portal__title{font-size:22px;font-weight:800;text-align:center;margin:8px 0 10px} .lw-portal__bar{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;margin:0 0 12px} .lw-portal__bar a{text-decoration:none} .lw-portal__bar a:hover{text-decoration:underline} .lw-portal__grid{display:grid;grid-template-columns:1.2fr 0.8fr;gap:..."
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Landrace.wiki – Portal base */
/* Landrace.wiki – Portal:Botany (Matching Portal:Current Events Design System) */
.lw-portal{font-size:14px;line-height:1.35}
.lw-portal *{box-sizing:border-box}


.lw-portal__title{font-size:22px;font-weight:800;text-align:center;margin:8px 0 10px}
.lw-portal {
.lw-portal__bar{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;margin:0 0 12px}
    font-size: 14px;
.lw-portal__bar a{text-decoration:none}
    line-height: 1.35;
.lw-portal__bar a:hover{text-decoration:underline}
    color: #202122;
}


.lw-portal__grid{display:grid;grid-template-columns:1.2fr 0.8fr;gap:12px}
.lw-portal * {
@media (max-width:900px){.lw-portal__grid{grid-template-columns:1fr}}
    box-sizing: border-box;
}


.lw-box{background:#fff;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.03)}
/* Portal header */
.lw-box__hd{padding:10px 12px;border-bottom:1px solid #eef2f7;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.lw-portal__title {
.lw-box__title{font-weight:800}
    font-size: 22px;
.lw-box__link{font-size:12px}
    font-weight: 800;
.lw-box__bd{padding:12px}
    text-align: center;
    margin: 8px 0 10px;
}


.lw-hero{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
/* Navigation bar */
@media (max-width:900px){.lw-hero{grid-template-columns:1fr}}
.lw-portal__bar {
.lw-hero__img{background:#f3f4f6;border:1px solid #eef2f7;border-radius:12px;overflow:hidden}
    display: flex;
.lw-hero__img img{display:block;width:100%;height:auto}
    flex-wrap: wrap;
.lw-hero__caption{font-size:12px;color:#6b7280;margin-top:6px}
    gap: 10px;
.lw-hero__text p{margin:0 0 8px}
    justify-content: center;
    align-items: center;
    margin: 0 0 12px;
}


.lw-list{margin:0;padding-left:18px}
.lw-portal__bar a {
.lw-list li{margin:4px 0}
    text-decoration: none;
    color: #2d6a4f;
}


.lw-kicker{font-size:12px;color:#6b7280;margin-bottom:6px}
.lw-portal__bar a:hover {
    text-decoration: underline;
}
 
/* Grid layout */
.lw-portal__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
}
 
@media (max-width: 900px) {
    .lw-portal__grid {
        grid-template-columns: 1fr;
    }
}
 
/* Card containers (modern, rounded) */
.lw-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    margin-bottom: 12px;
}
 
.lw-box__hd {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}
 
.lw-box__title {
    font-weight: 800;
    font-size: 15px;
}
 
.lw-box__link {
    font-size: 12px;
    color: #6b7280;
}
 
.lw-box__link a {
    color: #2d6a4f;
    text-decoration: none;
}
 
.lw-box__link a:hover {
    text-decoration: underline;
}
 
.lw-box__bd {
    padding: 12px;
}
 
/* Hero section */
.lw-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}
 
@media (max-width: 900px) {
    .lw-hero {
        grid-template-columns: 1fr;
    }
}
 
.lw-hero__img {
    background: #f3f4f6;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
}
 
.lw-hero__img img {
    display: block;
    width: 100%;
    height: auto;
}
 
.lw-hero__caption {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}
 
.lw-hero__text p {
    margin: 0 0 8px;
    line-height: 1.5;
}
 
.lw-hero__text p:last-child {
    margin-bottom: 0;
}
 
/* Featured article image */
.featured-img {
    background: #f3f4f6;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
 
.featured-img img {
    display: block;
    width: 100%;
    height: auto;
}
 
.featured-img__caption {
    font-size: 11px;
    color: #6b7280;
    padding: 8px;
    background: #f9fafb;
}
 
/* Featured article with side image */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
    align-items: start;
}
 
@media (max-width: 700px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
}
 
.featured-article__content p {
    margin: 0 0 10px;
    line-height: 1.5;
}
 
/* Did you know list */
.lw-box__bd ul {
    margin: 0;
    padding-left: 20px;
}
 
.lw-box__bd ul li {
    margin: 6px 0;
    line-height: 1.45;
}
 
/* Major topics - definition list styling */
.lw-box__bd dl {
    margin: 0;
}
 
.lw-box__bd dt {
    font-weight: 700;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #2d6a4f;
}
 
.lw-box__bd dt:first-child {
    margin-top: 0;
}
 
.lw-box__bd dd {
    margin: 0 0 8px 0;
    line-height: 1.5;
    font-size: 13px;
}
 
.lw-box__bd dd a {
    color: #2d6a4f;
    text-decoration: none;
}
 
.lw-box__bd dd a:hover {
    text-decoration: underline;
}
 
/* Links */
.lw-box__bd a {
    color: #2d6a4f;
    text-decoration: none;
}
 
.lw-box__bd a:hover {
    text-decoration: underline;
}
 
/* Kicker/subheadings */
.lw-kicker {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}
 
/* Lists */
.lw-list {
    margin: 0;
    padding-left: 18px;
}
 
.lw-list li {
    margin: 4px 0;
}
 
/* Portal grid for related portals */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
 
.portal-grid a {
    display: block;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #2d6a4f;
    text-decoration: none;
    transition: all 0.15s ease;
}
 
.portal-grid a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
 
/* Category tags */
.category-list {
    line-height: 1.8;
}
 
.category-list a {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px 3px 2px 0;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #2d6a4f;
    text-decoration: none;
    transition: background 0.15s ease;
}
 
.category-list a:hover {
    background: #e5e7eb;
}
 
/* Action items with bold labels */
.lw-list li strong {
    color: #2d6a4f;
    font-weight: 700;
}
 
/* Selected picture full width */
.selected-picture {
    background: #f3f4f6;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}
 
.selected-picture img {
    display: block;
    width: 100%;
    height: auto;
}
 
/* Accent badges (optional) */
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #2d6a4f;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
 
/* Info callout boxes */
.info-box {
    padding: 10px 12px;
    background: #f0fdf4;
    border-left: 3px solid #2d6a4f;
    border-radius: 6px;
    font-size: 13px;
    color: #166534;
    margin: 10px 0;
}
 
/* Responsive refinements */
@media (max-width: 900px) {
    .lw-portal__grid {
        grid-template-columns: 1fr;
    }
   
    .featured-article {
        grid-template-columns: 1fr;
    }
   
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

Latest revision as of 11:00, 20 January 2026

/* Landrace.wiki – Portal:Botany (Matching Portal:Current Events Design System) */

.lw-portal {
    font-size: 14px;
    line-height: 1.35;
    color: #202122;
}

.lw-portal * {
    box-sizing: border-box;
}

/* Portal header */
.lw-portal__title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin: 8px 0 10px;
}

/* Navigation bar */
.lw-portal__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin: 0 0 12px;
}

.lw-portal__bar a {
    text-decoration: none;
    color: #2d6a4f;
}

.lw-portal__bar a:hover {
    text-decoration: underline;
}

/* Grid layout */
.lw-portal__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 12px;
}

@media (max-width: 900px) {
    .lw-portal__grid {
        grid-template-columns: 1fr;
    }
}

/* Card containers (modern, rounded) */
.lw-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    margin-bottom: 12px;
}

.lw-box__hd {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.lw-box__title {
    font-weight: 800;
    font-size: 15px;
}

.lw-box__link {
    font-size: 12px;
    color: #6b7280;
}

.lw-box__link a {
    color: #2d6a4f;
    text-decoration: none;
}

.lw-box__link a:hover {
    text-decoration: underline;
}

.lw-box__bd {
    padding: 12px;
}

/* Hero section */
.lw-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

@media (max-width: 900px) {
    .lw-hero {
        grid-template-columns: 1fr;
    }
}

.lw-hero__img {
    background: #f3f4f6;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
}

.lw-hero__img img {
    display: block;
    width: 100%;
    height: auto;
}

.lw-hero__caption {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.lw-hero__text p {
    margin: 0 0 8px;
    line-height: 1.5;
}

.lw-hero__text p:last-child {
    margin-bottom: 0;
}

/* Featured article image */
.featured-img {
    background: #f3f4f6;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.featured-img img {
    display: block;
    width: 100%;
    height: auto;
}

.featured-img__caption {
    font-size: 11px;
    color: #6b7280;
    padding: 8px;
    background: #f9fafb;
}

/* Featured article with side image */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 12px;
    align-items: start;
}

@media (max-width: 700px) {
    .featured-article {
        grid-template-columns: 1fr;
    }
}

.featured-article__content p {
    margin: 0 0 10px;
    line-height: 1.5;
}

/* Did you know list */
.lw-box__bd ul {
    margin: 0;
    padding-left: 20px;
}

.lw-box__bd ul li {
    margin: 6px 0;
    line-height: 1.45;
}

/* Major topics - definition list styling */
.lw-box__bd dl {
    margin: 0;
}

.lw-box__bd dt {
    font-weight: 700;
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #2d6a4f;
}

.lw-box__bd dt:first-child {
    margin-top: 0;
}

.lw-box__bd dd {
    margin: 0 0 8px 0;
    line-height: 1.5;
    font-size: 13px;
}

.lw-box__bd dd a {
    color: #2d6a4f;
    text-decoration: none;
}

.lw-box__bd dd a:hover {
    text-decoration: underline;
}

/* Links */
.lw-box__bd a {
    color: #2d6a4f;
    text-decoration: none;
}

.lw-box__bd a:hover {
    text-decoration: underline;
}

/* Kicker/subheadings */
.lw-kicker {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Lists */
.lw-list {
    margin: 0;
    padding-left: 18px;
}

.lw-list li {
    margin: 4px 0;
}

/* Portal grid for related portals */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.portal-grid a {
    display: block;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #2d6a4f;
    text-decoration: none;
    transition: all 0.15s ease;
}

.portal-grid a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

/* Category tags */
.category-list {
    line-height: 1.8;
}

.category-list a {
    display: inline-block;
    padding: 3px 8px;
    margin: 2px 3px 2px 0;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    color: #2d6a4f;
    text-decoration: none;
    transition: background 0.15s ease;
}

.category-list a:hover {
    background: #e5e7eb;
}

/* Action items with bold labels */
.lw-list li strong {
    color: #2d6a4f;
    font-weight: 700;
}

/* Selected picture full width */
.selected-picture {
    background: #f3f4f6;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.selected-picture img {
    display: block;
    width: 100%;
    height: auto;
}

/* Accent badges (optional) */
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #2d6a4f;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Info callout boxes */
.info-box {
    padding: 10px 12px;
    background: #f0fdf4;
    border-left: 3px solid #2d6a4f;
    border-radius: 6px;
    font-size: 13px;
    color: #166534;
    margin: 10px 0;
}

/* Responsive refinements */
@media (max-width: 900px) {
    .lw-portal__grid {
        grid-template-columns: 1fr;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
    }
}