Jump to content

Template:TechnologyCard/styles.css: Difference between revisions

From The Factory Wiki
No edit summary
No edit summary
 
Line 7: Line 7:
.fablab-grid {
.fablab-grid {
     display: grid;
     display: grid;
     grid-template-columns: repeat(4, minmax(0, 1fr));
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 1rem;
     gap: 1rem;
     margin-top: 1rem;
     margin-top: 1rem;

Latest revision as of 14:01, 18 July 2026

.fablab-intro {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.fablab-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.fablab-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.8rem;
    background: #fff;
    border: 1px solid #d8dce1;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.fablab-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.13);
}

.fablab-card-title {
    margin: 0.25rem 0 0.75rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.fablab-card-title a {
    color: #202122;
    text-decoration: none;
}

.fablab-card-title::after {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0.55rem auto 0;
    background: #36c;
    border-radius: 2px;
    content: "";
}

.fablab-card-image {
    overflow: hidden;
    height: 170px;
    margin-bottom: 0.75rem;
    border-radius: 7px;
    background: #eaecf0;
}

.fablab-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.fablab-card-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.fablab-card-description {
    color: #404244;
    font-size: 0.95rem;
    line-height: 1.45;
}

@media screen and (max-width: 1200px) {
    .fablab-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 850px) {
    .fablab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 550px) {
    .fablab-grid {
        grid-template-columns: 1fr;
    }
}