﻿/* ==========================================================================
   IRANSans  - فونت همه ی بخش های برنامه
   از هر صفحه ای که head خودش را دارد رفرنس می شود: دو مستر ادمین، مستر Customer،
   مستر HotelGDS، چهار layout ام وی سی، صفحات ریشه و صفحات چاپی.
   فایل های فونت در Content/fonts هستند و از قبل در پروژه بوده اند.
   برای برداشتن فونت از یک صفحه کافی است همان یک خط link حذف شود.
   ========================================================================== */

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url('../fonts/eot/IRANSansWeb_UltraLight.eot');
    src: url('../fonts/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'),
         url('../fonts/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
         url('../fonts/woff/IRANSansWeb_UltraLight.woff') format('woff'),
         url('../fonts/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/eot/IRANSansWeb_Light.eot');
    src: url('../fonts/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'),
         url('../fonts/woff/IRANSansWeb_Light.woff') format('woff'),
         url('../fonts/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/eot/IRANSansWeb.eot');
    src: url('../fonts/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
         url('../fonts/woff2/IRANSansWeb.woff2') format('woff2'),
         url('../fonts/woff/IRANSansWeb.woff') format('woff'),
         url('../fonts/ttf/IRANSansWeb.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/eot/IRANSans_Medium.eot');
    src: url('../fonts/eot/IRANSans_Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
         url('../fonts/woff/IRANSansWeb_Medium.woff') format('woff'),
         url('../fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/eot/IRANSansWeb_Bold.eot');
    src: url('../fonts/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
         url('../fonts/woff/IRANSansWeb_Bold.woff') format('woff'),
         url('../fonts/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}


/* ۱. فونت پایه ی صفحه. این فایل بعد از بقیه ی Css ها بار می شود، پس بدون important هم برنده است. */
html,
body {
    font-family: 'IRANSans', BYekan, Tahoma, Geneva, sans-serif;
}

/* ۲. اجزایی که خودشان فونت جداگانه اعلام کرده اند و باید از body ارث ببرند */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.close,
.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button,
.chosen-container {
    font-family: inherit;
}

/* ۳. تقویم در adm-Master.css با important نوشته شده است */
.ui-datepicker {
    font-family: 'IRANSans', BYekan, Tahoma, Geneva, sans-serif !important;
}

/* ۴. فونت هایی که مستقیم در markup نوشته شده اند (Font-Names="tahoma" و style="font-family:...") */
[style*="font-family"] {
    font-family: 'IRANSans', BYekan, Tahoma, Geneva, sans-serif !important;
}

/* ۵. آیکون ها فونت خودشان را نگه دارند */
.glyphicon {
    font-family: 'Glyphicons Halflings' !important;
}
