پرش به محتوا

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

از ویکی دماوند
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۶۷: خط ۶۷:
button {
button {
     font-family: 'IRANSansX', Tahoma, Arial, sans-serif !important;
     font-family: 'IRANSansX', Tahoma, Arial, sans-serif !important;
}
/**************** first page template ******************/
/* Main page layout */
.mp-container {
  max-width: 1120px;
  margin: 0 auto;
  direction: rtl; /* remove this if your wiki is LTR */
}
.mp-hero {
  border: 1px solid #c8d6ee;
  border-radius: 14px;
  background: linear-gradient(#ffffff, #f8fbff);
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
}
.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 18px;
  align-items: start;
}
.mp-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Widget/card style */
.mp-box {
  border: 1px solid #b8c9e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
.mp-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(#f9fcff, #eef5ff);
  border-bottom: 1px solid #c8d6ee;
  font-weight: bold;
  color: #1f3f73;
}
.mp-box-title {
  font-size: 1.05em;
}
.mp-box-body {
  padding: 14px 18px;
  line-height: 1.8;
}
.mp-box-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
/* Responsive mobile layout */
@media screen and (max-width: 850px) {
  .mp-grid {
    grid-template-columns: 1fr;
  }
  .mp-container {
    padding: 0 10px;
  }
}
}

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

/* 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 ******************/
/* Main page layout */
.mp-container {
  max-width: 1120px;
  margin: 0 auto;
  direction: rtl; /* remove this if your wiki is LTR */
}

.mp-hero {
  border: 1px solid #c8d6ee;
  border-radius: 14px;
  background: linear-gradient(#ffffff, #f8fbff);
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-align: center;
}

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

.mp-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.mp-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(#f9fcff, #eef5ff);
  border-bottom: 1px solid #c8d6ee;
  font-weight: bold;
  color: #1f3f73;
}

.mp-box-title {
  font-size: 1.05em;
}

.mp-box-body {
  padding: 14px 18px;
  line-height: 1.8;
}

.mp-box-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Responsive mobile layout */
@media screen and (max-width: 850px) {
  .mp-grid {
    grid-template-columns: 1fr;
  }

  .mp-container {
    padding: 0 10px;
  }
}