الگو:پاسخ تاشو/styles.css: تفاوت میان نسخهها
ظاهر
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
.question { | .question { | ||
transition: all 0.3s ease; | transition: all 0.3s ease; | ||
user-select: none; | |||
} | } | ||
| خط ۲۱: | خط ۲۲: | ||
.answer { | .answer { | ||
transition: max-height 0.4s ease, padding 0.4s ease; | |||
max-height: 2em; | |||
overflow: hidden; | overflow: hidden; | ||
cursor: pointer; | |||
} | } | ||
.answer.expanded { | .answer.expanded { | ||
max-height: | max-height: unset; | ||
} | } | ||
نسخهٔ ۷ فوریهٔ ۲۰۲۶، ساعت ۱۲:۱۷
.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;
}
.answer.expanded {
max-height: unset;
}