Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

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

Страница интерфейса MediaWiki
мНет описания правки
м Тестирование
Строка 136: Строка 136:


/* Дальше зона SweetMaurse, ничего не сломается. А если сломается я починю.*/
/* Дальше зона SweetMaurse, ничего не сломается. А если сломается я починю.*/
:root {
:root.skin-theme-clientpref-day {
     /* Civilian colors - светлая тема */
     /* gray colors - светлая тема */
     --civilian-opaque: #3498db;
     --gray-opaque: #3498db;
     --civilian-primary: #2980b9;
     --gray-primary: #2980b9;
     --civilian-secondary: #1f6390;
     --gray-secondary: #1f6390;
     --civilian-light: #5dade2;
     --gray-light: #5dade2;
     --civilian-transparent: rgba(52, 152, 219, 0.7);
     --gray-transparent: rgba(52, 152, 219, 0.7);
}
}


/* Темная тема */
/* gray colors - Темная тема */
.skin-theme-clientpref-night {
:root.skin-theme-clientpref-night {
    :root {
         --gray-opaque: rgba(89, 89, 89, 1);
         --civilian-opaque: #2c3e50;
         --gray-primary: rgba(127, 127, 127, 1);
         --civilian-primary: rgba(229, 229, 229, 0.6);
         --gray-secondary: rgba(165, 165, 165, 1);
         --civilian-secondary: rgba(242, 242, 242, 0.5);
         --gray-light: rgba(204, 204, 204, 1);;
         --civilian-light: #4a6572;
         --gray-transparent: rgba(242, 242, 242, 1);
         --civilian-transparent: rgba(44, 62, 80, 0.7);
     }
     }
}

Версия от 20:32, 8 сентября 2025

/* Размещённый здесь CSS будет применяться ко всем темам оформления */

/*Текст ниже, буквально отвечает за картинку на фоне.*/
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/8/83/Bglogo.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 42% auto;
    z-index: -1;
    opacity: 0.1;
}

/* Светлая тема */
.skin-theme-clientpref-day body::before {
    filter: invert(1);
    opacity: 0.8;
}

/* Темные темы */
.skin-theme-clientpref-night body::before {
    filter: invert(0);
    opacity: 0.8;
}

:root.skin-theme-clientpref-night {
    --color-surface-0: rgba(0, 0, 0, 0.33);
    --color-surface-2: rgba(38, 38, 38, 0.4);
    --color-surface-1: rgba(38, 38, 38, 0.4);
}

.tooltip{
  position: relative;
}

.tooltiptext,
.tooltiptext2 {
  position: absolute;
  width: 18em;
  visibility: hidden;
  opacity: 0;
  white-space: normal;
  text-align: left;
  transition: all 0.2s;
  border: 1px solid #aaa;
}
.tooltiptext {
  display: block;
  z-index: 2;
  padding: 20px;
  background-color: #ffdd66;
}
.tooltiptext2 {
	display:inline;
	z-index: 100;
	padding: 0.2em;
	background-color: #FEF6E7;
	border-radius: .2em;
	top:1.5em;
	left:1em;
	box-shadow: 0 0 .3em #999;
}

.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,
.tooltip:hover>.tooltiptext2,
.tooltip:hover>.tooltiptable {
  visibility: visible;
  opacity: 1;
}

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;
}

/* Кнопка "Вверх": [[Файл:Scroll_top.png]] */
#scroll-top
	{
	display: none;
	background: url(/images/f/f4/Scroll_top.gif) 0% 0%/56px 56px no-repeat;
	opacity: 0.3;
	width: 90px;
	height: 90px;
	cursor: pointer;
	position: fixed;
	right: calc(11em - 130px);
	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;
	}

/* Дальше зона SweetMaurse, ничего не сломается. А если сломается я починю.*/
:root.skin-theme-clientpref-day {
    /* gray colors - светлая тема */
    --gray-opaque: #3498db;
    --gray-primary: #2980b9;
    --gray-secondary: #1f6390;
    --gray-light: #5dade2;
    --gray-transparent: rgba(52, 152, 219, 0.7);
}

/* gray colors - Темная тема */
:root.skin-theme-clientpref-night {
        --gray-opaque: rgba(89, 89, 89, 1);
        --gray-primary: rgba(127, 127, 127, 1);
        --gray-secondary: rgba(165, 165, 165, 1);
        --gray-light: rgba(204, 204, 204, 1);;
        --gray-transparent: rgba(242, 242, 242, 1);
    }