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
 
Line 1: Line 1:
/* Landrace.wiki – Portal (Wikipedia Professional Style) */
/* Landrace.wiki – Portal:Botany (Matching Portal:Current Events Design System) */


/* Reset and base */
.lw-portal {
.lw-portal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Liberation Sans', sans-serif;
     font-size: 14px;
     font-size: 14px;
     line-height: 1.6;
     line-height: 1.35;
     color: #202122;
     color: #202122;
    max-width: 1400px;
    margin: 0 auto;
}
}


Line 15: Line 11:
}
}


/* Portal title */
/* Portal header */
.lw-portal__title {
.lw-portal__title {
     font-size: 32px;
     font-size: 22px;
     font-weight: 600;
     font-weight: 800;
     text-align: center;
     text-align: center;
     margin: 16px 0 12px;
     margin: 8px 0 10px;
    color: #202122;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 10px;
    letter-spacing: -0.02em;
}
}


Line 31: Line 23:
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 12px;
     gap: 10px;
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
     margin: 0 0 20px;
     margin: 0 0 12px;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #eaecf0;
}
 
.lw-portal__bar b {
    color: #54595d;
    font-weight: 600;
}
}


.lw-portal__bar a {
.lw-portal__bar a {
     text-decoration: none;
     text-decoration: none;
     color: #36c;
     color: #2d6a4f;
    transition: color 0.15s ease;
}
}


.lw-portal__bar a:hover {
.lw-portal__bar a:hover {
     text-decoration: underline;
     text-decoration: underline;
    color: #447ff5;
}
}


Line 59: 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: 16px;
     gap: 12px;
    margin-top: 16px;
}
}


