پرش به محتوا

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

از ویکی پاسخ
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
خط ۱۵: خط ۱۵:
.qa-question,
.qa-question,
.qa-answer {
.qa-answer {
display: grid;
display: table;
grid-template-columns: 72px 1fr;
width: 100%;
column-gap: 18px;
box-sizing: border-box;
align-items: start;
padding: 12px 54px 12px 14px;
padding: 12px 54px 12px 14px;
table-layout: fixed;
}
}


.qa-question {
.qa-question {
min-height: 48px;
min-height: 48px;
align-items: center;
}
 
.qa-answer {
border-top: 1px solid #d7d6d6;
background: #fff;
}
}


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


.qa-text {
.qa-text {
min-width: 0;
display: table-cell;
width: auto;
line-height: 1.9;
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 becomes the triangle */
/* MediaWiki toggle as triangle */
.qa-item .mw-collapsible-toggle {
.qa-item .mw-collapsible-toggle {
position: absolute;
position: absolute;
top: 19px;
top: 30px;
right: 18px;
right: 18px;
width: 0;
width: 0;
خط ۶۱: خط ۷۷:
}
}


/* Colors */
/* Green */
.qa-green {
.qa-green {
border-color: #94f7a1;
border-color: #94f7a1;
خط ۷۴: خط ۹۰:
}
}


/* Red */
.qa-red {
.qa-red {
border-color: #ffa5a5;
border-color: #ffa5a5;
خط ۸۶: خط ۱۰۳:
}
}


/* Blue */
.qa-blue {
.qa-blue {
border-color: #b8bcff;
border-color: #b8bcff;
خط ۹۸: خط ۱۱۶:
}
}


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

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

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