Template:Infobox/styles.css:修订间差异

来自Minecraft基岩版开发Wiki
添加的内容 删除的内容
无编辑摘要
(应该吧)
标签已被回退
第24行: 第24行:
margin: .6em 0;
margin: .6em 0;
}
}
}

.notaninfobox > div:not(:first-child) {
padding-top: 2px;
}
}



2022年2月8日 (二) 16:52的版本

.notaninfobox {
	position: relative;
	float: right;
	clear: right;
	margin: 0 0 .6em .6em;
	font-size: 90%;
	background-color: #d9e9fa;
	overflow-x: auto;
    box-shadow: 0px 3px 1px 0 rgba(81, 90, 97, .25);
    border-radius: 2px;
}

@media screen and (min-width: 720px) {
	.notaninfobox {
		width: 300px;
	}
}

@media screen and (max-width: 720px) {
	.notaninfobox {
		position: static;
		float: none;
		clear: none;
		margin: .6em 0;
	}
}

.infobox-title {
	background-color: #96bcd9;
	font-weight: bold;
	font-size: 1.25em;
	text-align: center;
	color: #262a2d;
	padding: .25em 0;
}

.infobox-imagearea {
	text-align: center;
	padding: 6px;
    background-color: #cae3fa;
}

.infobox-imagearea > div:not(:first-child) {
	margin-top: .8em;
}

.infobox-subheader {
	text-align: center;
	background-color: #bedaf3;
}

.infobox-rows {
	display: grid;
	grid-template-columns: max-content 1fr;
	border-top: 4px solid #8eb3d4;
}

.notaninfobox > div.infobox-rows {
	padding-top: 0;
}

.infobox-row {
	display: contents;
}

.infobox-cell-header {
	background-color: #97bcda;
}

.infobox-cell-header,
.infobox-cell-data {
	padding: 1px 3px;
}

.infobox-footer {
	font-size: 90%;
	/* text-align: center; */
}

.infobox-row:nth-child(2n) > .infobox-cell-header {
	background-color: #97bcda;
}

.infobox-row:nth-child(2n) > .infobox-cell-data {
	background-color: #e5f3f9;
}

.infobox-row:nth-child(2n+1) > .infobox-cell-header {
	background-color: #abcde8;
}

.infobox-row:nth-child(2n+1) > .infobox-cell-data {
	background-color: #f1fafe;
}

.subinfobox.infobox-rows {
	border-top: 0;
}

.infobox-cell-data .subinfobox {
	margin: -1px -3px;
}

.infobox-row:nth-child(2n) .subinfobox .infobox-cell-header {
	background-color: #abcde3;
}

.infobox-row:nth-child(2n) .subinfobox .infobox-cell-data {
	background-color: #e5f3f9;
}

.infobox-row:nth-child(2n+1) .subinfobox .infobox-cell-header {
	background-color: #c1d9e9;
}

.infobox-row:nth-child(2n+1) .subinfobox .infobox-cell-data {
	background-color: #f1fafe;
}

.subinfobox .infobox-row:not(:first-child) .infobox-cell-header {
	border-top: 1px solid #7c8a94;
}

.subinfobox .infobox-row:not(:first-child) .infobox-cell-data {
	border-top: 1px solid #bcd0e0;
}