Template:搭档信息/styles.css

来自Arcaea中文维基
< Template:搭档信息
Star0讨论 | 贡献2024年9月13日 (五) 23:23的版本 (修复切换图片显示错误问题)
.partnerbox {
	display: grid;
	grid-template-columns: 1fr 2fr 2fr auto;
	text-align: center;
	border: 1px solid #a2a9b1;
	background-color: #f8f9fa;
	color: black;
	color: #202122;
	word-wrap: break-word;
	font: inherit;
	border-collapse: collapse;
	box-sizing: border-box;
	margin: 1em 0;
	overflow: auto;
	overflow-y: hidden;
	overflow-x: auto;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	position: relative;
	border: 1px solid #eaecf0;
	margin-bottom: 2em;
	background-color: #f8f9fa;
	width: 100%;
	max-width: 100% !important;
	border-spacing: 3px;
	font-size: small;
	line-height: 1.5em;
}

.partnerbox > div {
	word-wrap: break-word;
	border-bottom: 1px solid #eaecf0;
	padding: 5px 5px;
	border-collapse: collapse;
	overflow-wrap: normal;
	white-space: nowrap;
	box-sizing: border-box;
}

.partnerbox > .header,
.partnerbox > .label,
.partnerbox > .level-label,
.partnerbox > .awaken-label,
.partnerbox > #right-image,
.partnerbox > #top-image{
	display: flex;
    justify-content: center;
    align-items: center;
}

.partnerbox > .awaken-label {
	display:unset;
}

.ns-only > .over {
	display:none;
}


.partnerbox.awaken {
	grid-template-columns: 1fr 2fr 2fr 2fr auto;
}

/* 背景色定义 */

.support>.label,
.support>#title,
.support>.header,
.support>div>div>.label-text,
.support>div>div>div>.label-text {
	background-color: #9cffac;
}

.balance>.label,
.balance>#title,
.balance>.header,
.balance>div>div>.label-text,
.balance>div>div>div>.label-text {
	background-color: #9ebaff;
}

.challenge>.label,
.challenge>#title,
.challenge>.header,
.challenge>div>div>.label-text,
.challenge>div>div>div>.label-text {
	background-color: #ffa09e;
}

.label-text {
    padding: 1px 5px 1px 5px;
    margin: 0 5px 0 5px;
}

.level-data,
.level-data,
.level-label,
.level-label,
.awaken>.level-data,
.awaken>.level-label,
.mobile-awaken-date>#mobile-date-normal,
.awaken>#ns-date-normal{
	border-right: 1px solid #eaecf0;
}



.data {
	grid-column: 2 / 4;

}

.awaken>.data {
	grid-column: 2 / 5;
}

.label {
	grid-column: 1 / 2;
}

.header {
	grid-column: 1 / 4;
	font-size: medium;
	height: 25px !important;
}

.awaken>.header {
	grid-column: 1 / 5;
}

#top-image {
	margin: 4px 0px;
	grid-column: 1 / 4;
}

.awaken>#top-image {
	grid-column: 1 / 5;
}

#top-image>div>img,
#right-image>div>img {
	margin: 0 auto;
}

#title {
	font-size: large;
	grid-column: 1 / 4;
	padding: 7px 10px;
	max-width: 100%;
}

.awaken>#title {
	grid-column: 1 / 5;
}

.skill-awaken>#skill-label,
.skill-second>#skill-label {
	grid-row-end: span 2;
}


.img-text {
	font-weight: bold;
}

.img-tab-part {
	align-items: center;
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	height: 40px;
	letter-spacing: .5px;
	margin: 0 11px;
	text-align: center;
	text-decoration: none;
	transition: color .1s;
	white-space: nowrap;
	margin-left: 3px;
	margin-right: 3px;
	cursor: default;
}

.img-tab-part.normal {
	border-bottom: 1.5px solid #3663c5;
}

.img-tab-part.awaken {
	border-bottom: 1.5px solid #78a1fb;
}


@media all and (min-width: 950px) {
	.partnerbox {
		width: min-content;
		min-width: 800px;
	}

	#top-image {
		display: none !important;
	}

	#right-image {
		grid-column: 4 / 5;
		grid-row: 2 / 25;
		border-left: 1px solid #eaecf0;
	}

	.awaken>#right-image {
		grid-column: 5 / 6;
	}

	#title {
		grid-column: 1 / 5;
	}

	.awaken>#title {
		grid-column: 1 / 6;
	}

	#image-info {
		grid-column: 4 / 5 !important;
		border-left: 1px solid #eaecf0;
	}
}

@media all and (max-width: 950px) {

	#right-image,
	#image-info {
		display: none !important;
	}

}


.tab-text-a,
.tab-text-b,
.tab-text-c {
	display: none;
}

.tab-text-a.active,
.tab-text-b.active,
.tab-text-c.active {
	display: block;
}

/*.conflict .img-tab-part.active {*/
/*	background-color: #b99afd;*/
/*}*/

/*.light .img-tab-part.active {*/
/*	background-color: lightskyblue;*/
/*}*/

/*.colorless .img-tab-part.active {*/
/*	background-color: #f4d2f8;*/
/*}*/

.img-tab-part.active {
	background-color: lightskyblue;
}

.play-diff {
	float: right;

}

.date-box {
	flex-wrap: wrap;
}

div:not(.awaken)>.awaken-data,
div:not(.awaken)>.awaken-label{
	display: none;
}

#update-data-label {
	grid-row-end: span 2;
}

.ns-only>#update-data-label {
	grid-row-end: span 1;
}

div:not(.ns-box)>#update-data-label {
	grid-row-end: span 1;
}

.mobile-awaken-date > #mobile-date-normal,
#ns-date-normal {
	grid-column: 2 / 4;
}

.awaken>#ns-date-normal {
	grid-column: 2 / 5;
}

#mobile-date-awaken,
#ns-date-awaken {
	grid-column: 4 / 5;
}

div:not(.awaken) > #ns-date-awaken{
	display:none;
}

div:not(.mobile-awaken-date) > #mobile-date-awaken{
	display: none;
}

div:not(.ns-box) > #ns-date-normal {
	display:none;
}

.ns-only > #mobile-date-normal {
	display: none;
}

div:not(.ns-box) > .ns {
	display: none;
}

.ns-box > #all-play-header {
	display: none;
}

.ns-only > #all-play-header{
	display: flex;
}

div:not(.ns-box) > #all-play-header{
	display: flex;
}

.ns-only > .ns,
.ns-only > #mobile-play-header,
div:not(.ns-box) > #mobile-play-header {
	display: none;
}

.ns-date-span > #ns-date-awaken{
	display:none;
}

.ns-date-span > #ns-date-normal{
	grid-column: 2 / 5;
}

.no-mobile > #mobile-date-normal,
.no-mobile > #mobile-date-awaken{
	display:none;
}

div:not(.skill-awaken)>#skill-awaken{
	display:none;
}

div:not(.skill-second)>#skill-first,
div:not(.skill-second)>#skill-second {
	display:none;
}

.skill-second>#skill-normal,
.skill-second>#skill-awaken {
	display:none;
}

.skill-awaken>#skill-first,
.skill-awaken>#skill-second {
	display:none;
}