Перейти к содержанию

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

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


/* Основные стили для таблицы */
/* Основные стили таблицы */
.table-container {
.table-container {
   width: 60%;
   width: 60%;
Строка 14: Строка 14:
}
}


.table-header-cell {
/* Исправленный разделитель колонок */
   text-align: center;
.wikitable.hover-table .column-divider {
  padding: 15px;
   position: relative;
  font-size: 1.5em;
  font-weight: bold;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
}
}


.table-group-header {
.wikitable.hover-table .column-divider::after {
   text-align: center;
   content: "";
   padding: 10px;
  position: absolute;
   font-weight: bold;
   top: 0;
   border-bottom: 2px solid #4d4d4d;
   right: -5px; /* Смещение от границы */
   margin-bottom: 10px;
  height: 100%;
   width: 2px;
  background: #707070;
   z-index: 1;
}
}


/* Стили для ячеек с эффектом при наведении */
/* Стили ячеек */
.hover-cell {
.hover-cell {
   text-align: center;
   position: relative;
  padding: 12px;
  border: 1px solid #4d4d4d;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(40, 40, 40, 0.5);
  display: block;
}
 
.hover-cell:hover {
  transform: scale(1.03);
  border-color: #4d9de0;
  background: rgba(30, 60, 90, 0.7);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
 
/* Стили кнопок-ячеек */
.cell-button {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
   border: 1px solid #4d4d4d;
   border: 1px solid #4d4d4d;
   border-radius: 6px;
   border-radius: 6px;
   background: rgba(45, 45, 45, 0.6);
   background: rgba(45, 45, 45, 0.6);
   transition: all 0.3s ease;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
   min-height: 60px;
  color: #e0e0e0;
   overflow: visible;
  text-decoration: none !important;
   font-size: 1.1em;
   margin-bottom: 10px;
}
}


.cell-button:hover {
/* Увеличенная невидимая кликабельная зона (в 2 раза больше ячейки) */
   transform: scale(1.03);
.hover-cell .click-zone {
   border-color: #4d9de0;
  position: absolute;
   background: rgba(35, 65, 95, 0.8);
  top: -50%;
   box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  left: -50%;
   color: #ffffff;
  right: -50%;
   bottom: -50%;
   z-index: 3;
   transform: scale(0.5);
   transform-origin: center;
   opacity: 0;
}
}


/* Убираем стандартное оформление ссылок */
/* Видимая часть ссылки */
.cell-button a {
.hover-cell .cell-link {
  color: inherit !important;
   position: relative;
  text-decoration: none !important;
  display: block;
  height: 100%;
  width: 100%;
}
 
/* Дополнительные стили */
.column-divider {
   border-right: 2px solid #707070 !important;
}
 
.center-content {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   height: 100%;
   height: 100%;
  padding: 12px;
  box-sizing: border-box;
  text-decoration: none !important;
  color: inherit !important;
  z-index: 2;
}
}


/* ыыаааа наведение 668 раз уже меня заебало блять мама роди назад я уже жалею, что сюда полез */
/* Эффекты при наведении */
.hover-cell {
.hover-cell:hover {
    position: relative;
  transform: scale(1.03);
    padding: 0;
  box-shadow: 0 0 0 2px #4d9de0;
    border: 1px solid #4d4d4d;
  background: rgba(35, 65, 95, 0.8);
    border-radius: 6px;
    background: rgba(45, 45, 45, 0.6);
    transition: all 0.3s ease;
    min-height: 60px;
    height: auto;
    overflow: visible;
}
 
.hover-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(77, 157, 224, 0);
    transition: background 0.5s ease-out;
    z-index: 0;
}
}


.hover-cell .cell-link {
/* Плавное затухание */
.hover-cell::after {
  content: '';
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
Строка 126: Строка 83:
   right: 0;
   right: 0;
   bottom: 0;
   bottom: 0;
   display: flex;
   background: rgba(77, 157, 224, 0);
   align-items: center;
   transition: background 0.5s ease;
  justify-content: center;
   z-index: 1;
  padding: 12px;
   border-radius: 5px;
  box-sizing: border-box;
  text-decoration: none !important;
  color: inherit !important;
   z-index: 2;
  transform: scale(1);
   transition: inherit;
}
 
.hover-cell:hover {
    transform: scale(1.03);
    background: rgba(35, 65, 95, 0.8);
    box-shadow: 0 0 0 1px rgba(77, 157, 224, 0.3);
}
}


.hover-cell:hover::before {
.hover-cell:hover::after {
    background: rgba(77, 157, 224, 0.15);
  background: rgba(77, 157, 224, 0.15);
}
}


/* Оптимизация для ссылок */
.hover-cell .cell-link a {
.hover-cell .cell-link a {
    display: flex;
  display: block;
    align-items: center;
  width: 100%;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-decoration: none !important;
    color: inherit !important;
}
 
.hover-cell:hover .cell-link {
  transform: scale(1.05);  
   height: 100%;
   height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}
}

Версия от 15:39, 1 июля 2025

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

/* Основные стили таблицы */
.table-container {
  width: 60%;
  margin: 2em auto;
}

.wikitable.hover-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px;
  background: transparent;
}

/* Исправленный разделитель колонок */
.wikitable.hover-table .column-divider {
  position: relative;
}

.wikitable.hover-table .column-divider::after {
  content: "";
  position: absolute;
  top: 0;
  right: -5px; /* Смещение от границы */
  height: 100%;
  width: 2px;
  background: #707070;
  z-index: 1;
}

/* Стили ячеек */
.hover-cell {
  position: relative;
  border: 1px solid #4d4d4d;
  border-radius: 6px;
  background: rgba(45, 45, 45, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 60px;
  overflow: visible;
}

/* Увеличенная невидимая кликабельная зона (в 2 раза больше ячейки) */
.hover-cell .click-zone {
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  z-index: 3;
  transform: scale(0.5);
  transform-origin: center;
  opacity: 0;
}

/* Видимая часть ссылки */
.hover-cell .cell-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
  text-decoration: none !important;
  color: inherit !important;
  z-index: 2;
}

/* Эффекты при наведении */
.hover-cell:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px #4d9de0;
  background: rgba(35, 65, 95, 0.8);
}

/* Плавное затухание */
.hover-cell::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(77, 157, 224, 0);
  transition: background 0.5s ease;
  z-index: 1;
  border-radius: 5px;
}

.hover-cell:hover::after {
  background: rgba(77, 157, 224, 0.15);
}

/* Оптимизация для ссылок */
.hover-cell .cell-link a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}