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

Материал из Абсурдопедии
Перейти к навигацииПерейти к поиску
(в общем, просто обновил стили таблиц из Википедии, они всё равно были взяты оттуда без изменений)
Строка 230: Строка 230:
 
table.toccolours th {background-color: #ccccff}
 
table.toccolours th {background-color: #ccccff}
  
/* [[wikipedia:ru:Википедия:Правила оформления таблиц]] */
+
/* [[wikipedia:Википедия:Оформление таблиц]] */
table.simple  {border-color: rgb(170,170,170); border-collapse: collapse}
+
.standard,
table.simple th, table.simple td {border-color: rgb(170,170,170); padding-left: 0.2em; padding-right: 0.2em}
+
.wide {
table.standard, table.wide, table.standart {border: 1px solid rgb(170,170,170);border-collapse: collapse}
+
/* For align=center tables dont use shorthand margin */
table.standard th, table.wide th, table.standart th {border: 1px solid rgb(170,170,170);padding-left: 0.2em;padding-right: 0.2em;background-color: #EEEEFF}
+
margin-top:1em;
table.standard td, table.wide td, table.standart td {border: 1px solid rgb(170,170,170);padding-left: 0.2em;padding-right: 0.2em}
+
margin-bottom:1em;
table.standard caption, table.wide caption, table.standart caption, table.tiles caption {font-weight: bold;padding-top: 0.2em;padding-bottom: 0.2em}
+
border: 1px solid #a2a9b1;
table.wide {width: 100%}
+
border-collapse: collapse;
table.tiles {border-collapse: separate;border-spacing: 2px}
+
}
table.tiles th {padding-left: 0.2em;padding-right: 0.2em;background-color: #EEEEFF}
+
.standard > tr > th,
table.tiles td {padding-left: 0.2em;padding-right: 0.2em;background-color: #F0F0F0}
+
.standard > tr > td,
tr.highlight th {background-color: #EEEEFF}
+
.standard > * > tr > th,
tr.highlight td {background-color: #FFFFEE}
+
.standard > * > tr > td,
tr.bright th {background-color: #CCCCFF}
+
.wide > tr > th,
tr.bright td {background-color: #FFEECC}
+
.wide > tr > td,
tr.shadow th {background-color: #F0F0F0}
+
.wide > * > tr > th,
tr.shadow td {background-color: #F0F0F0}
+
.wide > * > tr > td {
tr.dark th {background-color: #CCCCCC}
+
border: 1px solid #a2a9b1;
tr.dark td {background-color: #CCCCCC}
+
padding: 0.2em 0.4em;
table th.highlight {background-color: #EEEEFF}
+
}
table td.highlight {background-color: #FFFFEE}
+
.standard > tr > th,
table th.bright {background-color: #CCCCFF}
+
.standard > * > tr > th,
table td.bright {background-color: #FFEECC}
+
.wide > tr > th,
table th.shadow {background-color: #F0F0F0}
+
.wide > * > tr > th {
table td.shadow {background-color: #F0F0F0}
+
background-color: #eaf3ff;
table th.dark {background-color: #CCCCCC}
+
}
table td.dark {background-color: #CCCCCC}
+
.standard > caption,
table th.transparent {background-color: transparent}
+
.wide > caption {
table td.transparent {background-color: transparent}
+
font-weight: bold;
 +
}
 +
.wide {
 +
width: 100%;
 +
}
 +
table.graytable {
 +
background: #f0f0f0;
 +
padding: 1em;
 +
width: 100%;
 +
}
 +
table.graytable caption {
 +
padding-top: 0.5em;
 +
background: #f0f0f0;
 +
font-weight: bold;
 +
}
 +
table.graytable caption span.subcaption {
 +
font-size: 80%;
 +
font-weight: normal;
 +
}
 +
table.graytable th,
 +
table.graytable td {
 +
font-size: 80%;
 +
}
 +
tr.highlight th,
 +
table tr th.highlight {
 +
background: #dcebff;
 +
}
 +
tr.highlight td,
 +
table tr td.highlight {
 +
background: #ffe;
 +
font-weight: normal;
 +
}
 +
tr.bright th,
 +
table tr th.bright {
 +
background: #cfe3ff;
 +
}
 +
tr.bright td,
 +
table tr td.bright {
 +
background: #fec;
 +
}
 +
tr.shadow th,
 +
tr.shadow td,
 +
table tr th.shadow,
 +
table tr td.shadow {
 +
background: #f0f0f0;
 +
}
 +
tr.dark th,
 +
tr.dark td,
 +
table tr th.dark,
 +
table tr td.dark {
 +
background: #ccc;
 +
}
  
 
#checker, #file img {background: url("//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;}
 
#checker, #file img {background: url("//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;}

Версия от 21:56, 6 августа 2018

/*<pre><nowiki>*/
/* See also: [[MediaWiki:Monobook.css]] */

.absq code { border: 0px; padding: 0px; } /* Не обводить <code> внутри цитат {{q}} */

/* Шаблон {{Cats}} */
.mw-abnormal-catlinks {
	background-color:#f9f9f9;
	clear: both;
	x-index: 3;
	z-index: 7;
	position: absolute;
	bottom: 18px; left: 18px;
}

/* Скрывает заголовок на ЗС и АбсурдоПресс */
.page-Заглавная_страница h1.firstHeading,
.page-Заглавная_страница #siteSub,
.page-Абсурдопедия_Абсурд°_Пресс #firstHeading,
.page-Абсурдопедия_Абсурд°_Пресс #siteSub {
	display: none;
}

/* Скрывает MediaWiki:Anonnotice на главной */
body.page-Заглавная_страница #anonnotice { display: none; }

/* Чтобы скрытое MediaWiki:Sitenotice не мерцало при загрузке страницы
  (TODO: пофиксить нормально в самом расширении и отправить патч) */
.mw-dismissable-notice { display: none; }

/* Не показывает кнопки "Обсуждение форума:" --Algorithm */
body.ns-110 #ca-talk { display: none !important; }
body.ns-110 #ca-nstab-forum { margin-right: 16px; }

/* Не подсвечивать синим ссылки под шаблоном {{3D}} */
.anaglyph a, .anaglyph a:visited { color: black; }

/* Подчёркивание некоторых ссылок */
.underlinks a { text-decoration: underline; }

/* Добавить иконку перед ссылками на YouTube */
a[href*="youtube.com/"]:before { margin-right: 5px; content: url("//i.absurdopedia.net/thumb/7/75/YouTube.svg/50px-YouTube.svg.png"); }

.hidden-workaround h2 { display: none; }

/* Отступ под заголовками h2 */
h2 { margin-bottom: 4px ! important; }

/* Отступы на Special:Specialpages */
.mw-specialpages-table { margin-top: 6px; }

/* Нормальный отступ между строками в WikiEditor */
.wikiEditor-ui textarea#wpTextbox1 {
        line-height: normal ! important;
}

/* Стиль порталов */
.portalfont { font-family:Verdana, Arial, Helvetica, sans-serif; }
#portal .CategoryTreeToggle { display: none ! important; }
#portal .CategoryTreeLabelPage { font-style: normal; }
#portal .CategoryTreeBullet:before { content: url('//i.absurdopedia.net/1/17/Bullet.gif'); }
#portal .CategoryTreeChildren .CategoryTreeNotice { display: none; }
#portal .mw-editsection { font-weight: normal ! important; }
#portal table { background: inherit ! important; }
.refresh a:visited { color: #002bb8; }

/* Для АбсурдоРекламы ([[АП:Р]]) */
#p-lolads a:visited { color: #002bb8; }

/* В [[MediaWiki:Sitenotice]] и [[MediaWiki:Anonnotice]] ссылки используются через
   внешний интервики-префикс absurdopedia: — пусть они будут того же цвета, что и
   остальные внутренние ссылки */
#siteNotice a { color: #002bb8 !important; }

/* Убирает белый фон вокруг изображений: <div class="nonwhite">[[Файл: ... ]]</div> */
.nonwhite div.thumb {
	border: none;
	margin-top: 10px;
	margin-bottom: 0px;
}
.nonwhite div.tleft { border: none; }
.nonwhite div.tright { margin-left: 13px; }

/* Для страницы [[Абсурдопедия:Новости/Календарь]] */
.NC1-check a.new,
.NC1-check table+.news-excuse { display: none; }

/* [[Шаблон:TOClimit]] */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}

/* Для [[Шаблон:C]]; при наведении появляется текст */
.censored {
	color: black;
	background-color: black;
	padding: 1px;
	cursor: pointer;
}
 
.censored a {
	color: black;
	text-decoration: underline;
	padding: 1px;
}
 
.censored:hover {
	color: inherit;
	background-color: inherit !important;
}

/* Внешняя ссылка на страницу АП (например, дифф) выводится без иконки */
a.external[href*="//absurdopedia.net/"] {
	background: none !important;
	padding-right: 0 !important;
}

/*** Mark redirects in Special:Allpages und Special:Watchlist ***/
.allpagesredirect, .watchlistredir {
     font-style: italic;
}

/*** Forum formatting (by -Algorithm & -Splaka) ***/
.forumheader { 
     border: 1px solid #aaa; background-color: #f9f9f9; margin-top: 1em; padding: 12px; 
}
.forumlist td.forum_edited a { 
     color: black; text-decoration: none 
}
.forumlist td.forum_title a { 
     padding-left: 20px; 
}
.forumlist td.forum_title a.forum_new { 
     font-weight: bold;
     padding-left: 20px; 
}
.forumlist td.forum_title a.forum_new:visited { 
     font-weight: normal; background: none; padding-left: 20px; 
}
.forumlist th.forum_title { 
     padding-left: 20px; 
}

/* Различные настройки */
#nihilism_message { position: absolute; left: 100px; top: 50px; font-size: small; line-height: 1.5; }

/* Выделяем ссылку на текущую статью в тематических шаблонах (вроде {{unix}} и {{поэты}}) */
.toccolours .selflink { font-size: 120%; border-style: solid; border-width: 1px; border-right-style: double; border-left-style: double; border-right-width: 3px; border-left-width: 3px; padding-left: 2px; padding-right: 2px; }

/* Всё, что ниже, взято из Википедии без изменений */
#userSummaryButtonsA a {
  white-space:nowrap;
  background: #C2F2FF;
  border: 1px solid #9BD5F5;
  padding: 0 2px;
  margin: 2px;
  cursor: pointer;
  font-size: 80%;
  line-height: 17px;
  color: #5B5B5B;
}
#userSummaryButtonsA a:hover {
  background: #B1EBFF;
  border: 1px solid #64BDF0;
  color: black;
  text-decoration: none;
}

.hiddenStructure {display: none;speak: none}
.notice {margin: 1em 1em 1em 20%;padding: 0.2em}
#disambig {border-top: 3px double #cccccc;border-bottom: 3px double #cccccc}
#spoiler {border-top: 2px solid #ddd;border-bottom:2px solid #ddd}
.Talk-Notice {border: 1px solid #C0C090;background-color: #F8EABA;margin-bottom: 3px;width: 85%;border-spacing: 3px;margin-left: auto;margin-right: auto}
.Talk-Notice td {background: inherit}
.Use_Default_Date_Convention { display: inline; }
.Use_AD_and_BC { display: none; }
.Use_BCE_and_CE { display: none; }

.plainlinksneverexpand {
  background: none ! important;
  padding: 0 ! important;
}
.plainlinksneverexpand .urlexpansion {
  display: none ! important;
}
.plainlinksneverexpand a {
   background: none !important;
   padding: 0 !important;
}
.plainlinksneverexpand a.external.text:after {
  display: none !important;
}
.plainlinksneverexpand a.external.autonumber:after {
  display: none !important;
}
#bodyContent .plainlinksneverexpand a {background: none !important;padding: 0 !important}

.messagebox {border:thin solid #aaaaaa;background-color:#f9f9f9;width:88%;margin:0 auto 1em auto;padding:.4em;vertical-align:middle;font-size: 90%}
.messagebox.merge {border: 1px solid #cf9fff;background-color: #f5edf5;text-align: center}
.messagebox.cleanup {border: 1px solid #9f9fff;background-color: #efefff;text-align: center}
.messagebox.standard-talk {border: 1px solid #c0c090;background-color: #f8eaba}
.messagebox .floatleft{vertical-align:middle;clear:both;margin:2px;padding:0;}
.messagebox .image{margin:0;padding:0;}

.infobox {border: 1px solid #aaaaaa;background-color: #f9f9f9;margin-bottom: 0.5em;margin-left: 1em;padding: .4em;float: right;clear: right;font-size: 90%;width: 18em;vertical-align:middle}
.infobox.sisterproject {background-color:#f9fafd}

/* ЖЖ */
.lj a { text-decoration: underline; font: bold small Verdana; background: none !important; padding: 0 !important; }
.lj a.image img { vertical-align: -2px; }

/* Всплывающие окна для Календаря */
.ca-popup { position: absolute; left: 40%; top: 40%; border: 1px solid gray; display: none; z-index: 10; overflow: hidden; background-color: whitesmoke; color: black; padding: 5px; }

/* МФА и шрифты */
.IPA {font-family: Chrysanthi Unicode, Doulos SIL, Gentium, GentiumAlt, Code2000, TITUS Cyberbit Basic, DejaVu Sans, Bitstream Vera Sans, Bitstream Cyberbit, Arial Unicode MS, Lucida Sans Unicode, Hiragino Kaku Gothic Pro, Matrix Unicode;font-family /**/:inherit}
.Unicode {font-family: TITUS Cyberbit Basic, Code2000, Doulos SIL, Chrysanthi Unicode, Bitstream Cyberbit, Bitstream CyberBase, Bitstream Vera, Thryomanes, Gentium, GentiumAlt, Visual Geez Unicode, Lucida Grande, Arial Unicode MS, Microsoft Sans Serif, Lucida Sans Unicode;font-family /**/:inherit}
.polytonic {font-family: Athena, Gentium, Palatino Linotype, Arial Unicode MS, Lucida Sans Unicode, Lucida Grande, Code2000;font-family /**/:inherit}

#wpSave {font-weight: bold}

blockquote {margin:0.7em 0 0.7em 5%;padding:0.7em 2% 0.7em 4%;background-color:#f5f5f5;}

table.toccolours {text-align: center} /* может напортить! */
table.toccolours th {background-color: #ccccff}

/* [[wikipedia:Википедия:Оформление таблиц]] */
.standard,
.wide {
	/* For align=center tables dont use shorthand margin */
	margin-top:1em;
	margin-bottom:1em;
	border: 1px solid #a2a9b1;
	border-collapse: collapse;
}
.standard > tr > th,
.standard > tr > td,
.standard > * > tr > th,
.standard > * > tr > td,
.wide > tr > th,
.wide > tr > td,
.wide > * > tr > th,
.wide > * > tr > td {
	border: 1px solid #a2a9b1;
	padding: 0.2em 0.4em;
}
.standard > tr > th,
.standard > * > tr > th,
.wide > tr > th,
.wide > * > tr > th {
	background-color: #eaf3ff;
}
.standard > caption,
.wide > caption {
	font-weight: bold;
}
.wide {
	width: 100%;
}
table.graytable {
	background: #f0f0f0;
	padding: 1em;
	width: 100%;
}
table.graytable caption {
	padding-top: 0.5em;
	background: #f0f0f0;
	font-weight: bold;
}
table.graytable caption span.subcaption {
	font-size: 80%;
	font-weight: normal;
}
table.graytable th,
table.graytable td {
	font-size: 80%;
}
tr.highlight th,
table tr th.highlight {
	background: #dcebff;
}
tr.highlight td,
table tr td.highlight {
	background: #ffe;
	font-weight: normal;
}
tr.bright th,
table tr th.bright {
	background: #cfe3ff;
}
tr.bright td,
table tr td.bright {
	background: #fec;
}
tr.shadow th,
tr.shadow td,
table tr th.shadow,
table tr td.shadow {
	background: #f0f0f0;
}
tr.dark th,
tr.dark td,
table tr th.dark,
table tr td.dark {
	background: #ccc;
}

#checker, #file img {background: url("//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png") repeat;}

/* Оформление {{ambox}} */
table.ambox {
 width: auto;
 margin: 0 10%;
 border-collapse: collapse;
 background: #FBFBFB;
 border: 1px solid #AAAAAA;
 border-left: 10px solid #1E90FF
}
table.ambox th, table.ambox td {
 padding: 0.25em 0.5em;
}
table.ambox td.ambox-widthhack {
 padding: 0;
}
table.ambox td.ambox-text {
 width:100%;
}
table.ambox td.ambox-image {
 width: 52px;
 padding: 2px 0px 2px 0.5em;
 text-align: center;
}
table.ambox td.ambox-imageright {
 width: 52px;
 padding: 2px 4px 2px 0px;
 text-align: center;
}
table.ambox td.ambox-image div,
table.ambox td.ambox-imageright div {   
 width:52px  /* Фикс для изображений разной ширины */
}
table.ambox-delete,
table.ambox-serious {
 border-left: 10px solid #B22222
}
table.ambox-content {
 border-left: 10px solid #F28500
}
table.ambox-style {
 border-left: 10px solid #F4C430
}
table.ambox-good {
 border-left: 10px solid #66CC44
}
table.ambox-discussion {
 border-left: 10px solid #339966
}
table.ambox-notice {
 border-left: 10px solid #1E90ff
}
table.ambox-merge {
 border-left: 10px solid #9932CC
}
table.ambox-protection {
 border-left: 10px solid #BBBBAA
}
table.ambox.ambox-mini {
 float: right;
 clear: right;
 margin: 0 0 0.5em 1em;
 width: 20%;
}

/* default skin for navigation boxes */
table.navbox {
    background-color: #f9f9f9;
    border: 1px solid #aaa;
    clear: both;
    font-size: 90%;
    margin: 1em 0em 0em;
    padding: 2px;
    text-align: center;
    width: 100%;
}
table.navbox th {
    background-color: #ccf;
    padding-left: 1em;
    padding-right: 1em;
}
table.navbox tr:not(:first-child) th {
    background-color: #ddf;
}

/* navbox hiding, see [[wikipedia:en:Wikipedia:NavFrame]]. */
div.NavFrame {
        margin: 0px;
        padding: 4px;
        border: 1px solid #aaa;
        text-align: center;
        border-collapse: collapse;
        font-size: 95%;
}`
div.NavFrame + div.NavFrame {
        border-top-style: none;
        border-top-style: hidden;
}
div.NavPic {
        background-color: #fff;
        margin: 0px;
        padding: 2px;
        float: left;
}
div.NavFrame div.NavHead {
        height: 1.6em;
        font-weight: bold;
        background-color: #ccccff;
        position:relative;
}
div.NavFrame p {
        font-size: 100%;
}
div.NavFrame div.NavContent {
        font-size: 100%;
}
div.NavFrame div.NavContent p {
        font-size: 100%;
}
div.NavEnd {
        margin: 0px;
        padding: 0px;
        line-height: 1px;
        clear: both;
}
a.NavToggle {
        position:absolute;
        top:0px;
        right:3px;
        font-weight:normal;
        font-size:smaller;
}
.ind5{text-indent:3ex;}

/* Оформление сносок */
/* Make the list of references smaller */
ol.references, div.reflist, div.refbegin { font-size: 90%; }
div.reflist ol.references {
    font-size: 100%;
    list-style-type: inherit;
}
ol.references li:target,
sup.reference:target,
span.citation:target { 
    background-color: #DEF;
}
sup.reference {
    font-weight: normal;
    font-style: normal;
}

/* Логотип Абсурдилища */
body.ns-112 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/d/d1/Recycle-006a.png/150px-Recycle-006a.png) !important; }
body.ns-113 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/d/d1/Recycle-006a.png/150px-Recycle-006a.png) !important; }

/* Логотип Как_правильно */
body.ns-114 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/0/0c/HT_logo.jpg/150px-HT_logo.jpg) !important; }
body.ns-115 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/0/0c/HT_logo.jpg/150px-HT_logo.jpg) !important; }

/* Логотип Абсурдотеки */
body.ns-116 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/f/f5/Abteca_emblem.jpg/150px-Abteca_emblem.jpg) !important; }
body.ns-117 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/f/f5/Abteca_emblem.jpg/150px-Abteca_emblem.jpg) !important; }

/* Логотип Несловаря */
body.ns-118 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/6/68/%D0%90%D0%9C.png/150px-%D0%90%D0%9C.png) !important; }
body.ns-119 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/6/68/%D0%90%D0%9C.png/150px-%D0%90%D0%9C.png) !important; }

/* Логотип Абсурдоцитатника */
body.ns-120 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/b/bc/%D0%A6%D0%B8%D1%82%D0%B0%D1%82%D0%BD%D0%B8%D0%BA.png/150px-%D0%A6%D0%B8%D1%82%D0%B0%D1%82%D0%BD%D0%B8%D0%BA.png) !important; }
body.ns-121 #p-logo a { background-image: url(//i.absurdopedia.net/thumb/b/bc/%D0%A6%D0%B8%D1%82%D0%B0%D1%82%D0%BD%D0%B8%D0%BA.png/150px-%D0%A6%D0%B8%D1%82%D0%B0%D1%82%D0%BD%D0%B8%D0%BA.png) !important; }

/* Логотип Вопрос-ответа */
body.ns-100[class*=page-Портал_Вопрос-ответ] #p-logo a,
body.ns-0[class*=page-Вопрос-ответ] #p-logo a { background-image: url(//i.absurdopedia.net/thumb/6/65/QA.png/150px-QA.png) !important; }

/* Ref tooltip */
.tooltip {overflow: hidden;margin-top:1em;margin-left:0.5em; width: 40ex; border-width: 1px 2px 2px 1px; border-style: solid; padding: 2px; background: #ffb; position: absolute; display: none; z-index: 9999}
.tooltip a.external {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFZJREFUeF59z4EJADEIQ1F36k7u5E7ZKXeUQPACJ3wK7UNokVxVk9kHnQH7bY9hbDyDhNXgjpRLqFlo4M2GgfyJHhjq8V4agfrgPQX3JtJQGbofmCHgA/nAKks+JAjFAAAAAElFTkSuQmCC);
background-attachment: scroll;
background-repeat: no-repeat;
background-position: 100% 50%;
background-size: auto;
background-origin: padding-box;
background-clip: border-box;
background-color: transparent;
padding-right: 13px;
}

/*</nowiki></pre>*/