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

Нет описания правки
Нет описания правки
 
(не показана 21 промежуточная версия этого же участника)
Строка 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;
Строка 981: Строка 986:
/* Плашка, которая появляется при наведении на картинку */
/* Плашка, которая появляется при наведении на картинку */
.card-hover-info {
.card-hover-info {
    position: absolute;
  position: absolute;
     padding: 20px;
     padding: 20px;
    top: 50%;
     left: 0;
     left: 0;
    bottom: 0; /* теперь позиционируем от низа */
     width: 100%;
     width: 100%;
     height: 50%; /* Половина карточки */
     height: 50%;
     background: rgba(0, 0, 0, 0.6); /* Темная плашка с полупрозрачностью */
     background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgb(0 0 0 / 0%));
     color: #ffffff;
     color: #ffffff;
     display: flex;
     display: flex;
Строка 994: Строка 999:
     align-items: center;
     align-items: center;
     opacity: 0;
     opacity: 0;
     transition: opacity 0.3s ease, transform 0.3s ease; /* Плавное появление */
     transition: opacity 0.3s ease, transform 0.3s ease;
     transform: translateY(-100%); /* Плашка будет скрыта */
     transform: translateY(100%); /* смещаем вниз, а не вверх */
     border-radius: 0 0 10px 10px; /* Закругляем нижний край плашки */
     border-radius: 0 0 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgb(0 0 0 / 0%)); /* Градиент для верхнего края */
}
}


.card:hover .card-hover-info {
.card:hover .card-hover-info {
     opacity: 1; /* Плашка становится видимой */
     opacity: 1;
     transform: translateY(0); /* Плашка скользит сверху */
     transform: translateY(0); /* поднимаем на место при ховере */
}
}


Строка 1040: Строка 1044:
   height: 200px;
   height: 200px;
   overflow: hidden;
   overflow: hidden;
  padding: 0;
  margin: 0;
}
}


.character-img {
.character-img {
  width: 100% !important;
  height: 100% !important;
   object-fit: cover;
   object-fit: cover;
   width: 100%;
   display: block;
  height: 100%;
}
}


Строка 1069: Строка 1076:


.character-card:hover .character-overlay {
.character-card:hover .character-overlay {
   bottom: 40px; /* Появляется над подписью */
   bottom: 40px;
}
}