الگو:پاسخ تاشو/styles.css: تفاوت میان نسخهها
ظاهر
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| خط ۲۶: | خط ۲۶: | ||
overflow: hidden; | overflow: hidden; | ||
cursor: pointer; | cursor: pointer; | ||
white-space: nowrap; | |||
text-overflow: ellipsis; | |||
} | } | ||
.answer.expanded { | .answer.expanded { | ||
max-height: unset; | max-height: unset; | ||
white-space: normal; | |||
} | } | ||
نسخهٔ ۷ فوریهٔ ۲۰۲۶، ساعت ۱۲:۲۱
.question {
transition: all 0.3s ease;
user-select: none;
}
.question:hover {
background: #eaffec;
}
.question::after {
content: '▼';
position: absolute;
left: 15px;
transition: transform 0.3s ease;
color: #94f7a1;
font-size: 12px;
}
.question.active::after {
transform: rotate(180deg);
}
.answer {
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 {
max-height: unset;
white-space: normal;
}