مدیاویکی:Common.css: تفاوت میان نسخهها
ظاهر
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| (۵ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد) | |||
| خط ۲۵۵: | خط ۲۵۵: | ||
margin: 0 auto; | margin: 0 auto; | ||
padding: 24px 18px; | padding: 24px 18px; | ||
color: #111827; | color: #111827; | ||
} | } | ||
.nw-grid { | .nw-grid { | ||
display: grid; | display: grid !important; | ||
grid-template-columns: | grid-template-columns: minmax(0, 1fr) 280px !important; | ||
gap: 22px | gap: 22px !important; | ||
align-items: start !important; | |||
align-items: start; | direction: ltr !important; | ||
direction: | |||
} | } | ||
.nw-main { | .nw-main { | ||
display: flex; | grid-column: 1 !important; | ||
flex-direction: column; | width: 100% !important; | ||
gap: 22px; | min-width: 0 !important; | ||
display: flex !important; | |||
flex-direction: column !important; | |||
gap: 22px !important; | |||
direction: rtl !important; | |||
} | } | ||
.nw-side { | .nw-side { | ||
display: flex; | grid-column: 2 !important; | ||
flex-direction: column; | width: 280px !important; | ||
gap: 18px; | min-width: 280px !important; | ||
max-width: 280px !important; | |||
display: flex !important; | |||
flex-direction: column !important; | |||
gap: 18px !important; | |||
direction: rtl !important; | |||
} | } | ||
.nw-card { | .nw-card { | ||
display: block !important; | |||
width: 100% !important; | |||
max-width: none !important; | |||
box-sizing: border-box !important; | |||
background: #fff; | background: #fff; | ||
border: 1px solid #e5e7eb; | border: 1px solid #e5e7eb; | ||
| خط ۲۹۰: | خط ۲۹۷: | ||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); | box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); | ||
overflow: hidden; | overflow: hidden; | ||
float: none !important; | |||
clear: both !important; | |||
} | } | ||
| خط ۲۹۷: | خط ۳۰۶: | ||
.nw-card-title { | .nw-card-title { | ||
display: block !important; | |||
font-size: 1.25rem; | font-size: 1.25rem; | ||
font-weight: 800; | font-weight: 800; | ||
color: #111827; | color: #111827; | ||
white-space: normal !important; | |||
} | } | ||
.nw-card-body { | .nw-card-body { | ||
display: block !important; | |||
padding: 14px 20px 22px; | padding: 14px 20px 22px; | ||
line-height: 2; | line-height: 2; | ||
font-size: 0.98rem; | font-size: 0.98rem; | ||
white-space: normal !important; | |||
} | } | ||
| خط ۳۵۴: | خط ۳۳۹: | ||
padding: 12px 14px; | padding: 12px 14px; | ||
text-align: center; | text-align: center; | ||
color: #6b7280; | color: #6b7280; | ||
border-top: 1px solid #e5e7eb; | border-top: 1px solid #e5e7eb; | ||
| خط ۳۶۱: | خط ۳۴۵: | ||
.nw-meta { | .nw-meta { | ||
display: grid; | display: grid; | ||
grid-template-columns: 1fr | grid-template-columns: 130px minmax(0, 1fr); | ||
gap: 10px 18px; | gap: 10px 18px; | ||
} | } | ||
| خط ۳۷۱: | خط ۳۵۵: | ||
.nw-meta-value { | .nw-meta-value { | ||
font-weight: 700; | font-weight: 700; | ||
} | } | ||
| خط ۴۳۳: | خط ۳۶۸: | ||
.nw-gallery { | .nw-gallery { | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(4, 1fr); | grid-template-columns: repeat(4, minmax(0, 1fr)); | ||
gap: 14px; | gap: 14px; | ||
} | } | ||
| خط ۴۴۳: | خط ۳۷۸: | ||
border-radius: 8px; | border-radius: 8px; | ||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| خط ۴۵۵: | خط ۳۸۴: | ||
justify-content: space-between; | justify-content: space-between; | ||
align-items: center; | align-items: center; | ||
} | } | ||
@media screen and (max-width: 850px) { | @media screen and (max-width: 850px) { | ||
.nw-grid { | .nw-grid { | ||
display: flex; | display: flex !important; | ||
flex-direction: column; | flex-direction: column !important; | ||
direction: rtl !important; | |||
} | } | ||
.nw-main { | .nw-main { | ||
order: 1; | order: 1 !important; | ||
width: 100% !important; | |||
} | } | ||
.nw-side { | .nw-side { | ||
order: 2; | order: 2 !important; | ||
width: 100% !important; | |||
min-width: 0 !important; | |||
max-width: none !important; | |||
} | } | ||
| خط ۴۸۲: | خط ۴۱۱: | ||
.nw-gallery { | .nw-gallery { | ||
grid-template-columns: repeat(2, 1fr); | grid-template-columns: repeat(2, 1fr); | ||
} | |||
} | |||
/* Newspaper page final alignment fix */ | |||
.nw-grid { | |||
align-items: start !important; | |||
} | |||
.nw-main { | |||
align-self: start !important; | |||
margin-top: 0 !important; | |||
} | |||
.nw-main > .nw-card:first-child { | |||
margin-top: 0 !important; | |||
} | |||
.nw-side { | |||
align-self: start !important; | |||
margin-top: 0 !important; | |||
} | |||
.nw-page .nw-card { | |||
margin-top: 0 !important; | |||
margin-bottom: 0 !important; | |||
} | |||
.nw-page h1, | |||
.nw-page h2, | |||
.nw-page h3 { | |||
margin-top: 0 !important; | |||
} | |||
/* Download box */ | |||
.nw-download-card { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
gap: 18px; | |||
background: linear-gradient(135deg, #f8fbff, #ffffff); | |||
border: 1px solid #dbeafe; | |||
border-radius: 14px; | |||
padding: 20px; | |||
} | |||
.nw-download-title { | |||
font-size: 1.25rem; | |||
font-weight: 900; | |||
color: #111827; | |||
margin-bottom: 6px; | |||
} | |||
.nw-download-desc { | |||
color: #6b7280; | |||
font-size: 0.95rem; | |||
} | |||
.nw-download-actions { | |||
display: flex; | |||
gap: 10px; | |||
flex-wrap: wrap; | |||
} | |||
.nw-download-button a, | |||
.nw-download-button a:visited { | |||
display: inline-flex; | |||
align-items: center; | |||
justify-content: center; | |||
min-height: 42px; | |||
padding: 0 18px; | |||
border-radius: 10px; | |||
background: #2563eb; | |||
color: #fff !important; | |||
text-decoration: none !important; | |||
font-weight: 800; | |||
box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25); | |||
} | |||
.nw-download-button a:hover { | |||
background: #1d4ed8; | |||
color: #fff !important; | |||
text-decoration: none !important; | |||
} | |||
.nw-download-secondary a, | |||
.nw-download-secondary a:visited { | |||
background: #eff6ff; | |||
color: #2563eb !important; | |||
box-shadow: none; | |||
border: 1px solid #bfdbfe; | |||
} | |||
.nw-download-secondary a:hover { | |||
background: #dbeafe; | |||
color: #1d4ed8 !important; | |||
} | |||
@media screen and (max-width: 850px) { | |||
.nw-download-card { | |||
flex-direction: column; | |||
align-items: stretch; | |||
} | } | ||
.nw- | .nw-download-actions { | ||
flex-direction: column; | flex-direction: column; | ||
} | |||
.nw-download-button a { | |||
width: 100%; | |||
} | } | ||
} | } | ||
نسخهٔ کنونی تا ۴ مهٔ ۲۰۲۶، ساعت ۰۷:۳۵
/* 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;
}
.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;
direction: ltr;
}
.mp-left,
.mp-right {
direction: rtl;
}
.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;
direction: rtl;
}
.mp-topbar {
flex-direction: column;
gap: 12px;
}
.mp-nav a {
margin: 0 8px;
}
.mp-right {
order: 1;
}
.mp-left {
order: 2;
}
}
/**************************** newspaper *******************************/
/* Newspaper Issue Page */
.nw-page {
direction: rtl;
max-width: 1180px;
margin: 0 auto;
padding: 24px 18px;
color: #111827;
}
.nw-grid {
display: grid !important;
grid-template-columns: minmax(0, 1fr) 280px !important;
gap: 22px !important;
align-items: start !important;
direction: ltr !important;
}
.nw-main {
grid-column: 1 !important;
width: 100% !important;
min-width: 0 !important;
display: flex !important;
flex-direction: column !important;
gap: 22px !important;
direction: rtl !important;
}
.nw-side {
grid-column: 2 !important;
width: 280px !important;
min-width: 280px !important;
max-width: 280px !important;
display: flex !important;
flex-direction: column !important;
gap: 18px !important;
direction: rtl !important;
}
.nw-card {
display: block !important;
width: 100% !important;
max-width: none !important;
box-sizing: border-box !important;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
overflow: hidden;
float: none !important;
clear: both !important;
}
.nw-card-header {
padding: 18px 20px 8px;
}
.nw-card-title {
display: block !important;
font-size: 1.25rem;
font-weight: 800;
color: #111827;
white-space: normal !important;
}
.nw-card-body {
display: block !important;
padding: 14px 20px 22px;
line-height: 2;
font-size: 0.98rem;
white-space: normal !important;
}
.nw-cover {
background: #dbeafe;
height: 330px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.nw-cover img {
width: 100%;
height: 100%;
object-fit: cover;
}
.nw-caption {
padding: 12px 14px;
text-align: center;
color: #6b7280;
border-top: 1px solid #e5e7eb;
}
.nw-meta {
display: grid;
grid-template-columns: 130px minmax(0, 1fr);
gap: 10px 18px;
}
.nw-meta-label {
color: #6b7280;
}
.nw-meta-value {
font-weight: 700;
}
.nw-entry-list {
margin: 0;
padding-right: 20px;
}
.nw-entry-list li {
margin-bottom: 9px;
}
.nw-gallery {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 14px;
}
.nw-gallery-item {
height: 135px;
background: #f3f4f6;
border: 1px solid #e5e7eb;
border-radius: 8px;
overflow: hidden;
}
.nw-prev-next {
display: flex;
justify-content: space-between;
align-items: center;
}
@media screen and (max-width: 850px) {
.nw-grid {
display: flex !important;
flex-direction: column !important;
direction: rtl !important;
}
.nw-main {
order: 1 !important;
width: 100% !important;
}
.nw-side {
order: 2 !important;
width: 100% !important;
min-width: 0 !important;
max-width: none !important;
}
.nw-meta {
grid-template-columns: 1fr;
}
.nw-gallery {
grid-template-columns: repeat(2, 1fr);
}
}
/* Newspaper page final alignment fix */
.nw-grid {
align-items: start !important;
}
.nw-main {
align-self: start !important;
margin-top: 0 !important;
}
.nw-main > .nw-card:first-child {
margin-top: 0 !important;
}
.nw-side {
align-self: start !important;
margin-top: 0 !important;
}
.nw-page .nw-card {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.nw-page h1,
.nw-page h2,
.nw-page h3 {
margin-top: 0 !important;
}
/* Download box */
.nw-download-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
background: linear-gradient(135deg, #f8fbff, #ffffff);
border: 1px solid #dbeafe;
border-radius: 14px;
padding: 20px;
}
.nw-download-title {
font-size: 1.25rem;
font-weight: 900;
color: #111827;
margin-bottom: 6px;
}
.nw-download-desc {
color: #6b7280;
font-size: 0.95rem;
}
.nw-download-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.nw-download-button a,
.nw-download-button a:visited {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 18px;
border-radius: 10px;
background: #2563eb;
color: #fff !important;
text-decoration: none !important;
font-weight: 800;
box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}
.nw-download-button a:hover {
background: #1d4ed8;
color: #fff !important;
text-decoration: none !important;
}
.nw-download-secondary a,
.nw-download-secondary a:visited {
background: #eff6ff;
color: #2563eb !important;
box-shadow: none;
border: 1px solid #bfdbfe;
}
.nw-download-secondary a:hover {
background: #dbeafe;
color: #1d4ed8 !important;
}
@media screen and (max-width: 850px) {
.nw-download-card {
flex-direction: column;
align-items: stretch;
}
.nw-download-actions {
flex-direction: column;
}
.nw-download-button a {
width: 100%;
}
}