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

Нет описания правки
Нет описания правки
Строка 1016: Строка 1016:




.character-card-container {
 
.character-gallery {
   display: flex;
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   gap: 20px;
   flex-wrap: nowrap;
   justify-content: center;
   overflow-x: auto;
}
}


Строка 1027: Строка 1028:
   width: 200px;
   width: 200px;
   height: 300px;
   height: 300px;
  background-image: var(--char-img);
  background-size: cover;
  background-position: center;
  border: 2px solid #444;
  border-radius: 8px;
   overflow: hidden;
   overflow: hidden;
  border-radius: 12px;
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-family: "Segoe UI", sans-serif;
  color: #fff;
   transition: transform 0.3s ease;
   transition: transform 0.3s ease;
}
}


.character-card:hover {
.character-card:hover {
   transform: translateY(-5px);
   transform: scale(1.03);
}
}


.character-name {
.char-name {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
   text-align: center;
   text-align: center;
  font-size: 18px;
   font-weight: bold;
   font-weight: bold;
   padding: 8px;
   padding: 8px 0;
   background-color: #2a2a2a;
   z-index: 1;
  color: #00ffc8;
}
}


.character-image {
.char-overlay {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
 
.character-image > div img {
  max-height: 100%;
  width: auto;
}
 
.character-info {
   position: absolute;
   position: absolute;
   bottom: 0;
   bottom: -100%;
  left: 0;
   width: 100%;
   width: 100%;
   background: rgba(0, 0, 0, 0.7);
   background-color: rgba(20, 20, 20, 0.7);
   color: #ccc;
   color: #fff;
   font-size: 14px;
   font-size: 12px;
   padding: 10px;
   padding: 8px;
  transform: translateY(100%);
   transition: bottom 0.3s ease;
   transition: transform 0.3s ease;
}
}


.character-card:hover .character-info {
.character-card:hover .char-overlay {
   transform: translateY(0);
   bottom: 40px; /* поднимается над именем */
}
}