MediaWiki:Common.css

Материал из ЭНЭ
Перейти к: навигация, поиск

Замечание. Возможно, после сохранения вам придётся очистить кэш своего браузера, чтобы увидеть изменения.

  • Firefox / Safari: Удерживая клавишу Shift, нажмите на панели инструментов Обновить либо нажмите Ctrl-F5 или Ctrl-R (⌘-R на Mac)
  • Google Chrome: Нажмите Ctrl-Shift-R (⌘-Shift-R на Mac)
  • Internet Explorer: Удерживая Ctrl, нажмите Обновить либо нажмите Ctrl-F5
  • Opera: Выберите очистку кэша в меню Инструменты → Настройки
/*
<source lang="css">
*/
 
a { text-decoration: none }
 
/* Donations link to be uncommented during fundraising drives  */
#siteNotice {
    margin-top:5px;
    padding-left: 4px;
    font-style: italic;
    text-align: center;
}
 
/* #fundraising {
 text-align: center;
 border: 1px solid gray;
 padding: 5px;
}
*/
 
h1.firstHeading {
  padding-top: .7em;
}
 
#p-cactions { width: 80%; }
    /* patch to prevent vertical stacking of tabs
    at top of page in IE6 at resolutions of 800x600;
    this stacking occured in main namespace pages only
    for sysops, as they have the additional "protect"
    and "delete" tabs at the top of the page;
    original width before patch was 76%;
    this patch prevents stacking in main namespace pages
    but not in certain special pages,
    which have tabs that are of greater width --Lowellian */
 
/****************************/
/* BEGIN LIGHT BLUE SECTION */
/****************************/
/* Make all non-namespace pages have a light blue content area. This is done by
   setting the background color for all #content areas to light blue and then
   overriding it for any #content enclosed in a .ns-0 (main namespace). I then
   do the same for the "tab" background colors. --Lupo */
 
#content {
    background: #F8FCFF; /* a light blue */
}
 
#content div.thumb {
    border-color: white;
}
 
.ns-0 * #content {
    background: white;
}
 
.ns-100 * #content {
    background: white;
}
 
#mytabs li {
    background: #F8FCFF;
}
 
.ns-0 * #mytabs li {
    background: white;
}
 
.ns-100 * #mytabs li {
    background: white;
}
 
#mytabs li a {
    background-color: #F8FCFF;
}
 
.ns-0 * #mytabs li a {
    background-color: white;
}
 
.ns-100 * #mytabs li a {
    background-color: white;
}
 
#p-cactions li {
    background: #F8FCFF;
}
 
.ns-0 * #p-cactions li {
    background: white;
}
 
.ns-100 * #p-cactions li {
    background: white;
}
 
#p-cactions li a {
    background-color: #F8FCFF;
}
 
.ns-0 * #p-cactions li a {
    background-color: white;
}
 
.ns-100 * #p-cactions li a {
    background-color: white;
}
 
.ns-0 * #content div.thumb {
    border-color: white;
}
 
.ns-100 * #content div.thumb {
    border-color: white;
}
 
/**************************/
/* END LIGHT BLUE SECTION */
/**************************/
 
/* Display "From Wikipedia, the free encyclopedia" */
#siteSub {
    display: inline;
    font-size: 120%;
    font-weight: normal;
}
 
#bodyContent #siteSub a {
    color: #000;
    text-decoration: none;
    background-color: transparent;
    background-image: none;
    padding-right: 0;
}
 
/* Bold 'edit this page' link to encourage newcomers */
#ca-edit a { font-weight: bold !important; }
 
/* Display "User $1, you are already logged in!"
   ([[MediaWiki:Alreadyloggedin]]) in red and bold */
div.alreadyloggedin { color: red; font-weight: bold; }
 
@media print {
    /* Do not print edit link in templates using Template:Ed
       Do not print certain classes that shouldn't appear on paper */
    .editlink, .noprint, .metadata, .dablink { display: none }
}
 
/* Style for "notices" */
.notice {
    text-align: justify;
    margin: 1em 0.5em;
    padding: 0.5em;
}
 
#disambig {
    border-top: 3px double #cccccc; 
    border-bottom: 3px double #cccccc;
}
 
/* When <div class="nonumtoc"> is used on the table of contents, the ToC will display without numbers */
.nonumtoc .tocnumber { display:none; }
.nonumtoc #toc ul,
.nonumtoc .toc ul {
    line-height: 1.5em;
    list-style: none;
    margin: .3em 0 0;
    padding: 0;
}
.nonumtoc #toc ul ul, 
.nonumtoc .toc ul ul { 
    margin: 0 0 0 2em; 
}
 
/* Accessibility experiment: make diff changes not just colour-based */ 
 
.diffchange {
    font-weight: bold;
    background-color: inherit;
}
 
td.diff-addedline, td.diff-deletedline, td.diff-context {
    font-size: 85%;
    color: inherit;
}
 
