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

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

Материал из Helix
Нет описания правки
мНет описания правки
 
(не показано 78 промежуточных версий 3 участников)
Строка 1: Строка 1:
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* Размещённый здесь CSS будет применяться ко всем темам оформления */
/* #p-search { display:none; } */
#ca-talk { display:none!important; }
#ca-nstab-main { display:none!important; }


/* Основные стили для таблицы */
/* Основные стили для таблицы */
.flex-grid-container {
.table-container {
   width: 70%;
   width: 60%;
  max-width: 1000px;
  min-width: 320px;
   margin: 2em auto;
   margin: 2em auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
}


.grid-header {
.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;
   text-align: center;
   padding: 20px;
   border: 1px solid #4d4d4d;
   font-size: 1.8em;
   border-radius: 6px;
   font-weight: 700;
  background: rgba(45, 45, 45, 0.6);
   color: #2c3e50;
  transition: all 0.3s ease;
   margin-bottom: 25px;
   cursor: pointer;
   border-bottom: 2px solid #f0f3f5;
   color: #e0e0e0;
  text-decoration: none !important;
   font-size: 1.1em;
   margin-bottom: 10px;
}
}


.grid-header span {
.cell-button:hover {
   color: #1a5fb4;
   transform: scale(1.03);
   text-shadow: 0 2px 4px rgba(26, 95, 180, 0.1);
  border-color: #4d9de0;
  background: rgba(35, 65, 95, 0.8);
   box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #ffffff;
}
}


.flex-container {
/* Убираем стандартное оформление ссылок */
.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;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 25px;
   justify-content: center;
  height: 100%;
}
}


.flex-column {
/* ыыаааа наведение 668 раз уже меня заебало блять мама роди назад я уже жалею, что сюда полез */
  flex: 1;
.hover-cell {
  min-width: 300px;
    position: relative;
  display: flex;
    padding: 0;
  flex-direction: column;
    border: 1px solid #4d4d4d;
  gap: 20px;
    border-radius: 6px;
    background: rgba(45, 45, 45, 0.6);
    transition: all 0.3s ease;
    min-height: 60px;
    height: auto;
    overflow: visible;
}
}


.section-header {
.hover-cell::before {
  text-align: center;
    content: '';
  padding: 15px;
    position: absolute;
  font-weight: 600;
    top: 0;
  font-size: 1.3em;
    left: 0;
  color: #2c3e50;
    right: 0;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
    bottom: 0;
  border-radius: 8px;
    background: rgba(77, 157, 224, 0);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background 0.5s ease-out;
    z-index: 0;
}
}


.grid-item {
.hover-cell .cell-link {
   flex: 1;
   position: absolute;
   text-align: center;
   top: 0;
   padding: 20px 15px;
   left: 0;
   border: 1px solid #e1e5e9;
   right: 0;
   border-radius: 8px;
   bottom: 0;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   background: #ffffff;
   padding: 12px;
   transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
   font-size: 1.1em;
  text-decoration: none !important;
  color: #34495e;
   color: inherit !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  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 {
    background: rgba(77, 157, 224, 0.15);
}
 
.hover-cell .cell-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-decoration: none !important;
    color: inherit !important;
}
}


/* Эффекты при наведении */
.hover-cell:hover .cell-link {
.grid-item:hover {
   transform: scale(1.05);  
   transform: translateY(-5px) scale(1.02);
   height: 100%;
   box-shadow: 0 8px 20px rgba(26, 95, 180, 0.15);
  border-color: #a0c0ff;
  background: #f8fbff;
  cursor: pointer;
  z-index: 10;
}
}


/* Адаптивность */
/* Принудительная тёмная тема для старой Vector */
@media (max-width: 768px) {
skin-vector {
  .flex-grid-container {
    background-color: #1e1e1e !important;
    width: 90%;
     color: #e0e0e0 !important;
     padding: 15px;
  }
 
  .grid-header {
    font-size: 1.5em;
  }
}
}


@media (max-width: 480px) {
/* Скрываем переключатель тем (если есть) */
  .flex-column {
.skin-theme-selector,
    min-width: 100%;
.vector-appearance-selector {
  }
     display: none !important;
 
  .grid-item {
     padding: 18px 12px;
  }
}
}

Текущая версия от 05:38, 4 ноября 2025

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

/* #p-search { display:none; } */
#ca-talk { display:none!important; }
#ca-nstab-main { display:none!important; }

/* Основные стили для таблицы */
.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%;
}

/* ыыаааа наведение 668 раз уже меня заебало блять мама роди назад я уже жалею, что сюда полез */
.hover-cell {
    position: relative;
    padding: 0;
    border: 1px solid #4d4d4d;
    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 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  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 {
    background: rgba(77, 157, 224, 0.15);
}

.hover-cell .cell-link a {
    display: flex;
    align-items: center;
    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%;
}

/* Принудительная тёмная тема для старой Vector */
skin-vector {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

/* Скрываем переключатель тем (если есть) */
.skin-theme-selector,
.vector-appearance-selector {
    display: none !important;
}