Vorlage:RubrikContainer/style.css

Aus Star Citizen Wiki
< Vorlage:RubrikContainer
Version vom 14. Oktober 2019, 17:59 Uhr von FoXFTW (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „section.category-container { border: solid #eee; border-width: 1px 1px 0.2em; box-shadow: 0 1px 2px 1px rgba(0,0,0,0.02); } section.category-cont…“)

section.category-container {
    border: solid #eee;
    border-width: 1px 1px 0.2em;
    box-shadow:  0 1px 2px 1px rgba(0,0,0,0.02);
}

section.category-container h2 {
    margin: 0;
    border: none;
    text-align: center;
    font-size: 0.9em;
    background-color: #eaecf0;
    font-family: sans-serif;
    line-height: 1.4;
    font-weight: bold;
    padding: 0.5em;
}

section.category-container > div {
    display: flex;
}

section.category-container > div p {
    padding: 0.5em;
    margin: 1em 40px 1em 40px;
    flex-basis: 75%;
}

section.category-container div .category-image-container  {
    overflow: hidden;
    flex-basis: 25%;
    display: flex;
    align-items: stretch;
}

section.category-container div .category-image-container a img {
    object-fit: cover;
    height: 100%;
    transform-origin: left center;
    transition: transform 0.2s;
    width: 100%;
    max-height: 125px;
    object-position: center;
}

section.category-container div .category-image-container a {
    width: 100%;
}

section.category-container div a img:hover {transform: scale(1.05);}

@media screen and (max-width: 850px)
{
    section.category-container > div {
        flex-wrap: wrap-reverse
    }

    section.category-container > div p {
        flex-basis: auto;
        margin-left: 1em;
        margin-right: 1em;
    }

    section.category-container div .category-image-container {
        flex-basis: 100%;
    }
}