/* Нижеследующий код описывает внешний вид панели специальных символов.
   Чтобы включить себе панель спецсимволов, добавьте себе в monobook.js
   следующий код: importScript('MediaWiki:Oldspecialchars.js');
*/
 
 #my-buttons {
   padding: 0.5em;
 }
 #my-buttons a {
   color: black;
   background-color: #ccddee;
   font-weight: normal;
   font-size: 13px;
   text-decoration: none;
   border: thin #006699 outset;
   padding: 0 2px 2px;
 }
 #my-buttons a:hover, #my-buttons a:active {
   background-color: #bbccdd;
   border-style: inset;
 }
 
/*
Это нужно чтобы в окошке поиска кнопки не разбивались на 2 строки
к сожалению в main.css для кнопки Go прописаны паддинги .5em.
Что хорошо для "Go" плохо для "Перейти" --st0rm
*/
#searchGoButton {
    padding-left: 0em;
    padding-right: 0em;
    font-weight: bold;
}
 
/* by SergV */
 
@media print {
   /* Bug 1583 */
   .tright {clear: right;}
   /* рамка вокруг навигационных шаблонов */
   .toccolours {border: 1px solid #aaa;}
   /* линия над списком категорий */
   #catlinks {
       border-top: 1px solid black;
       margin-top: 1em;
       clear: both;
   }
}
 
/* В меню навигации (левая колонка) над интервики не все символы заголовка
обязаны быть строчными; могут быть и заглавные */
 
.portlet#p-lang h5 { text-transform: none; }
 
/* В меню навигация делаем подчеркивания, только при
наведении мыши, как в английском разделе */
 
.portlet a {
   text-decoration: none;
}
 
.portlet a:hover {
   text-decoration: underline;
}
 
/* Скруглённые углы, для Gecko браузеров, из итальянского раздела */
.pBody {
   padding: 0.1em 0.1em;
   -moz-border-radius-topright: 0.5em;
}
#p-cactions ul li, #p-cactions ul li a {  
  -moz-border-radius-topright: 0.5em;
  -moz-border-radius-topleft: 0.5em;
}
#content {
  -moz-border-radius-topleft: 0.5em;
}
 
/* Don't display some stuff on the main page */
body.page-Заглавная_страница #t-cite,
body.page-Заглавная_страница #lastmod, 
body.page-Заглавная_страница #siteSub, 
body.page-Заглавная_страница #contentSub, 
body.page-Заглавная_страница h1.firstHeading {
  display: none !important;
}
 
/* На время разработки заглавной */
body.page-Summary_mainpage #t-cite,
body.page-Summary_mainpage #lastmod, 
body.page-Summary_mainpage #siteSub, 
body.page-Summary_mainpage #contentSub, 
body.page-Summary_mainpage h1.firstHeading {
  display: none !important;
}
 
/* Display "From Wikipedia, the free encyclopedia" */
#siteSub {
    display: inline;
    font-size: 92%;
    font-weight: normal;
}
 
/* для редактирования нулевой секции */
.editsection { float: right; margin-left: 5px; }
 
/* для вставки кратких описаний изменений, из польской Вики*/
/* powyższe tylko dla zgodności wstecznej */
#userSummaryButtonsA a {
    background: #D8F5FF;
    border: 1px solid #B2DEF8;
    padding: 0px 2px;
    margin: 2px;
    cursor: pointer;
    font-size: 80%;
    line-height: 17px;
    color: #808080;
}
 
#userSummaryButtonsA a:hover {
    background: #B1EBFF;
    border: 1px solid #64BDF0;
    text-decoration:none;
    color:#000000;
}
 
/* Избранные интервики как в английской Википедии */
 
.portlet li {
  list-style-image: url("http://wiki.laser.ru/images/1/18/Monobook-bullet.png");
}
 
li.FA {
  list-style-image: url("http://wiki.laser.ru/images/d/d4/Monobook-bullet-star.png");
}
 
 
/* Тестовое решение проблемы с белыми рамками у thumbnail'ов
*/
 
div.tleft, div.tright, div.tnone
{
    border: none; /* Убираем рамки */
    display: inline;
}
 
div.tleft
{
    margin: 0.5em 1.9em 1.3em 0;
}
 
div.tright
{
    margin: 0.5em 0 1.3em 1.4em;
}
 
.TablePager_nav a { text-decoration: none; }
.TablePager { border-collapse: collapse; }
/* .TablePager { width: 200; } */
.TablePager { min-width:20%; } 
.TablePager, .TablePager td, .TablePager th {
        border: 0.15em solid #777777;
        padding: 0 0.15em 0 0.15em;
}
.TablePager th { background-color: #eeeeff }
.TablePager td { background-color: #ffffff }
.TablePager tr:hover td { background-color: #eeeeff }
 
/*
</source>
 
*/