Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox/styles.css: Difference between revisions

Template page
No edit summary
Updated infobox for new layout
Line 3: Line 3:
overflow: visible;
overflow: visible;
width: 100%;
width: 100%;
max-width: 320px;
max-width: 348px;
margin: 0px 0px 1.6rem 15px;
margin: 0px 0px 1.6rem 15px;
background: #1D1A20;
background: #1D1A20;
border-radius: 15px;
border-spacing: 0;
border-spacing: 0;
font-size: 0.875rem;
font-size: 1.0rem;
text-align: left;
text-align: left;
padding-bottom: 10px;
padding-bottom: 10px;
box-shadow: -2px 2px 10px black;
box-shadow: -2px 2px 10px black;
font-family: 'Saira Condensed','Nunito','Saira',system-ui,-apple-system,sans-serif;
}
}


Line 24: Line 24:
box-sizing: border-box;
box-sizing: border-box;
flex-direction: column;
flex-direction: column;
padding: 0 10px;
padding: 0 5px;
margin-top: 10px;
margin-top: 10px;
}
}
Line 72: Line 72:
padding: 0;
padding: 0;
margin-top: 0;
margin-top: 0;
border-radius: 15px 15px 0 0;
}
.infobox .infobox-image {
overflow: hidden;
padding: 0;
margin-top: 0;
border-radius: 15px 15px 0 0;
}
.infobox-image a, .infobox-image img {
border-radius: 15px 15px 0 0;
}
}


Line 103: Line 91:
max-height: 210px;
max-height: 210px;
background: linear-gradient(to right bottom, #a7b1bf, #99a4b4, #8c97a8, #7e8a9d, #717e92);
background: linear-gradient(to right bottom, #a7b1bf, #99a4b4, #8c97a8, #7e8a9d, #717e92);
object-fit: contain;
border-radius: 0;
}
 
.infobox-image a {
border-radius: 0;
}
}


Line 112: Line 104:
margin-bottom: 5px;
margin-bottom: 5px;
color: #F1F2F4;
color: #F1F2F4;
font-size: 1.2rem;
font-size: 30px;
line-height: 1.4;
line-height: 1.4;
text-align: center;
text-align: center;
background-color: #D21F3C;
background-color: #D21F3C;
padding: 5px 0 5px 0;
padding: 5px 0 5px 0;
font-style: italic;
}
}


Line 125: Line 118:
}
}


/* Infobox subtitle */
/* Infobox quote */
.infobox .infobox-subtitle {
.infobox .infobox-quote {
/* Cancel infobox-title bottom margin */
/* Cancel infobox-title bottom margin */
margin-top: -5px;
margin-top: -5px;
margin-bottom: 5px;
margin-bottom: -20px;
}
}


.infobox .infobox-indicator th,
.infobox .infobox-indicator th,
.infobox .infobox-subtitle th {
.infobox .infobox-quote th {
display: none;
display: none;
}
}
Line 143: Line 136:
margin-top: 15px;
margin-top: 15px;
color: #F1F2F4;
color: #F1F2F4;
background-color: #D21F3C;
font-size: 20px;
font-size: 1rem;
text-align: center;
text-align: center;
text-transform: uppercase;
}
}


/* Infobox value */
/* Infobox value */
.infobox-data th {
.infobox-data th {
color: #F1F2F4;
color: #f1f2f4;
font-size: 0.8125rem;
font-size: 16px;
font-weight: normal;
font-weight: bold;
letter-spacing: 0.75px;
letter-spacing: 0.75px;
text-transform: uppercase;
background: #d21f3c;
border-radius: 6px;
text-align: center;
}
}


.infobox-data td {
.infobox-data td {
font-weight: 600;
color: #F1F2F4;
color: #F1F2F4;
text-align: center;
}
}


Line 191: Line 188:
padding: 5px 15px;
padding: 5px 15px;
background: black;
background: black;
border-radius: 30px;
color: #fff;
color: #fff;
}
}

Revision as of 13:23, 8 September 2023

.infobox {
	/* In case if tooltips go out of boundary */
	overflow: visible;
	width: 100%;
	max-width: 348px;
	margin: 0px 0px 1.6rem 15px;
	background: #1D1A20;
	border-spacing: 0;
	font-size: 1.0rem;
	text-align: left;
	padding-bottom: 10px;
	box-shadow: -2px 2px 10px black;
	font-family: 'Saira Condensed','Nunito','Saira',system-ui,-apple-system,sans-serif;
}

/* Table elements */
.infobox tbody {
	display: flex;
	flex-wrap: wrap;
}

.infobox tr {
	display: flex;
	box-sizing: border-box;
	flex-direction: column;
	padding: 0 5px;
	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;
}

.infobox-image td {
	padding: 0;
}

.infobox-image--light .image {
	background: rgba(29,26,31,0.50);
}

.infobox-image--dark .image {
	background: rgba(29,26,31,0.50);
}

.infobox-image img {
	display: block;
	max-width: 100%;
	max-height: 210px;
	background: linear-gradient(to right bottom, #a7b1bf, #99a4b4, #8c97a8, #7e8a9d, #717e92);
	border-radius: 0;
}

.infobox-image a {
	border-radius: 0;
}

/* Infobox title */
.infobox .infobox-title {
	width: 100%;
	margin-top: 0px;
	margin-bottom: 5px;
	color: #F1F2F4;
	font-size: 30px;
	line-height: 1.4;
	text-align: center;
	background-color: #D21F3C;
	padding: 5px 0 5px 0;
	font-style: italic;
}

/* Infobox indicator */
.infobox .infobox-indicator {
	margin-top: 0;
	padding: 0;
}

/* Infobox quote */
.infobox .infobox-quote {
	/* Cancel infobox-title bottom margin */
	margin-top: -5px;
	margin-bottom: -20px;
}

.infobox .infobox-indicator th,
.infobox .infobox-quote th {
	display: none;
}

/* Infobox header */
.infobox .infobox-header {
	width: 100%;
	padding: 5px 0 5px 0;
	margin-top: 15px;
	color: #F1F2F4;
	font-size: 20px;
	text-align: center;
	text-transform: uppercase;
}

/* Infobox value */
.infobox-data th {
	color: #f1f2f4;
	font-size: 16px;
	font-weight: bold;
	letter-spacing: 0.75px;
	text-transform: uppercase;
	background: #d21f3c;
	border-radius: 6px;
	text-align: center;
}

.infobox-data td {
	color: #F1F2F4;
	text-align: center;
}

.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;
	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;
		float: none;
	}

	.infobox tr:first-of-type .mw-collapsible-toggle {
		display: block;
	}
}