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

Материал Psylab.info - энциклопедии психодиагностики
Перейти к: навигация, поиск
м
м
Строка 85: Строка 85:
 
span.citation:target {  
 
span.citation:target {  
 
     background-color: #DEF;
 
     background-color: #DEF;
}
 
 
/* Оформление информационных блоков */
 
#information {
 
    border: 1px solid #D5D9E6;
 
    background: #F4FBFF;
 
    vertical-align: middle;
 
}
 
 
#warning {
 
    border: 1px solid #AAAAAA;
 
    background: #FFCECE;
 
    vertical-align: middle;
 
 
}
 
}
  
Строка 117: Строка 104:
 
/* {{mbox}} */
 
/* {{mbox}} */
 
table.mbox {
 
table.mbox {
      width: auto;
+
    width: auto;
      margin: 0 10%;
+
    margin: 0 10%;
      border-collapse: collapse;
+
    border-collapse: collapse;
      background:#FBFBFB;
+
    background:#FBFBFB;
      border: 1px solid #aaa;
+
    border: 1px solid #aaa;
      border-left: 10px solid #1E90FF
+
    border-left: 10px solid #1E90FF
 
}
 
}
  
 
table.mbox th, table.mbox td {
 
table.mbox th, table.mbox td {
      padding: 0.25em 0.5em;
+
    padding: 0.25em 0.5em;
 
}
 
}
  
 
table.mbox td.mbox-widthhack {
 
table.mbox td.mbox-widthhack {
      padding: 0;
+
    padding: 0;
 
}
 
}
  
 
table.mbox td.mbox-text {
 
table.mbox td.mbox-text {
      width:100%;
+
    width:100%;
 
}
 
}
  
 
table.mbox td.mbox-text .mbox-text-small {
 
table.mbox td.mbox-text .mbox-text-small {
      font-size:smaller;
+
    font-size:smaller;
 
}
 
}
  
 
table.mbox td.mbox-image {
 
table.mbox td.mbox-image {
      width: 52px;
+
    width: 52px;
      padding: 2px 0 2px 0.5em;
+
    padding: 2px 0 2px 0.5em;
      text-align: center;
+
    text-align: center;
 
}
 
}
 
  
 
table.mbox td.mbox-imageright {
 
table.mbox td.mbox-imageright {
      width: 52px;
+
    width: 52px;
      padding: 2px 4px 2px 0;
+
    padding: 2px 4px 2px 0;
      text-align: center;
+
    text-align: center;
 
}
 
}
 
  
 
table.mbox td.mbox-image div,table.mbox td.mbox-imageright div {width:52px}
 
table.mbox td.mbox-image div,table.mbox td.mbox-imageright div {width:52px}
 
  
 
/* Фикс для изображений разной ширины */
 
/* Фикс для изображений разной ширины */
 
table.mbox-warning,table.mbox-serious {
 
table.mbox-warning,table.mbox-serious {
      border-left: 10px solid #B22222
+
    border-left: 10px solid #B22222
 
}
 
}
 
 
 
table.mbox-content {
 
table.mbox-content {
      border-left: 10px solid #F28500
+
    border-left: 10px solid #F28500
 
}
 
}
 
  
 
table.mbox-style {
 
table.mbox-style {
      border-left: 10px solid #F4C430
+
    border-left: 10px solid #F4C430
 
}
 
}
 
  
 
table.mbox-good {
 
table.mbox-good {
      border-left: 10px solid #66CC44
+
    border-left: 10px solid #66CC44
 
}
 
}
 
  
 
table.mbox-discussion {
 
table.mbox-discussion {
      border-left: 10px solid #339966
+
    border-left: 10px solid #339966
 
}
 
}
 
  
 
table.mbox-notice {
 
table.mbox-notice {
      border-left: 10px solid #1E90ff
+
    border-left: 10px solid #1E90ff
 
}
 
}
 
  
 
table.mbox-merge {
 
table.mbox-merge {
      border-left: 10px solid #9932CC
+
    border-left: 10px solid #9932CC
 
}
 
}
 
  
 
table.mbox.mbox-mini {
 
table.mbox.mbox-mini {
      float: right;
+
    float: right;
      clear: right;
+
    clear: right;
      margin: 0 0 0.5em 1em;
+
    margin: 0 0 0.5em 1em;
      width: 20%;
+
    width: 20%;
 
}
 
}

