Ş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 |
||
| 10. satır: | 10. satır: | ||
} | } | ||
/* | /* KART GENEL YAPISI */ | ||
.tg-related-card { | .tg-related-card { | ||
display: flex; | display: flex; | ||
flex: 1 1 300px; | flex: 1 1 300px; | ||
max-width: 49%; | max-width: 49%; | ||
background-color: | /* border tamamen kaldırıldı, hata alma ihtimali sıfırlandı */ | ||
background-color: var(--background-card); | |||
box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.2); /* Kenarlık yerine filtreyi delmeyen gölge */ | |||
border-radius: 8px; | border-radius: 8px; | ||
height: 90px; | height: 90px; | ||
| 24. satır: | 23. satır: | ||
overflow: hidden; | overflow: hidden; | ||
position: relative; | position: relative; | ||
transition: | transition: background-color 0.2s, box-shadow 0.2s; | ||
} | } | ||
.tg-related-card:hover { | .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 { | .tg-related-image { | ||
display: block; | display: block; | ||
width: 90px; | width: 90px; | ||
height: 90px; | height: 90px; | ||
background-color: rgba(0, 0, 0, 0. | background-color: rgba(0, 0, 0, 0.1); | ||
overflow: hidden; | overflow: hidden; | ||
flex-shrink: 0; | flex-shrink: 0; | ||
| 47. satır: | 47. satır: | ||
} | } | ||
/* İçerik Kapsayıcısı */ | |||
.tg-related-content { | .tg-related-content { | ||
padding: 12px; | padding: 12px; | ||
| 55. satır: | 56. satır: | ||
} | } | ||
/* Başlık Alanı */ | |||
.tg-related-title { | .tg-related-title { | ||
font-weight: bold; | font-weight: bold; | ||
| 64. satır: | 66. satır: | ||
} | } | ||
/* TÜM KUTUYU KAPLAYAN ANA TIKLAMA ALANI */ | |||
.tg-related-title a { | .tg-related-title a { | ||
color: | color: var(--color-base) !important; | ||
text-decoration: none; | text-decoration: none; | ||
position: absolute; | position: absolute; | ||
| 77. satır: | 80. satır: | ||
} | } | ||
/* Açıklama Alanı */ | |||
.tg-related-desc { | .tg-related-desc { | ||
font-size: 12px; | font-size: 12px; | ||
color: | color: var(--color-base--subtle); | ||
height: 36px; | height: 36px; | ||
line-height: 18px; | line-height: 18px; | ||
overflow: hidden; | overflow: hidden; | ||
margin-top: 20px; | margin-top: 20px; | ||
} | } | ||
22.49, 7 Temmuz 2026 tarihindeki hâli
/* @title İlgili Kart Tasarımı */
/* Kart kapsayıcısı */
.read-more-container {
display: flex;
flex-wrap: wrap;
gap: 16px;
margin: 20px 0;
width: 100%;
}
/* KART GENEL YAPISI */
.tg-related-card {
display: flex;
flex: 1 1 300px;
max-width: 49%;
/* border tamamen kaldırıldı, hata alma ihtimali sıfırlandı */
background-color: var(--background-card);
box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.2); /* Kenarlık yerine filtreyi delmeyen gölge */
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 Kapsayıcısı */
.tg-related-content {
padding: 12px;
overflow: hidden;
display: block;
width: 100%;
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 TIKLAMA ALANI */
.tg-related-title a {
color: var(--color-base) !important;
text-decoration: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding-left: 102px;
padding-top: 20px;
box-sizing: border-box;
}
/* Açıklama Alanı */
.tg-related-desc {
font-size: 12px;
color: var(--color-base--subtle);
height: 36px;
line-height: 18px;
overflow: hidden;
margin-top: 20px;
}