مدیاویکی:Common.css: تفاوت میان نسخهها
از آیتالله گنجی
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
/* پایگاه اطلاعرسانی آیتالله گنجی — MediaWiki:Common.css */ | |||
/* فونت محلی؛ فایلها در پوشهٔ /fonts سایت هستند */ | |||
@font-face { | |||
font-family: Vazir; | |||
src: url('/fonts/Vazir.woff2') format('woff2'), | |||
url('/fonts/Vazir.woff') format('woff'), | |||
url('/fonts/Vazir.ttf') format('truetype'); | |||
font-weight: normal; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
:root { | |||
--ganji-primary: #145f57; | |||
--ganji-primary-dark: #0c463f; | |||
--ganji-link: #075c87; | |||
--ganji-border: #d9e3e1; | |||
--ganji-soft: #f7faf9; | |||
} | |||
*, | |||
*::before, | |||
*::after { | |||
box-sizing: border-box; | |||
} | |||
html, | |||
body { | |||
direction: rtl; | |||
} | |||
html, | |||
body, | |||
.mw-body, | |||
.mw-body-content, | |||
.mw-parser-output, | |||
.mw-ui-button, | |||
button, | |||
input, | |||
textarea, | |||
select { | |||
font-family: Vazir, Tahoma, Arial, sans-serif !important; | |||
} | |||
/* متن و محتوا */ | |||
.mw-body-content, | |||
.mw-parser-output { | |||
font-size: 16px; | |||
line-height: 2.1; | |||
} | |||
.mw-parser-output p { | |||
text-align: justify; | |||
text-justify: inter-word; | |||
overflow-wrap: break-word; | |||
} | |||
/* عنوانها */ | |||
.mw-body h1, | |||
.mw-body h2, | |||
.mw-body h3, | |||
.mw-body h4, | |||
.mw-body h5, | |||
.mw-body h6, | |||
.mw-page-title-main, | |||
.mw-headline { | |||
font-family: Vazir, Tahoma, Arial, sans-serif !important; | |||
font-weight: bold; | |||
color: var(--ganji-primary-dark); | |||
} | |||
.mw-body h2 { | |||
margin-top: 2em; | |||
padding-bottom: .35em; | |||
border-bottom: 1px solid var(--ganji-border); | |||
} | |||
/* کد، آدرس و عبارت لاتین */ | |||
pre, | |||
code, | |||
kbd, | |||
samp, | |||
.mw-code { | |||
direction: ltr; | |||
text-align: left; | |||
font-family: Consolas, "Courier New", monospace !important; | |||
} | |||
/* پیوندها */ | |||
.mw-parser-output a, | |||
.mw-body a { | |||
color: var(--ganji-link); | |||
} | |||
.mw-parser-output a:visited { | |||
color: #5b4382; | |||
} | |||
.mw-parser-output a:hover { | |||
color: var(--ganji-primary-dark); | |||
} | |||
/* تصاویر */ | |||
.mw-parser-output img, | |||
.mw-file-description img, | |||
.thumb img { | |||
max-width: 100%; | |||
height: auto !important; | |||
} | |||
.thumbinner, | |||
.mw-default-size img { | |||
border-radius: 6px; | |||
} | |||
/* نقلقول */ | |||
.mw-parser-output blockquote { | |||
margin: 1.25em 0; | |||
padding: .75em 1.1em; | |||
border-right: 4px solid var(--ganji-primary); | |||
background: var(--ganji-soft); | |||
border-radius: 6px; | |||
} | |||
/* جدولهای ویکی */ | |||
.mw-parser-output .wikitable { | |||
width: auto; | |||
max-width: 100%; | |||
margin: 1.2em auto; | |||
border: 1px solid var(--ganji-border); | |||
border-collapse: collapse; | |||
background: #fff; | |||
} | |||
.mw-parser-output .wikitable th, | |||
.mw-parser-output .wikitable td { | |||
padding: .55em .8em; | |||
border: 1px solid var(--ganji-border); | |||
text-align: right; | |||
vertical-align: top; | |||
} | |||
.mw-parser-output .wikitable th { | |||
background: #eaf3f1; | |||
color: var(--ganji-primary-dark); | |||
font-weight: bold; | |||
} | |||
.mw-parser-output .wikitable tr:nth-child(even) { | |||
background: #fbfcfc; | |||
} | |||
/* جعبهٔ اطلاعات */ | |||
.infobox { | |||
float: left; | |||
clear: left; | |||
width: 22em; | |||
max-width: 38%; | |||
margin: .5em 1.25em 1em 0; | |||
padding: .25em; | |||
border: 1px solid var(--ganji-border); | |||
border-radius: 8px; | |||
background: var(--ganji-soft); | |||
color: #1e2928; | |||
font-size: 92%; | |||
line-height: 1.8; | |||
} | |||
.infobox th, | |||
.infobox td { | |||
padding: .4em .55em; | |||
text-align: right; | |||
vertical-align: top; | |||
} | |||
.infobox-title, | |||
.infobox-above, | |||
.infobox caption { | |||
padding: .55em; | |||
background: #eaf3f1; | |||
color: var(--ganji-primary-dark); | |||
font-weight: bold; | |||
text-align: center; | |||
} | |||
/* جعبههای ناوبری */ | |||
.navbox { | |||
width: 100%; | |||
margin: 1.25em auto; | |||
border: 1px solid var(--ganji-border); | |||
border-radius: 8px; | |||
background: #fff; | |||
font-size: 92%; | |||
text-align: center; | |||
overflow: hidden; | |||
} | |||
.navbox-title, | |||
.navbox-abovebelow, | |||
.navbox-group { | |||
padding: .45em .75em; | |||
background: #eaf3f1; | |||
color: var(--ganji-primary-dark); | |||
font-weight: bold; | |||
} | |||
.navbox-list { | |||
padding: .55em; | |||
line-height: 1.9; | |||
} | |||
/* منابع و متن لاتین */ | |||
ol.references { | |||
font-size: 92%; | |||
line-height: 1.9; | |||
} | |||
li.mw-cite-dir-ltr, | |||
.mw-content-ltr { | |||
direction: ltr; | |||
text-align: left; | |||
} | |||
/* گریدهای قدیمی صفحهٔ اصلی */ | |||
.portal-container-2, | |||
.portal-container-3, | |||
.portal-container-4, | |||
.portal-container-5, | |||
.portal-container-6 { | |||
display: grid; | |||
gap: 15px; | |||
width: 100%; | |||
} | |||
.portal-container-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } | |||
.portal-container-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } | |||
.portal-container-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } | |||
.portal-container-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } | |||
.portal-container-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } | |||
.portal-column-1-2, | |||
.portal-column-1-3, | |||
.portal-column-1-4, | |||
.portal-column-1-5, | |||
.portal-column-1-6 { | |||
grid-column: span 1; | |||
} | |||
.portal-column-2-3, | |||
.portal-column-2-4 { | |||
grid-column: span 2; | |||
} | |||
.portal-column-3-4 { | |||
grid-column: span 3; | |||
} | |||
/* صفحهٔ اصلی */ | |||
body.page-صفحهٔ_اصلی #firstHeading, | |||
body.page-صفحهٔ_اصلی .firstHeading { | |||
display: none; | |||
} | |||
body.page-صفحهٔ_اصلی .mw-body-content { | |||
padding-top: 0; | |||
} | |||
/* موبایل */ | |||
@media (max-width: 900px) { | |||
.portal-container-4, | |||
.portal-container-5, | |||
.portal-container-6 { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | |||
.infobox { | |||
float: none; | |||
width: 100%; | |||
max-width: 100%; | |||
margin: 1em 0; | |||
} | |||
} | |||
@media (max-width: 650px) { | |||
.mw-body-content, | |||
.mw-parser-output { | |||
font-size: 15px; | |||
line-height: 2; | |||
} | |||
.portal-container-2, | |||
.portal-container-3, | |||
.portal-container-4, | |||
.portal-container-5, | |||
.portal-container-6 { | |||
display: block; | |||
} | |||
.portal-container-2 > *, | |||
.portal-container-3 > *, | |||
.portal-container-4 > *, | |||
.portal-container-5 > *, | |||
.portal-container-6 > * { | |||
margin-bottom: 14px; | |||
} | |||
.portal-column-2-3, | |||
.portal-column-2-4, | |||
.portal-column-3-4 { | |||
grid-column: auto; | |||
} | |||
.mw-parser-output .wikitable { | |||
display: block; | |||
overflow-x: auto; | |||
white-space: nowrap; | |||
} | |||
} | |||
/* جدول آرشیو دروس آیتالله گنجی */ | |||
.ganji-table-scroll { | |||
width: 100%; | |||
overflow-x: auto; | |||
-webkit-overflow-scrolling: touch; | |||
} | |||
.ganji-archive-table { | |||
width: max-content !important; | |||
min-width: 100%; | |||
table-layout: auto; | |||
text-align: center; | |||
vertical-align: middle; | |||
white-space: nowrap; | |||
} | |||
.ganji-archive-table th, | |||
.ganji-archive-table td { | |||
white-space: nowrap; | |||
vertical-align: middle; | |||
} | |||
/* ثابتماندن ستون جلسه در سمت راست */ | |||
.ganji-archive-table th:nth-child(1), | |||
.ganji-archive-table td:nth-child(1) { | |||
position: sticky; | |||
right: 0; | |||
z-index: 3; | |||
box-sizing: border-box; | |||
width: 64px; | |||
min-width: 64px; | |||
max-width: 64px; | |||
background: #f4f9f8; | |||
} | |||
/* ثابتماندن ستون تاریخ کنار ستون جلسه */ | |||
.ganji-archive-table th:nth-child(2), | |||
.ganji-archive-table td:nth-child(2) { | |||
position: sticky; | |||
right: 64px; | |||
z-index: 3; | |||
box-sizing: border-box; | |||
width: 118px; | |||
min-width: 118px; | |||
max-width: 118px; | |||
background: #f8fbfb; | |||
} | |||
.ganji-archive-table th:nth-child(1), | |||
.ganji-archive-table th:nth-child(2) { | |||
z-index: 4; | |||
background: #eaf4f2; | |||
} | |||
.ganji-table-search { | |||
box-sizing: border-box; | |||
width: min(100%, 430px); | |||
margin: 0 0 1em; | |||
padding: .65em .85em; | |||
border: 1px solid #aebfbd; | |||
border-radius: 6px; | |||
background: #fff; | |||
color: #173f46; | |||
font: inherit; | |||
} | |||
.ganji-table-search:focus { | |||
border-color: #1f7770; | |||
outline: 2px solid rgba(31, 119, 112, .18); | |||
} | |||
.ganji-table-no-results { | |||
margin: .5em 0 1em; | |||
color: #8a3b32; | |||
} | |||
/* جدول آرشیو دروس آیتالله گنجی */ | /* جدول آرشیو دروس آیتالله گنجی */ | ||
.ganji-table-scroll { | .ganji-table-scroll { | ||
نسخهٔ ۱۰ سپتامبر ۲۰۲۶، ساعت ۰۳:۴۱
/* پایگاه اطلاعرسانی آیتالله گنجی — MediaWiki:Common.css */
/* فونت محلی؛ فایلها در پوشهٔ /fonts سایت هستند */
@font-face {
font-family: Vazir;
src: url('/fonts/Vazir.woff2') format('woff2'),
url('/fonts/Vazir.woff') format('woff'),
url('/fonts/Vazir.ttf') format('truetype');
font-weight: normal;
font-style: normal;
font-display: swap;
}
:root {
--ganji-primary: #145f57;
--ganji-primary-dark: #0c463f;
--ganji-link: #075c87;
--ganji-border: #d9e3e1;
--ganji-soft: #f7faf9;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
direction: rtl;
}
html,
body,
.mw-body,
.mw-body-content,
.mw-parser-output,
.mw-ui-button,
button,
input,
textarea,
select {
font-family: Vazir, Tahoma, Arial, sans-serif !important;
}
/* متن و محتوا */
.mw-body-content,
.mw-parser-output {
font-size: 16px;
line-height: 2.1;
}
.mw-parser-output p {
text-align: justify;
text-justify: inter-word;
overflow-wrap: break-word;
}
/* عنوانها */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6,
.mw-page-title-main,
.mw-headline {
font-family: Vazir, Tahoma, Arial, sans-serif !important;
font-weight: bold;
color: var(--ganji-primary-dark);
}
.mw-body h2 {
margin-top: 2em;
padding-bottom: .35em;
border-bottom: 1px solid var(--ganji-border);
}
/* کد، آدرس و عبارت لاتین */
pre,
code,
kbd,
samp,
.mw-code {
direction: ltr;
text-align: left;
font-family: Consolas, "Courier New", monospace !important;
}
/* پیوندها */
.mw-parser-output a,
.mw-body a {
color: var(--ganji-link);
}
.mw-parser-output a:visited {
color: #5b4382;
}
.mw-parser-output a:hover {
color: var(--ganji-primary-dark);
}
/* تصاویر */
.mw-parser-output img,
.mw-file-description img,
.thumb img {
max-width: 100%;
height: auto !important;
}
.thumbinner,
.mw-default-size img {
border-radius: 6px;
}
/* نقلقول */
.mw-parser-output blockquote {
margin: 1.25em 0;
padding: .75em 1.1em;
border-right: 4px solid var(--ganji-primary);
background: var(--ganji-soft);
border-radius: 6px;
}
/* جدولهای ویکی */
.mw-parser-output .wikitable {
width: auto;
max-width: 100%;
margin: 1.2em auto;
border: 1px solid var(--ganji-border);
border-collapse: collapse;
background: #fff;
}
.mw-parser-output .wikitable th,
.mw-parser-output .wikitable td {
padding: .55em .8em;
border: 1px solid var(--ganji-border);
text-align: right;
vertical-align: top;
}
.mw-parser-output .wikitable th {
background: #eaf3f1;
color: var(--ganji-primary-dark);
font-weight: bold;
}
.mw-parser-output .wikitable tr:nth-child(even) {
background: #fbfcfc;
}
/* جعبهٔ اطلاعات */
.infobox {
float: left;
clear: left;
width: 22em;
max-width: 38%;
margin: .5em 1.25em 1em 0;
padding: .25em;
border: 1px solid var(--ganji-border);
border-radius: 8px;
background: var(--ganji-soft);
color: #1e2928;
font-size: 92%;
line-height: 1.8;
}
.infobox th,
.infobox td {
padding: .4em .55em;
text-align: right;
vertical-align: top;
}
.infobox-title,
.infobox-above,
.infobox caption {
padding: .55em;
background: #eaf3f1;
color: var(--ganji-primary-dark);
font-weight: bold;
text-align: center;
}
/* جعبههای ناوبری */
.navbox {
width: 100%;
margin: 1.25em auto;
border: 1px solid var(--ganji-border);
border-radius: 8px;
background: #fff;
font-size: 92%;
text-align: center;
overflow: hidden;
}
.navbox-title,
.navbox-abovebelow,
.navbox-group {
padding: .45em .75em;
background: #eaf3f1;
color: var(--ganji-primary-dark);
font-weight: bold;
}
.navbox-list {
padding: .55em;
line-height: 1.9;
}
/* منابع و متن لاتین */
ol.references {
font-size: 92%;
line-height: 1.9;
}
li.mw-cite-dir-ltr,
.mw-content-ltr {
direction: ltr;
text-align: left;
}
/* گریدهای قدیمی صفحهٔ اصلی */
.portal-container-2,
.portal-container-3,
.portal-container-4,
.portal-container-5,
.portal-container-6 {
display: grid;
gap: 15px;
width: 100%;
}
.portal-container-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-container-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-container-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-container-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.portal-container-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.portal-column-1-2,
.portal-column-1-3,
.portal-column-1-4,
.portal-column-1-5,
.portal-column-1-6 {
grid-column: span 1;
}
.portal-column-2-3,
.portal-column-2-4 {
grid-column: span 2;
}
.portal-column-3-4 {
grid-column: span 3;
}
/* صفحهٔ اصلی */
body.page-صفحهٔ_اصلی #firstHeading,
body.page-صفحهٔ_اصلی .firstHeading {
display: none;
}
body.page-صفحهٔ_اصلی .mw-body-content {
padding-top: 0;
}
/* موبایل */
@media (max-width: 900px) {
.portal-container-4,
.portal-container-5,
.portal-container-6 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.infobox {
float: none;
width: 100%;
max-width: 100%;
margin: 1em 0;
}
}
@media (max-width: 650px) {
.mw-body-content,
.mw-parser-output {
font-size: 15px;
line-height: 2;
}
.portal-container-2,
.portal-container-3,
.portal-container-4,
.portal-container-5,
.portal-container-6 {
display: block;
}
.portal-container-2 > *,
.portal-container-3 > *,
.portal-container-4 > *,
.portal-container-5 > *,
.portal-container-6 > * {
margin-bottom: 14px;
}
.portal-column-2-3,
.portal-column-2-4,
.portal-column-3-4 {
grid-column: auto;
}
.mw-parser-output .wikitable {
display: block;
overflow-x: auto;
white-space: nowrap;
}
}
/* جدول آرشیو دروس آیتالله گنجی */
.ganji-table-scroll {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.ganji-archive-table {
width: max-content !important;
min-width: 100%;
table-layout: auto;
text-align: center;
vertical-align: middle;
white-space: nowrap;
}
.ganji-archive-table th,
.ganji-archive-table td {
white-space: nowrap;
vertical-align: middle;
}
/* ثابتماندن ستون جلسه در سمت راست */
.ganji-archive-table th:nth-child(1),
.ganji-archive-table td:nth-child(1) {
position: sticky;
right: 0;
z-index: 3;
box-sizing: border-box;
width: 64px;
min-width: 64px;
max-width: 64px;
background: #f4f9f8;
}
/* ثابتماندن ستون تاریخ کنار ستون جلسه */
.ganji-archive-table th:nth-child(2),
.ganji-archive-table td:nth-child(2) {
position: sticky;
right: 64px;
z-index: 3;
box-sizing: border-box;
width: 118px;
min-width: 118px;
max-width: 118px;
background: #f8fbfb;
}
.ganji-archive-table th:nth-child(1),
.ganji-archive-table th:nth-child(2) {
z-index: 4;
background: #eaf4f2;
}
.ganji-table-search {
box-sizing: border-box;
width: min(100%, 430px);
margin: 0 0 1em;
padding: .65em .85em;
border: 1px solid #aebfbd;
border-radius: 6px;
background: #fff;
color: #173f46;
font: inherit;
}
.ganji-table-search:focus {
border-color: #1f7770;
outline: 2px solid rgba(31, 119, 112, .18);
}
.ganji-table-no-results {
margin: .5em 0 1em;
color: #8a3b32;
}
/* جدول آرشیو دروس آیتالله گنجی */
.ganji-table-scroll {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.ganji-archive-table {
width: max-content !important;
min-width: 100%;
table-layout: auto;
text-align: center;
vertical-align: middle;
white-space: nowrap;
}
.ganji-archive-table th,
.ganji-archive-table td {
white-space: nowrap;
vertical-align: middle;
}
/* ثابتماندن ستون جلسه در سمت راست */
.ganji-archive-table th:nth-child(1),
.ganji-archive-table td:nth-child(1) {
position: sticky;
right: 0;
z-index: 3;
box-sizing: border-box;
width: 64px;
min-width: 64px;
max-width: 64px;
background: #f4f9f8;
}
/* ثابتماندن ستون تاریخ کنار ستون جلسه */
.ganji-archive-table th:nth-child(2),
.ganji-archive-table td:nth-child(2) {
position: sticky;
right: 64px;
z-index: 3;
box-sizing: border-box;
width: 118px;
min-width: 118px;
max-width: 118px;
background: #f8fbfb;
}
.ganji-archive-table th:nth-child(1),
.ganji-archive-table th:nth-child(2) {
z-index: 4;
background: #eaf4f2;
}
.ganji-table-search {
box-sizing: border-box;
width: min(100%, 430px);
margin: 0 0 1em;
padding: .65em .85em;
border: 1px solid #aebfbd;
border-radius: 6px;
background: #fff;
color: #173f46;
font: inherit;
}
.ganji-table-search:focus {
border-color: #1f7770;
outline: 2px solid rgba(31, 119, 112, .18);
}
.ganji-table-no-results {
margin: .5em 0 1em;
color: #8a3b32;
}
/* فهرست مطالب خودکار زیر منوی کناری قالب Medik */
.ganji-sidebar-toc {
width: 100%;
margin-top: 1.4em;
padding-top: 1em;
border-top: 1px solid #d8e2e1;
direction: rtl;
text-align: right;
}
.ganji-sidebar-toc-title {
margin-bottom: .55em;
color: #173f46;
font-size: 110%;
font-weight: 700;
}
.ganji-sidebar-toc ul {
margin: 0;
padding: 0;
list-style: none;
}
.ganji-sidebar-toc li {
margin: .25em 0;
line-height: 1.7;
}
.ganji-sidebar-toc a {
display: block;
color: #687779;
text-decoration: none;
}
.ganji-sidebar-toc a:hover {
color: #1f7770;
}
.ganji-sidebar-toc .ganji-toc-level-h3 {
padding-right: .9em;
font-size: 94%;
}
.ganji-sidebar-toc .ganji-toc-level-h4 {
padding-right: 1.7em;
font-size: 90%;
}