Difference between revisions of "Template:Infobox/styles.css"

From Appropedia
Jump to navigation Jump to search
Line 5: Line 5:
 
margin: 0 0 .5em .5em;
 
margin: 0 0 .5em .5em;
 
position: relative;
 
position: relative;
width: 304px;
+
width: 330px;
 
}
 
}
 
.infobox-edit {
 
.infobox-edit {

Revision as of 14:05, 22 October 2020

.infobox {
	background: #f9f9f9;
	border: 1px solid #aaa;
	float: right;
	margin: 0 0 .5em .5em;
	position: relative;
	width: 330px;
}
.infobox-edit {
	float: right;
	position: absolute;
	top: .5em;
	right: .5em;
}
.infobox-above {
	margin: .5em;
	text-align: center;
}
.infobox-title {
	font-size: large;
	margin: .5em;
	text-align: center;
}
.infobox-image {
	text-align: center;
}
.infobox-caption {
	font-size: small;
	text-align: center;
}
.infobox-table {
	border-collapse: separate;
	border-spacing: .5em;
	width: 100%;
}
.infobox td,
.infobox th {
	vertical-align: top;
}
.infobox-data th {
	text-align: left;
}
.infobox-data td[colspan="2"] {
	text-align: center;
}
.infobox-header {
	background: #cef2ce;
	cursor: pointer;
}
.infobox-header:hover {
	text-decoration: underline;
}

@media screen and (max-width:600px) {
	.infobox {
		margin: .5em 0;
		width: 100%;
	}
}