Ardapedia wird von Menschen wie Dir gemacht. Erstelle jetzt Dein kostenloses Benutzerkonto und trage dazu bei, unser Wiki zu verbessern.
Vorlage:Card/styles.css: Unterschied zwischen den Versionen
Aus Ardapedia
Alboin (Diskussion | Beiträge) . |
Alboin (Diskussion | Beiträge) Farben angepasst |
||
| (2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
.tg-card { | .tg-card { | ||
position: relative; | position: relative; | ||
background-color: # | background-color: #E9F3CF; | ||
border: 1px solid | border: 1px solid #F3FAE2; | ||
border-radius: 8px; | border-radius: 8px; | ||
overflow: hidden; | overflow: hidden; | ||
| Zeile 12: | Zeile 12: | ||
.tg-card-footer { | .tg-card-footer { | ||
padding: 0.5rem 1rem; | padding: 0.5rem 1rem; | ||
background: # | background: #F3FAE2; | ||
} | } | ||
| Zeile 28: | Zeile 28: | ||
} | } | ||
.tg-card-image { | |||
height: 300px; | height: 300px; | ||
width: | width: auto; | ||
position: relative; | position: relative; | ||
display: flex; | display: flex; | ||
Aktuelle Version vom 26. November 2025, 16:01 Uhr
.tg-card {
position: relative;
background-color: #E9F3CF;
border: 1px solid #F3FAE2;
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
}
.tg-card-header,
.tg-card-footer {
padding: 0.5rem 1rem;
background: #F3FAE2;
}
.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: auto;
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;
}
