MediaWiki:Citizen.css: различия между версиями
Askell (обсуждение | вклад) Нет описания правки |
Askell (обсуждение | вклад) Нет описания правки |
||
(не показано 27 промежуточных версий этого же участника) | |||
Строка 938: | Строка 938: | ||
.card { | .card { | ||
position: relative; | position: relative; | ||
width: 350px; /* Фиксированная ширина карточки */ | |||
min-height: 150px; /* Минимальная высота для выравнивания */ | |||
background-color: #ffffff; | background-color: #ffffff; | ||
border-radius: 10px; | border-radius: 10px; | ||
Строка 948: | Строка 949: | ||
width: 100%; | width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
/* Показываем подсказку при наведении */ | |||
.card-img-top::after { | .card-img-top::after { | ||
content: "Наведи сюда, чтобы узнать больше"; | content: "Наведи сюда, чтобы узнать больше"; | ||
Строка 964: | Строка 960: | ||
font-size: 18px; | font-size: 18px; | ||
color: rgba(255, 255, 255, 0.8); /* Белый с прозрачностью */ | color: rgba(255, 255, 255, 0.8); /* Белый с прозрачностью */ | ||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Легкая тень | text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Легкая тень */ | ||
font-weight: bold; | font-weight: bold; | ||
opacity: 0; | opacity: 0; /* Скрыта по умолчанию */ | ||
transition: opacity 0.3s ease; | transition: opacity 0.3s ease; /* Плавное изменение прозрачности */ | ||
} | } | ||
.card-body { | .card-body { | ||
Строка 990: | Строка 982: | ||
.card-hover-info { | .card-hover-info { | ||
position: absolute; | position: absolute; | ||
padding: 20px; | |||
top: 50%; | top: 50%; | ||
left: 0; | left: 0; | ||
Строка 1015: | Строка 1008: | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 18px; | font-size: 18px; | ||
} | } | ||
Строка 1021: | Строка 1013: | ||
font-size: 16px; | font-size: 16px; | ||
color: #ffffff; | color: #ffffff; | ||
} | |||
.character-row { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 20px; | |||
} | |||
.character-card { | |||
position: relative; | |||
width: 200px; | |||
height: 300px; | |||
background-color: #222; | |||
color: white; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
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-img { | |||
width: 100% !important; | |||
height: 100% !important; | |||
object-fit: cover; | |||
display: block; | |||
} | |||
.character-name { | |||
font-size: 1.1em; | |||
font-weight: bold; | |||
padding: 8px 0; | |||
background-color: rgba(0, 0, 0, 0.7); | |||
} | |||
.character-overlay { | |||
position: absolute; | |||
bottom: -60px; | |||
left: 0; | |||
width: 100%; | |||
background-color: rgba(0,0,0,0.7); | |||
color: white; | |||
font-size: 0.9em; | |||
padding: 8px 5px; | |||
box-sizing: border-box; | |||
transition: bottom 0.3s ease; | |||
} | |||
.character-card:hover .character-overlay { | |||
bottom: 40px; | |||
} | } |