Die Ardapedia braucht Deine Hilfe!
Ardapedia wird von Menschen wie Dir gemacht. Erstelle jetzt Dein kostenloses Benutzerkonto und trage dazu bei, unser Wiki zu verbessern.

Vorlage:Card/styles.css

Aus Ardapedia
Version vom 20. November 2025, 20:10 Uhr von Alboin (Diskussion | Beiträge) (Änderung 121537 von Alboin (Diskussion) rückgängig gemacht.)

Wartungshinweis:
Die Ardapedia steht wegen Wartungsarbeiten am Freitag, dem 23. Januar zeitweise nicht zur Verfügung. Außerdem kann sie an diesem Tag ganztägig nicht bearbeitet werden. Vielen Dank für Euer Verständnis!

.tg-card {
    position: relative;
    background-color: #f6ede0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tg-card-header,
.tg-card-footer {
    padding: 0.5rem 1rem;
    background: #f0e3cf;
}

.tg-card-footer {
    font-size: 0.875rem;
}

.template-flexbox-item .tg-card {
    height: 100%;
}

.tg-card blockquote {
    margin-left: 0;
    margin-right: 0;
}

.tg-card-image {
	height: 300px;
	width: 300px;
    position: relative;
    display: flex;
    flex-grow: 1;
}

.tg-card-afterImage {
    position: relative;
    margin-top: -0.5rem;
    padding: 0 1rem 1rem 1rem;
}

.tg-card-afterImage a {
    color: #fff;
}

.tg-card-afterImage,
.tg-card-label,
.tg-card-caption {
    font-size: 0.8125rem;
}

.tg-card-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.tg-card-label > a,
.tg-card-label > span {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-bottom-right-radius:8px;
    background: #8E4A25;
    color: #fff;
    line-height: 1;
}

.tg-card-label > a:hover {
    background: #588418;
}

.tg-card-label > a:active {
    background: #588418;
}

.tg-card-content {
    padding: 1rem;
}

.tg-card-label + .tg-card-content {
    margin-top: 1.5rem;
}

.tg-card-title {
    color: #1a1f15;
    font-family: 'Times';
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.tg-card-caption {
    margin-top: 0.25rem;
    color: #4e5a42;
    line-height: 1.375;
}

.tg-card-title + .tg-card-body,
.tg-card-caption + .tg-card-body {
    margin-top: 1rem;
}

.tg-card-background,
.tg-card-link {
    position: absolute;
    inset: 0;
}

.tg-card-background::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(
                0,
                0,
                0,
                1
            )
            0%,
        rgba(
                0,
                0,
                0,
                0.987
            )
            8.1%,
        rgba(
                0,
                0,
                0,
                0.951
            )
            15.5%,
        rgba(
                0,
                0,
                0,
                0.896
            )
            22.5%,
        rgba(
                0,
                0,
                0,
                0.825
            )
            29%,
        rgba(
                0,
                0,
                0,
                0.741
            )
            35.3%,
        rgba(
                0,
                0,
                0,
                0.648
            )
            41.2%,
        rgba(
                0,
                0,
                0,
                0.55
            )
            47.1%,
        rgba(
                0,
                0,
                0,
                0.45
            )
            52.9%,
        rgba(
                0,
                0,
                0,
                0.352
            )
            58.8%,
        rgba(
                0,
                0,
                0,
                0.259
            )
            64.7%,
        rgba(
                0,
                0,
                0,
                0.175
            )
            71%,
        rgba(
                0,
                0,
                0,
                0.104
            )
            77.5%,
        rgba(
                0,
                0,
                0,
                0.049
            )
            84.5%,
        rgba(
                0,
                0,
                0,
                0.013
            )
            91.9%,
        rgba(
                0,
                0,
                0,
                0
            )
            100%
    );
}

.tg-card-background--top img {
    object-position: top;
}

.tg-card-background--bottom img {
    object-position: bottom;
}

.tg-card-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 100ms ease;
    transition-property: transform;
}

.tg-card:hover .tg-card-background img {
    transform: scale(1.1);
}

.tg-card-link {
    opacity: 0;
}

.tg-card-link > a {
    display: block;
    height: 100%;
}

.tg-card-image .tg-card-content {
    position: relative;
}

.tg-card-image .tg-card-content {
    margin-top: auto;
    line-height: 1.375;
    flex-grow: 1;
}

.tg-card-image .tg-card-title {
    color: #fff;
}

.tg-card-image .tg-card-caption,
.tg-card-afterImage {
    color: #ddd;
}