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 base (Wikipedia style) */
/* Landrace.wiki – Portal (Wikipedia Professional Style) */


/* 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.6;
     color: #202122;
     color: #202122;
    max-width: 1400px;
    margin: 0 auto;
}
}


Line 11: Line 15:
}
}


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


Line 26: Line 31:
     display: flex;
     display: flex;
     flex-wrap: wrap;
     flex-wrap: wrap;
     gap: 10px;
     gap: 12px;
     justify-content: center;
     justify-content: center;
     align-items: center;
     align-items: center;
     margin: 0 0 16px;
     margin: 0 0 20px;
     font-size: 13px;
     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: #2d6a4f;
     color: #36c;
    transition: color 0.15s ease;
}
}


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


Line 46: Line 60:
     display: grid;
     display: grid;
     grid-template-columns: 1fr 1fr;
     grid-template-columns: 1fr 1fr;
     gap: 14px;
     gap: 16px;
     margin-top: 14px;
     margin-top: 16px;
}
}


@media (max-width: 900px) {
@media (max-width: 1000px) {
     .lw-portal__grid {
     .lw-portal__grid {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
Line 60: Line 74:
     background: #ffffff;
     background: #ffffff;
     border: 1px solid #a2a9b1;
     border: 1px solid #a2a9b1;
     margin-bottom: 14px;
     margin-bottom: 16px;
     overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
     overflow: visible;
}
}


.lw-box__hd {
.lw-box__hd {
     background: #f8f9fa;
     background: linear-gradient(to bottom, #f8f9fa 0%, #eaecf0 100%);
     padding: 8px 12px;
     padding: 10px 14px;
     border-bottom: 1px solid #a2a9b1;
     border-bottom: 1px solid #a2a9b1;
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: space-between;
     justify-content: space-between;
     gap: 10px;
     gap: 12px;
}
}


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


Line 83: Line 99:
     font-size: 12px;
     font-size: 12px;
     color: #72777d;
     color: #72777d;
    font-weight: 500;
}
}


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


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


Line 101: Line 119:
.lw-hero {
.lw-hero {
     display: grid;
     display: grid;
     grid-template-columns: 400px 1fr;
     grid-template-columns: 420px 1fr;
     gap: 16px;
     gap: 20px;
     align-items: start;
     align-items: start;
}
}


@media (max-width: 900px) {
@media (max-width: 1000px) {
     .lw-hero {
     .lw-hero {
         grid-template-columns: 1fr;
         grid-template-columns: 1fr;
Line 114: Line 132:
.lw-hero__img {
.lw-hero__img {
     background: #f8f9fa;
     background: #f8f9fa;
     border: 1px solid #a2a9b1;
     border: 1px solid #c8ccd1;
     padding: 8px;
     padding: 4px;
    transition: border-color 0.2s ease;
}
 
.lw-hero__img:hover {
    border-color: #a2a9b1;
}
}


Line 126: Line 149:
.lw-hero__caption {
.lw-hero__caption {
     font-size: 12px;
     font-size: 12px;
     color: #72777d;
     color: #54595d;
    margin-top: 6px;
    line-height: 1.5;
    padding: 6px 8px;
    background: #f8f9fa;
    border-left: 3px solid #36c;
}
 
.lw-hero__text p {
    margin: 0 0 14px;
    line-height: 1.65;
    text-align: justify;
}
 
.lw-hero__text p:last-child {
    margin-bottom: 0;
}
 
/* Bold text in hero */
.lw-hero__text p strong,
.lw-hero__text p b {
    font-weight: 600;
    color: #000;
}
 
/* Italics for species names */
.lw-hero__text i,
.lw-hero__text em {
    font-style: italic;
}
 
/* Featured article image float */
.lw-box__bd .featured-img-right {
    float: right;
    margin: 0 0 16px 16px;
    max-width: 220px;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 4px;
}
 
.lw-box__bd .featured-img-right img {
    display: block;
    width: 100%;
    height: auto;
}
 
.lw-box__bd .featured-img-caption {
    font-size: 11px;
    color: #54595d;
     margin-top: 6px;
     margin-top: 6px;
    padding: 4px 6px;
    background: #f8f9fa;
    border-left: 3px solid #36c;
     line-height: 1.4;
     line-height: 1.4;
}
}


.lw-hero__text p {
/* Paragraphs in featured articles */
     margin: 0 0 12px;
.lw-box__bd > p {
     line-height: 1.6;
     margin: 0 0 14px;
     line-height: 1.65;
    text-align: justify;
}
 
.lw-box__bd > p:last-of-type {
    margin-bottom: 0;
}
}


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


Line 149: Line 237:


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


