مدیاویکی:Common.css
ظاهر
نکته: پس از انتشار ممکن است برای دیدن تغییرات نیاز باشد که حافظهٔ نهانی مرورگر خود را پاک کنید.
- فایرفاکس / سافاری: کلید Shift را نگه دارید و روی دکمهٔ Reload کلیک کنید، یا کلیدهای Ctrl-F5 یا Ctrl-R را با هم فشار دهید (در رایانههای اپل مکینتاش کلیدهای ⌘-R)
- گوگل کروم: کلیدهای Ctrl+Shift+R را با هم فشار دهید (در رایانههای اپل مکینتاش کلیدهای ⌘-Shift-R)
- Edge: کلید Ctrl را نگهدارید و روی دکمهٔ Refresh کلیک کنید، یا کلیدهای Ctrl-F5 را با هم فشار دهید
/* IRANSansX - Regular */
@font-face {
font-family: 'IRANSansX';
src: url('/fonts/woff2/IRANSansX-Regular.woff2') format('woff2'),
url('/fonts/woff/IRANSansX-Regular.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* IRANSansX - Bold */
@font-face {
font-family: 'IRANSansX';
src: url('/fonts/woff2/IRANSansX-Bold.woff2') format('woff2'),
url('/fonts/woff/IRANSansX-Bold.woff') format('woff');
font-weight: 700;
font-style: normal;
font-display: swap;
}
/* Base font */
html, body,
.mw-body,
.mw-body-content,
.vector-body,
.vector-page-titlebar,
.vector-sticky-header,
.vector-menu-content,
.vector-dropdown-content,
#mw-navigation,
.mw-parser-output {
font-family: 'IRANSansX', Tahoma, Arial, sans-serif !important;
font-weight: 400;
}
/* Page title and headings */
#firstHeading,
.firstHeading,
.mw-first-heading,
.mw-page-title-main,
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6,
.mw-body-content h1,
.mw-body-content h2,
.mw-body-content h3,
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6,
.mw-heading1,
.mw-heading2,
.mw-heading3,
.mw-heading4,
.mw-heading5,
.mw-heading6 {
font-family: 'IRANSansX', Tahoma, Arial, sans-serif !important;
font-weight: 700 !important;
}
/* Form controls */
input,
textarea,
select,
button {
font-family: 'IRANSansX', Tahoma, Arial, sans-serif !important;
}
/**************** first page template ******************/
/* Damavand Wiki Main Page */
.mp-home {
direction: rtl;
max-width: 1180px;
margin: 0 auto;
padding: 24px 18px;
font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}
.mp-topbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 28px;
padding-bottom: 16px;
border-bottom: 1px solid #e5e7eb;
}
.mp-site-title {
font-size: 1.6rem;
font-weight: 800;
color: #111827;
}
.mp-nav a {
margin-right: 22px;
color: #374151;
text-decoration: none;
font-weight: 500;
}
.mp-nav a:hover {
color: #2563eb;
}
.mp-grid {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 24px;
align-items: start;
}
.mp-left,
.mp-right {
display: flex;
flex-direction: column;
gap: 22px;
}
.mp-card {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 14px;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
overflow: hidden;
}
.mp-card-header {
padding: 18px 20px 10px;
}
.mp-card-title {
display: inline-block;
font-size: 1.25rem;
font-weight: 800;
color: #111827;
border-right: 4px solid #2563eb;
padding-right: 10px;
}
.mp-card-body {
padding: 16px 22px 22px;
line-height: 2;
color: #1f2937;
font-size: 1rem;
}
.mp-card-body a {
color: #2563eb;
text-decoration: none;
}
.mp-card-body a:hover {
text-decoration: underline;
}
.mp-featured-image-box {
height: 300px;
background: #cfe5ff;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.mp-featured-image-box img {
width: 100%;
height: 100%;
object-fit: cover;
}
.mp-image-caption {
padding: 14px 18px;
text-align: center;
color: #374151;
border-top: 1px solid #e5e7eb;
}
.mp-entry-list {
margin: 0;
padding-right: 20px;
}
.mp-entry-list li {
margin-bottom: 10px;
}
.mp-read-more {
display: inline-block;
margin-top: 12px;
color: #2563eb;
}
.mp-alphabet {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
}
.mp-alphabet a {
display: inline-flex;
width: 38px;
height: 38px;
align-items: center;
justify-content: center;
border-radius: 10px;
background: #eff6ff;
color: #2563eb;
font-weight: 700;
text-decoration: none;
}
.mp-alphabet a:hover {
background: #dbeafe;
}
@media screen and (max-width: 850px) {
.mp-grid {
grid-template-columns: 1fr;
}
.mp-topbar {
flex-direction: column;
gap: 12px;
}
.mp-nav a {
margin: 0 8px;
}
}