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
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* Landrace.wiki – Portal base (Wikipedia style) */
/* Landrace.wiki – Portal:Botany (Matching Portal:Current Events Design System) */


.lw-portal {
.lw-portal {
     font-size: 14px;
     font-size: 14px;
     line-height: 1.6;
     line-height: 1.35;
     color: #202122;
     color: #202122;
}
}
Line 13: Line 13:
/* Portal header */
/* Portal header */
.lw-portal__title {
.lw-portal__title {
     font-size: 28px;
     font-size: 22px;
     font-weight: 700;
     font-weight: 800;
     text-align: center;
     text-align: center;
     margin: 12px 0 14px;
     margin: 8px 0 10px;
    color: #202122;
    border-bottom: 2px solid #2d6a4f;
    padding-bottom: 8px;
}
}


Line 29: Line 26:
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
     margin: 0 0 16px;
     margin: 0 0 12px;
    font-size: 13px;
}
}


Line 45: Line 41:
.lw-portal__grid {
.lw-portal__grid {
     display: grid;
     display: grid;
     grid-template-columns: 1fr 1fr;
     grid-template-columns: 1.2fr 0.8fr;
     gap: 14px;
     gap: 12px;
    margin-top: 14px;
}
}


Line 56: Line 51:
}
}


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


.lw-box__hd {
.lw-box__hd {
    background: #f8f9fa;
     padding: 10px 12px;
     padding: 8px 12px;
     border-bottom: 1px solid #eef2f7;
     border-bottom: 1px solid #a2a9b1;
     display: flex;
     display: flex;
     align-items: center;
     align-items: baseline;
     justify-content: space-between;
     justify-content: space-between;
     gap: 10px;
     gap: 10px;
Line 75: Line 71:


.lw-box__title {
.lw-box__title {
     font-weight: 700;
     font-weight: 800;
     font-size: 16px;
     font-size: 15px;
    color: #202122;
}
}


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


Line 95: Line 90:


.lw-box__bd {
.lw-box__bd {
     padding: 14px;
     padding: 12px;
}
}


/* Hero section for intro */
/* Hero section */
.lw-hero {
.lw-hero {
     display: grid;
     display: grid;
     grid-template-columns: 400px 1fr;
     grid-template-columns: 1fr 1fr;
     gap: 16px;
     gap: 12px;
     align-items: start;
     align-items: start;
}
}
Line 113: Line 108:


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


Line 126: Line 122:
.lw-hero__caption {
.lw-hero__caption {
     font-size: 12px;
     font-size: 12px;
     color: #72777d;
     color: #6b7280;
     margin-top: 6px;
     margin-top: 6px;
    line-height: 1.4;
}
}


.lw-hero__text p {
.lw-hero__text p {
     margin: 0 0 12px;
     margin: 0 0 8px;
     line-height: 1.6;
    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;
}
}


/* Major topics definition lists */
.lw-box__bd dt {
.lw-box__bd dt {
     font-weight: 700;
     font-weight: 700;
    font-size: 13px;
     margin-top: 12px;
     margin-top: 12px;
     margin-bottom: 4px;
     margin-bottom: 4px;
     color: #202122;
     color: #2d6a4f;
}
}


Line 151: Line 207:
     margin: 0 0 8px 0;
     margin: 0 0 8px 0;
     line-height: 1.5;
     line-height: 1.5;
    font-size: 13px;
}
}


Line 160: Line 217:
.lw-box__bd dd a:hover {
.lw-box__bd dd a:hover {
     text-decoration: underline;
     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;
}
}


Line 165: Line 240:
.lw-list {
.lw-list {
     margin: 0;
     margin: 0;
     padding-left: 20px;
     padding-left: 18px;
}
}


.lw-list li {
.lw-list li {
     margin: 6px 0;
     margin: 4px 0;
     line-height: 1.5;
}
 
/* Portal grid for related portals */
.portal-grid {
    display: grid;
     grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
}


/* Kicker/subheadings */
.portal-grid a {
.lw-kicker {
     display: block;
     font-size: 12px;
    padding: 8px 12px;
     color: #72777d;
     background: #f9fafb;
     margin-bottom: 8px;
    border: 1px solid #e5e7eb;
     border-radius: 8px;
    text-align: center;
    font-size: 13px;
     font-weight: 600;
     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);
}
}


/* Links in body text */
/* Category tags */
.lw-box__bd a {
.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;
     color: #2d6a4f;
     text-decoration: none;
     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;
}
}


.lw-box__bd a:hover {
/* Selected picture full width */
     text-decoration: underline;
.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;
}
}


/* Floating images in featured articles */
/* Accent badges (optional) */
.lw-box__bd .floatright {
.badge {
     float: right;
    display: inline-block;
     margin: 0 0 12px 12px;
    padding: 2px 8px;
     max-width: 200px;
    background: #2d6a4f;
    color: white;
    border-radius: 4px;
    font-size: 11px;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.03em;
}
}


/* Category tags */
/* Info callout boxes */
.lw-box__bd .category-list {
.info-box {
     line-height: 1.8;
    padding: 10px 12px;
    background: #f0fdf4;
    border-left: 3px solid #2d6a4f;
    border-radius: 6px;
     font-size: 13px;
    color: #166534;
    margin: 10px 0;
}
}


.lw-box__bd .category-list a {
/* Responsive refinements */
     white-space: nowrap;
@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;
    }
}