.infobox {
/* In case if tooltips go out of boundary */
overflow: visible;
width: 100%;
max-width: 400px;
margin-top: 0;
margin-bottom: 1.6rem;
background: #1D1A20;
border-radius: 15px;
border-spacing: 0;
box-shadow: 1px 1px 10px #D21F3C;
font-size: 0.875rem;
text-align: left;
}
/* Table elements */
.infobox tbody {
display: flex;
flex-wrap: wrap;
}
.infobox tr {
display: flex;
box-sizing: border-box;
flex-direction: column;
padding: 0 10px;
margin-top: 10px;
}
.infobox th,
.infobox td {
padding: 0 5px;
}
/* Infobox column */
.infobox .infobox-nocol {
width: 100%;
flex-direction: row;
}
.infobox .infobox-nocol th {
width: 30%;
}
.infobox .infobox-nocol td {
width: 70%;
}
.infobox .infobox-col1 {
width: 100%;
}
.infobox .infobox-col2 {
width: 50%;
}
.infobox .infobox-col3 {
width: calc( 100% / 3 );
}
.infobox .infobox-col4 {
width: 25%;
}
.infobox-data {
min-width: 25%;
}
/* Infobox image */
.infobox .infobox-image {
overflow: hidden;
padding: 0;
margin-top: 0;
border-radius: 15px 15px 0 0;
}
.infobox-image td {
padding: 0;
}
.infobox-image--light .image {
background: #eaecf0;
}
.infobox-image--dark .image {
background: #2b2f36;
}
.infobox-image img {
display: block;
max-width: 100%;
max-height: 300px;
background: black;
}
/* Neutral background for all transprent SVG */
.infobox-image img {
background: #eaecf0;
}
/* Infobox title */
.infobox .infobox-title {
width: 100%;
margin-top: 20px;
margin-bottom: 5px;
color: #F7BB2B;
font-size: 1.4rem;
line-height: 1.4;
}
/* Infobox indicator */
.infobox .infobox-indicator {
margin-top: 0;
padding: 0;
}
/* Infobox subtitle */
.infobox .infobox-subtitle {
/* Cancel infobox-title bottom margin */
margin-top: -5px;
margin-bottom: 5px;
}
.infobox .infobox-indicator th,
.infobox .infobox-subtitle th {
display: none;
}
/* Infobox header */
.infobox .infobox-header {
width: 100%;
padding-top: 15px;
border-top: 1px solid;
border-color: #F7BB2B;
margin-top: 15px;
color: #F7BB2B;
font-size: 1rem;
}
/* Infobox value */
.infobox-data th {
color: #F1F2F4;
font-size: 0.8125rem;
font-weight: normal;
letter-spacing: 0.75px;
}
.infobox-data td {
font-weight: 600;
color: #F1F2F4;
}
.infobox-data td:last-of-type {
padding-bottom: 10px;
}
.infobox-data ul,
.infobox-data ol {
margin-top: 0;
}
/* Infobox button */
.infobox .infobox-button-bar {
width: 100%;
padding: 0;
margin-top: 25px;
text-align: center;
}
.infobox-button-bar th {
padding: 0;
}
/* Collapsible toggle */
.infobox tr:first-of-type .mw-collapsible-toggle {
position: relative;
display: none;
float: none;
}
.infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text {
position: absolute;
right: 0;
display: block;
padding: 5px 15px;
background: black;
border-radius: 30px;
color: #fff;
}
.infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text:hover {
background: #b9c0c6;
}
.infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text:active {
background: #b9c0c6;
}
.infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text {
background: #b9c0c6;
}
.infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text:hover {
background: #b9c0c6;
}
.infobox tr:first-of-type .mw-collapsible-toggle-collapsed .mw-collapsible-text:active {
background: #b9c0c6;
}
.infobox tr:first-of-type .mw-collapsible-toggle:before,
.infobox tr:first-of-type .mw-collapsible-toggle:after {
content: none;
}
@media only screen and ( max-width: 720px ) {
.infobox {
margin-right: auto;
margin-left: auto;
}
.infobox tr:first-of-type .mw-collapsible-toggle {
display: block;
}
}