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

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




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


Строка 1031: Строка 1030:
   background-size: cover;
   background-size: cover;
   background-position: center;
   background-position: center;
  border: 2px solid #444;
   border-radius: 10px;
   border-radius: 8px;
   overflow: hidden;
   overflow: hidden;
   transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
   transition: transform 0.2s;
}
}


.character-card:hover {
.character-card:hover {
   transform: scale(1.03);
   transform: scale(1.02);
}
}


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


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


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