مدیاویکی:Common.css: تفاوت میان نسخه‌ها

بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۸ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱۱۰: خط ۱۱۰:
   gap: 24px;
   gap: 24px;
   align-items: start;
   align-items: start;
  direction: ltr;
}
.mp-left,
.mp-right {
  direction: rtl;
}
}


خط ۲۲۰: خط ۲۲۶:
   .mp-grid {
   .mp-grid {
     grid-template-columns: 1fr;
     grid-template-columns: 1fr;
    direction: rtl;
   }
   }


خط ۲۲۹: خط ۲۳۶:
   .mp-nav a {
   .mp-nav a {
     margin: 0 8px;
     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%;
   }
   }
}
}