Toggle menu
84
103
34
3.2K
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:Home/Cards - styles/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 5: Line 5:
     display: grid;
     display: grid;
     grid-template-columns: repeat(6, 1fr);
     grid-template-columns: repeat(6, 1fr);
     gap: 0.875rem;
     gap: 0.75rem;
     margin-top: 2rem;
     margin-top: 1.5rem;
     width: 100%;
     width: 100%;
     align-items: stretch;
     align-items: stretch;
Line 16: Line 16:
.home-card {
.home-card {
     position: relative;
     position: relative;
     padding: 16px;
     padding: 12px;
     background: #ffffff;
     background: #ffffff;
     border-radius: 8px;
     border-radius: 8px;
     box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.0575);
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.0575);
     font-size: 0.875rem;
     font-size: 0.8125rem;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
     border: 1px solid #dee2e6;
     border: 1px solid #dee2e6;
     min-height: 120px;
     min-height: 100px;
     height: 100%;
     height: 100%;
     display: flex;
     display: flex;
Line 39: Line 39:
.home-card:hover {
.home-card:hover {
     transform: translateY(-2px);
     transform: translateY(-2px);
     box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08), 0 6px 12px rgba(0, 0, 0, 0.115);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.115);
}
}


Line 47: Line 47:
.home-card__label {
.home-card__label {
     color: #6c757d;
     color: #6c757d;
     font-size: 0.75rem;
     font-size: 0.6875rem;
     letter-spacing: 0.75px;
     letter-spacing: 0.5px;
     text-transform: uppercase;
     text-transform: uppercase;
     font-weight: 500;
     font-weight: 500;
     margin-bottom: 0.375rem;
     margin-bottom: 0.25rem;
}
}


.home-card__header {
.home-card__header {
     margin: 0 0 0.75rem 0;
     margin: 0 0 0.5rem 0;
     font-size: 1.05rem;
     font-size: 0.95rem;
     color: #2d5016;
     color: #2d5016;
     font-weight: 600;
     font-weight: 600;
Line 72: Line 72:
.home-card__body {
.home-card__body {
     color: #495057;
     color: #495057;
     line-height: 1.5;
     line-height: 1.4;
     margin-bottom: 0.75rem;
     margin-bottom: 0.5rem;
     flex-grow: 1;
     flex-grow: 1;
}
}
Line 82: Line 82:


.home-card__links {
.home-card__links {
     font-size: 0.8125rem;
     font-size: 0.75rem;
     color: #6c757d;
     color: #6c757d;
     border-top: 1px solid #dee2e6;
     border-top: 1px solid #dee2e6;
     padding-top: 0.625rem;
     padding-top: 0.5rem;
     margin-top: auto;
     margin-top: auto;
}
}
Line 119: Line 119:
     .home-grid {
     .home-grid {
         grid-template-columns: repeat(2, 1fr);
         grid-template-columns: repeat(2, 1fr);
         gap: 0.75rem;
         gap: 0.625rem;
     }
     }
      
      
Line 128: Line 128:
      
      
     .home-card {
     .home-card {
         padding: 14px;
         padding: 10px;
     }
     }
}
}
Line 144: Line 144:
      
      
     .home-card {
     .home-card {
         padding: 12px;
         padding: 10px;
     }
     }
}
}

Revision as of 16:15, 19 January 2026

/* ============================================ */
/* HOME GRID LAYOUT */
/* ============================================ */
.home-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
    width: 100%;
    align-items: stretch;
}

/* ============================================ */
/* BASE HOME CARD STYLES */
/* ============================================ */
.home-card {
    position: relative;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.0575);
    font-size: 0.8125rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #dee2e6;
    min-height: 100px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-card--col2 {
    grid-column: span 2;
}

.home-card--col3 {
    grid-column: span 3;
}

.home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.115);
}

/* ============================================ */
/* CARD SUB-ELEMENTS */
/* ============================================ */
.home-card__label {
    color: #6c757d;
    font-size: 0.6875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.home-card__header {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #2d5016;
    font-weight: 600;
}

.home-card__header a {
    color: inherit;
    text-decoration: none;
}

.home-card__header a:hover {
    color: #3d6b1f;
}

.home-card__body {
    color: #495057;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.home-card__body a:hover {
    text-decoration: underline;
}

.home-card__links {
    font-size: 0.75rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    margin-top: auto;
}

.home-card__links a {
    color: #2d5016;
    text-decoration: none;
    font-weight: 500;
}

.home-card__links a:hover {
    text-decoration: underline;
}

/* ============================================ */
/* MOBILE RESPONSIVENESS */
/* ============================================ */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .home-card--col2 {
        grid-column: span 2;
    }
    
    .home-card--col3 {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
    
    .home-card--col2,
    .home-card--col3 {
        grid-column: span 2;
    }
    
    .home-card {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .home-card--col2,
    .home-card--col3 {
        grid-column: span 1;
    }
    
    .home-card {
        padding: 10px;
    }
}