الگو:پاسخ تاشو/styles.css: تفاوت میان نسخهها
ظاهر
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| خط ۷: | خط ۷: | ||
.question:hover { | .question:hover { | ||
background: #eaffec; | background: #eaffec; | ||
} | } | ||
نسخهٔ ۷ فوریهٔ ۲۰۲۶، ساعت ۱۳:۳۳
.question {
transition: all 0.3s ease;
user-select: none;
cursor: pointer;
}
.question:hover {
background: #eaffec;
}
.answer p {
transition: max-height 0.4s ease, padding 0.4s ease;
max-height: 2em;
overflow: hidden;
cursor: pointer;
white-space: nowrap;
text-overflow: ellipsis;
}
.answer.expanded p {
max-height: unset;
white-space: normal;
}