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

Материал из SS220 Paradise Wiki (SS13)
Перейти к навигации Перейти к поиску
мНет описания правки
мНет описания правки
Строка 609: Строка 609:
}
}


/* Таблица брони */
/* Прилипающий заголовок */
.sticky-head th {
.sticky-head th {
background-image: none !important;
background-image: none !important;
Строка 623: Строка 623:
}
}


/* Таблица оружия */
.weapon-table td {
text-align: center;
font-weight: bold
}
/* Таблица брони */
.armor-table {
.armor-table {
text-align: center;
text-align: center;
table-layout: fixed;
table-layout: fixed;
}
}
.weapon-table td:last-of-type, /* Таблица оружия */
.armor-table td:last-of-type {
.armor-table td:last-of-type {
text-align: left;
text-align: left;
}
}

Версия от 15:03, 20 марта 2023

/* Размещённый здесь CSS будет применяться ко всем темам оформления */
.tooltip{
  position: relative;
}

.tooltiptext {
  position: absolute;
  display: block;
  z-index: 2;
  width: 250px;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  white-space: normal;
  text-align: left;
  transition: all 0.2s;
  border: 1px solid #aaa;
  background-color: #ffdd66;
}

.tooltiptable {
  position: absolute;
  display: block;
  z-index: 2;
  max-width:600px;
  width:max-content;
  padding: 10px;
  top:11pt;
  right:-55px;
  visibility: hidden;
  opacity: 0;
  white-space: normal;
  text-align: left;
  transition: all 0.2s;
  border: 1px solid #666;
  background-color: #ff6666;
}

.tooltip:hover>.tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip:hover>.tooltiptable {
  visibility: visible;
  opacity: 1;
}

/* hide the "Retrieved from" message */
.printfooter {
  display: none;
}

div.tabcontent{
    display:none
}
div.tabcontent.current{
    display:block
}
div.switchtab.label.current{
    color:#000;
    background-color:#00FF00
}
div.kaskadavionics{
    background-image:url(https://wiki.armaproject.ru/resources/assets/Kaskad_avionics.png)
}
div.divbutton:target{
    cursor: pointer;
    display: none;
    width: auto;
    height: auto;
}
div.divbutton:target::before{
    cursor: pointer;
    width: 80%;
    height: auto;
}
.kaskadavionics_menu_button a{
    display:block;
    text-align:center;
    line-height:19px !important;
    font-size:13px;
    color:#00FF00 !important;
    text-decoration:none
}
.kaskadavionics_menu_button a:hover{
    text-decoration:none;
    display:block;
    background:rgba(0,256,0,1) none repeat scroll 0% 0%;
    line-height:19px !important;
    font-size:13px;
    color:#000 !important
}

img {
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Горизонтальный список */
#mw-content-text .hlist ul {
    display: inline;
    margin: 0;
    padding: 0;
}
#mw-content-text .hlist li {
    display: inline;
}
#mw-content-text .hlist li:not(:last-child) {
    padding-right: 0.286em;
}
#mw-content-text .hlist li:not(:last-child)::after {
    content: "";
    display: inline-block;
    position: relative;
    left: 0.286em;
    bottom: 0.214em;
    background-color: #000;
    height: 3px;
    width: 3px;
}
#mw-content-text .hlist li li:first-child::before {
    content: "(";
    font-weight: normal;
}
#mw-content-text .hlist li li:last-child::after {
    content: ")";
    font-weight: normal;
}
#mw-content-text .hlist li li li {
    font-size: x-small;
}

/* Simulate link styling for JS only links */
.jslink {
    color: #0645AD;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
    outline: none;
}
.jslink:hover {
    text-decoration: underline;
    cursor: pointer;
}
.jslink:active {
    color: #FAA700;
}

/* Hide noscript only elements */
.client-js *.noscript {
    display: none;
}
/* Mark internal links as plain */
#content a.external[href^="http://wiki.ss220.space/index.php"],
#content a.external[href^="https://wiki.ss220.space/index.php"],
#content a.external[href^="//wiki.ss220.space/index.php"] {
    background: none;
    padding-right: 0;
}

