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

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

Материал из Helix
Нет описания правки
Метка: ручная отмена
Нет описания правки
Метка: отменено
Строка 95: Строка 95:
}
}


/* ыыаааа наведение 666 раз уже меня заебало блять мама роди назад я уже жалею, что сюда полез */
/* ыыаааа наведение 667 раз уже меня заебало блять мама роди назад я уже жалею, что сюда полез */
.hover-cell {
.table-container {
    position: relative;
  width: 60%;
    padding: 0;
  margin: 2em auto;
    border: 1px solid #4d4d4d;
}
    border-radius: 6px;
 
    background: rgba(45, 45, 45, 0.6);
.wikitable.hover-table {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
    z-index: 1;
  border-collapse: separate;
    overflow: hidden;
  border-spacing: 12px;
  background: transparent;
}
}


.hover-cell::before {
.hover-cell {
    content: '';
  position: relative;
    position: absolute;
  border: 1px solid #4d4d4d;
    top: 0;
  border-radius: 6px;
    left: 0;
  background: rgba(45, 45, 45, 0.6);
    right: 0;
  transition: transform 0.3s ease;
    bottom: 0;
  transform-origin: center;
    background: rgba(77, 157, 224, 0);
  overflow: visible;
    transition: background 0.5s ease-out;
    z-index: 0;
}
}


.hover-cell .cell-link {
.hover-cell .cell-link {
    position: relative;
  position: absolute;
    display: block;
  top: -1px;
    width: 100%;
  left: -1px;
    height: 100%;
  right: -1px;
    padding: 12px;
  bottom: -1px;
    text-decoration: none !important;
  display: flex;
    color: inherit;
  align-items: center;
    z-index: 2;
  justify-content: center;
  padding: 12px;
  text-decoration: none !important;
  color: inherit !important;
  z-index: 2;
  border-radius: 6px;
}
}


.hover-cell:hover {
.hover-cell:hover {
    transform: scale(1.03);
  transform: scale(1.03);
    box-shadow: 0 0 0 1px rgba(77, 157, 224, 0.3);
  z-index: 10;
}
  background: rgba(35, 65, 95, 0.8);
 
  box-shadow: 0 0 0 2px #4d9de0;
.hover-cell:hover::before {
    background: rgba(77, 157, 224, 0.15);
}
}


.hover-cell .cell-link a {
.hover-cell .cell-link a {
    display: flex;
  text-decoration: none !important;
    align-items: center;
  color: inherit !important;
    justify-content: center;
  width: 100%;
    height: 100%;
  height: 100%;
    width: 100%;
  display: flex;
    text-decoration: none !important;
  align-items: center;
    color: inherit !important;
  justify-content: center;
}
}

Версия от 14:56, 1 июля 2025

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

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

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

.table-header-cell {
  text-align: center;
  padding: 15px;
  font-size: 1.5em;
  font-weight: bold;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
}

.table-group-header {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  border-bottom: 2px solid #4d4d4d;
  margin-bottom: 10px;
}

/* Стили для ячеек с эффектом при наведении */
.hover-cell {
  text-align: center;
  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-radius: 6px;
  background: rgba(45, 45, 45, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
  color: #e0e0e0;
  text-decoration: none !important;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.cell-button:hover {
  transform: scale(1.03);
  border-color: #4d9de0;
  background: rgba(35, 65, 95, 0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #ffffff;
}

/* Убираем стандартное оформление ссылок */
.cell-button a {
  color: inherit !important;
  text-decoration: none !important;
  display: block;
  height: 100%;
  width: 100%;
}

/* Дополнительные стили */
.column-divider {
  border-right: 2px solid #707070 !important;
}

.center-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ыыаааа наведение 667 раз уже меня заебало блять мама роди назад я уже жалею, что сюда полез */
.table-container {
  width: 60%;
  margin: 2em auto;
}

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

.hover-cell {
  position: relative;
  border: 1px solid #4d4d4d;
  border-radius: 6px;
  background: rgba(45, 45, 45, 0.6);
  transition: transform 0.3s ease;
  transform-origin: center;
  overflow: visible;
}

.hover-cell .cell-link {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-decoration: none !important;
  color: inherit !important;
  z-index: 2;
  border-radius: 6px;
}

.hover-cell:hover {
  transform: scale(1.03);
  z-index: 10;
  background: rgba(35, 65, 95, 0.8);
  box-shadow: 0 0 0 2px #4d9de0;
}

.hover-cell .cell-link a {
  text-decoration: none !important;
  color: inherit !important;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}