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

بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۴ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۲۵۵: خط ۲۵۵:
   margin: 0 auto;
   margin: 0 auto;
   padding: 24px 18px;
   padding: 24px 18px;
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
   color: #111827;
   color: #111827;
}
}


.nw-grid {
.nw-grid {
   display: flex;
   display: grid !important;
   gap: 22px;
  grid-template-columns: minmax(0, 1fr) 280px !important;
   align-items: flex-start;
   gap: 22px !important;
   align-items: start !important;
  direction: ltr !important;
}
}


.nw-side {
.nw-main {
   width: 260px;
  grid-column: 1 !important;
   flex: 0 0 260px;
   width: 100% !important;
   display: flex;
   min-width: 0 !important;
   flex-direction: column;
   display: flex !important;
   gap: 18px;
   flex-direction: column !important;
   gap: 22px !important;
  direction: rtl !important;
}
}


.nw-main {
.nw-side {
   flex: 1;
   grid-column: 2 !important;
   min-width: 0;
  width: 280px !important;
   display: flex;
   min-width: 280px !important;
   flex-direction: column;
  max-width: 280px !important;
   gap: 22px;
   display: flex !important;
   flex-direction: column !important;
   gap: 18px !important;
  direction: rtl !important;
}
}


.nw-card {
.nw-card {
   width: 100%;
  display: block !important;
   box-sizing: border-box;
   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;
 
.nw-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
 
.nw-hero h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
}
 
.nw-subtitle {
  color: #6b7280;
  margin-top: 8px;
}
 
.nw-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 0.85rem;
   white-space: nowrap;
}
}


خط ۳۵۴: خط ۳۳۹:
   padding: 12px 14px;
   padding: 12px 14px;
   text-align: center;
   text-align: center;
  font-size: 0.9rem;
   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: 130px 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-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.nw-button {
  display: inline-block;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
}
.nw-highlights {
  margin: 0;
  padding-right: 22px;
}
}


خط ۴۰۶: خط ۳۶۸:
.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;
}
}
خط ۴۲۲: خط ۳۸۴:
   justify-content: space-between;
   justify-content: space-between;
   align-items: center;
   align-items: center;
}
.nw-muted {
  color: #6b7280;
  font-size: 0.9rem;
}
}


@media screen and (max-width: 850px) {
@media screen and (max-width: 850px) {
   .nw-grid {
   .nw-grid {
     flex-direction: column;
    display: flex !important;
     flex-direction: column !important;
    direction: rtl !important;
   }
   }


   .nw-main {
   .nw-main {
     order: 1;
     order: 1 !important;
     width: 100%;
     width: 100% !important;
   }
   }


   .nw-side {
   .nw-side {
     order: 2;
     order: 2 !important;
     width: 100%;
     width: 100% !important;
     flex-basis: auto;
     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-hero {
   .nw-download-actions {
     flex-direction: column;
     flex-direction: column;
     align-items: flex-start;
  }
 
  .nw-download-button a {
     width: 100%;
   }
   }
}
}