MediaWiki:Citizen.css: различия между версиями
Askell (обсуждение | вклад) Нет описания правки |
Askell (обсуждение | вклад) Нет описания правки |
||
(не показаны 192 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
/* Размещённый здесь CSS-код будет загружаться для пользователей, использующих тему оформления Citizen */ | /* Размещённый здесь CSS-код будет загружаться для пользователей, использующих тему оформления Citizen */ | ||
@import url('https://fonts.googleapis.com/css?family=Merriweather|Cormorant Infant|PT Mono|Neucha|MedievalSharp|Spectral SC|Kurale|El Messiri|Ledger'); | @import url('https://fonts.googleapis.com/css?family=Merriweather|Cormorant Infant|PT Mono|Neucha|MedievalSharp|Spectral SC|Kurale|El Messiri|Ledger'); | ||
#mw-content-text { | |||
background-color: rgb(255 255 255 / 90%); | |||
border-radius:10px; | |||
padding:10px; | |||
} | |||
pre, .mw-code { | |||
white-space: pre-wrap; | |||
} | |||
.ext-WikiEditor-realtimepreview-textbox#wpTextbox1, .mw-editform .ext-WikiEditor-realtimepreview-textbox#wpTextbox1 { | |||
background-color: white; | |||
padding: 5px; | |||
} | |||
.catlinks { | |||
background-color: rgb(255 255 255 / 90%); | |||
border-radius:10px; | |||
padding:10px; | |||
margin-bottom: -20px; | |||
} | |||
.page-info { | |||
background-color: rgb(255 255 255 / 90%); | |||
border-radius:10px; | |||
padding:10px; | |||
margin-bottom: -25px; | |||
width: max-content; | |||
} | |||
.citizen-sticky-header-visible .citizen-page-header::before { | |||
opacity: 0; | |||
} | |||
.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { | |||
background-color:whitesmoke; | |||
} | |||
.ace_content { | |||
background-color: whitesmoke; | |||
} | |||
.ace-tm .ace_gutter-active-line { | |||
background-color: rgb(255 255 255 / 90%); | |||
} | |||
.citizen-page-sidebar .citizen-menu__heading, .citizen-page-sidebar .citizen-menu .mw-list-item a { | |||
background: rgb(255 255 255 / 90%); | |||
border-radius: 5px; | |||
margin-bottom: -1px; | |||
} | |||
.citizen-page-sidebar .citizen-menu .mw-list-item a { | |||
background: rgb(255 255 255 / 90%); | |||
} | |||
.citizen-toc { | |||
background: rgb(255 255 255 / 90%); | |||
border-radius: 10px | |||
} | |||
.citizen-page-header-inner { | |||
background: rgb(255 255 255 / 90%); | |||
border-radius: 10px; | |||
padding:1vh; | |||
} | |||
.mw-content-ltr { | |||
padding: 2em !important; | |||
border-radius:10px; | |||
background-size: cover; /* Фон будет масштабироваться под размеры экрана */ | |||
padding: 15px; | |||
max-width:100%; | |||
} | |||
/*.mw-body-content li { | |||
background-color: #555555c4; | |||
padding: 15px; | |||
color: white; | |||
}*/ | |||
.wikitable th,.wikitable td { | |||
padding: var(--space-xs) var(--space-sm); | |||
border: 1pt solid var(--border-color-base) | |||
} | |||
.wikitable th { | |||
text-align: center; | |||
} | |||
.dropdown-content a:hover { | |||
background: transparent !important; | |||
} | |||
.dropdown-content a { | |||
position: relative; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 10px 20px; | |||
text-decoration: none; | |||
color: black; | |||
transition: 0.3s; | |||
} | |||
.dropdown-content a::before, | |||
.dropdown-content a::after { | |||
content: ''; | |||
position: absolute; | |||
width: 32px; | |||
height: 32px; | |||
background-size: cover; | |||
opacity: 0; | |||
transition: opacity 0.5s, transform 0.5s; | |||
} | |||
.dropdown-content a::before { | |||
background-image: url('https://asciawiki.ru/images/a/a7/%D0%97%D0%B2%D1%91%D0%B7%D0%B4%D0%BE%D1%87%D0%BA%D0%B0.png'); /* Замените на свою иконку */ | |||
background-size:32px; | |||
left: 50px; | |||
transform: translateX(-10px); | |||
} | |||
.dropdown-content a::after { | |||
background-image: url('https://asciawiki.ru/images/a/a7/%D0%97%D0%B2%D1%91%D0%B7%D0%B4%D0%BE%D1%87%D0%BA%D0%B0.png'); /* Замените на свою иконку */ | |||
background-size:32px; | |||
right: 50px; | |||
transform: translateX(10px); | |||
} | |||
.dropdown-content a:hover::before, | |||
.dropdown-content a:hover::after { | |||
opacity: 1; | |||
transform: translateX(0); | |||
} | |||
#skin-client-prefs-skin-theme .citizen-client-prefs-radio__label[for='skin-client-pref-skin-theme-value-night'] { | |||
display: none; | |||
} | |||
#skin-client-prefs-skin-theme .citizen-client-prefs-radio__label[for='skin-client-pref-skin-theme-value-day'] { | |||
display: none; | |||
} | |||
#skin-client-prefs-skin-theme .citizen-client-prefs-radio__label { | |||
display: none; | |||
} | |||
.desktop-hide { | |||
display:none; | |||
} | |||
/* Анимация для сдвига вниз остальных кнопок */ | |||
.dropdown.active ~ .dropdown { | |||
transform: translateY(100%); | |||
transition: transform 0.3s ease-in-out; | |||
} | |||
/* Контейнер для всех кнопок */ | |||
.dropdown-container { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 5px; /* Отступ между кнопками */ | |||
width: 500px; /* Можно изменить ширину */ | |||
} | |||
/* Контейнер выпадающего списка */ | |||
.dropdown { | |||
position: relative; | |||
display: inline-block; | |||
} | |||
/* Кнопка для открытия списка */ | |||
.dropbtn { | |||
background-color: black; | |||
color: white; | |||
padding: 10px 15px; | |||
font-size: 30px; | |||
cursor: pointer; | |||
border-radius: 5px; | |||
min-width: 500px; | |||
text-align: -webkit-center; | |||
} | |||
/* Контейнер списка (изначально скрыт) */ | |||
.dropdown-content { | |||
display: block; /* Скрываем через height, а не display */ | |||
text-aling: center; | |||
overflow: hidden; | |||
max-height: 0; | |||
opacity: 0; | |||
transition: max-height 0.3s ease-out, opacity 0.3s ease-out; | |||
} | |||
/* Стиль для ссылок внутри списка */ | |||
.dropdown-content a { | |||
color: black; | |||
text-aling: center; | |||
padding: 10px 15px; | |||
text-decoration: none; | |||
display: block; | |||
font-size: 25px; | |||
} | |||
/* Эффект наведения на ссылки */ | |||
.dropdown-content a:hover { | |||
background-color: #f1f1f1; | |||
} | |||
/* Показываем список при клике (нужен JS) */ | |||
.dropdown.active .dropdown-content { | |||
max-hight: 500px; | |||
opacity: 1; | |||
} | |||
/* Исправление отображения текста */ | /* Исправление отображения текста */ | ||
Строка 16: | Строка 236: | ||
} | } | ||
#content { | /*#content { | ||
padding: 2em !important; | padding: 2em !important; | ||
background: rgb(255 255 255 / 90%); | background: rgb(255 255 255 / 90%); | ||
padding: 15px; | padding: 15px; | ||
} | }*/ | ||
.page-header-actions .action-edit { | .page-header-actions .action-edit { | ||
Строка 121: | Строка 341: | ||
} | } | ||
#maincontentwrapper .mw-ui-button.mw-ui-progressive, .btn-primary, body #contentwrapper #maincontentwrapper button.oo-ui-buttonElement-button, body #contentwrapper #maincontentwrapper input.oo-ui-buttonElement-button, input[type=button][name=wpUpload], input[type=submit][name=wpUpload] { | #maincontentwrapper .mw-ui-button.mw-ui-progressive, .btn-primary, body #contentwrapper #maincontentwrapper button.oo-ui-buttonElement-button, body #contentwrapper #maincontentwrapper input.oo-ui-buttonElement-button, input[type=button][name=wpUpload], input[type=submit][name=wpUpload] { | ||
Строка 303: | Строка 512: | ||
border-width: 35px; | border-width: 35px; | ||
border-image: url('https://asciawiki.ru/images/b/b1/Border8.png') 30 round !important; | border-image: url('https://asciawiki.ru/images/b/b1/Border8.png') 30 round !important; | ||
Background: #000000; | |||
} | |||
#borderimg2 { | |||
border: 15px solid transparent !important; | |||
padding: 0px !important; | |||
border-image: url('https://ascia.ru/images/2/29/%D0%9B%D0%B8%D0%BD%D0%B8%D1%8F.png') 30 round !important; | |||
border-inline: solid; | |||
writing-mode: horizontal-tb; | |||
Background: #dee3e7; | Background: #dee3e7; | ||
} | |||
h1, h2, h3, h4, h5, h6 { | |||
font-family: Merriweather !important; | |||
color: black; /* Цвет основного текста */ | |||
} | |||
.dropdown-menu{ | |||
font-family: Merriweather; | |||
} | |||
.dropdown{ | |||
font-family: Merriweather; | |||
font-size:18px | |||
} | |||
.dropdown-menu > li > a{ | |||
font-size:16px | |||
} | |||
.dropdown-item.active, .p-navbar .navbar-nav .dropdown-menu > div > a:first-child:last-child.active, .dropdown-item:active, .p-navbar .navbar-nav .dropdown-menu > div > a:first-child:last-child:active { | |||
color: #fff; | |||
text-decoration: none; | |||
background: #000000 linear-gradient(180deg,#000000,#000000) repeat-x; | |||
} | |||
.navbox { /* Navbox container style */ | |||
box-sizing: border-box; | |||
border: 20px solid transparent !important; | |||
padding: 0px !important; | |||
border-spacing: 0px !important; | |||
border-image: url('https://asciawiki.ru/images/3/31/Border1.png') 24 round !important; | |||
border-radius: 35px; | |||
background: transparent !important; | |||
background-color: #dee3e7 !important; | |||
border-collapse: separate !important; | |||
width: 100%; | |||
clear: both; | |||
font-size: 88%; | |||
text-align: center; | |||
padding: 1px; | |||
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */ | |||
} | |||
.navbox .navbox { | |||
margin-top: 0; /* No top margin for nested navboxes */ | |||
} | |||
.navbox + .navbox { | |||
margin-top: -1px; /* Single pixel border between adjacent navboxes */ | |||
} | |||
.navbox-inner, | |||
.navbox-subgroup { | |||
width: 100%; | |||
} | |||
.navbox-group, | |||
.navbox-title, | |||
.navbox-abovebelow { | |||
padding: 0.25em 1em; /* Title, group and above/below styles */ | |||
line-height: 1.5em; | |||
text-align: center; | |||
} | |||
.navbox-group{ | |||
border-top: 1px solid #545454; | |||
} | |||
th.navbox-group { /* Group style */ | |||
white-space: nowrap; | |||
/* @noflip */ | |||
text-align: right; | |||
} | |||
.navbox, | |||
.navbox-subgroup { | |||
background: #000000; /* Background color */ | |||
} | |||
.navbox-list { | |||
line-height: 1.5em; | |||
border-color: #545454; /* Must match background color */ | |||
} | |||
.navbox th, | |||
.navbox-title { | |||
background: #dee3e7; /* Level 1 color */ | |||
} | |||
.navbox-abovebelow, | |||
th.navbox-group, | |||
.navbox-subgroup .navbox-title { | |||
background: #dee3e7; /* Level 2 color */ | |||
} | |||
.navbox-subgroup .navbox-group, | |||
.navbox-subgroup .navbox-abovebelow { | |||
background: #ffffff; /* Level 3 color */ | |||
} | |||
.navbox-even { | |||
background: #dee3e7; /* Even row striping */ | |||
} | |||
.navbox-odd { | |||
background: #ffffff; /* Odd row striping */ | |||
} | |||
.navbox .hlist td dl, | |||
.navbox .hlist td ol, | |||
.navbox .hlist td ul, | |||
.navbox td.hlist dl, | |||
.navbox td.hlist ol, | |||
.navbox td.hlist ul { | |||
padding: 0.125em 0; /* Adjust hlist padding in navboxes */ | |||
} | |||
.codeEditor-status { | |||
color: black; | |||
} | |||
.navbox .navbar { | |||
display:none; | |||
} | |||
body { | |||
max-width: 100%; | |||
height: auto; | |||
background-image: url('https://asciawiki.ru/images/6/61/%D0%A4%D0%9E%D0%9DGPT.jpg'); /* Замените на путь к вашему изображению */ | |||
background-size: cover; /* Фон будет масштабироваться под размеры экрана */ | |||
background-position: center center; /* Центрирование изображения */ | |||
background-repeat: no-repeat; /* Изображение не будет повторяться */ | |||
background-attachment: fixed; /* Фон будет фиксированным при прокрутке страницы */ | |||
} | |||
.navbox .navbar { | |||
position: fixed; | |||
display:none; | |||
} | |||
.toc { | |||
border: 2px solid #FFFFFF !important; | |||
padding: 5px !important; | |||
border-image: url('') 30 round !important; | |||
border-radius: 10px; | |||
background: rgb(0 0 0 / 80%); | |||
width: auto; | |||
color: white; | |||
margin-bottom: 20px; | |||
} | |||
.tocnumber { | |||
color: white !important; | |||
} | |||
#toc { | |||
display: inline-block; | |||
} | |||
.tocnumber:after { content: '.' | |||
} | |||
.toc ul ul{ margin-top: 5px !important; | |||
} | |||
.nav-link { | |||
color: #000000; | |||
} | |||
.nav { | |||
display: flex; | |||
font-size: 16px; | |||
font-weight: 700; | |||
} | |||
.nav__link { | |||
margin-left: 50px; | |||
color: #fff; | |||
text-decoration: none; | |||
opacity: 0.75; | |||
transition: opacity 0.2 linear; | |||
} | |||
.navbar-light .navbar-nav .nav-link, .p-navbar .navbar-nav .nav-link, .p-navbar .navbar-nav .p-navbar .navbar-tool > a, .p-navbar .p-navbar .navbar-nav .navbar-tool > a, .navbar-light .navbar-nav .p-navbar .navbar-tool > a, .p-navbar .navbar-light .navbar-nav .navbar-tool > a { | |||
color: #ffffff; | |||
border-color: #000000; | |||
} | |||
.navbar, .p-navbar { | |||
position: relative; | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-items: center; | |||
justify-content: space-between; | |||
padding: 0.5rem 1rem; | |||
border-bottom: 1px solid black; | |||
} | |||
.p-navbar .navbar-form button { | |||
color: #000000; | |||
} | |||
.navbar-light .navbar-toggler, .p-navbar .navbar-toggler { | |||
color: #000000; | |||
border-color: rgb(0, 0, 0); | |||
} | |||
.p-navbar .navbar-tool > a { | |||
position: relative; | |||
padding-left: 0; | |||
padding-right: 0; | |||
color: black !important; | |||
} | |||
.p-navbar { | |||
background-color: #fff; | |||
} | |||
.mw-body div.thumbinner { | |||
box-sizing: content-box; | |||
max-width: calc(100% - 8px); | |||
height: auto; | |||
} | |||
div.thumbinner { | |||
border: 1px solid #545454; | |||
padding: 3px; | |||
background-color: #dee3e7; | |||
font-size: 94%; | |||
text-align: center; | |||
overflow: hidden; | |||
} | |||
html .thumbimage { | |||
background-color: none !important; | |||
border: 0px solid #fefefe !important; | |||
} | |||
.mw-content-ltr .magnify { | |||
display: none; | |||
} | |||
.thumbcaption { | |||
padding: 5px !important; | |||
} | |||
.panel-body ul { | |||
margin: 0; | |||
list-style: none; | |||
padding-left: 0; | |||
width:70%; | |||
} | |||
.panel-container { | |||
display: flex; | |||
flex-wrap: wrap; | |||
} | |||
.panel-body>ul a{ | |||
display: block; | |||
padding: 5px 10px; | |||
} | |||
.panel-body>ul li:last-child a{ | |||
padding-bottom: 10px; | |||
} | |||
.panel-body>ul a:hover{ | |||
background-color: cover #dee3e7; | |||
} | |||
.mainpage-header .h2-3 { | |||
padding: 1px ; | |||
font-size: 60px !important; | |||
font-weight: bold; | |||
letter-spacing: 0.01em; | |||
font-family: 'Spectral SC' !important; | |||
border-bottom: 2px solid #0000; | |||
border-image: linear-gradient(90deg, #0000 0%, rgba(82, 81, 79, 1) 50%, rgba(82, 81, 79, 1) 50%, #0000 100%); | |||
border-image-slice: 30; | |||
} | |||
.mw-lingo-tooltip { | |||
display: none; | |||
color: white; | |||
background-color: #454545; | |||
border: 1px solid #e2e2e2; | |||
-webkit-box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.15); | |||
-moz-box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.15); | |||
box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.15); | |||
-moz-border-radius: 5px; | |||
-webkit-border-radius: 5px; | |||
border-radius: 5px; | |||
} | |||
.mw-lingo-term { | |||
border-bottom: 1px dotted #454545; | |||
cursor: default; | |||
} | |||
.simpletooltip { /* стиль текста, наведя или нажав на который появится пояснение */ | |||
display: inline-block; | |||
position: relative; | |||
text-indent: 0px; | |||
cursor: help; /* вид курсора */ | |||
} | |||
.simpletooltip > span { /* стиль появляющейся подсказки */ | |||
position: absolute; | |||
bottom: 100%; | |||
left: -21em; /* = max-width */ | |||
right: -21em; /* = max-width */ | |||
width: -moz-max-content; | |||
width: -webkit-max-content; | |||
width: max-content; /* ширина подсказки может быть не более содержимого */ | |||
max-width: 21em; /* ширина подсказки может быть не более 20em */ | |||
max-height: 80vh; /* необязательное ограничение по высоте подсказки, 1vh — это 1% от ширины окна */ | |||
overflow: auto; | |||
visibility: hidden; | |||
margin: 0 auto .4em; /* поднята на .4em над текстом, наведя или нажав на который появится пояснение */ | |||
padding: .3em; | |||
border: solid rgb(000,000,000); | |||
font-size: 90%; | |||
background: #fff; | |||
line-height: normal; | |||
cursor: auto; | |||
} | |||
.simpletooltip .left > span { /* начинается от левого края */ | |||
left: 0; | |||
right: -21em; | |||
margin: 0 0 .4em; | |||
} | |||
.simpletooltip .right > span { /* начинается от правого края */ | |||
left: -21em; | |||
right: 0; | |||
margin: 0 0 .4em auto; | |||
} | |||
.simpletooltip:after { /* треугольничек под подсказкой; тут тоже везде .4em */ | |||
content: ""; | |||
position: absolute; | |||
top: -.4em; | |||
left: 50%; | |||
visibility: hidden; | |||
margin: 0 0 0 -.4em; | |||
border: .4em solid; | |||
border-color: rgb(000,000,000) transparent transparent transparent; | |||
cursor: auto; | |||
} | |||
.simpletooltip .left:after { | |||
left: 1em; | |||
} | |||
.simpletooltip.right:after { | |||
left: auto; | |||
right: .6em; /* 1em - .4em */ | |||
} | |||
.simpletooltip:before { /* поле между текстом, наведя или нажав на который появится пояснение, и подсказкой нужно чтобы, если перевести курсор мышки на подсказку, та не исчезла; тут тоже везде .4em */ | |||
content: ""; | |||
position: absolute; | |||
top: -.4em; | |||
left: 0; | |||
right: 0; | |||
height: .4em; | |||
visibility: hidden; | |||
} | |||
.simpletooltip:hover > span, | |||
.simpletooltip:hover:before, | |||
.simpletooltip:hover:after, | |||
.simpletooltip:focus > span, | |||
.simpletooltip:focus:before, | |||
.simpletooltip:focus:after { | |||
visibility: visible; | |||
transition: 0s .4s; | |||
} | |||
.simpletooltip:focus { /* убрать рамку в Хроме */ | |||
outline: none; | |||
} | |||
@media (max-width: 21em) { /* ширина подсказки может быть не более ширины окна браузера */ | |||
.simpletooltip > span { | |||
max-width: 100vw; /* в 100vw входит полоса прокрутки, но на мобильных она часто отсутствует */ | |||
box-sizing: border-box; | |||
} | |||
} | |||
.a[title*="Участник:"] { | |||
background:url("https://ascia.ru/wiki/%D0%9F%D0%B5%D1%81%D0%BE%D1%87%D0%BD%D0%B8%D1%86%D0%B0#/media/%D0%A4%D0%B0%D0%B9%D0%BB:%D0%9D%D1%83%D0%BA%D0%B0.gif"); | |||
background-repeat:no-repeat; | |||
padding-left:1.5em; | |||
} | |||
.gradient-column { | |||
background: linear-gradient(to bottom, #000000, #FFFFFF); /* Устанавливаем градиент */ | |||
padding: 10px; | |||
border: url('https://asciawiki.ru/images/3/31/Border1.png') 40 round !important; | |||
} | |||
.gradient-column a { | |||
color: white; /* Цвет ссылок внутри */ | |||
text-decoration: none; /* Убираем подчеркивание ссылок */ | |||
} | |||
.gradient-column a:hover { | |||
text-decoration: underline; /* Подчеркивание при наведении */ | |||
} | |||
/* Применяем обводку только к тексту внутри статей */ | |||
.mw-body-content p , .mw-body-content li { | |||
color: black; /* Цвет основного текста */ | |||
display: contents; | |||
} | |||
.noclick a { | |||
pointer-events: none; | |||
cursor: default; | |||
} | |||
/* Контейнер для группы карточек */ | |||
.card-group { | |||
display: flex; /* Размещает карточки в строку */ | |||
gap: 10px; /* Отступы между карточками */ | |||
justify-content: center; /* Выравнивание карточек по центру */ | |||
align-items: stretch; /* Все карточки одинаковой высоты */ | |||
} | |||
.card { | |||
position: relative; | |||
width: 350px; /* Фиксированная ширина карточки */ | |||
min-height: 150px; /* Минимальная высота для выравнивания */ | |||
background-color: #ffffff; | |||
border-radius: 10px; | |||
overflow: hidden; /* Скрываем все, что выходит за пределы */ | |||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Легкая тень */ | |||
} | |||
.card-img-top { | |||
width: 100%; | |||
height: auto; | |||
} | |||
/* Показываем подсказку при наведении */ | |||
.card-img-top::after { | |||
content: "Наведи сюда, чтобы узнать больше"; | |||
position: absolute; | |||
top: 50%; | |||
left: 50%; | |||
transform: translate(-50%, -50%); | |||
font-size: 18px; | |||
color: rgba(255, 255, 255, 0.8); /* Белый с прозрачностью */ | |||
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Легкая тень */ | |||
font-weight: bold; | |||
opacity: 0; /* Скрыта по умолчанию */ | |||
transition: opacity 0.3s ease; /* Плавное изменение прозрачности */ | |||
} | |||
.card-body { | |||
padding: 15px; | |||
font-family: 'Arial', sans-serif; | |||
background-color: #f7f7f7; | |||
} | |||
.card-title { | |||
font-size: 20px; | |||
color: #212121; | |||
margin-bottom: 10px; | |||
} | |||
/* Плашка, которая появляется при наведении на картинку */ | |||
.card-hover-info { | |||
position: absolute; | |||
padding: 20px; | |||
top: 50%; | |||
left: 0; | |||
width: 100%; | |||
height: 50%; /* Половина карточки */ | |||
background: rgba(0, 0, 0, 0.6); /* Темная плашка с полупрозрачностью */ | |||
color: #ffffff; | |||
display: flex; | |||
flex-direction: column; | |||
justify-content: center; | |||
align-items: center; | |||
opacity: 0; | |||
transition: opacity 0.3s ease, transform 0.3s ease; /* Плавное появление */ | |||
transform: translateY(-100%); /* Плашка будет скрыта */ | |||
border-radius: 0 0 10px 10px; /* Закругляем нижний край плашки */ | |||
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgb(0 0 0 / 0%)); /* Градиент для верхнего края */ | |||
} | |||
.card:hover .card-hover-info { | |||
opacity: 1; /* Плашка становится видимой */ | |||
transform: translateY(0); /* Плашка скользит сверху */ | |||
} | |||
.card-hover-info .label { | |||
font-weight: bold; | |||
font-size: 18px; | |||
} | |||
.card-hover-info .value { | |||
font-size: 16px; | |||
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; | |||
} | } |