Переключити меню
Toggle preferences menu
Переключити особисте меню
Ви не увійшли до системи
Ваша IP-адреса буде публічно видима, якщо Ви внесете будь-які редагування.

Шаблон:ІнфобоксПерсонаж/styles.css: відмінності між версіями

Матеріал зі «Світу Льоду й Полум’я» — українська вікі
Немає опису редагування
Мітка: Скасовано
Немає опису редагування
Мітка: Скасовано
Рядок 11: Рядок 11:
}
}


/* БЛОК З ФОТО */
/* Фото */
.charbox-image {
.charbox-image {
   position: relative;
   position: relative;
   padding: 0;
   padding: 0;
  margin: 0;
   line-height: 0;
   line-height: 0;
}
}


/* ОЦЕ ГОЛОВНЕ — перебиваємо MediaWiki */
/* Ламаємо MediaWiki thumb */
.charbox-image a,
.charbox-image .mw-file-element,
.charbox-image .mw-file-element {
.charbox-image img {
   display: block;
   display: block;
   width: 100% !important;
   width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}
}


.charbox-image img {
/* Прибираємо будь-який внутрішній контейнер */
  width: 100% !important;
.charbox-image a {
  height: auto !important;
   display: block;
   display: block;
}
}


/* затемнення низу */
/* Затемнення */
.charbox-image::after {
.charbox-image::after {
   content: "";
   content: "";
Рядок 38: Рядок 40:
   left: 0;
   left: 0;
   width: 100%;
   width: 100%;
   height: 20%;
   height: 40%;
   background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
   background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}
}


/* герб */
/* Герб */
.charbox-emblem {
.charbox-emblem {
   position: absolute;
   position: absolute;
   bottom: 10px;
   bottom: 12px;
   right: 10px;
   right: 12px;
   width: 80px;
   width: 90px;
   z-index: 2;
   z-index: 3;
}
}


/* заголовок */
/* Заголовок */
.charbox-title {
.charbox-title {
   background: #2f5f87;
   background: #2f5f87;
   text-align: center;
   text-align: center;
   padding: 12px;
   padding: 14px;
   font-size: 20px;
   font-size: 20px;
   font-weight: 600;
   font-weight: 600;
}
}


/* контент */
/* Контент */
.charbox-content {
.charbox-content {
   padding: 15px;
   padding: 15px;

Версія за 19:26, 24 лютого 2026

.charbox {
  width: 400px;
  float: right;
  margin-left: 25px;
  background: #0e1b27;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,.5);
  color: white;
  font-size: 14px;
}

/* Фото */
.charbox-image {
  position: relative;
  padding: 0;
  margin: 0;
  line-height: 0;
}

/* Ламаємо MediaWiki thumb */
.charbox-image .mw-file-element,
.charbox-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

/* Прибираємо будь-який внутрішній контейнер */
.charbox-image a {
  display: block;
}

/* Затемнення */
.charbox-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}

/* Герб */
.charbox-emblem {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 90px;
  z-index: 3;
}

/* Заголовок */
.charbox-title {
  background: #2f5f87;
  text-align: center;
  padding: 14px;
  font-size: 20px;
  font-weight: 600;
}

/* Контент */
.charbox-content {
  padding: 15px;
}

.charbox-content div {
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}