MediaWiki:Monobook.css — различия между версиями

Материал из roboforum.ru Wiki
Перейти к: навигация, поиск
(SyntaxHighlight_TH)
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
/*<pre>*/
+
/* begin SyntaxHighlight_TH */
/* MediaWiki:Monobook.css */
+
.hl-gutter {background-color : #CCCCCC; padding-right: 10px;}
/* Размещённый здесь CSS будет применяться к теме оформления Monobook */
+
.hl-table {border: solid 1px #000000; padding:0;}
 +
.hl-main {font-family: monospace; font-size:13px; font-weight:normal; color:#999999}
  
/* Don't display some stuff on the main page */
+
.hl-default { color: #000000; }
body.page-Заглавная_страница #t-cite,
+
.hl-code { color: #000; font-weight: bold; }
body.page-Заглавная_страница #lastmod,
+
.hl-brackets { color: #009966; font-weight:bold }
body.page-Заглавная_страница #siteSub,
+
.hl-comment, .hl-mlcomment { color: #660; font-weight:normal; font-style: italic;}
body.page-Заглавная_страница #contentSub,
+
.hl-quotes { color: #00007F; }
body.page-Заглавная_страница h1.firstHeading {
+
.hl-string { color: #7F0000; font-weight:bold }
  display: none !important;
+
.hl-identifier { color: #000000; }
}
+
.hl-reserved { color: #7F007F; font-weight:bold;}
 +
.hl-inlinedoc { color: #0000FF; }
 +
.hl-var { color: #0066FF; }
 +
.hl-url { color: #FF0000; }
 +
.hl-special { color: #0000FF;  }
 +
.hl-number { color: #006600; font-weight:bold; }
 +
.hl-inlinetags { color: #FF0000; font-weight:bold; }
 +
.hl-builtin    { color:#996633; }
 +
.hl-prepro    { color:#0000FF; font-style:italic; font-weight: bold; }
 +
.hl-types    { color:#000066; font-weight:bold;}
 +
/* end SyntaxHighlight_TH */
  
 
+
#siteSub { /* "From Wikipedia, the free encyclopedia" */
/* Donations link to be uncommented during fundraising drives  */
+
  display: inline;  
#siteNotice {
+
  font-size: 92%;
    margin-top:5px;
+
  font-weight: normal;
    padding-left: 4px;
 
    font-style: italic;
 
    text-align: center;
 
 
}
 
}
  
/* #fundraising {
+
#toc {margin-top: 0.5em}
text-align: center;
 
border: 1px solid gray;
 
padding: 5px;
 
}
 
*/
 
  
h1.firstHeading {
+
#ca-edit a {font-weight: bold} /* encourage newcomers */
  padding-top: .7em;
 
}
 
  
#p-cactions { width: 80%; }
+
/* Light blue background except on articles and portals; need 32bit color to see difference */
    /* patch to prevent vertical stacking of tabs
+
#content, #p-cactions li a {background: #F8FCFF}
    at top of page in IE6 at resolutions of 800x600;
+
.ns-0 #content, .ns-100  #content,
    this stacking occured in main namespace pages only
+
.ns-0 #p-cactions li a, .ns-100 #p-cactions li a {background-color: white}
    for sysops, as they have the additional "protect"
+
div.thumb {border-color: #F8FCFF}
    and "delete" tabs at the top of the page;
+
.ns-0 div.thumb, .ns-100 div.thumb {border-color: white}
    original width before patch was 76%;
+
form table {background: transparent}
    this patch prevents stacking in main namespace pages
 
    but not in certain special pages,
 
    which have tabs that are of greater width --Lowellian */
 
  
/****************************/
+
/* Hide some stuff on the main page */
/* BEGIN LIGHT BLUE SECTION */
+
body.page-Заглавная_страница #t-cite,
/****************************/
+
body.page-Заглавная_страница #lastmod,
/* Make all non-namespace pages have a light blue content area. This is done by
+
body.page-Заглавная_страница #siteSub,
  setting the background color for all #content areas to light blue and then
+
body.page-Заглавная_страница #contentSub,
  overriding it for any #content enclosed in a .ns-0 (main namespace). I then
+
body.page-Заглавная_страница h1.firstHeading {
  do the same for the "tab" background colors. --Lupo */
+
  display: none !important
 
 
#content {
 
    background: #F8FCFF; /* a light blue */
 
}
 
 
 
#content div.thumb {
 
    border-color: #F8FCFF;
 
}
 
 
 
.ns-0 * #content {
 
    background: white;
 
}
 
 
 
.ns-100 * #content {
 
    background: white;
 
 
}
 
}
  
#mytabs li {
+
/* Smaller "Перейти" (Go) button, so buttons fit on one line */
    background: #F8FCFF;
+
#searchGoButton {padding: 0}
}
 
  
.ns-0 * #mytabs li {
+
.portlet li { /* slightly different bullet */
    background: white;
+
  list-style-image: url('http://upload.wikimedia.org/wikipedia/en/1/18/Monobook-bullet.png')
 
}
 
}
 
+
.portlet li.FA { /* featured interwiki */
.ns-100 * #mytabs li {
+
  list-style-image: url('http://upload.wikimedia.org/wikipedia/en/d/d4/Monobook-bullet-star.png')
    background: white;
 
 
}
 
}
  
#mytabs li a {
+
/* Gecko rounded corners */
    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: 92%;
 
    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;
 
}
 
 
 
 
 
/* 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;
 
}
 
 
 
/* extra buttons for edit dialog (from bg:)*/
 
 
 
#my-buttons {
 
  padding: 0.5em;
 
}
 
#my-buttons a {
 
  color: black;
 
  background-color: #ccddee;
 
  font-weight: bold;
 
  font-size: 0.9em;
 
  text-decoration: none;
 
  border: thin #006699 outset;
 
  padding: 0 0.1em 0.1em 0.1em;
 
}
 
#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 a {
 
  text-decoration: none;
 
}
 
 
 
.portlet a:hover {
 
  text-decoration: underline;
 
}
 
 
 
/* Скруглённые углы, для Gecko браузеров, из итальянского раздела */
 
 
.pBody {
 
.pBody {
  padding: 0.1em 0.1em;
+
  -moz-border-radius-topright: 0.5em
  -moz-border-radius-topright: 0.5em;
 
 
}
 
}
#p-cactions ul li, #p-cactions ul li a {
+
#p-cactions ul li, #p-cactions ul li a {
 
   -moz-border-radius-topright: 0.5em;
 
   -moz-border-radius-topright: 0.5em;
 
   -moz-border-radius-topleft: 0.5em;
 
   -moz-border-radius-topleft: 0.5em;
 
}
 
}
 
#content {
 
#content {
   -moz-border-radius-topleft: 0.5em;
+
   -moz-border-radius-topleft: 0.5em
}
 
 
 
/* для редактирования нулевой секции */
 
.editsection { float: right; margin-left: 5px; }
 
 
 
/* для вставки кратких описаний изменений, из польской Вики*/
 
/* powyższe tylko dla zgodności wstecznej */
 
#userSummaryButtonsA a {
 
background: #cfc;
 
border: 1px dotted #090;
 
padding: 0px 2px;
 
margin: 2px;
 
cursor: pointer;
 
font-size: 80%;
 
line-height: 17px;
 
color: black;
 
}
 
 
 
#userSummaryButtonsA a:hover {
 
background: #bfb;
 
border: 1px solid #9c9;
 
text-decoration:none;
 
}
 
 
 
/* Избранные интервики как в английской Википедии */
 
 
 
.portlet li {
 
  list-style-image: url("http://upload.wikimedia.org/wikipedia/en/1/18/Monobook-bullet.png");
 
}
 
 
 
li.FA {
 
  list-style-image: url("http://upload.wikimedia.org/wikipedia/en/d/d4/Monobook-bullet-star.png");
 
 
}
 
}
 
