MediaWiki:Common.css: відмінності між версіями
Admin (обговорення | внесок) Немає опису редагування |
Admin (обговорення | внесок) Немає опису редагування Мітка: Ручний відкіт |
| (Не показано одну проміжну версію цього користувача) | |
(Немає відмінностей)
| |
Версія за 21:59, 6 грудня 2025
/** Розміщений тут CSS буде застосовуватися до всіх тем оформлення */
/* ==================================================== */
/* ЗАГАЛЬНІ СТИЛІ ТА UI */
/* ==================================================== */
@media (max-width: 720px) {
.r-box { float:none !important; margin-left:0 !important; }
.content table { display:table !important; }
}
.overlay.search-overlay .search-content {
background-color: #18151e;
border-bottom: 0.2px solid rgba(255, 255, 255, 0.07)!important;
color: #a19ce0!important;
}
.page-Main_Page .mw-first-heading { display: none!important; }
.overlay.search-overlay .search-content .caption { padding-left: 30px!important; }
.page-list li, .topic-title-list li, .site-link-list li {
border-bottom: 0.2px solid rgba(255, 255, 255, 0.07)!important;
}
.mw-ui-icon-mf-articlesSearch { visibility: hidden!important; display:none!important; background-image:none!important; }
.header-container.header-chrome {
background-color: #18151e!important;
box-shadow: none!important;
}
body {
background-color: #15151f!important;
color: #b7b4bf!important;
}
.list-thumb.list-thumb-none { background-color: #18151e!important; }
.overlay.search-overlay .results, .overlay.search-overlay .search-feedback {
background-color: #18151e!important;
color: white!important;
}
.overlay.search-overlay .results { box-shadow: none!important; }
.minerva-header .branding-box a { color: #b7b4bf!important; }
.minerva-header .branding-box { opacity: 1.0!important; }
.minerva-icon--menu-base20, .minerva-icon--menu {
filter: invert(100%) sepia(100%) saturate(100%) hue-rotate(250deg) brightness(0%) contrast(101%);
}
.overlay-enabled, .mw-body {
background-color: #15151f!important;
color: #b7b4bf!important;
padding-top: 20px!important;
padding-bottom: 140px!important;
}
@media (max-width: 767px) {
.overlay-enabled, .mw-body {
padding-top: 20px!important;
padding-bottom: 80px!important;
}
}
a.new { color: #ff7777!important; }
a.new:hover { color: #ff7777!important; }
a.new:visited { color: #ff7777!important; }
a { color: #a19ce0!important; }
a:hover { color: #a19ce0!important; }
a:visited { color: #a19ce0!important; }
.minerva-footer {
background-color: #15151f!important;
color: #b7b4bf!important;
display: none!important;
}
h4 {
opacity: 0.5!important;
font-weight: 400!important;
}
.minerva__tab-container { display:none!important; }
#mw-mf-page-center { background-color: #15151f!important; }
.content .mw-parser-output > h2, .content .section-heading {
border-bottom: 1px solid #232b3a!important;
padding-top: 30px!important;
padding-bottom: 10px!important;
}
.search-box .search {
background-color: #15151f!important;
box-shadow: none!important;
border: 1px solid #232b3a!important;
color: white!important;
}
b, strong { font-weight: 400!important; color: #ebebeb!important; }
.page-actions-menu {
box-sizing: border-box;
border-top: 1px solid #232b3a!important;
border-bottom: 1px solid #232b3a!important;
margin-top: -1px;
display: none!important;
}
.overlay.search-overlay { background: #15151f!important; }
.content ul { list-style-type: none!important; padding-left: 0em!important; }
.toc { background-color: #18151e!important; border: none!important; }
.content kbd, .content samp, .content code, .content pre { border: none!important; }
.content pre {
padding-left: 0px!important;
padding-top: 10px!important;
padding-right: 0px!important;
padding-bottom: 10px!important;
}
.content .mw-parser-output h1 .mw-editsection, .content .mw-parser-output h2 .mw-editsection, .content .mw-parser-output h3 .mw-editsection, .content .mw-parser-output h4 .mw-editsection, .content .mw-parser-output h5 .mw-editsection, .content .mw-parser-output h6 .mw-editsection {
visibility:hidden!important;
display:none!important;
}
.page-Main_Page #page-secondary-actions a { display:none!important; }
.mw-ui-icon-mf-expand { background-image:none!important; }
.mw-ui-icon-mf-expand:before {
content: "+";
color: white;
font-size: 16px;
font-weight: bold;
display: inline-block;
width: 16px;
height: 16px;
line-height: 1em;
text-align: center;
vertical-align: middle;
}
.mf-icon, .mf-icon--small, .mf-icon--large { display: inline-flex; align-items: center; justify-content: center; }
.mf-mw-ui-icon-rotate-flip { transform: rotate(45deg)!important; }
li.gallerybox div.thumb { background-color: #18151e!important; border: none!important; }
.image-details.is-visible { display: none!important; }
.content table, .content .infobox { text-align: center!important; }
.minerva-header .navigation-drawer .toggle-list__toggle { display:none!important; }
.minerva-user-navigation .minerva-notifications { display:none!important; }
.minerva-user-navigation > *:last-child { display: none!important; }
/* ==================================================== */
/* СТИЛІ ТАБЛИЦЬ У СТИЛІ LIQUIPEDIA */
/* ==================================================== */
/* Основні стилі таблиці */
.wikitable {
border: none !important;
border-collapse: separate !important;
border-spacing: 0 !important;
width: 100%;
background-color: transparent !important;
}
/* Видаляємо іконку зовнішнього посилання в таблиці ігор */
.wikitable .external {
background: none !important;
padding-right: 0 !important;
}
.wikitable a.external::after {
content: '' !important;
display: none !important;
}
/* Комірки таблиці - БЕЗ вертикальних бордерів */
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
border: none !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
padding: 8px 12px !important;
background: none;
}
/* Заголовки */
.wikitable > thead > tr > th,
.wikitable > * > tr:first-child > th {
background-color: rgba(24, 21, 30, 0.6) !important;
border-bottom: 2px solid rgba(161, 156, 224, 0.3) !important;
font-weight: 500 !important;
text-transform: uppercase;
font-size: 12px;
letter-spacing: 0.5px;
padding: 10px 12px !important;
}
/* Парні та непарні рядки */
.wikitable > tbody > tr:nth-child(odd) > td,
.wikitable > * > tr:nth-child(odd) > td {
background-color: rgba(24, 21, 30, 0.3) !important;
}
.wikitable > tbody > tr:nth-child(even) > td,
.wikitable > * > tr:nth-child(even) > td {
background-color: rgba(24, 21, 30, 0.5) !important;
}
/* Ховер ефект для рядків */
.wikitable > tbody > tr:hover > td,
.wikitable > * > tr:hover > td {
background-color: rgba(25, 87, 255, 0.15) !important;
transition: background-color 0.2s ease;
}
/* ==================================================== */
/* SORTABLE СТРІЛОЧКИ У СТИЛІ LIQUIPEDIA */
/* ==================================================== */
/* Сортовані заголовки */
.client-js .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable),
.jquery-tablesorter th.headerSort {
background-color: rgba(24, 21, 30, 0.6) !important;
color: white !important;
font-weight: 500 !important;
padding: 10px 12px !important;
padding-right: 24px !important;
background-image: none !important;
cursor: pointer;
position: relative;
user-select: none;
}
/* Стрілочка за замовчуванням (обидві) */
.client-js .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable)::after,
.jquery-tablesorter th.headerSort::after {
content: "⇅";
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
font-size: 14px;
color: rgba(255, 255, 255, 0.3);
font-weight: normal;
}
/* Сортування по зростанню */
.jquery-tablesorter th.headerSortUp::after {
content: "▲";
color: #a19ce0 !important;
font-size: 12px;
}
/* Сортування по спаданню */
.jquery-tablesorter th.headerSortDown::after {
content: "▼";
color: #a19ce0 !important;
font-size: 12px;
}
/* Ховер для заголовків */
.client-js .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable):hover,
.jquery-tablesorter th.headerSort:hover {
background-color: rgba(25, 87, 255, 0.4) !important;
transition: background-color 0.2s ease;
}
/* Перший та останній рядок */
.wikitable > tbody > tr:first-child > td,
.wikitable > * > tr:first-child > td {
border-top: none !important;
}
.wikitable > tbody > tr:last-child > td,
.wikitable > * > tr:last-child > td {
border-bottom: none !important;
}
/* Вирівнювання тексту */
.wikitable td {
vertical-align: middle !important;
}
/* Компактні таблиці для мобільних */
@media (max-width: 768px) {
.wikitable > tr > th,
.wikitable > tr > td,
.wikitable > * > tr > th,
.wikitable > * > tr > td {
padding: 6px 8px !important;
font-size: 13px;
}
.client-js .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable),
.jquery-tablesorter th.headerSort {
padding: 8px 8px !important;
padding-right: 20px !important;
font-size: 11px;
}
}
/* ==================================================== */
/* HOME PAGE BLOCKS */
/* ==================================================== */
.flex__block {
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
align-items: center
}
.home__blocks {
gap: 20px;
align-items: stretch
}
.home__block {
align-items: stretch;
width: 33.3333%;
flex-direction: column
}
.home__block-inner {
align-items: stretch;
gap: 0px;
flex-direction: column;
flex-grow: 0;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.home__block-image-block {
flex-direction: column;
border-radius: 0px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
background-image: url(https://mafiacc.site/images/d/df/Bg_03.png);
background-size: cover;
}
.home_block-image-block::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url(https://mafiacc.site/images/b/b1/Nic_01.png);
background-size: cover;
opacity: 0.5;
z-index: -1;
}
.home__block-image {
text-align: center;
padding-top: 20px;
}
.home__block-icon {
width: 96px;
height: 96px;
display: inline-block;
background-position: center center;
background-size: contain;
background-repeat: no-repeat;
}
.home__block-icon-1 {
background-image: url(https://mafiacc.site/images/d/dc/Block_01.png)
}
.home__block-icon-2 {
background-image: url(https://mafiacc.site/images/5/5f/Block_02.png)
}
.home__block-icon-3 {
background-image: url(https://mafiacc.site/images/0/00/Block_03.png)
}
.home__block-content {
flex-grow: 0;
flex-direction: column;
align-items: stretch
}
.home__block-content-inner {
border-radius: 0px;
background: none;
padding-left: 20px;
padding-top: 20px;
padding-right: 20px;
padding-bottom: 0px;
flex-grow: 0;
}
.home__block-content-title {
line-height: 1;
padding-bottom: 10px;
}
.home__block-content-inner pre {
font-family: 'Helvetica'!important;
padding: 0!important;
display: block!important;
}
.home__block-content-title .content p {
margin: 0!important;
}
@media (max-width: 768px) {
.home__blocks {
display:block;
padding-top: 10px;
}
.home__block-content-title {
padding-bottom: 10px;
}
.home__block {
width:100%;
}
.home__block-content-inner {
margin-bottom: 10px;
}
}
/* ==================================================== */
/* BACKGROUND */
/* ==================================================== */
#mw-mf-viewport, #content, .header-container, .mw-body {
background-image: url('/images/f/f1/Main_bg%402x.png') !important;
background-size: cover !important;
background-repeat: no-repeat !important;
background-position: center center !important;
background-attachment: fixed !important;
}
@media (max-width: 994px) {
.harley {
display:none
}
}
/* Список героїв - 5 в рядок */
.mcc-heroes-list {
padding-top: 20px!important;
display: flex;
flex-wrap: wrap;
gap: 8px;
list-style: none;
padding: 0;
margin: 0;
}
.mcc-heroes-list li {
margin: 0;
padding: 0;
/* 5 карток: (100% - 4 gaps по 8px) / 5 */
width: calc((100% - 32px) / 5);
}
/* Картка героя */
.mcc-hero-card {
position: relative;
display: block;
width: 100%;
border-radius: 0;
overflow: hidden;
background: #1a1a2e;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Hover анімація */
.mcc-hero-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.mcc-hero-card .hero-image-wiki,
.mcc-hero-card .hero-image-wiki img,
.mcc-hero-card .mw-file-element,
.mcc-hero-card a.mw-file-description {
display: block;
width: 100%;
height: auto;
}
.mcc-hero-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 0px 12px 12px;
background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
color: #fff;
}
.mcc-hero-nickname {
font-weight: 700;
font-size: 1.1em;
}
/* Білий колір посилання без іконки */
.mcc-hero-nickname a,
.mcc-hero-nickname a:visited {
color: #fff !important;
text-decoration: none;
background: none !important;
padding-right: 0 !important;
}
.mcc-hero-nickname a:hover {
text-decoration: underline;
color: #fff !important;
}
/* Прибираємо іконку зовнішнього посилання */
.mcc-hero-nickname a.external,
.mcc-hero-nickname a.external:after,
.mcc-hero-nickname a.extiw,
.mcc-hero-nickname a.extiw:after {
background-image: none !important;
padding-right: 0 !important;
}
.mcc-hero-nickname a.external::after,
.mcc-hero-nickname a.extiw::after {
content: none !important;
display: none !important;
}
.mcc-hero-role {
color: #ffd700;
font-size: 0.85em;
font-weight: 600;
}
.mcc-hero-date {
font-size: 0.85em;
opacity: 0.7;
}
/* Чемпіон - золота рамка */
.mcc-champion-card {
box-shadow: 0 0 0 0.5px orange;
}
.mcc-champion-card:hover {
box-shadow: 0 0 0 1px #ffd700, 0 8px 24px rgba(0, 0, 0, 0.4);
}
/* ===== MOBILE: 2 картки в рядок ===== */
@media (max-width: 768px) {
.mcc-heroes-list {
padding: 0;
gap: 12px;
}
.mcc-heroes-list li {
/* 2 картки: (100% - 1 gap 12px) / 2 */
width: calc((100% - 12px) / 2);
}
.mcc-hero-info {
padding: 30px 8px 8px;
}
.mcc-hero-nickname {
font-size: 1em;
}
.mcc-hero-date {
font-size: 0.75em;
}
}
/* Дуже малі екрани */
@media (max-width: 360px) {
.mcc-heroes-list {
padding: 0 12px;
gap: 8px;
}
.mcc-heroes-list li {
width: calc((100% - 8px) / 2);
}
.mcc-hero-nickname {
font-size: 0.9em;
}
}
/* Стилізація кнопки запису гри */
.game-record-btn {
display: inline-block;
padding: 4px 8px;
background-color: #d02f2f;
color: white;
border-radius: 4px;
font-size: 13px;
cursor: pointer;
transition: opacity 0.2s;
}
.game-record-btn:hover {
opacity: 0.7;
}
.game-record-btn a {
color: white !important;
text-decoration: none !important;
}
/* Мобільна версія для карточок */
@media (max-width: 1200px) {
.r-box, .tournament-box {
position: static !important;
width: calc(100% - 32px) !important;
max-width: none !important;
margin: 0 16px 20px 16px !important;
top: auto !important;
right: auto !important;
max-height: none !important;
overflow-y: visible !important;
}
}
/* Мобільна версія для всіх карточок */
@media (max-width: 1200px) {
.r-box, .tournament-box, .series-box {
position: static !important;
width: 100%!important;
max-width: none !important;
margin: 0 0 0 0 !important;
top: auto !important;
right: auto !important;
max-height: none !important;
overflow-y: visible !important;
}
}
/* Навігація для гравців */
.player-nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
margin-bottom: 10px;
font-size: 14px;
background-color: #18151e;
border-radius: 10px;
}
.player-nav-prev,
.player-nav-next {
font-size: 20px;
font-weight: bold;
min-width: 30px;
text-align: center;
}
.player-nav-prev a,
.player-nav-next a {
color: yellow;
text-decoration: none;
transition: opacity 0.2s;
}
.player-nav-prev a:hover,
.player-nav-next a:hover {
opacity: 0.7;
}
.player-nav-name {
flex: 1;
text-align: center;
font-weight: bold;
color: white;
font-size: 16px;
}
/* Навігація для турнірів */
.tournament-nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
margin-bottom: 10px;
font-size: 14px;
background-color: #18151e;
border-radius: 10px;
}
.tournament-nav-prev,
.tournament-nav-next {
font-size: 20px;
font-weight: bold;
min-width: 30px;
text-align: center;
}
.tournament-nav-prev a,
.tournament-nav-next a {
color: yellow;
text-decoration: none;
transition: opacity 0.2s;
}
.tournament-nav-prev a:hover,
.tournament-nav-next a:hover {
opacity: 0.7;
}
.tournament-nav-name {
flex: 1;
text-align: center;
font-weight: bold;
color: white;
font-size: 16px;
}
/* Навігація для серій */
.series-nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
margin-bottom: 10px;
font-size: 14px;
background-color: #18151e;
border-radius: 10px;
}
.series-nav-prev,
.series-nav-next {
font-size: 20px;
font-weight: bold;
min-width: 30px;
text-align: center;
}
.series-nav-prev a,
.series-nav-next a {
color: yellow;
text-decoration: none;
transition: opacity 0.2s;
}
.series-nav-prev a:hover,
.series-nav-next a:hover {
opacity: 0.7;
}
.series-nav-name {
flex: 1;
text-align: center;
font-weight: bold;
color: white;
font-size: 16px;
}
/* Мобільна версія для всіх карточок */
@media (max-width: 1200px) {
.r-box, .tournament-box, .series-box {
position: static !important;
width: 100%!important;
max-width: none !important;
margin: 0 0 0 0 !important;
top: auto !important;
right: auto !important;
max-height: none !important;
overflow-y: visible !important;
}
}
/* Сховати таблицю змісту */
#toc, .toc {
display: none !important;
}
/* Сховати тільки на сторінках з r-box (гравці, турніри) */
.r-box ~ * #toc,
.r-box ~ * .toc {
display: none !important;
}
/* Навігація для чемпіонатів */
.championship-nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
margin-bottom: 10px;
font-size: 14px;
background-color: #18151e;
border-radius: 10px;
}
.championship-nav-prev,
.championship-nav-next {
font-size: 20px;
font-weight: bold;
min-width: 30px;
text-align: center;
}
.championship-nav-prev a,
.championship-nav-next a {
color: yellow;
text-decoration: none;
transition: opacity 0.2s;
}
.championship-nav-prev a:hover,
.championship-nav-next a:hover {
opacity: 0.7;
}
.championship-nav-name {
flex: 1;
text-align: center;
font-weight: bold;
color: white;
font-size: 16px;
}
.player-nav-prev a, .player-nav-next a {
color: white!important;
}
.tournament-nav-prev a, .tournament-nav-next a {
color: white!important;
}
.series-nav-prev a, .series-nav-next a {
color: white!important;
}