You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Template:Portal list item/doc/css

From Wikitech-static
Jump to navigation Jump to search
/**
 * For [[Template:Portal_list_item]], [[Template:Portal_list_item_noimage]] and wrapper
 * (mobile first responsive layout)
 */
.mw-tpl-portal-list {
	border-top:1px solid #a7d7f9;
}
.mw-tpl-portal-list-caption {
	font-weight:bold;
	text-align:center;
}
.mw-tpl-portal {
	border-bottom:1px solid #a7d7f9;
}
.mw-tpl-portal-image,
.mw-tpl-portal-name {
	font-size:160%;
	padding-top:.5em;
	text-align:center;
}
.mw-tpl-portal-name {
	vertical-align:middle;
}
.mw-tpl-portal-description {
	padding-top:.5em;
}
@media only screen and (min-width: 768px) {
	.mw-tpl-portal-list {
		display:table;
		max-width:1024px;
		margin:0 auto;
	}
	.mw-tpl-portal-list-caption {
		display:table-caption;
	}
	.mw-tpl-portal {
		display:table-row;
		border-bottom:none;
	}
	.mw-tpl-portal-image,
        .mw-tpl-portal-description,
        .mw-tpl-portal-name {
		border-bottom:1px solid #a7d7f9;
		display:table-cell;
		vertical-align:top;
		width:25%;
	}
	.mw-tpl-portal-name {
		vertical-align:middle;
	}
	.mw-tpl-portal-description {
		width:75%;
	}
}