Открыть меню
Переключить меню настроек
Открыть персональное меню
Вы не представились системе
Ваш IP-адрес будет виден всем, если вы внесёте какие-либо изменения.

Шаблон:Infobox/styles.css: различия между версиями

Материал из Wormix Station
Нет описания правки
Отменена версия 94, сделанная Ylianko (обсуждение)
Метка: отмена
Строка 107: Строка 107:
margin-left: auto;
margin-left: auto;
}
}
}
.infobox-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px; /* Ограничиваем ширину, как было в таблице */
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-family: sans-serif;
  box-sizing: border-box;
}
.infobox-image-wrapper {
  width: 100%;
  text-align: center;
  background: #fff;
  padding: 4px;
  border-bottom: 1px solid #ddd;
}
.infobox-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}
.infobox-title {
  padding: 12px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  background: #e0e0e0;
  border-bottom: 1px solid #ccc;
}
.infobox-data-grid {
  display: flex;
  flex-direction: column;
  padding: 8px;
}
.infobox-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}
.infobox-row:last-child {
  border-bottom: none;
}
.infobox-label {
  font-weight: bold;
  color: #555;
  min-width: 100px; /* Фиксирует ширину колонки меток */
}
.infobox-value {
  text-align: right;
  color: #000;
  flex-grow: 1;
}
}

Версия от 22:03, 7 октября 2026

.infobox-table {
	z-index: 3;
	overflow: hidden;
	width: 400px;
	max-width: 100%;
	margin-bottom: 1rem;
	padding-bottom: 20px;
	background: #0a1014;
	border: 1px solid #27292d;
	border-radius: 8px;
	border-spacing: 0;
	font-size: 0.875rem;
	text-align: left;
	display: block;
}
.infobox-table tr:not( #infobox-table-img-bg ) {
	display: flex;
	margin-top: 10px;
}

.infobox-table th,
.infobox-table td {
	padding: 0 15px;
}

.infobox-table th,
.infobox-table tr > td:first-child {
	font-weight: 600;
}

.infobox-table tr > td:first-child {
	color: #92acba;
	font-size: 0.8125rem;
	font-weight: normal;
	letter-spacing: 0.75px;
}

.infobox-table th,
th.infobox-table-name {
	color: #f5f9fb;
}

.infobox-table th {
	padding-top: 15px;
	border-top: 1px solid;
	border-color: #27292d;
	font-size: 1rem;
	text-align: left;
}

th.infobox-table-name {
	padding-top: 0;
	border: 0;
	margin-top: 10px;
	margin-bottom: 5px;
	font-size: 1.4rem;
	line-height: 1.4;
}

.infobox-table-img {
	background: var( --background-color-button-quiet--hover );
}

.infobox-table .infobox-table-img {
	padding: 0;
}

.infobox-table-img img {
	max-width: 100%;
	height: auto;
	background: transparent;
}

/* Neutral background for all transprent SVG 
.infobox-table-img img[ src$='.svg' ] {
	background: #eaecf0;
}
*/

.infobox-table-img a.image {
	background: 0;
}

.infobox-table .image:hover img {
	transform: scale( 1.1 );
}

.infobox-table ul,
.infobox-table ol {
	margin-top: 0;
}

.infobox-button {
	display: block;
	width: 100%;
}

.infobox-button > div {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

@media only screen and ( max-width: 720px ) {
	.infobox-table {
		margin-right: auto;
		margin-left: auto;
	}
}