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

بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۷۰: خط ۷۰:


/**************** first page template ******************/
/**************** first page template ******************/
/* Main page layout */
/* Damavand Wiki Main Page */
.mp-container {
 
   max-width: 1120px;
.mp-home {
  direction: rtl;
   max-width: 1180px;
   margin: 0 auto;
   margin: 0 auto;
   direction: rtl; /* remove this if your wiki is LTR */
   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-hero {
.mp-nav a {
   border: 1px solid #c8d6ee;
   margin-right: 22px;
  border-radius: 14px;
   color: #374151;
   background: linear-gradient(#ffffff, #f8fbff);
   text-decoration: none;
   padding: 24px;
   font-weight: 500;
   margin: 16px 0;
}
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
 
   text-align: center;
.mp-nav a:hover {
   color: #2563eb;
}
}


.mp-grid {
.mp-grid {
   display: grid;
   display: grid;
   grid-template-columns: 1fr 1.45fr;
   grid-template-columns: 1fr 2fr;
   gap: 18px;
   gap: 24px;
   align-items: start;
   align-items: start;
}
}


.mp-column {
.mp-left,
.mp-right {
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   gap: 18px;
   gap: 22px;
}
}


/* Widget/card style */
.mp-card {
.mp-box {
  background: #fff;
   border: 1px solid #b8c9e6;
   border: 1px solid #e5e7eb;
   border-radius: 14px;
   border-radius: 14px;
  background: #fff;
   box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
   box-shadow: 0 2px 8px rgba(0,0,0,.06);
   overflow: hidden;
   overflow: hidden;
}
}


.mp-box-header {
.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;
   display: flex;
   align-items: center;
   align-items: center;
   gap: 8px;
   justify-content: center;
  padding: 8px 14px;
   overflow: hidden;
  background: linear-gradient(#f9fcff, #eef5ff);
  border-bottom: 1px solid #c8d6ee;
  font-weight: bold;
   color: #1f3f73;
}
}


.mp-box-title {
.mp-featured-image-box img {
   font-size: 1.05em;
   width: 100%;
  height: 100%;
  object-fit: cover;
}
}


.mp-box-body {
.mp-image-caption {
   padding: 14px 18px;
   padding: 14px 18px;
   line-height: 1.8;
   text-align: center;
  color: #374151;
  border-top: 1px solid #e5e7eb;
}
 
.mp-entry-list {
  margin: 0;
  padding-right: 20px;
}
}


.mp-box-body img {
.mp-entry-list li {
   max-width: 100%;
   margin-bottom: 10px;
   height: auto;
}
   border-radius: 6px;
 
.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;
}
}


/* Responsive mobile layout */
@media screen and (max-width: 850px) {
@media screen and (max-width: 850px) {
   .mp-grid {
   .mp-grid {
خط ۱۴۱: خط ۲۲۳:
   }
   }


   .mp-container {
   .mp-topbar {
     padding: 0 10px;
     flex-direction: column;
    gap: 12px;
  }
 
  .mp-nav a {
    margin: 0 8px;
   }
   }
}
}