Menüyü değiştir
Toggle preferences menu
Kişisel menüyü aç / kapat
Oturum açık değil
Your IP address will be publicly visible if you make any edits.

Şablon:İlgili Kart/styles.css

Kizilbashica sitesinden
22.58, 7 Temmuz 2026 tarihinde C. Karakuş (mesaj | katkılar) tarafından oluşturulmuş 572 numaralı sürüm
/* @title İlgili Kart Tasarımı */

/* Kart kapsayıcısı */
.read-more-container {
    display: flex !important;
    flex-wrap: nowrap !important; /* Alt satıra düşmeyi kesin olarak engeller */
    gap: 16px;
    margin: 20px 0;
    width: 100% !important;
}

/* KART GENEL YAPISI */
.tg-related-card {
    display: flex;
    /* Masaüstü ve mobilde 3 kartın yan yana sığması için genişliği üçte bire kilitledik */
    flex: 0 0 calc(33.333% - 11px); 
    width: calc(33.333% - 11px);
    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 VE KÜÇÜK EKRAN UYUMLULUĞU (Üçlü yan yana düzen koruması)
   ========================================================================== */
@media (max-width: 768px) {
    .read-more-container {
        gap: 8px; /* Mobilde aradaki boşlukları daralttık */
    }
    .tg-related-card {
        flex: 0 0 calc(33.333% - 6px);
        width: calc(33.333% - 6px);
        height: 75px; /* Ekran daralınca dikeyde sıkışma olmasın diye yüksekliği hafifçe çektik */
    }
    .tg-related-image {
        width: 75px;
        height: 75px;
    }
    .tg-related-image img {
        width: 75px;
        height: 75px;
    }
    .tg-related-title {
        font-size: 11px;
    }
    .tg-related-desc {
        font-size: 10px;
    }
}