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

Нет описания правки
Метка: ручная отмена
Нет описания правки
 
(не показаны 52 промежуточные версии этого же участника)
Строка 2: Строка 2:
@import url('https://fonts.googleapis.com/css?family=Merriweather|Cormorant Infant|PT Mono|Neucha|MedievalSharp|Spectral SC|Kurale|El Messiri|Ledger');
@import url('https://fonts.googleapis.com/css?family=Merriweather|Cormorant Infant|PT Mono|Neucha|MedievalSharp|Spectral SC|Kurale|El Messiri|Ledger');
   
   
/* Пример: отключаем Popups на странице "Main Page" */
body.page-Main_Page .mwe-popups {
    display: none !important;
}
  #mw-content-text {
  #mw-content-text {
   background-color: rgb(255 255 255 / 90%);
   background-color: rgb(255 255 255 / 90%);
Строка 153: Строка 159:


.desktop-hide {
.desktop-hide {
display:none;
display:none;
}
}


Строка 165: Строка 171:
.dropdown-container {
.dropdown-container {
     display: flex;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
    gap: 5px; /* Отступ между кнопками */
}
    width: 500px; /* Можно изменить ширину */
 
.menu-column {
  display: flex;
  flex-direction: column;
  gap: 8px; /* расстояние между пунктами в колонке */
  flex: 1;  /* колонки равной ширины */
  min-width: 220px; /* при желании минимальная ширина */
}
}


Строка 184: Строка 196:
     cursor: pointer;
     cursor: pointer;
     border-radius: 5px;
     border-radius: 5px;
    min-width: 500px;
  width: 100%;      /* чтобы кнопка занимала ширину колонки */
    text-align: -webkit-center;
  box-sizing: border-box;
  text-align: center;
}
}


Строка 200: Строка 213:


/* Стиль для ссылок внутри списка */
/* Стиль для ссылок внутри списка */
.dropdown-content a {
.dropdown-content a ,
.dropdown-content h4 {
     color: black;
     color: black;
     text-aling: center;
     text-aling: center;
    padding: 10px 15px;
     text-decoration: none;
     text-decoration: none;
     display: block;
     display: block;
Строка 213: Строка 226:
     background-color: #f1f1f1;
     background-color: #f1f1f1;
}
}


/* Показываем список при клике (нужен JS) */
/* Показываем список при клике (нужен JS) */
Строка 221: Строка 233:
}
}


/* Анимация сдвига только в рамках своей колонки */
.menu-column .dropdown.active ~ .dropdown {
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}
/* Responsive: на узких экранах колонки идут друг под другом */
max-width: 800px {
  .dropdown-container {
    flex-direction: column;
    gap: 10px;
    max-width: 95%;
  }
  .menu-column {
    min-width: 0;
  }
  .dropbtn { font-size: 18px; }
}


/* Исправление отображения текста */
/* Исправление отображения текста */
Строка 651: Строка 681:




.toc {
border: 2px solid #FFFFFF !important;
    padding: 5px !important;
    border-image: url('') 30 round !important;
    border-radius: 10px;
    background: rgb(0 0 0 / 80%);
    width: auto;
    color: white;
    margin-bottom: 20px;
}
.tocnumber {
color: white !important;
}
#toc {
display: inline-block;
}
.tocnumber:after { content: '.'
}
.toc ul ul{ margin-top: 5px !important;
}
.nav-link {
.nav-link {
   color: #000000;
   color: #000000;
Строка 937: Строка 942:
      
      
.card {
.card {
     width: 300px;                /* Фиксированная ширина карточки */
     position: relative;
        width: 350px;                /* Фиксированная ширина карточки */
     min-height: 150px;          /* Минимальная высота для выравнивания */
     min-height: 150px;          /* Минимальная высота для выравнивания */
     background: #cdcdcd82;            /* Цвет фона */
     background-color: #ffffff;
    border: 1px solid #ccc;     /* Граница */
     border-radius: 10px;
     border-radius: 8px;         /* Скруглённые углы */
     overflow: hidden; /* Скрываем все, что выходит за пределы */
     padding: 15px;               /* Внутренние отступы */
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Легкая тень */
     box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Тень */
    transition: transform 0.3s ease-in-out; /* Эффект при наведении */
    overflow: hidden;            /* Защита от выхода элементов */
}
/* Эффект при наведении */
.card:hover {
    transform: scale(1.05);
}
}


/* Заголовок */
.card-img-top {
.card-title {
    width: 100%;
    height: auto;
}
 
/* Показываем подсказку при наведении */
.card-img-top::after {
    content: "Наведи сюда, чтобы узнать больше";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
     font-size: 18px;
     font-size: 18px;
    color: rgba(255, 255, 255, 0.8); /* Белый с прозрачностью */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Легкая тень */
     font-weight: bold;
     font-weight: bold;
    opacity: 0; /* Скрыта по умолчанию */
    transition: opacity 0.3s ease; /* Плавное изменение прозрачности */
}
.card-body {
    padding: 15px;
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
}
.card-title {
    font-size: 20px;
    color: #212121;
     margin-bottom: 10px;
     margin-bottom: 10px;
}
}


/* Текст */
/* Плашка, которая появляется при наведении на картинку */
.card-text {
.card-hover-info {
     font-size: 14px;
  position: absolute;
     color: #555;
    padding: 20px;
     line-height: 1.4;
    left: 0;
     word-break: break-word; /* Правильный перенос текста */
     bottom: 0; /* теперь позиционируем от низа */
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgb(0 0 0 / 0%));
     color: #ffffff;
    display: flex;
     flex-direction: column;
     justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(100%); /* смещаем вниз, а не вверх */
    border-radius: 0 0 10px 10px;
}
}


.card-body {
.card:hover .card-hover-info {
     padding: 20px;
     opacity: 1;
     background-color: #ffffff; /* Белый фон для чистоты */
     transform: translateY(0); /* поднимаем на место при ховере */
     font-family: 'Arial', sans-serif; /* Читаемый шрифт */
}
 
.card-hover-info .label {
     font-weight: bold;
    font-size: 18px;
}
 
.card-hover-info .value {
     font-size: 16px;
     font-size: 16px;
     color: #333333; /* Темно-серый для текста */
     color: #ffffff;
}
}


.card-info {
 
    margin-top: 10px;
 
    display: block;
.character-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
}


.card-info .item {
.character-card {
    background-color: #f8f9fa; /* Светло-серый фон для блока */
  position: relative;
    padding: 12px;
  width: 200px;
    margin-bottom: 12px;
  height: 300px;
    border-radius: 8px;
  background-color: #222;
    border: 1px solid #ddd; /* Легкая граница */
  color: white;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
    position: relative;
  overflow: hidden;
    overflow: hidden;
  text-align: center;
    transition: all 0.3s ease;
  font-family: sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
}


.card-info .item:hover {
.character-image {
    background-color: #e2e6ea; /* Темнеет фон при наведении */
  width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Тень при наведении */
  height: 200px;
    transform: translateY(-5px); /* Легкое поднятие при наведении */
  overflow: hidden;
  padding: 0;
  margin: 0;
}
}


.card-info .label {
.character-img {
    font-weight: bold;
  width: 100% !important;
    color: #212121; /* Черный для заголовков */
  height: 100% !important;
    margin-bottom: 5px;
  object-fit: cover;
    font-size: 16px;
  display: block;
}
}


.card-info .value {
.character-name {
    font-size: 16px;
  font-size: 1.1em;
    color: #333333; /* Тёмно-серый для значений */
  font-weight: bold;
    line-height: 1.6;
  padding: 8px 0;
  background-color: rgba(0, 0, 0, 0.7);
}
}


.card-info .item .value {
.character-overlay {
    transition: color 0.3s ease;
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.9em;
  padding: 8px 5px;
  box-sizing: border-box;
  transition: bottom 0.3s ease;
}
}


.card-info .item:hover .value {
.character-card:hover .character-overlay {
    color: #007bff; /* Синий акцент при наведении */
  bottom: 40px;
}
}