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

Нет описания правки
Нет описания правки
Строка 1020: Строка 1020:
   flex-wrap: wrap;
   flex-wrap: wrap;
   gap: 20px;
   gap: 20px;
  justify-content: center;
}
}


.character-card {
.character-card {
  position: relative;
   width: 200px;
   width: 200px;
   height: 300px;
   height: 300px;
   border: 1px solid #aaa;
  overflow: hidden;
   background-color: #f9f9f9;
   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;
}
 
.character-card:hover {
  transform: translateY(-5px);
}
 
.character-name {
   text-align: center;
   text-align: center;
   padding: 10px;
   font-size: 18px;
  box-sizing: border-box;
   font-weight: bold;
   font-family: sans-serif;
   padding: 8px;
   display: flex;
   background-color: #2a2a2a;
   flex-direction: column;
   color: #00ffc8;
   justify-content: space-between;
}
}


.character-card .image {
.character-image {
   height: 150px;
   width: 100%;
   overflow: hidden;
   height: 200px;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
  overflow: hidden;
}
}


.character-card .image > div {
.character-image > div img {
   max-height: 100%;
   max-height: 100%;
   max-width: 100%;
   width: auto;
}
}


.character-card .text {
.character-info {
   flex-grow: 1;
  position: absolute;
   display: flex;
  bottom: 0;
   flex-direction: column;
  left: 0;
   justify-content: center;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #ccc;
   font-size: 14px;
   padding: 10px;
   transform: translateY(100%);
   transition: transform 0.3s ease;
}
 
.character-card:hover .character-info {
  transform: translateY(0);
}
}