Şablon:İlgili Kart/styles.css: Revizyonlar arasındaki fark
Kizilbashica sitesinden
More actions
C. Karakuş (mesaj | katkılar) Değişiklik özeti yok |
C. Karakuş (mesaj | katkılar) Değişiklik özeti yok |
||
| 4. satır: | 4. satır: | ||
.read-more-container { | .read-more-container { | ||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | |||
flex-wrap: nowrap !important; /* Alt satıra düşmeyi kesin olarak engeller */ | flex-wrap: nowrap !important; /* Alt satıra düşmeyi kesin olarak engeller */ | ||
gap: | justify-content: space-between !important; | ||
gap: 12px; | |||
margin: 20px 0; | margin: 20px 0; | ||
width: 100% !important; | width: 100% !important; | ||
} | |||
/* MediaWiki'nin araya soktuğu parazit etiketleri devre dışı bırakır */ | |||
.read-more-container br, | |||
.read-more-container p { | |||
display: none !important; | |||
} | } | ||
/* KART GENEL YAPISI */ | /* KART GENEL YAPISI */ | ||
.tg-related-card { | .tg-related-card { | ||
display: flex; | display: flex !important; | ||
flex: 1 1 0% !important; /* Üçünün de genişliğini ekrana eşit olarak paylaştırır */ | |||
flex: 0 | |||
background-color: var(--background-card); | background-color: var(--background-card); | ||
box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.2); | box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.2); | ||
| 95. satır: | 101. satır: | ||
} | } | ||
/* | /* MOBİL AYARLARI */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.tg-related-card { | .tg-related-card { | ||
height: 75px; | |||
height: 75px; | |||
} | } | ||
.tg-related-image { | .tg-related-image { | ||
| 116. satır: | 115. satır: | ||
} | } | ||
.tg-related-title { | .tg-related-title { | ||
font-size: | font-size: 12px; | ||
} | } | ||
.tg-related-desc { | .tg-related-desc { | ||
font-size: | font-size: 11px; | ||
} | } | ||
} | } | ||
22.59, 7 Temmuz 2026 tarihindeki hâli
/* @title İlgili Kart Tasarımı */
/* Kart kapsayıcısı */
.read-more-container {
display: flex !important;
flex-direction: row !important;
flex-wrap: nowrap !important; /* Alt satıra düşmeyi kesin olarak engeller */
justify-content: space-between !important;
gap: 12px;
margin: 20px 0;
width: 100% !important;
}
/* MediaWiki'nin araya soktuğu parazit etiketleri devre dışı bırakır */
.read-more-container br,
.read-more-container p {
display: none !important;
}
/* KART GENEL YAPISI */
.tg-related-card {
display: flex !important;
flex: 1 1 0% !important; /* Üçünün de genişliğini ekrana eşit olarak paylaştırır */
background-color: var(--background-card);
box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.2);
border-radius: 8px;
height: 90px;
box-sizing: border-box;
overflow: hidden;
position: relative;
transition: background-color 0.2s, box-shadow 0.2s;
}
.tg-related-card:hover {
background-color: var(--background-card-hover);
box-shadow: 0 0 0 1px var(--color-primary);
}
/* Görsel Alanı */
.tg-related-image {
display: block;
width: 90px;
height: 90px;
background-color: rgba(0, 0, 0, 0.1);
overflow: hidden;
flex-shrink: 0;
}
.tg-related-image img {
width: 90px;
height: 90px;
object-fit: cover;
}
/* İçerik Alanı */
.tg-related-content {
padding: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
box-sizing: border-box;
}
/* Başlık Alanı */
.tg-related-title {
font-weight: bold;
font-size: 14px;
margin-bottom: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Tüm kutuyu kaplayan ana tıklama alanı */
.tg-related-title a {
color: var(--color-base) !important;
text-decoration: none;
}
.tg-related-title a::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
}
/* Açıklama Alanı */
.tg-related-desc {
font-size: 12px;
color: var(--color-base--subtle);
line-height: 1.4;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* MOBİL AYARLARI */
@media (max-width: 768px) {
.tg-related-card {
height: 75px;
}
.tg-related-image {
width: 75px;
height: 75px;
}
.tg-related-image img {
width: 75px;
height: 75px;
}
.tg-related-title {
font-size: 12px;
}
.tg-related-desc {
font-size: 11px;
}
}