پرش به محتوا

الگو:پاسخ تاشو/styles.css: تفاوت میان نسخه‌ها

از ویکی پاسخ
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
        .question {
.qa-list {
            transition: all 0.3s ease;
direction: rtl;
            user-select: none;
margin: 1em 0;
cursor: pointer;
}
        }


        .question:hover {
.qa-item {
            background: #eaffec;
margin: 0 0 2px;
        }
border: 1px solid #d7d6d6;
border-radius: 5px;
overflow: hidden;
background: #fff;
}


        .answer p {
.qa-question {
            transition: max-height 0.4s ease, padding 0.4s ease;
position: relative;
            max-height: 2em;
display: flex;
            overflow: hidden;
align-items: center;
            cursor: pointer;
gap: 1em;
            white-space: nowrap;
min-height: 48px;
            text-overflow: ellipsis;
padding: 8px 52px 8px 14px;
        }
border-bottom: 1px solid #d7d6d6;
}


        .answer.expanded p {
.qa-answer {
            max-height: unset;
display: flex;
            white-space: normal;
align-items: flex-start;
        }
gap: 1em;
padding: 12px 14px;
background: #fff;
}
 
.qa-label {
flex: 0 0 auto;
font-size: 22px;
font-weight: bold;
color: #000;
}
 
.qa-text,
.qa-answer-text {
flex: 1 1 auto;
line-height: 1.9;
}
 
.qa-item .mw-collapsible-toggle {
position: absolute;
top: 50%;
right: 16px;
width: 0;
height: 0;
margin-top: -6px;
overflow: hidden;
text-indent: -9999px;
border-left: 7px solid transparent;
border-right: 7px solid transparent;
border-top: 12px solid currentColor;
}
 
.qa-item.mw-collapsed .mw-collapsible-toggle {
border-top: 0;
border-bottom: 12px solid currentColor;
}
 
.qa-green .qa-question {
background: #f6fff7;
border-color: #94f7a1;
}
 
.qa-green {
border-color: #94f7a1;
}
 
.qa-green .mw-collapsible-toggle {
color: #26b34a;
}
 
.qa-red .qa-question {
background: #fff8f8;
border-color: #ffa5a5;
}
 
.qa-red {
border-color: #ffa5a5;
}
 
.qa-red .mw-collapsible-toggle {
color: #d71920;
}
 
.qa-blue .qa-question {
background: #fafaff;
border-color: #b8bcff;
}
 
.qa-blue {
border-color: #b8bcff;
}
 
.qa-blue .mw-collapsible-toggle {
color: #3d42e6;
}
 
.qa-yellow .qa-question {
background: #fffdf2;
border-color: #f3dc70;
}
 
.qa-yellow {
border-color: #f3dc70;
}
 
.qa-yellow .mw-collapsible-toggle {
color: #c59b00;
}

نسخهٔ ‏۲۴ مهٔ ۲۰۲۶، ساعت ۱۱:۴۴

.qa-list {
	direction: rtl;
	margin: 1em 0;
}

.qa-item {
	margin: 0 0 2px;
	border: 1px solid #d7d6d6;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
}

.qa-question {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1em;
	min-height: 48px;
	padding: 8px 52px 8px 14px;
	border-bottom: 1px solid #d7d6d6;
}

.qa-answer {
	display: flex;
	align-items: flex-start;
	gap: 1em;
	padding: 12px 14px;
	background: #fff;
}

.qa-label {
	flex: 0 0 auto;
	font-size: 22px;
	font-weight: bold;
	color: #000;
}

.qa-text,
.qa-answer-text {
	flex: 1 1 auto;
	line-height: 1.9;
}

.qa-item .mw-collapsible-toggle {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 0;
	height: 0;
	margin-top: -6px;
	overflow: hidden;
	text-indent: -9999px;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 12px solid currentColor;
}

.qa-item.mw-collapsed .mw-collapsible-toggle {
	border-top: 0;
	border-bottom: 12px solid currentColor;
}

.qa-green .qa-question {
	background: #f6fff7;
	border-color: #94f7a1;
}

.qa-green {
	border-color: #94f7a1;
}

.qa-green .mw-collapsible-toggle {
	color: #26b34a;
}

.qa-red .qa-question {
	background: #fff8f8;
	border-color: #ffa5a5;
}

.qa-red {
	border-color: #ffa5a5;
}

.qa-red .mw-collapsible-toggle {
	color: #d71920;
}

.qa-blue .qa-question {
	background: #fafaff;
	border-color: #b8bcff;
}

.qa-blue {
	border-color: #b8bcff;
}

.qa-blue .mw-collapsible-toggle {
	color: #3d42e6;
}

.qa-yellow .qa-question {
	background: #fffdf2;
	border-color: #f3dc70;
}

.qa-yellow {
	border-color: #f3dc70;
}

.qa-yellow .mw-collapsible-toggle {
	color: #c59b00;
}