پرش به محتوا

الگو:پاسخ تاشو/styles.css

از ویکی پاسخ
.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;
}