پرش به محتوا

مدیاویکی: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;
   }
   }
}
}

نسخهٔ ۴ مهٔ ۲۰۲۶، ساعت ۰۵:۴۴

/* 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;
  }
}