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

از NOSA Wiki
پرش به ناوبری پرش به جستجو
 
(۲۲ نسخهٔ میانیِ همین کاربر نمایش داده نشده است)
سطر ۱: سطر ۱:
/* CSS placed here will be applied to all skins */
+
@font-face {
 
+
    font-family: NovinWeb;
body.page-Main_Page h1.firstHeading { display:none; }
+
    src: url('fonts/Novin/NovinWeb.eot');
 
+
    src: url('fonts/Novin/NovinWeb.eot?#iefix') format('embedded-opentype'),
/* even and odd in tables*/
+
      url('fonts/Novin/NovinWeb.woff') format('woff'),
smwtable.row-even {background-color:#FFF;}
+
      url('fonts/Novin/NovinWeb.ttf') format('truetype');
smwtable.row-odd {background-color:#CDE6EA;}
+
     font-weight: normal;
 
 
@media print {
 
.noprint {
 
     display:none;
 
  }
 
 
}
 
}
  
@media only screen {
+
@font-face {
.hide {
+
     font-family: Vazir;
     display:none;
+
     src: url('fonts/Vazir/Farsi-Digits/Vazir-FD.eot');
  }
+
     src: url('fonts/Vazir/Farsi-Digits/Vazir-FD.eot?#iefix') format('embedded-opentype'),
}
+
      url('fonts/Vazir/Farsi-Digits/Vazir-FD.woff') format('woff'),
 
+
      url('fonts/Vazir/Farsi-Digits/Vazir-FD.ttf') format('truetype');
/* Change the external link icon to an Adobe icon for all PDF files
 
  in browsers that support these CSS selectors, like Mozilla and Opera */
 
div#content a[href$=".pdf"].external,
 
div#content a[href*=".pdf?"].external,
 
div#content a[href*=".pdf#"].external,
 
div#content a[href$=".PDF"].external,
 
div#content a[href*=".PDF?"].external,
 
div#content a[href*=".PDF#"].external,
 
div#mw_content a[href$=".pdf"].external,
 
div#mw_content a[href*=".pdf?"].external,
 
div#mw_content a[href*=".pdf#"].external,
 
div#mw_content a[href$=".PDF"].external,
 
div#mw_content a[href*=".PDF?"].external,
 
div#mw_content a[href*=".PDF#"].external {
 
     background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
 
     /* @noflip */
 
    padding-right: 18px;
 
}
 
 
 
a.new {
 
    color: #ba0000;
 
}
 
 
 
 
 
.hiddenStructure {display: none}
 
 
 
.if {display: none}
 
 
 
 
 
/* wikitable/prettytable class for skinning normal tables */
 
 
 
table.wikitable,
 
table.prettytable {
 
  margin: 1em 1em 1em 0;
 
  background: #f9f9f9;
 
  border: 1px #aaaaaa solid;
 
  border-collapse: collapse;
 
}
 
 
 
table.wikitable th, table.wikitable td,
 
table.prettytable th, table.prettytable td {
 
  border: 1px #aaaaaa solid;
 
  padding: 0.2em;
 
}
 
 
 
table.wikitable th,
 
table.prettytable th {
 
  background: #f2f2f2;
 
  text-align: center;
 
}
 
 
 
table.wikitable caption,
 
table.prettytable caption {
 
  margin-left: inherit;
 
  margin-right: inherit;
 
}
 
 
 
.allpagesredirect {
 
  font-style: italic;
 
}
 
 
 
/* Infobox template style */
 
 
 
.infobox {
 
  border: 1px solid #aaaaaa;
 
  background-color: #f9f9f9;
 
  color: black;
 
  margin-bottom: 0.5em;
 
  margin-left: 1em;
 
  padding: 0.2em;
 
  float: right;
 
  clear: right;
 
}
 
.infobox td,
 
.infobox th {
 
  vertical-align: top;
 
}
 
.infobox caption {
 
  font-size: larger;
 
  margin-left: inherit;
 
}
 
.infobox.bordered {
 
  border-collapse: collapse;
 
}
 
.infobox.bordered td,
 
.infobox.bordered th {
 
  border: 1px solid #aaaaaa;
 
}
 
.infobox.bordered .borderless td,
 
.infobox.bordered .borderless th {
 
  border: 0;
 
}
 
 
 
.infobox.sisterproject {
 
  width: 20em;
 
  font-size: 90%;
 
}
 
 
 
table.collapsed tr.collapsible {
 
        display: none;
 
}
 
 
.collapseButton {                /* 'show'/'hide' buttons created dynamically by the              */
 
        float: right;              /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
 
        font-weight: normal;        /* are styled here so they can be customised.              */
 
        text-align: right;
 
        width: auto;
 
 
 
}
 
 
 
/* Default styling for Navbar template */
 
.navbar {
 
    display: inline;
 
    font-size: 88%;
 
 
     font-weight: normal;
 
     font-weight: normal;
 
}
 
}
.navbar ul {
+
    display: inline;
+
@font-face {
    white-space: nowrap;
+
     font-family: Vazir-Bold;
}
+
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Bold-FD.eot');
.navbar li {
+
     src: url('fonts/Vazir/Farsi-Digits/Vazir-Bold-FD.eot?#iefix') format('embedded-opentype'),
     word-spacing: -0.125em;
+
      url('fonts/Vazir/Farsi-Digits/Vazir-Bold-FD.woff') format('woff'),
}
+
      url('fonts/Vazir/Farsi-Digits/Vazir-Bold-FD.ttf') format('truetype');
/* Navbar styling when nested in navbox */
+
     font-weight: bold;
.navbox .navbar {
 
     display: block;
 
    font-size: 100%;
 
}
 
.navbox-title .navbar {
 
    /* @noflip */
 
    float: left;
 
    /* @noflip */
 
    text-align: left;
 
    /* @noflip */
 
    margin-right: 0.5em;
 
     width: 6em;
 
 
}
 
}
  
/* Default style for navigation boxes */
+
@font-face {
.navbox {                    /* Navbox container style */
+
     font-family: Vazir-Light;
    border: 1px solid #aaa;
+
     src: url('fonts/Vazir/Farsi-Digits/Vazir-Light-FD.eot');
    width: 100%;
+
     src: url('fonts/Vazir/Farsi-Digits/Vazir-Light-FD.eot?#iefix') format('embedded-opentype'),
    margin: auto;
+
      url('fonts/Vazir/Farsi-Digits/Vazir-Light-FD.woff') format('woff'),
    clear: both;
+
       url('fonts/Vazir/Farsi-Digits/Vazir-Light-FD.ttf') format('truetype');
    font-size: 88%;
+
    font-weight: 300;
    text-align: center;
 
    padding: 1px;
 
}
 
.navbox-inner,
 
.navbox-subgroup {
 
     width: 100%;
 
}
 
.navbox th,
 
.navbox-title,
 
.navbox-abovebelow {
 
    text-align: center;      /* Title and above/below styles */
 
    padding-left: 1em;
 
     padding-right: 1em;
 
}
 
th.navbox-group {            /* Group style */
 
    white-space: nowrap;
 
    /* @noflip */
 
    text-align: right;
 
}
 
.navbox,
 
.navbox-subgroup {
 
    background: #fdfdfd;      /* Background color */
 
}
 
.navbox-list {
 
    border-color: #fdfdfd;   /* Must match background color */
 
}
 
.navbox th,
 
.navbox-title {
 
     background: #ccccff;      /* Level 1 color */
 
}
 
.navbox-abovebelow,
 
th.navbox-group,
 
.navbox-subgroup .navbox-title {
 
    background: #ddddff;      /* Level 2 color */
 
}
 
.navbox-subgroup .navbox-group,
 
.navbox-subgroup .navbox-abovebelow {
 
    background: #e6e6ff;      /* Level 3 color */
 
}
 
.navbox-even {
 
    background: #f7f7f7;      /* Even row striping */
 
}
 
.navbox-odd {
 
    background: transparent;  /* Odd row striping */
 
}
 
table.navbox + table.navbox {  /* Single pixel border between adjacent navboxes */
 
    margin-top: -1px;          /* (doesn't work for IE6, but that's okay)       */
 
}
 
.navbox .hlist td dl,
 
.navbox .hlist td ol,
 
.navbox .hlist td ul,
 
.navbox td.hlist dl,
 
.navbox td.hlist ol,
 
.navbox td.hlist ul {
 
    padding: 0.125em 0;      /* Adjust hlist padding in navboxes */
 
}
 
.navbox .hlist dd,
 
.navbox .hlist dt,
 
.navbox .hlist li {
 
    white-space: nowrap;      /* Nowrap list items in navboxes */
 
    white-space: normal !ie;  /* IE < 8 no-wraps entire list, so disable it */
 
}
 
.navbox .hlist dd dl,
 
.navbox .hlist dt dl,
 
.navbox .hlist li ol,
 
.navbox .hlist li ul {
 
    white-space: normal;      /* But allow parent list items to be wrapped */
 
}
 
ol + table.navbox,
 
ul + table.navbox {
 
    margin-top: 0.5em;       /* Prevent lists from clinging to navboxes */
 
}
 
 
 
body.page-Main_Page h1.firstHeading { display:none; } /* Hide heading on home page for title */
 
body.page-Main_Page #p-actions { display: none !important; } /* Hide distracting tab button on home page */
 
body.page-Main_Page #ca-talk { display: none !important; } /* Hide distracting tab button on home page */
 
body.page-Main_Page #ca-view { display: none !important; } /* Hide distracting tab button on home page */
 
body.page-Main_Page #ca-edit { display: none !important; } /* Hide distracting tab button on home page */
 
body.page-Main_Page #ca-history { display: none !important; } /* Hide distracting tab button on home page */
 
body.page-Main_Page #p-cactions { display: none !important; } /* Hide distracting tab button on home page */
 
body.page-Main_Page #ca-nstab-main { display: none !important; } /* Hide distracting tab button on home page */
 
body.page-Main_Page #ca-viewsource { display: none !important; } /* Hide distracting tab button on home page */
 
 
 
/* CATEGORY LINK START
 
* Created by http://mediawiki.org/User:Kyle_van_der_meer
 
* Used for Version 2 for non-table layout.
 
*/
 
.category_link{
 
v-align:top;
 
display:inline-block;
 
width:144px;          /*Default width part 2*/
 
}
 
 
.category_link a{
 
border:1px solid #333; /*Default dark color*/
 
color:#fff;            /*Default Light color*/
 
background-color:#333; /*Default dark color*/
 
padding:2px;
 
line-height:1;
 
display:block;
 
}
 
 
.category_link a:hover{
 
border:1px solid #333; /*Default dark color*/
 
color:#333;            /*Default dark color*/
 
background-color:#eee; /*Default light color*/
 
}
 
/*CATEGORY LINK END*/
 
 
 
/**
 
* Improving the wiki with better navigation, this is used for navigation boxes at the end of a page.
 
* By user:ElgerStitch, see template:navigationBoxBegin for documentation and examples.
 
*/
 
.navigationBox {
 
  border: 1px solid silver;
 
  margin: 10px;
 
  width: 100%;
 
  font-size: 12px;
 
}
 
 
 
.navigationBox .header {
 
  font-size: 14px;
 
  text-align: center;
 
  background-color: #E0E9E9;
 
  padding: 2px;
 
  border-bottom: 1px solid #DDDDD;
 
}
 
 
 
.navigationBox .header .left {
 
  float: left;
 
  font-size:10px;
 
  margin-left: 5px;
 
  margin-top: 3px;
 
}
 
 
 
.navigationBox .header .right {
 
  float: right;
 
  font-size: 10px;
 
  margin-right: 5px;
 
  margin-top: 3px;
 
}
 
 
 
.navigationBox .category {
 
  background-color: #EDF2F2;
 
  width: 129px;
 
  text-align: right;
 
  padding-right: 8px;
 
}
 
 
 
.navigationBox tr:nth-child(odd) {
 
  background-color: #F4F7F7;
 
}
 
 
 
.navigationBox .neighbors {
 
  border-top: 1px solid silver;
 
  text-align: center;
 
  background-color: #F4F7F7; padding: 2px;
 
}
 
 
 
.navigationBox li {
 
  display: inline-block;
 
  margin:0;
 
}
 
 
 
.navigationBox li:after {
 
  content: " · ";
 
  font-weight: bold;
 
  margin-left: 5px;
 
  margin-right: 5px;
 
}
 
 
 
.navigationBox li:last-child:after {
 
  content: none;
 
}
 
 
 
.navigationBox ul {
 
  margin: 2px; padding: 0px;
 
 
}
 
}
  
.navigationBox .header abbr a {
+
@font-face {
  background: none !important;
+
    font-family: Vazir-Medium;
  padding: 0 !important;
+
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Medium-FD.eot');
  color: #002bb8 !important;
+
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Medium-FD.eot?#iefix') format('embedded-opentype'),
 +
      url('fonts/Vazir/Farsi-Digits/Vazir-Medium-FD.woff') format('woff'),
 +
      url('fonts/Vazir/Farsi-Digits/Vazir-Medium-FD.ttf') format('truetype');
 
}
 
}
  
.navigationBox .mw-collapsible-toggle {
+
@font-face {
  font-size: 10px;
+
    font-family: Vazir-Thin;
  margin-right: 3px;
+
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Thin-FD.eot');
  margin-top: 2px;
+
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Thin-FD.eot?#iefix') format('embedded-opentype'),
 +
      url('fonts/Vazir/Farsi-Digits/Vazir-Thin-FD.woff') format('woff'),
 +
      url('fonts/Vazir/Farsi-Digits/Vazir-Thin-FD.ttf') format('truetype');
 
}
 
}
/**
 
* End navigation box.
 
*/
 
 
 
 
/**
 
* Submitted by Lachlan Barclay
 
* http://lachlanbarclay.net/2016/01/fixing-owasps-css
 
*/
 
 
/* For code examples, make any long text add a scrollbar to the code sample, not the whole window */
 
pre { overflow-x: auto; }
 
 
/* For any text that isn't broken up by a space, force it to wrap if it's too long */
 
body { word-wrap: break-word; }
 
 
/* For smaller width screens (less than 768px) */
 
@media (max-width: 767px){
 
 
/* Move the left navigation panel so it's below the content */
 
#mw-panel { position: static !important; }
 
 
/* Get rid of the margins for the content as there's no left nav now */
 
#left-navigation,#footer,#content { margin-left: 0 !important; }
 
 
/* Fix the navigation to that it fits properly on the screen */
 
#left-navigation, #right-navigation  { float: none; }
 
 
/* Move the search bar to float to the right */
 
#p-search { float: right !important; }
 
 
/* Make the search input box a bit smaller so it fits */
 
div#simpleSearch { width: 8em; }
 
  
/* two fixes for mobilized nav from FEB 10 2016 */
+
* {font-family: Vazir}
/* #mw-panel li { display: inline; }  */
+
.firstHeading {font-family: NovinWeb !important; color: #B52227; font-size: 1.5em !important;}
/* #mw-panel {width: 100% !important;} */
 
}
 
/**
 
* End CSS by Lachlan
 
*/
 

نسخهٔ کنونی تا ‏۱۹ ژوئن ۲۰۱۸، ساعت ۱۳:۲۳

@font-face {
    font-family: NovinWeb;
    src: url('fonts/Novin/NovinWeb.eot');
    src: url('fonts/Novin/NovinWeb.eot?#iefix') format('embedded-opentype'),
       url('fonts/Novin/NovinWeb.woff') format('woff'),
       url('fonts/Novin/NovinWeb.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: Vazir;
    src: url('fonts/Vazir/Farsi-Digits/Vazir-FD.eot');
    src: url('fonts/Vazir/Farsi-Digits/Vazir-FD.eot?#iefix') format('embedded-opentype'),
       url('fonts/Vazir/Farsi-Digits/Vazir-FD.woff') format('woff'),
       url('fonts/Vazir/Farsi-Digits/Vazir-FD.ttf') format('truetype');
    font-weight: normal;
}
	
@font-face {
    font-family: Vazir-Bold;
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Bold-FD.eot');
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Bold-FD.eot?#iefix') format('embedded-opentype'),
       url('fonts/Vazir/Farsi-Digits/Vazir-Bold-FD.woff') format('woff'),
       url('fonts/Vazir/Farsi-Digits/Vazir-Bold-FD.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: Vazir-Light;
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Light-FD.eot');
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Light-FD.eot?#iefix') format('embedded-opentype'),
       url('fonts/Vazir/Farsi-Digits/Vazir-Light-FD.woff') format('woff'),
       url('fonts/Vazir/Farsi-Digits/Vazir-Light-FD.ttf') format('truetype');
    font-weight: 300;
}

@font-face {
    font-family: Vazir-Medium;
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Medium-FD.eot');
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Medium-FD.eot?#iefix') format('embedded-opentype'),
       url('fonts/Vazir/Farsi-Digits/Vazir-Medium-FD.woff') format('woff'),
       url('fonts/Vazir/Farsi-Digits/Vazir-Medium-FD.ttf') format('truetype');
}

@font-face {
    font-family: Vazir-Thin;
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Thin-FD.eot');
    src: url('fonts/Vazir/Farsi-Digits/Vazir-Thin-FD.eot?#iefix') format('embedded-opentype'),
       url('fonts/Vazir/Farsi-Digits/Vazir-Thin-FD.woff') format('woff'),
       url('fonts/Vazir/Farsi-Digits/Vazir-Thin-FD.ttf') format('truetype');
}

* {font-family: Vazir}
.firstHeading {font-family: NovinWeb !important; color: #B52227; font-size: 1.5em !important;}