Template:Location/style.css: Difference between revisions
Content added Content deleted
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...") |
ESUFranchise (talk | contribs) No edit summary |
||
Line 77: | Line 77: | ||
.center-text { |
.center-text { |
||
align-items: center; |
|||
justify-content: center; |
|||
} |
} |
Latest revision as of 07:07, 16 December 2023
.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;
}
}
.center-text {
align-items: center;
justify-content: center;
}