.lw-box__bd dd a {
.lw-box__bd dd a {
     color: #2d6a4f;
     color: #36c;
     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 */
.lw-box__bd dd {
    word-spacing: 0.15em;
}
}


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


.lw-list li {
.lw-list li {
     margin: 6px 0;
     margin: 8px 0;
     line-height: 1.5;
     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 */
/* Kicker/subheadings */
.lw-kicker {
.lw-kicker {
     font-size: 12px;
     font-size: 13px;
     color: #72777d;
     color: #54595d;
     margin-bottom: 8px;
     margin-bottom: 10px;
     font-weight: 600;
     font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
}


/* Links in body text */
/* Links in body text */
.lw-box__bd a {
.lw-box__bd a {
     color: #2d6a4f;
     color: #36c;
     text-decoration: none;
     text-decoration: none;
}
}
Line 191: Line 307:
}
}


/* Floating images in featured articles */
.lw-box__bd a:visited {
.lw-box__bd .floatright {
    color: #795cb2;
     float: right;
}
     margin: 0 0 12px 12px;
 
     max-width: 200px;
/* Selected picture full width */
.lw-box__bd .selected-picture {
     margin: 0;
     background: #f8f9fa;
    border: 1px solid #c8ccd1;
     padding: 4px;
}
 
.lw-box__bd .selected-picture img {
    display: block;
    width: 100%;
    height: auto;
}
}


/* Category tags */
/* Category tags */
.lw-box__bd .category-list {
.lw-box__bd .category-list {
     line-height: 1.8;
     line-height: 2;
    word-spacing: 0.2em;
}
}


.lw-box__bd .category-list a {
.lw-box__bd .category-list a {
     white-space: nowrap;
     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 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.portal-grid a {
    padding: 6px 10px;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 3px;
    text-align: center;
    transition: all 0.15s ease;
}
.portal-grid a:hover {
    background: #eaecf0;
    border-color: #a2a9b1;
    text-decoration: none;
}
/* Inline styles for special formatting */
.lw-box__bd .note-box {
    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 {
    color: #202122;
    font-weight: 600;
}
/* Responsive adjustments */
@media (max-width: 1000px) {
    .lw-hero {
        grid-template-columns: 1fr;
    }
   
    .lw-box__bd .featured-img-right {
        float: none;
        margin: 0 0 16px 0;
        max-width: 100%;
    }
   
    .portal-grid {
        grid-template-columns: 1fr;
    }
}
/* Wikipedia-style table formatting if used */
.lw-box__bd .wikitable {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    background: #f8f9fa;
}
.lw-box__bd .wikitable th {
    background: #eaecf0;
    padding: 8px 10px;
    border: 1px solid #a2a9b1;
    font-weight: 600;
    text-align: left;
}
.lw-box__bd .wikitable td {
    padding: 8px 10px;
    border: 1px solid #c8ccd1;
}
/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
/* Print styles */
@media print {
    .lw-portal__bar,
    .lw-box__link {
        display: none;
    }
   
    .lw-box {
        page-break-inside: avoid;
    }
}
}

Revision as of 10:55, 20 January 2026

/* Landrace.wiki – Portal (Wikipedia Professional Style) */

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

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

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

/* Navigation bar */
.lw-portal__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 0 0 20px;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid #eaecf0;
}

.lw-portal__bar b {
    color: #54595d;
    font-weight: 600;
}

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

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

/* Grid layout */
.lw-portal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

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

/* Box containers */
.lw-box {
    background: #ffffff;
    border: 1px solid #a2a9b1;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.lw-box__hd {
    background: linear-gradient(to bottom, #f8f9fa 0%, #eaecf0 100%);
    padding: 10px 14px;
    border-bottom: 1px solid #a2a9b1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

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

.lw-box__link a {
    color: #36c;
    text-decoration: none;
}

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

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

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

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

.lw-hero__img {
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 4px;
    transition: border-color 0.2s ease;
}

.lw-hero__img:hover {
    border-color: #a2a9b1;
}

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

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

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

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

/* Bold text in hero */
.lw-hero__text p strong,
.lw-hero__text p b {
    font-weight: 600;
    color: #000;
}

/* Italics for species names */
.lw-hero__text i,
.lw-hero__text em {
    font-style: italic;
}

/* Featured article image float */
.lw-box__bd .featured-img-right {
    float: right;
    margin: 0 0 16px 16px;
    max-width: 220px;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    padding: 4px;
}

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

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

/* Paragraphs in featured articles */
.lw-box__bd > p {
    margin: 0 0 14px;
    line-height: 1.65;
    text-align: justify;
}

.lw-box__bd > p:last-of-type {
    margin-bottom: 0;
}

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

.lw-box__bd dt {
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #202122;
    font-size: 15px;
    border-bottom: 1px solid #eaecf0;
    padding-bottom: 4px;
}

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

.lw-box__bd dd {
    margin: 0 0 12px 12px;
    line-height: 1.7;
    color: #202122;
}

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

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

/* Link separators in definition lists */
.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 {
    color: #36c;
    text-decoration: none;
}

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

.lw-box__bd a:visited {
    color: #795cb2;
}

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

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

/* Category tags */
.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 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.portal-grid a {
    padding: 6px 10px;
    background: #f8f9fa;
    border: 1px solid #c8ccd1;
    border-radius: 3px;
    text-align: center;
    transition: all 0.15s ease;
}

.portal-grid a:hover {
    background: #eaecf0;
    border-color: #a2a9b1;
    text-decoration: none;
}

/* Inline styles for special formatting */
.lw-box__bd .note-box {
    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 {
    color: #202122;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .lw-hero {
        grid-template-columns: 1fr;
    }
    
    .lw-box__bd .featured-img-right {
        float: none;
        margin: 0 0 16px 0;
        max-width: 100%;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
    }
}

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

.lw-box__bd .wikitable th {
    background: #eaecf0;
    padding: 8px 10px;
    border: 1px solid #a2a9b1;
    font-weight: 600;
    text-align: left;
}

.lw-box__bd .wikitable td {
    padding: 8px 10px;
    border: 1px solid #c8ccd1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .lw-portal__bar,
    .lw-box__link {
        display: none;
    }
    
    .lw-box {
        page-break-inside: avoid;
    }
}