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

Нет описания правки
Нет описания правки
 
(не показаны 3 промежуточные версии этого же участника)
Строка 1017: Строка 1017:




.character-gallery {
.character-row {
   display: flex;
   display: flex;
  gap: 16px;
   flex-wrap: wrap;
   flex-wrap: nowrap;
   gap: 20px;
   overflow-x: auto;
}
}


Строка 1028: Строка 1027:
   width: 200px;
   width: 200px;
   height: 300px;
   height: 300px;
   background-image: var(--char-img);
   background-color: #222;
  background-size: cover;
   color: white;
   background-position: center;
  border: 2px solid #444;
   border-radius: 8px;
   border-radius: 8px;
   overflow: hidden;
   overflow: hidden;
   transition: transform 0.3s ease;
   text-align: center;
  font-family: sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
 
.character-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
}


.character-card:hover {
.character-img {
   transform: scale(1.03);
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
   display: block;
}
}


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


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


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