Template:Character/style.css

From Ethereal Superheroes Universe
Revision as of 06:10, 12 October 2023 by ESUFranchise (talk | contribs) (Created page with ".infobox { background: #eee; border: 1px solid #aaa; border-radius: .75em; float: right; margin: 0 0 1em 1em; padding: 1em; width: 280px; } .infobox-header { text-align: center; font-weight: 900; font-style: italic; background: #00f; color: #fff; border-radius: 3.25em; margin-bottom: .2em; } .infobox-image { width: 220px; height: auto; margin: 0 auto; margin-bottom: .2em; border-radius: .75em; overflow: hidden; } .infobox-image im...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.infobox {
	background: #eee;
    border: 1px solid #aaa;
    border-radius: .75em;
    float: right;
    margin: 0 0 1em 1em;
    padding: 1em;
    width: 280px;
}

.infobox-header {
	text-align: center;
	font-weight: 900;
	font-style: italic;
	background: #00f;
	color: #fff;
	border-radius: 3.25em;
	margin-bottom: .2em;
}

.infobox-image {
	width: 220px;
	height: auto;
	margin: 0 auto;
	margin-bottom: .2em;
	border-radius: .75em;
	overflow: hidden;
}

.infobox-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform .4s;
}

.infobox-image:hover img {
  transform: scale(1.15);
  transform-origin: 50% 50%;
}

.infobox-row {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #aaa;
	padding: .2em;
}

.last-row {
	border-bottom: none;
}

.infobox-label, .infobox-data {
	text-align: left;
}

.infobox-label {
	width: 35%;
}

.infobox-data {
	width: 65%;
}

@media screen and (max-width: 768px) {
	.infobox {
		width: 240px;
		padding: .35em;
		margin: 0 auto;
	}
	
	.infobox-image {
		width: 180px;
	}
	
}