Версия 06:35, 23 января 2014

/* Интерфейс */

body.page-Главная_страница #t-cite,
body.page-Главная_страница #footer-info-lastmod,
body.page-Главная_страница #siteSub,
body.page-Главная_страница #contentSub,
body.page-Главная_страница h1.firstHeading,
body.page-Главная_страница #siteNotice,
body.page-Главная_страница #ca-delete {
    display: none;
}

body.ns-talk #t-cite,
body.ns-talk #siteSub,
body.ns-talk #contentSub {
    display: none;
}

body.ns-4 #t-cite,
body.ns-4 #footer-info-lastmod,
body.ns-4 #siteSub,
body.ns-4 #contentSub {
    display: none;
}

body.ns-6 #t-cite,
body.ns-6 #footer-info-lastmod,
body.ns-6 #siteSub,
body.ns-6 #contentSub {
    display: none;
}

body.ns-8 #t-cite,
body.ns-8 #siteSub,
body.ns-8 #contentSub {
    display: none;
}

body.ns-special #siteSub,
body.ns-special #contentSub,
body.ns-special #siteNotice {
    display: none;
}

#siteSub {
    display: inline;
    font-size: 92%;
    font-weight: normal;
}

/* Sitenotice */
#siteNotice {
    display: none;
}

body.ns-0 #siteNotice {
    display: block;
}

/* Жирный шрифт для кнопки «Записать страницу» */
#wpSave {
    font-weight: bold;
}

/* Margins for <ol> and <ul> */
div#content ol, div#content ul,
div#mw_content ol, div#mw_content ul {
    margin-bottom: 0.5em;
}

/* Make the list of references smaller */
ol.references,
div.reflist,
div.refbegin {
    font-size: 90%;            /* Default font-size */
}
div.reflist ol.references {
    font-size: 100%;           /* Reset font-size when nested in div.reflist */
    list-style-type: inherit;  /* Enable custom list style types */
}

/* Highlight clicked reference in blue to help navigation */
ol.references li:target,
sup.reference:target,
span.citation:target { 
    background-color: #DEF;
}

/* Оформление таблиц */
table.wikitable, table.prettytable {
    margin:1em 1em 1em 0; background:#FFFFFF; border:1px solid #a3bfb1; border-collapse:collapse
}
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
    border:1px solid #a3bfb1; padding:0.2em
}
table.wikitable caption, table.prettytable caption {
    margin-left:inherit; margin-right:inherit; font-size:larger; font-weight:bold
}
table.prettytable th {
    background:#F4FBFF;
}

/* {{mbox}} */
table.mbox {
    width: auto;
    margin: 0 10%;
    border-collapse: collapse;
    background:#FBFBFB;
    border: 1px solid #aaa;
    border-left: 10px solid #1E90FF
}

table.mbox th, table.mbox td {
    padding: 0.25em 0.5em;
}

table.mbox td.mbox-widthhack {
    padding: 0;
}

table.mbox td.mbox-text {
    width:100%;
}

table.mbox td.mbox-text .mbox-text-small {
    font-size:smaller;
}

table.mbox td.mbox-image {
    width: 52px;
    padding: 2px 0 2px 0.5em;
    text-align: center;
}

table.mbox td.mbox-imageright {
    width: 52px;
    padding: 2px 4px 2px 0;
    text-align: center;
}

table.mbox td.mbox-image div,table.mbox td.mbox-imageright div {width:52px}

/* Фикс для изображений разной ширины */
table.mbox-warning,table.mbox-serious {
    border-left: 10px solid #B22222
}
table.mbox-content {
    border-left: 10px solid #F28500
}

table.mbox-style {
    border-left: 10px solid #F4C430
}

table.mbox-good {
    border-left: 10px solid #66CC44
}

table.mbox-discussion {
    border-left: 10px solid #339966
}

table.mbox-notice {
    border-left: 10px solid #1E90ff
}

table.mbox-merge {
    border-left: 10px solid #9932CC
}

table.mbox.mbox-mini {
    float: right;
    clear: right;
    margin: 0 0 0.5em 1em;
    width: 20%;
}