/* стили таблиц */
 
table.simple                      {border-color: rgb(170,170,170); border-collapse: collapse;}
 
table.simple th, table.simple td  {border-color: rgb(170,170,170); padding-left: 0.2em; padding-right: 0.2em;}
 
 
table.standard,    table.wide    {border:1px solid rgb(170,170,170); border-collapse: collapse;}
 
table.standard th, table.wide th  {border:1px solid rgb(170,170,170); padding-left: 0.2em; padding-right: 0.2em; background-color: #EEEEFF;}
 
table.standard td, table.wide td  {border:1px solid rgb(170,170,170); padding-left: 0.2em; padding-right: 0.2em;}
 
table.wide {width: 100%;}
 
 
table.tiles    {border-collapse: separate; border-spacing: 2}
 
table.tiles th  {padding-left: 0.2em; padding-right: 0.2em; background-color: #EEEEFF;}
 
table.tiles td  {padding-left: 0.2em; padding-right: 0.2em; background-color: #F0F0F0;}
 
 
tr.highlight th {background-color: #EEEEFF;}
 
tr.highlight td {background-color: #FFFFEE;}
 
tr.bright th    {background-color: #CCCCFF;}
 
tr.bright td    {background-color: #FFEECC;}
 
tr.shadow th    {background-color: #F0F0F0;}
 
tr.shadow td    {background-color: #F0F0F0;}
 
tr.dark th      {background-color: #CCCCCC;}
 
tr.dark td      {background-color: #CCCCCC;}
 
 
table th.highlight    {background-color: #EEEEFF;}
 
table td.highlight    {background-color: #FFFFEE;}
 
table th.bright      {background-color: #CCCCFF;}
 
table td.bright      {background-color: #FFEECC;}
 
table th.shadow      {background-color: #F0F0F0;}
 
table td.shadow      {background-color: #F0F0F0;}
 
table th.dark        {background-color: #CCCCCC;}
 
table td.dark        {background-color: #CCCCCC;}
 
 
table th.transparent  {background-color: transparent;}
 
table td.transparent  {background-color: transparent;}
 
 
/* стили TreeView */
 
.tree-view,
 
.tree-view tr.tree-row { background:none; margin:0; padding:0; }
 
.tree-view tr.tree-row td,
 
.tree-view tr.tree-row td a { margin:0; padding:0; font-size:8pt; white-space:nowrap; }
 
 
/* Autor template & stub */
 
#stub,
 
div.autor-template { background-color: #F9F9F9; border: 1px solid #AAAAAA; clear: both; margin-top: 1em; padding: 5px;}
 
 
/*</pre>*/
 

Текущая версия на 16:56, 11 декабря 2008

/* begin SyntaxHighlight_TH */
 .hl-gutter {background-color : #CCCCCC; padding-right: 10px;}
 .hl-table {border: solid 1px #000000; padding:0;}
 .hl-main {font-family: monospace; font-size:13px; font-weight:normal; color:#999999}

 .hl-default { color: #000000; }
 .hl-code { color: #000; font-weight: bold; }
 .hl-brackets { color: #009966; font-weight:bold }
 .hl-comment, .hl-mlcomment { color: #660; font-weight:normal; font-style: italic;}
 .hl-quotes { color: #00007F; }
 .hl-string { color: #7F0000; font-weight:bold }
 .hl-identifier { color: #000000; }
 .hl-reserved { color: #7F007F; font-weight:bold;}
 .hl-inlinedoc { color: #0000FF; }
 .hl-var { color: #0066FF; }
 .hl-url { color: #FF0000; }
 .hl-special { color: #0000FF;  }
 .hl-number { color: #006600; font-weight:bold; }
 .hl-inlinetags { color: #FF0000; font-weight:bold; }
 .hl-builtin    { color:#996633; }
 .hl-prepro    { color:#0000FF; font-style:italic; font-weight: bold; }
 .hl-types     { color:#000066; font-weight:bold;}
/* end SyntaxHighlight_TH */

#siteSub { /* "From Wikipedia, the free encyclopedia" */
  display: inline; 
  font-size: 92%;  
  font-weight: normal;
}

#toc {margin-top: 0.5em}

#ca-edit a {font-weight: bold} /* encourage newcomers */

/* Light blue background except on articles and portals; need 32bit color to see difference */
#content, #p-cactions li a {background: #F8FCFF}
.ns-0 #content, .ns-100  #content, 
.ns-0 #p-cactions li a, .ns-100 #p-cactions li a {background-color: white}
div.thumb {border-color: #F8FCFF}
.ns-0 div.thumb, .ns-100 div.thumb {border-color: white}
form table {background: transparent}

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

/* Smaller "Перейти" (Go) button, so buttons fit on one line */
#searchGoButton {padding: 0}

.portlet li { /* slightly different bullet */
  list-style-image: url('http://upload.wikimedia.org/wikipedia/en/1/18/Monobook-bullet.png')
}
.portlet li.FA { /* featured interwiki */
  list-style-image: url('http://upload.wikimedia.org/wikipedia/en/d/d4/Monobook-bullet-star.png')
}

/* Gecko rounded corners */
.pBody {
  -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
}