الگو:پاسخ تاشو/styles.css: تفاوت میان نسخهها
ظاهر
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
Nazarzadeh (بحث | مشارکتها) بدون خلاصۀ ویرایش |
||
| خط ۱۵: | خط ۱۵: | ||
.qa-question, | .qa-question, | ||
.qa-answer { | .qa-answer { | ||
display: | display: grid; | ||
grid-template-columns: 72px 1fr; | |||
gap: 18px; | column-gap: 18px; | ||
align-items: start; | |||
padding: 12px 54px 12px 14px; | padding: 12px 54px 12px 14px; | ||
} | } | ||
| خط ۲۴: | خط ۲۵: | ||
min-height: 48px; | min-height: 48px; | ||
align-items: center; | align-items: center; | ||
} | } | ||
.qa-label { | .qa-label { | ||
font-size: 22px; | font-size: 22px; | ||
font-weight: bold; | font-weight: bold; | ||
| خط ۴۱: | خط ۳۶: | ||
.qa-text { | .qa-text { | ||
min-width: 0; | |||
line-height: 1.9; | line-height: 1.9; | ||
} | } | ||
نسخهٔ ۲۴ مهٔ ۲۰۲۶، ساعت ۱۲:۲۷
.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: grid;
grid-template-columns: 72px 1fr;
column-gap: 18px;
align-items: start;
padding: 12px 54px 12px 14px;
}
.qa-question {
min-height: 48px;
align-items: center;
}
.qa-label {
font-size: 22px;
font-weight: bold;
line-height: 1.6;
white-space: nowrap;
color: #000;
}
.qa-text {
min-width: 0;
line-height: 1.9;
}
/* MediaWiki toggle becomes the triangle */
.qa-item .mw-collapsible-toggle {
position: absolute;
top: 19px;
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;
}
/* Colors */
.qa-green {
border-color: #94f7a1;
}
.qa-green .qa-question {
background: #f6fff7;
}
.qa-green .mw-collapsible-toggle {
color: #26b34a;
}
.qa-red {
border-color: #ffa5a5;
}
.qa-red .qa-question {
background: #fff8f8;
}
.qa-red .mw-collapsible-toggle {
color: #d71920;
}
.qa-blue {
border-color: #b8bcff;
}
.qa-blue .qa-question {
background: #fafaff;
}
.qa-blue .mw-collapsible-toggle {
color: #3d42e6;
}
.qa-yellow {
border-color: #f3dc70;
}
.qa-yellow .qa-question {
background: #fffdf2;
}
.qa-yellow .mw-collapsible-toggle {
color: #c59b00;
}