الگو:پاسخ تاشو/styles.css: تفاوت میان نسخهها
ظاهر
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| خط ۱۰: | خط ۱۰: | ||
.question::after { | .question::after { | ||
content: '▼'; | content: '▼'; | ||
position: | position: relative; | ||
right: 95px; | right: 95px; | ||
top: 50%; | top: 50%; | ||
نسخهٔ ۷ فوریهٔ ۲۰۲۶، ساعت ۱۳:۰۳
.question {
transition: all 0.3s ease;
user-select: none;
}
.question:hover {
background: #eaffec;
}
.question::after {
content: '▼';
position: relative;
right: 95px;
top: 50%;
transition: transform 0.3s ease;
color: #94f7a1;
font-size: 12px;
}
.question.active::after {
transform: rotate(180deg);
}
.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;
}