MediaWiki:Common.css: различия между версиями
Материал из wiki innovation station ss14
Melvilla (обсуждение | вклад) Отмена версии 15, сделанной Melvilla (обсуждение) Метка: отмена |
Userr (обсуждение | вклад) Нет описания правки |
||
(не показана 71 промежуточная версия 2 участников) | |||
Строка 1: | Строка 1: | ||
/* 🌑 Фон через ::before, затемнённый и прозрачный */ | |||
body::before { | |||
content: ""; | |||
position: fixed; | |||
top: 0; | |||
left: 0; | |||
height: 100vh; | |||
width: 100vw; | |||
background-image: url('https://wiki-innovationstation-ss14.ru/images/d/d6/СССП.png'); | |||
background-size: cover; | |||
background-repeat: no-repeat; | |||
background-attachment: fixed; | |||
z-index: -1; | |||
background-color: rgba(0, 0, 0, 0.6); /* ← вот это затемняет, но не палит "кота" */ | |||
background-blend-mode: darken; /* ← делает фон темнее через смешивание */ | |||
filter: brightness(1); /* ← можно убрать если слишком тускло */ | |||
} | |||
/* ✨ Убираем стандартный фон body */ | |||
body { | body { | ||
background | background: none !important; | ||
color: #ffffff !important; | |||
} | } | ||
/* 🌟 Общие настройки — белый текст, прозрачный фон, убираем тени */ | |||
* { | |||
color: # | background-color: transparent !important; | ||
color: #ffffff !important; | |||
font-weight: bold; | |||
box-shadow: none !important; | |||
} | } | ||
/* 📄 Контейнеры и панели */ | |||
color: # | #content, | ||
#p-logo, #p-navigation, #p-search, #p-tb, #p-cactions, .portal, | |||
.vector-menu-content, | |||
#footer, | |||
.mw-warning, .mw-error, | |||
table, th, td, ol, ul { | |||
background-color: transparent !important; | |||
color: #ffffff !important; | |||
box-shadow: none !important; | |||
} | } | ||
/* 📋 Текст всех основных элементов */ | |||
a, li, td, th, p, span, div, h1, h2, h3, h4, h5, h6 { | |||
color: #ffffff !important; | |||
} | } | ||
/* 🧩 Аккордеоны */ | |||
.accordion-header { | |||
cursor: pointer; | |||
padding: 10px; | padding: 10px; | ||
text- | background-color: #333; | ||
border: 1px solid #555; | |||
border-radius: 5px; | |||
margin-bottom: 5px; | |||
color: #ffffff !important; | |||
} | |||
.accordion-header:hover { | |||
background-color: #444; | |||
} | |||
.accordion-content { | |||
display: none; | |||
padding: 10px; | |||
background-color: #222; | |||
border: 1px solid #444; | |||
border-radius: 5px; | |||
margin-top: 5px; | |||
color: #ffffff !important; | |||
} | |||
.accordion-content .accordion-header { | |||
margin-left: 20px; | |||
background-color: #444; | |||
} | |||
.accordion-content .accordion-content { | |||
margin-left: 20px; | |||
background-color: #333; | |||
} | |||
.infobox { | |||
border: 1px solid #bbb; | |||
background: #fff; | |||
border-radius: 6px; | |||
padding: 6px; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.06); | |||
font-family: "Segoe UI", Tahoma, Arial, sans-serif; | |||
font-size: 95%; | |||
} | |||
.infobox th, .infobox td { | |||
padding: 6px; | |||
vertical-align: top; | |||
} | |||
.infobox caption { | |||
font-weight: bold; | |||
font-size: 110%; | |||
} | |||
/* Цвета можно менять через переменные */ | |||
.infobox { | |||
--accent: #1f3b6b; /* основной — тёмно-синий */ | |||
--accent-2: #d4a017; /* акцент — золотой */ | |||
--bg: #ffffff; /* фон */ | |||
--muted: #f6f7f9; /* светлый фон для строк */ | |||
--border: rgba(0,0,0,0.12); | |||
--text: #202428; | |||
width: 320px; | |||
float: right; | |||
margin: 0 0 1em 1em; | |||
border: 1px solid var(--border); | |||
border-radius: 8px; | |||
background: var(--bg); | |||
box-shadow: 0 6px 18px rgba(31,59,107,0.08); | |||
font-family: "Segoe UI", Tahoma, Arial, sans-serif; | |||
font-size: 95%; | |||
overflow: hidden; | |||
} | } | ||
/* Заголовок с градиентом */ | |||
.infobox .infobox-title { | |||
background: linear-gradient(90deg, var(--accent) 0%, #2b4f8e 60%, rgba(36,66,113,1) 100%); | |||
color: white; | |||
font-weight: 700; | |||
text-align: center; | |||
padding: 10px 12px; | |||
font-size: 1.05em; | |||
letter-spacing: 0.4px; | |||
} | |||
/* Изображение сверху — масштабируется */ | |||
.infobox .infobox-image { | |||
text-align: center; | |||
padding: 8px 8px 4px; | |||
background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); | |||
} | |||
.infobox .infobox-image img { | |||
max-width: 94%; | |||
height: auto; | |||
border-radius: 6px; | |||
border: 1px solid rgba(0,0,0,0.04); | |||
} | |||
/* Табличная часть — строки и ячейки */ | |||
.infobox table { width: 100%; border-collapse: collapse; } | |||
.infobox td, .infobox th { | |||
padding: 8px 10px; | |||
vertical-align: top; | |||
border-bottom: 1px solid rgba(0,0,0,0.04); | |||
color: var(--text); | |||
} | |||
.infobox th { | |||
width: 42%; | |||
text-align: left; | |||
font-weight: 600; | |||
background: transparent; | |||
font-size: 0.95em; | |||
color: rgba(0,0,0,0.65); | |||
} | |||
/* Чередование строк и акцент на hover */ | |||
.infobox table tr:nth-child(even) td { background: var(--muted); } | |||
.infobox table tr:hover td { background: rgba(212,160,23,0.06); } | |||
/* Маленькая метка (badge) для важных полей */ | |||
.infobox .badge { | |||
display:inline-block; | |||
background: var(--accent-2); | |||
color: #111; | |||
padding: 2px 6px; | |||
border-radius: 999px; | |||
font-size: 0.78em; | |||
font-weight: 700; | |||
margin-left: 6px; | |||
} | |||
/* Ссылка на подразделы и мелкие примечания */ | |||
.infobox .note { font-size: 0.88em; color: rgba(0,0,0,0.6); } | |||
/* Collapsible (сворачиваемые блоки) — использует класс mw-collapsible */ | |||
.mw-collapsible { margin: .4em 0 .8em 0; padding: .6em; border-left: 3px solid var(--accent); background: rgba(31,59,107,0.02); border-radius:4px; } | |||
/* Адаптивность: на узких экранах инфобокс растягивается по ширине */ | |||
@media (max-width: 700px) { | |||
.infobox { float: none; width: auto; margin: 0 0 1em 0; } | |||
} | } |
Текущая версия от 12:39, 16 августа 2025
/* 🌑 Фон через ::before, затемнённый и прозрачный */ body::before { content: ""; position: fixed; top: 0; left: 0; height: 100vh; width: 100vw; background-image: url('https://wiki-innovationstation-ss14.ru/images/d/d6/СССП.png'); background-size: cover; background-repeat: no-repeat; background-attachment: fixed; z-index: -1; background-color: rgba(0, 0, 0, 0.6); /* ← вот это затемняет, но не палит "кота" */ background-blend-mode: darken; /* ← делает фон темнее через смешивание */ filter: brightness(1); /* ← можно убрать если слишком тускло */ } /* ✨ Убираем стандартный фон body */ body { background: none !important; color: #ffffff !important; } /* 🌟 Общие настройки — белый текст, прозрачный фон, убираем тени */ * { background-color: transparent !important; color: #ffffff !important; font-weight: bold; box-shadow: none !important; } /* 📄 Контейнеры и панели */ #content, #p-logo, #p-navigation, #p-search, #p-tb, #p-cactions, .portal, .vector-menu-content, #footer, .mw-warning, .mw-error, table, th, td, ol, ul { background-color: transparent !important; color: #ffffff !important; box-shadow: none !important; } /* 📋 Текст всех основных элементов */ a, li, td, th, p, span, div, h1, h2, h3, h4, h5, h6 { color: #ffffff !important; } /* 🧩 Аккордеоны */ .accordion-header { cursor: pointer; padding: 10px; background-color: #333; border: 1px solid #555; border-radius: 5px; margin-bottom: 5px; color: #ffffff !important; } .accordion-header:hover { background-color: #444; } .accordion-content { display: none; padding: 10px; background-color: #222; border: 1px solid #444; border-radius: 5px; margin-top: 5px; color: #ffffff !important; } .accordion-content .accordion-header { margin-left: 20px; background-color: #444; } .accordion-content .accordion-content { margin-left: 20px; background-color: #333; } .infobox { border: 1px solid #bbb; background: #fff; border-radius: 6px; padding: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.06); font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-size: 95%; } .infobox th, .infobox td { padding: 6px; vertical-align: top; } .infobox caption { font-weight: bold; font-size: 110%; } /* Цвета можно менять через переменные */ .infobox { --accent: #1f3b6b; /* основной — тёмно-синий */ --accent-2: #d4a017; /* акцент — золотой */ --bg: #ffffff; /* фон */ --muted: #f6f7f9; /* светлый фон для строк */ --border: rgba(0,0,0,0.12); --text: #202428; width: 320px; float: right; margin: 0 0 1em 1em; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); box-shadow: 0 6px 18px rgba(31,59,107,0.08); font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-size: 95%; overflow: hidden; } /* Заголовок с градиентом */ .infobox .infobox-title { background: linear-gradient(90deg, var(--accent) 0%, #2b4f8e 60%, rgba(36,66,113,1) 100%); color: white; font-weight: 700; text-align: center; padding: 10px 12px; font-size: 1.05em; letter-spacing: 0.4px; } /* Изображение сверху — масштабируется */ .infobox .infobox-image { text-align: center; padding: 8px 8px 4px; background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); } .infobox .infobox-image img { max-width: 94%; height: auto; border-radius: 6px; border: 1px solid rgba(0,0,0,0.04); } /* Табличная часть — строки и ячейки */ .infobox table { width: 100%; border-collapse: collapse; } .infobox td, .infobox th { padding: 8px 10px; vertical-align: top; border-bottom: 1px solid rgba(0,0,0,0.04); color: var(--text); } .infobox th { width: 42%; text-align: left; font-weight: 600; background: transparent; font-size: 0.95em; color: rgba(0,0,0,0.65); } /* Чередование строк и акцент на hover */ .infobox table tr:nth-child(even) td { background: var(--muted); } .infobox table tr:hover td { background: rgba(212,160,23,0.06); } /* Маленькая метка (badge) для важных полей */ .infobox .badge { display:inline-block; background: var(--accent-2); color: #111; padding: 2px 6px; border-radius: 999px; font-size: 0.78em; font-weight: 700; margin-left: 6px; } /* Ссылка на подразделы и мелкие примечания */ .infobox .note { font-size: 0.88em; color: rgba(0,0,0,0.6); } /* Collapsible (сворачиваемые блоки) — использует класс mw-collapsible */ .mw-collapsible { margin: .4em 0 .8em 0; padding: .6em; border-left: 3px solid var(--accent); background: rgba(31,59,107,0.02); border-radius:4px; } /* Адаптивность: на узких экранах инфобокс растягивается по ширине */ @media (max-width: 700px) { .infobox { float: none; width: auto; margin: 0 0 1em 0; } }