/* Кнопка "Вверх": [[Файл:Scroll_top.png]] */
#scroll-top
	{
	display: none;
	background: url(https://wiki.ss220.space/images/f/f4/Scroll_top.gif) 0% 0%/38px 38px no-repeat;
	opacity: 0.3;
	width: 38px;
	height: 38px;
	cursor: pointer;
	position: fixed;
	left: calc(11em - 19px);
	bottom: 30px;
	z-index: 10000;
	image-rendering: optimizeSpeed;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: optimize-contrast;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
	-ms-interpolation-mode: nearest-neighbor;
	}

#scroll-top:hover
	{
	opacity: 0.8;
	}


/* Стиль таблиц с предметами и т.п. */
.items-table	{
		width:100%;
		border:.2em solid #7F7F7F;
		border-radius:.5em;
		background-color:#CCCCCC;
		}

.items-table th	{
		border: .2em double #999999;
		border-radius:.2em;
		background-color:#7F7F7F;
		color:#FFFFFF;
		padding: .2em;
		}

.items-table td	{
		background-color:#F2F2F2;
		color:#000000;
		padding: .2em;
		}
.items-table:not(.regular) td:not(.regular):first-of-type,
td.capital	{
		background-color: #E5E5E5;
		font-weight: bold;
		color: #000;
		border: .2em solid #999;
		border-radius: .2em;
		text-align: center;
		}
/* Цвета охранного отдела */
.colors-secure,
tr.colors-secure	{
				background-color:hsl(0, 4%, 74%); /* Light */
				border-color: hsl(0, 47%, 52%); /* Secondary */
				}
.colors-secure th,
tr.colors-secure th	{
				background-color:hsl(0, 67%, 45%); /* Primary */
				border-color: hsl(0, 82%, 41%); /* Primary Bold */
				}
.colors-secure td,
tr.colors-secure td	{
				background-color:hsl(0, 0%, 95%); /* Very Light */
				}
:not(.regular).colors-secure td:not(.regular):first-of-type,
.colors-secure td.capital,
:not(.regular) tr.colors-secure td:not(.regular):first-of-type	{
				background-color: hsl(0, 47%, 52%); /* Secondary */
				color: hsl(0, 0%, 0%); /* Secondary Text */
				border-color: hsl(0, 82%, 41%); /* Primary Bold */
				}

/* Цвета научного отдела */
.colors-science,
tr.colors-science	{
				background-color:hsl(280, 6%, 79%); /* Light */
				border-color: hsl(280, 50%, 60%); /* Secondary */
				}
.colors-science th,
tr.colors-science th	{
				background-color:hsl(280, 58%, 52%); /* Primary */
				border-color: hsl(280, 67%, 48%); /* Primary Bold */
				}
.colors-science td,
tr.colors-science td	{
				background-color:hsl(283, 21%, 94%); /* Very Light */
				}
:not(.regular).colors-science td:not(.regular):first-of-type,
.colors-science td.capital,
:not(.regular) tr.colors-science td:not(.regular):first-of-type	{
				background-color: hsl(280, 50%, 60%); /* Secondary */
				color: hsl(120, 52%, 5%); /* Secondary Text */
				border-color: hsl(280, 67%, 48%); /* Primary Bold */
				}

/* Цвета сервисного отдела */
.colors-service,
tr.colors-service	{
				background-color:hsl(130, 6%, 79%); /* Light */
				border-color: hsl(125, 34%, 55%); /* Secondary */
				}
.colors-service th,
tr.colors-service th	{
				background-color:hsl(125, 56%, 38%); /* Primary */
				border-color: hsl(125, 82%, 32%); /* Primary Bold */
				}
.colors-service td,
tr.colors-service td	{
				background-color:hsl(129, 21%, 94%); /* Very Light */
				}
:not(.regular).colors-service td:not(.regular):first-of-type,
.colors-service td.capital,
:not(.regular) tr.colors-service td:not(.regular):first-of-type	{
				background-color: hsl(125, 34%, 55%); /* Secondary */
				color: hsl(0, 0%, 0%); /* Secondary Text */
				border-color: hsl(125, 82%, 32%); /* Primary Bold */
				}

/* Цвета инженерного отдела */
.colors-engine,
tr.colors-engine	{
				background-color:hsl(33, 21%, 75%); /* Light */
				border-color: hsl(37, 100%, 65%); /* Secondary */
				}
.colors-engine th,
tr.colors-engine th	{
				background-color:hsl(38, 100%, 55%); /* Primary */
				border-color: hsl(39, 100%, 50%); /* Primary Bold */
				color: black;
				}
.colors-engine td,
tr.colors-engine td	{
				background-color:hsl(33, 43%, 91%); /* Very Light */
				}
:not(.regular).colors-engine td:not(.regular):first-of-type,
.colors-engine td.capital,
:not(.regular) tr.colors-engine td:not(.regular):first-of-type	{
				background-color: hsl(37, 100%, 65%); /* Secondary */
				color: hsl(0, 0%, 0%); /* Secondary Text */
				border-color: hsl(39, 100%, 50%); /* Primary Bold */
				}

/* Цвета командного отдела */
.colors-command,
tr.colors-command	{
				background-color:hsl(223, 32%, 71%); /* Light */
				border-color: hsl(223, 100%, 70%); /* Secondary */
				}
.colors-command th,
tr.colors-command th	{
				background-color:hsl(224, 100%, 60%); /* Primary */
				border-color: hsl(223, 100%, 55%); /* Primary Bold */
				}
.colors-command td,
tr.colors-command td	{
				background-color:hsl(225, 57%, 92%); /* Very Light */
				}
:not(.regular).colors-command td:not(.regular):first-of-type,
.colors-command td.capital,
:not(.regular) tr.colors-command td:not(.regular):first-of-type	{
				background-color: hsl(223, 100%, 70%); /* Secondary */
				color: hsl(0, 0%, 100%); /* Secondary Text */
				border-color: hsl(223, 100%, 55%); /* Primary Bold */
				}

/* Цвета медицинского отдела */
.colors-medik,
tr.colors-medik	{
				background-color:hsl(203, 32%, 71%); /* Light */
				border-color: hsl(202, 100%, 70%); /* Secondary */
				}
.colors-medik th,
tr.colors-medik th	{
				background-color:hsl(203, 100%, 60%); /* Primary */
				border-color: hsl(203, 100%, 55%); /* Primary Bold */
				}
.colors-medik td,
tr.colors-medik td	{
				background-color:hsl(203, 72%, 92%); /* Very Light */
				}
:not(.regular).colors-medik td:not(.regular):first-of-type,
.colors-medik td.capital,
:not(.regular) tr.colors-medik td:not(.regular):first-of-type	{
				background-color: hsl(202, 100%, 70%); /* Secondary */
				color: hsl(0, 0%, 0%); /* Secondary Text */
				border-color: hsl(203, 100%, 55%); /* Primary Bold */
				}

/* Цвета снабжающего отдела */
.colors-suply,
tr.colors-suply	{
				background-color:hsl(29, 32%, 71%); /* Light */
				border-color: hsl(32, 43%, 33%); /* Secondary */
				}
.colors-suply th,
tr.colors-suply th	{
				background-color:hsl(31, 68%, 29%); /* Primary */
				border-color: hsl(31, 82%, 26%); /* Primary Bold */
				}
.colors-suply td,
tr.colors-suply td	{
				background-color:hsl(29, 71%, 92%); /* Very Light */
				}
:not(.regular).colors-suply td:not(.regular):first-of-type,
.colors-suply td.capital,
:not(.regular) tr.colors-suply td:not(.regular):first-of-type	{
				background-color: hsl(32, 43%, 33%); /* Secondary */
				color: hsl(120, 24%, 7%); /* Secondary Text */
				border-color: hsl(31, 82%, 26%); /* Primary Bold */
				}

/* Цвета планетарного отдела */
.colors-lava,
tr.colors-lava	{
				background-color:hsl(15, 32%, 71%); /* Light */
				border-color: hsl(17, 79%, 66%); /* Secondary */
				}
.colors-lava th,
tr.colors-lava th	{
				background-color:hsl(17, 85%, 57%); /* Primary */
				border-color: hsl(17, 85%, 52%); /* Primary Bold */
				}
.colors-lava td,
tr.colors-lava td	{
				background-color:hsl(15, 59%, 93%); /* Very Light */
				}
:not(.regular).colors-lava td:not(.regular):first-of-type,
.colors-lava td.capital,
:not(.regular) tr.colors-lava td:not(.regular):first-of-type	{
				background-color: hsl(17, 79%, 66%); /* Secondary */
				color: hsl(0, 0%, 0%); /* Secondary Text */
				border-color: hsl(17, 85%, 52%); /* Primary Bold */
				}

/* Цвета синтетического отдела */
.colors-synth,
tr.colors-synth	{
				background-color:hsl(212, 32%, 71%); /* Light */
				border-color: hsl(212, 47%, 52%); /* Secondary */
				}
.colors-synth th,
tr.colors-synth th	{
				background-color:hsl(212, 67%, 46%); /* Primary */
				border-color: hsl(212, 82%, 42%); /* Primary Bold */
				}
.colors-synth td,
tr.colors-synth td	{
				background-color:hsl(211, 69%, 92%); /* Very Light */
				}
:not(.regular).colors-synth td:not(.regular):first-of-type,
.colors-synth td.capital,
:not(.regular) tr.colors-synth td:not(.regular):first-of-type	{
				background-color: hsl(212, 47%, 52%); /* Secondary */
				color: hsl(0, 0%, 100%); /* Secondary Text */
				border-color: hsl(212, 82%, 42%); /* Primary Bold */
				}

/* Цвета антагского отдела */
.colors-antag,
tr.colors-antag	{
				background-color:hsl(0, 32%, 71%); /* Light */
				border-color: hsl(0, 43%, 21%); /* Secondary */
				}
.colors-antag th,
tr.colors-antag th	{
				background-color:hsl(0, 67%, 6%); /* Primary */
				border-color: hsl(0, 83%, 5%); /* Primary Bold */
				}
.colors-antag td,
tr.colors-antag td	{
				background-color:hsl(0, 62%, 95%); /* Very Light */
				}
:not(.regular).colors-antag td:not(.regular):first-of-type,
.colors-antag td.capital,
:not(.regular) tr.colors-antag td:not(.regular):first-of-type	{
				background-color: hsl(0, 43%, 21%); /* Secondary */
				color: hsl(0, 91%, 44%); /* Secondary Text */
				border-color: hsl(0, 83%, 5%); /* Primary Bold */
				}

/* Цвета культистского отдела */
.colors-cult,
tr.colors-cult	{
				background-color:hsl(0, 32%, 71%); /* Light */
				border-color: hsl(0, 43%, 21%); /* Secondary */
				}
.colors-cult th,
tr.colors-cult th	{
				background-color:hsl(0, 67%, 6%); /* Primary */
				border-color: hsl(0, 83%, 5%); /* Primary Bold */
				}
.colors-cult td,
tr.colors-cult td	{
				background-color:hsl(0, 62%, 95%); /* Very Light */
				}
:not(.regular).colors-cult td:not(.regular):first-of-type,
.colors-cult td.capital,
:not(.regular) tr.colors-cult td:not(.regular):first-of-type	{
				background-color: hsl(0, 43%, 21%); /* Secondary */
				color: hsl(0, 91%, 44%); /* Secondary Text */
				border-color: hsl(0, 83%, 5%); /* Primary Bold */
				}

/* Цвета ратваровского отдела */
.colors-ratvar,
tr.colors-ratvar	{
				background-color:hsl(38, 70%, 17%); /* Light */
				border-color: hsl(39, 70%, 12%); /* Secondary */
				}
.colors-ratvar th,
tr.colors-ratvar th	{
				background-color:hsl(38, 70%, 30%); /* Primary */
				border-color: hsl(38, 70%, 25%); /* Primary Bold */
				}
.colors-ratvar td,
tr.colors-ratvar td	{
				background-color:hsl(42, 31%, 83%); /* Very Light */
				}
:not(.regular).colors-ratvar td:not(.regular):first-of-type,
.colors-ratvar td.capital,
:not(.regular) tr.colors-ratvar td:not(.regular):first-of-type	{
				background-color: hsl(39, 70%, 12%); /* Secondary */
				color: hsl(0, 0%, 100%); /* Secondary Text */
				border-color: hsl(38, 70%, 25%); /* Primary Bold */
				}

/* Цвета ксеноморфного отдела */
.colors-xenom,
tr.colors-xenom	{
				background-color:hsl(250, 19%, 63%); /* Light */
				border-color: hsl(251, 19%, 34%); /* Secondary */
				}
.colors-xenom th,
tr.colors-xenom th	{
				background-color:hsl(251, 20%, 22%); /* Primary */
				border-color: hsl(250, 26%, 17%); /* Primary Bold */
				}
.colors-xenom td,
tr.colors-xenom td	{
				background-color:hsl(256, 69%, 92%); /* Very Light */
				}
:not(.regular).colors-xenom td:not(.regular):first-of-type,
.colors-xenom td.capital,
:not(.regular) tr.colors-xenom td:not(.regular):first-of-type	{
				background-color: hsl(251, 19%, 34%); /* Secondary */
				color: hsl(0, 0%, 100%); /* Secondary Text */
				border-color: hsl(250, 26%, 17%); /* Primary Bold */
				}

/* Цвета марининого отдела */
.colors-marine,
tr.colors-marine	{
				background-color:hsl(215, 22%, 64%); /* Light */
				border-color: hsl(215, 31%, 41%); /* Secondary */
				}
.colors-marine th,
tr.colors-marine th	{
				background-color:hsl(216, 47%, 33%); /* Primary */
				border-color: hsl(217, 47%, 29%); /* Primary Bold */
				}
.colors-marine td,
tr.colors-marine td	{
				background-color:hsl(216, 50%, 88%); /* Very Light */
				}
:not(.regular).colors-marine td:not(.regular):first-of-type,
.colors-marine td.capital,
:not(.regular) tr.colors-marine td:not(.regular):first-of-type	{
				background-color: hsl(215, 31%, 41%); /* Secondary */
				color: hsl(0, 0%, 0%); /* Secondary Text */
				border-color: hsl(217, 47%, 29%); /* Primary Bold */
				}

/* Цвета волшебного отдела */
.colors-wizard,
tr.colors-wizard	{
				background-color:hsl(258, 32%, 71%); /* Light */
				border-color: hsl(260, 100%, 70%); /* Secondary */
				}
.colors-wizard th,
tr.colors-wizard th	{
				background-color:hsl(262, 100%, 60%); /* Primary */
				border-color: hsl(261, 100%, 55%); /* Primary Bold */
				}
.colors-wizard td,
tr.colors-wizard td	{
				background-color:hsl(256, 69%, 92%); /* Very Light */
				}
:not(.regular).colors-wizard td:not(.regular):first-of-type,
.colors-wizard td.capital,
:not(.regular) tr.colors-wizard td:not(.regular):first-of-type	{
				background-color: hsl(260, 100%, 70%); /* Secondary */
				color: hsl(0, 0%, 0%); /* Secondary Text */
				border-color: hsl(261, 100%, 55%); /* Primary Bold */
				}

/* Цвета похитнического отдела */
.colors-abductor,
tr.colors-abductor	{
				background-color:hsl(0, 0%, 80%); /* Light */
				border-color: hsl(0, 0%, 90%); /* Secondary */
				}
.colors-abductor th,
tr.colors-abductor th	{
				background-color:hsl(0, 0%, 50%); /* Primary */
				border-color: hsl(0, 0%, 60%); /* Primary Bold */
				}
.colors-abductor td,
tr.colors-abductor td	{
				background-color:hsl(0, 0%, 95%); /* Very Light */
				}
:not(.regular).colors-abductor td:not(.regular):first-of-type,
.colors-abductor td.capital,
:not(.regular) tr.colors-abductor td:not(.regular):first-of-type	{
				background-color: hsl(0, 0%, 90%); /* Secondary */
				color: hsl(0, 0%, 0%); /* Secondary Text */
				border-color: hsl(0, 0%, 60%); /* Primary Bold */
				}

/* Отступы сворачиваемого меню */
.vector-menu-portal	{
		margin-left: 0.1em;
		}
#mw-panel.collapsible-nav .portal .vector-menu-content	{
		margin-left: 0.5em;
		}
/* Цвет заголовков сворачиваемых разделов в sidebar обратно в серый */
#mw-panel.collapsible-nav .portal.collapsed .vector-menu-heading,
#mw-panel.collapsible-nav .portal.collapsed .vector-menu-heading:hover,
#mw-panel.collapsible-nav .portal .vector-menu-heading *	{
		color: #54595d;
		text-decoration: none;
		}

/* Прилипающий заголовок */
.sticky-head th			{
	background-image: none !important;
	}
.sticky-head abbr		{
	writing-mode:vertical-rl;
	transform: rotate(0.5turn);
	display: inline-block;
	}
.sticky-head thead		{
	position: sticky;
	top: 0.1em;
	}

/* Таблица оружия */
.weapon-table td	{
	text-align: center;
	font-weight: bold
	}
/* Таблица брони */
.armor-table			{
	text-align: center;
	table-layout: fixed;
	}
.weapon-table td:last-of-type, /* Таблица оружия */
.armor-table td:last-of-type	{
	text-align: left;
	}