MediaWiki:Common.css: различия между версиями
Перейти к навигации
Перейти к поиску
Нет описания правки |
Gevron (обсуждение | вклад) (удаляем неиспользуемый код) |
||
| (не показано 15 промежуточных версий 2 участников) | |||
| Строка 23: | Строка 23: | ||
display: block; | display: block; | ||
z-index: 2; | z-index: 2; | ||
width: | width: fit-content; | ||
padding: 20px; | padding: 20px; | ||
visibility: hidden; | visibility: hidden; | ||
| Строка 30: | Строка 30: | ||
text-align: left; | text-align: left; | ||
transition: all 0.2s; | transition: all 0.2s; | ||
} | } | ||
| Строка 55: | Строка 53: | ||
visibility: visible; | visibility: visible; | ||
opacity: 1; | opacity: 1; | ||
} | |||
.tooltip:hover>.tooltipmarine { | |||
visibility: visible; | |||
opacity: 1; | |||
} | |||
.tooltipmarine > * { | |||
width: max-content; | |||
} | } | ||
| Строка 77: | Строка 84: | ||
background-color:#00FF00 | background-color:#00FF00 | ||
} | } | ||
img { | 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; | |||
} | } | ||
| Строка 109: | Строка 105: | ||
background-size: contain; | background-size: contain; | ||
} | } | ||
/* Горизонтальный список */ | |||
#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; | |||
} | |||
/* Кнопка "Вверх": [[paradise:Файл: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; | |||
} | |||
/* Отступы сворачиваемого меню */ | |||
.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; | |||
} | |||
Текущая версия от 06:22, 18 июня 2024
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
.tooltip{
position: relative;
}
.tooltiptext {
position: absolute;
display: block;
z-index: 2;
width: 250px;
padding: 10px;
visibility: hidden;
opacity: 0;
white-space: normal;
text-align: left;
transition: all 0.2s;
border: 1px solid #aaa;
background-color: #ffdd66;
}
.tooltipmarine {
position: absolute;
display: block;
z-index: 2;
width: fit-content;
padding: 20px;
visibility: hidden;
opacity: 0;
white-space: normal;
text-align: left;
transition: all 0.2s;
}
.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>.tooltipmarine {
visibility: visible;
opacity: 1;
}
.tooltipmarine > * {
width: max-content;
}
.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
}
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;
}
.ns-4200 #p-logo a {
background-image: url("/skins/TGMC_logo.png") !important;
background-size: contain;
}
.ns-4201 #p-logo a {
background-image: url("/skins/TGMC_logo.png") !important;
background-size: contain;
}
/* Горизонтальный список */
#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;
}
/* Кнопка "Вверх": [[paradise:Файл: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;
}
/* Отступы сворачиваемого меню */
.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;
}