@media (max-width: 1000px) {
@media (max-width: 900px) {
     .lw-portal__grid {
     .lw-portal__grid {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
Line 70: 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: 16px;
     border-radius: 12px;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
     overflow: visible;
     box-shadow: 0 1px 2px rgba(0,0,0,.03);
     margin-bottom: 12px;
}
}


.lw-box__hd {
.lw-box__hd {
    background: linear-gradient(to bottom, #f8f9fa 0%, #eaecf0 100%);
     padding: 10px 12px;
     padding: 10px 14px;
     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: 12px;
     gap: 10px;
}
}


.lw-box__title {
.lw-box__title {
     font-weight: 700;
     font-weight: 800;
     font-size: 17px;
     font-size: 15px;
    color: #202122;
    letter-spacing: -0.01em;
}
}


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


.lw-box__link a {
.lw-box__link a {
     color: #36c;
     color: #2d6a4f;
     text-decoration: none;
     text-decoration: none;
}
}
Line 112: Line 90:


.lw-box__bd {
.lw-box__bd {
     padding: 16px;
     padding: 12px;
    line-height: 1.6;
}
}


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


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


.lw-hero__img {
.lw-hero__img {
     background: #f8f9fa;
     background: #f3f4f6;
     border: 1px solid #c8ccd1;
     border: 1px solid #eef2f7;
     padding: 4px;
     border-radius: 12px;
    transition: border-color 0.2s ease;
     overflow: hidden;
}
 
.lw-hero__img:hover {
     border-color: #a2a9b1;
}
}


Line 149: Line 122:
.lw-hero__caption {
.lw-hero__caption {
     font-size: 12px;
     font-size: 12px;
     color: #54595d;
     color: #6b7280;
     margin-top: 6px;
     margin-top: 6px;
    line-height: 1.5;
    padding: 6px 8px;
    background: #f8f9fa;
    border-left: 3px solid #36c;
}
}


.lw-hero__text p {
.lw-hero__text p {
     margin: 0 0 14px;
     margin: 0 0 8px;
     line-height: 1.65;
     line-height: 1.5;
    text-align: justify;
}
}


Line 167: Line 135:
}
}


/* Bold text in hero */
/* Featured article image */
.lw-hero__text p strong,
.featured-img {
.lw-hero__text p b {
    background: #f3f4f6;
     font-weight: 600;
    border: 1px solid #eef2f7;
     color: #000;
    border-radius: 12px;
     overflow: hidden;
     margin-bottom: 12px;
}
}


/* Italics for species names */
.featured-img img {
.lw-hero__text i,
    display: block;
.lw-hero__text em {
    width: 100%;
     font-style: italic;
     height: auto;
}
}


/* Featured article image float */
.featured-img__caption {
.lw-box__bd .featured-img-right {
     font-size: 11px;
     float: right;
     color: #6b7280;
     margin: 0 0 16px 16px;
     padding: 8px;
     max-width: 220px;
     background: #f9fafb;
     background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 4px;
}
}


.lw-box__bd .featured-img-right img {
/* Featured article with side image */
     display: block;
.featured-article {
     width: 100%;
     display: grid;
     height: auto;
    grid-template-columns: 1fr 200px;
    gap: 12px;
     align-items: start;
}
 
@media (max-width: 700px) {
     .featured-article {
        grid-template-columns: 1fr;
    }
}
}


.lw-box__bd .featured-img-caption {
.featured-article__content p {
    font-size: 11px;
     margin: 0 0 10px;
    color: #54595d;
     line-height: 1.5;
     margin-top: 6px;
    padding: 4px 6px;
    background: #f8f9fa;
    border-left: 3px solid #36c;
     line-height: 1.4;
}
}


/* Paragraphs in featured articles */
/* Did you know list */
.lw-box__bd > p {
.lw-box__bd ul {
     margin: 0 0 14px;
     margin: 0;
    line-height: 1.65;
     padding-left: 20px;
     text-align: justify;
}
}


.lw-box__bd > p:last-of-type {
.lw-box__bd ul li {
     margin-bottom: 0;
     margin: 6px 0;
    line-height: 1.45;
}
}


/* Major topics definition lists */
/* Major topics - definition list styling */
.lw-box__bd dl {
.lw-box__bd dl {
     margin: 0;
     margin: 0;
Line 224: Line 194:
.lw-box__bd dt {
.lw-box__bd dt {
     font-weight: 700;
     font-weight: 700;
     margin-top: 16px;
     font-size: 13px;
     margin-bottom: 6px;
     margin-top: 12px;
     color: #202122;
     margin-bottom: 4px;
    font-size: 15px;
     color: #2d6a4f;
     border-bottom: 1px solid #eaecf0;
    padding-bottom: 4px;
}
}


Line 237: Line 205:


.lw-box__bd dd {
.lw-box__bd dd {
     margin: 0 0 12px 12px;
     margin: 0 0 8px 0;
     line-height: 1.7;
     line-height: 1.5;
     color: #202122;
     font-size: 13px;
}
}


.lw-box__bd dd a {
.lw-box__bd dd a {
     color: #36c;
     color: #2d6a4f;
     text-decoration: none;
     text-decoration: none;
    padding: 1px 2px;
    transition: background-color 0.15s ease;
}
}


.lw-box__bd dd a:hover {
.lw-box__bd dd a:hover {
     text-decoration: underline;
     text-decoration: underline;
    background-color: #eaf3ff;
}
}


/* Link separators in definition lists */
/* Links */
.lw-box__bd dd {
    word-spacing: 0.15em;
}
 
/* Lists */
.lw-list {
    margin: 0;
    padding-left: 22px;
}
 
.lw-list li {
    margin: 8px 0;
    line-height: 1.6;
}
 
.lw-list li strong,
.lw-list li b {
    font-weight: 600;
    color: #202122;
}
 
/* Unordered lists in box bodies */
.lw-box__bd ul {
    margin: 0;
    padding-left: 22px;
}
 
.lw-box__bd ul li {
    margin: 10px 0;
    line-height: 1.6;
}
 
/* Kicker/subheadings */
.lw-kicker {
    font-size: 13px;
    color: #54595d;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
 
/* Links in body text */
.lw-box__bd a {
.lw-box__bd a {
     color: #36c;
     color: #2d6a4f;
     text-decoration: none;
     text-decoration: none;
}
}
Line 307: Line 229:
}
}


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


/* Selected picture full width */
/* Lists */
.lw-box__bd .selected-picture {
.lw-list {
     margin: 0;
     margin: 0;
    background: #f8f9fa;
     padding-left: 18px;
    border: 1px solid #c8ccd1;
     padding: 4px;
}
}


.lw-box__bd .selected-picture img {
.lw-list li {
     display: block;
     margin: 4px 0;
    width: 100%;
    height: auto;
}
}


/* Category tags */
/* Portal grid for related portals */
.lw-box__bd .category-list {
    line-height: 2;
    word-spacing: 0.2em;
}
 
.lw-box__bd .category-list a {
    white-space: nowrap;
    padding: 2px 4px;
    background: #f8f9fa;
    border-radius: 3px;
    transition: background-color 0.15s ease;
}
 
.lw-box__bd .category-list a:hover {
    background-color: #eaecf0;
}
 
/* Grid for related portals */
.portal-grid {
.portal-grid {
     display: grid;
     display: grid;
Line 351: Line 255:


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


.portal-grid a:hover {
.portal-grid a:hover {
     background: #eaecf0;
     background: #f3f4f6;
     border-color: #a2a9b1;
     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;
     text-decoration: none;
    transition: background 0.15s ease;
}
}


/* Inline styles for special formatting */
.category-list a:hover {
.lw-box__bd .note-box {
     background: #e5e7eb;
    margin: 14px 0;
    padding: 12px 14px;
     background: #f8f9fa;
    border-left: 4px solid #36c;
    font-size: 13px;
    line-height: 1.6;
    color: #54595d;
}
}


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


/* Responsive adjustments */
/* Selected picture full width */
@media (max-width: 1000px) {
.selected-picture {
     .lw-hero {
     background: #f3f4f6;
        grid-template-columns: 1fr;
     border: 1px solid #eef2f7;
     }
     border-radius: 12px;
      
    overflow: hidden;
    .lw-box__bd .featured-img-right {
     margin-bottom: 8px;
        float: none;
        margin: 0 0 16px 0;
        max-width: 100%;
     }
   
    .portal-grid {
        grid-template-columns: 1fr;
    }
}
}


/* Wikipedia-style table formatting if used */
.selected-picture img {
.lw-box__bd .wikitable {
     display: block;
     border-collapse: collapse;
     width: 100%;
     width: 100%;
     margin: 12px 0;
     height: auto;
    background: #f8f9fa;
}
}


.lw-box__bd .wikitable th {
/* Accent badges (optional) */
     background: #eaecf0;
.badge {
     padding: 8px 10px;
    display: inline-block;
     border: 1px solid #a2a9b1;
    padding: 2px 8px;
     background: #2d6a4f;
     color: white;
     border-radius: 4px;
    font-size: 11px;
     font-weight: 600;
     font-weight: 600;
     text-align: left;
     text-transform: uppercase;
    letter-spacing: 0.03em;
}
}


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


/* Smooth scrolling */
/* Responsive refinements */
html {
@media (max-width: 900px) {
     scroll-behavior: smooth;
     .lw-portal__grid {
}
        grid-template-columns: 1fr;
 
    }
/* Print styles */
      
@media print {
     .featured-article {
     .lw-portal__bar,
         grid-template-columns: 1fr;
     .lw-box__link {
         display: none;
     }
     }
      
      
     .lw-box {
     .portal-grid {
         page-break-inside: avoid;
         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;
    }
}