پرش به محتوا

الگو:پاسخ تاشو/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;
position: relative;
        }
margin: 0 0 3px;
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;
.qa-answer {
            max-height: 2em;
display: table;
            overflow: hidden;
width: 100%;
            cursor: pointer;
box-sizing: border-box;
            white-space: nowrap;
padding: 12px 54px 12px 14px;
            text-overflow: ellipsis;
table-layout: fixed;
        }
}


        .answer.expanded p {
.qa-question {
            max-height: unset;
min-height: 48px;
            white-space: normal;
}
        }
 
.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;
}

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

.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;
}