Template:Multiple image/styles.css

模板页面
/* this is a block */
.tmulti.thumbinner {
	display: flex;
	flex-direction: column;
}

.tmulti.trow {
	display: flex;
	flex-direction: row;
	clear: left;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
}

/* this is a cell */
.tmulti.tsingle {
	margin: 1px;
	float: left;
}

.tmulti.theader {
	clear: both;
	font-weight: bold;
	text-align: center;
	align-self: center;
	background-color: transparent;
	width: 100%;
}

.tmulti.thumbcaption {
	background-color: transparent;
	font-size: 88.4%;
}

.tmulti.tleft {
	margin: 0.5em 1.4em 1.3em 0;
    clear: left;
    float: left;
}

.tmulti.tright {
	margin: 0.5em 0 1.3em 1.4em;
    clear: right;
    float: right;
}

.tmulti.tcenter {
	margin: 0.5em auto 1.3em;
    clear: both;
}

@media all and ( max-width: 720px ) {
	.tmulti.thumbinner {
		/* not !important usage can be removed when these are no longer inline styles
		inside Template:Multiple image and media query using min-width is introduced */
		width: 100% !important;
		box-sizing: border-box;
		max-width: none !important;
		align-items: center;
	}
	.tmulti.trow {
		justify-content: center;
	}
	.tmulti.tsingle {
		/* not !important usage can be removed when these are no longer inline styles
		inside Template:Multiple image and media query using min-width is introduced */
	    float: none !important;
	    max-width: 100% !important;
	    box-sizing: border-box;
	    text-align: center;
	}
	.tmulti.tsingle .thumbcaption {
		text-align: left;
	}
	.tmulti.trow > .thumbcaption {
		text-align: center;
	}
	.tmulti.tleft,
	.tmulti.tright,
	.tmulti.center {
    	margin: 0.5em auto 1.3em;
    	clear: both;
    	float: inherit;
	}
}