پرش به محتوا

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

از ویکی پاسخ
صفحه‌ای تازه حاوی « .question { transition: all 0.3s ease; } .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);...» ایجاد کرد
 
بدون خلاصۀ ویرایش
 
(۱۳ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
        .question {
.qa-list {
            transition: all 0.3s ease;
direction: rtl;
        }
margin: 1em 0;
}


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


        .question::after {
.qa-question,
            content: '▼';
.qa-answer {
            position: absolute;
display: table;
            left: 15px;
width: 100%;
            transition: transform 0.3s ease;
box-sizing: border-box;
            color: #94f7a1;
padding: 12px 54px 12px 14px;
            font-size: 12px;
table-layout: fixed;
        }
}


        .question.active::after {
.qa-question {
            transform: rotate(180deg);
min-height: 48px;
        }
}


        .answer {
.qa-answer {
            overflow: hidden;
border-top: 1px solid #d7d6d6;
            transition: all 0.3s ease;
background: #fff;
        }
}


        .answer:not(.expanded) {
.qa-label {
            max-height: 1.5em;
display: table-cell;
            white-space: nowrap;
width: 72px;
            text-overflow: ellipsis;
font-size: 22px;
        }
font-weight: bold;
line-height: 1.6;
white-space: nowrap;
vertical-align: top;
color: #000;
}


        .answer.expanded {
.qa-text {
            max-height: 1000px;
display: table-cell;
            white-space: normal;
width: auto;
        }
line-height: 1.9;
vertical-align: top;
word-break: normal;
overflow-wrap: break-word;
}
 
.qa-question .qa-label,
.qa-question .qa-text {
vertical-align: middle;
}
 
/* MediaWiki toggle as triangle */
.qa-item .mw-collapsible-toggle {
position: absolute;
top: 30px;
right: 18px;
width: 0;
height: 0;
padding: 0;
margin: 0;
overflow: hidden;
text-indent: -9999px;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 13px solid currentColor;
}
 
.qa-item.mw-collapsed .mw-collapsible-toggle {
border-bottom: 0;
border-top: 13px solid currentColor;
}
 
/* Green */
.qa-green {
border-color: #94f7a1;
}
 
.qa-green .qa-question {
background: #f6fff7;
}
 
.qa-green .mw-collapsible-toggle {
color: #26b34a;
}
 
/* Red */
.qa-red {
border-color: #ffa5a5;
}
 
.qa-red .qa-question {
background: #fff8f8;
}
 
.qa-red .mw-collapsible-toggle {
color: #d71920;
}
 
/* Blue */
.qa-blue {
border-color: #b8bcff;
}
 
.qa-blue .qa-question {
background: #fafaff;
}
 
.qa-blue .mw-collapsible-toggle {
color: #3d42e6;
}
 
/* Yellow */
.qa-yellow {
border-color: #f3dc70;
}
 
.qa-yellow .qa-question {
background: #fffdf2;
}
 
.qa-yellow .mw-collapsible-toggle {
color: #c59b00;
}

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

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

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

.qa-question,
.qa-answer {
	display: table;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 54px 12px 14px;
	table-layout: fixed;
}

.qa-question {
	min-height: 48px;
}

.qa-answer {
	border-top: 1px solid #d7d6d6;
	background: #fff;
}

.qa-label {
	display: table-cell;
	width: 72px;
	font-size: 22px;
	font-weight: bold;
	line-height: 1.6;
	white-space: nowrap;
	vertical-align: top;
	color: #000;
}

.qa-text {
	display: table-cell;
	width: auto;
	line-height: 1.9;
	vertical-align: top;
	word-break: normal;
	overflow-wrap: break-word;
}

.qa-question .qa-label,
.qa-question .qa-text {
	vertical-align: middle;
}

/* MediaWiki toggle as triangle */
.qa-item .mw-collapsible-toggle {
	position: absolute;
	top: 30px;
	right: 18px;
	width: 0;
	height: 0;
	padding: 0;
	margin: 0;
	overflow: hidden;
	text-indent: -9999px;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-bottom: 13px solid currentColor;
}

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

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

.qa-green .qa-question {
	background: #f6fff7;
}

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

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

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

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

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

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

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

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

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

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