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
No edit summary
 
(66 intermediate revisions by 2 users not shown)
Line 1: Line 1:
.infobox {
.infobox {
  background: #FEFFF5;
/* In case if tooltips go out of boundary */
  color: #333;
overflow: visible;
  max-width: 300px;
width: 100%;
  margin: 0 0 1.6rem 15px;
max-width: 348px;
  border-radius: 6px;
margin: 0px 0px 1.6rem 15px;
  box-shadow: none;
background: #121824;
  border: none;
border-spacing: 0;
  overflow: hidden;
text-align: left;
  width: 100%;
padding-bottom: 10px;
  font-size: 14px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
  line-height: 1.5;
    border-radius: 6px;
    color: #F2F0EF;
}
 
/* Table elements */
.infobox tbody {
display: flex;
flex-wrap: wrap;
}
}


/* General rows */
.infobox tr {
.infobox tr {
  border-bottom: 1px solid #e5e5e5;
display: flex;
box-sizing: border-box;
justify-content: space-between;
flex-direction: row;
padding: 2px 0;
}
 
.infobox .data-tag {
    color: #000;
    padding: 2px 8px;
    margin-left: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}
 
.infobox .data-tag-common {
background-color: #717471;
color: white;
}
 
.infobox .data-tag-rare {
background-color: #1ecbfc;
color: #000;
}
 
.infobox .data-next, .infobox .data-previous {
text-align: center;
padding: 10px;
}
 
.infobox .data-tag-epic {
background-color: #d8299b;
color: white;
}
 
.infobox .data-tag-legendary {
background-color: #fbc700;
color: #000;
}
 
/* Infobox column */
.infobox .infobox-nocol {
width: 100%;
flex-direction: row;
}
 
.infobox .infobox-column {
flex-direction: column;
}
 
.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 .infobox-data {
margin: 0 10px;
border-bottom: 1px solid #444;
min-width: 25%;
}
 
/* Infobox image */
.infobox .infobox-image {
overflow: hidden;
padding: 0;
margin: 0;
position: relative;
border-radius: 6px 6px 0 0;
}
 
.infobox .infobox-image::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 50%;
pointer-events: none;
}
 
.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-color: #121824;
object-fit: contain;
}
 
.infobox-image::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 50%;
background: linear-gradient(to bottom,transparent,#0b0d12 100%);
pointer-events: none;
}
 
.infobox-image a {
border-radius: 0;
}
 
/* Infobox title */
.infobox .infobox-title {
width: 100%;
font-size: 26px;
font-weight: 500;
margin-left: 10px;
}
 
.infobox .infobox-title th {
color: #F2F0EF;
}
 
/* Infobox indicator */
.infobox .infobox-indicator {
margin-top: 0;
padding: 0;
}
 
/* Infobox quote */
.infobox .infobox-quote {
    color: #929292;
    font-weight: 500;
    margin: 0 10px 10px 10px;
}
 
.infobox .infobox-indicator th,
.infobox .infobox-quote th {
display: none;
}
 
/* Infobox header */
.infobox .infobox-header {
width: 100%;
margin-top: 5px;
font-size: 18px;
justify-content: center;
border: none;
}
 
.infobox .infobox-header th {
color: #F2F0EF;
}
}


.infobox th,
/* Infobox value */
.infobox td {
.infobox-data th {
  padding: 10px;
color: #CCCBCA;
  text-align: left;
font-weight: bold;
  vertical-align: top;
}
}


/* Highlight tags */
.infobox .data-mods {
justify-content: center;
margin-top: -10px;
}


.data-tag tr {
.infobox-data ul,
display: inline-block;
.infobox-data ol {
margin-top: 0;
}
}


.data-tag td {
/* Infobox button */
  background-color: #6fef93;
.infobox .infobox-button-bar {
  color: #000;
width: 100%;
  padding: 4px 10px;
padding: 0;
  font-weight: 500;
margin-top: 25px;
  font-size: 12px;
text-align: center;
  border-bottom: none;
}
}


/* Weapon quote */
.infobox-button-bar th {
.infobox-quote td {
padding: 0;
  color: #929292;
  font-weight: 500;
  font-style: normal;
  padding: 12px 10px;
  font-size: 14px;
  line-height: 1.4;
}
}


/* Warning box */
.infobox .data-warning {
.data-warning td {
    background: #DEDFD8;
  background: #DEDFD8;
    color: #27282C;
  color: #27282C;
    padding: 14px;
  font-weight: 600;
    font-size: 14px;
  padding: 14px;
    font-weight: 600;
  border-radius: 6px;
    border-radius: 6px;
  margin: 10px 0;
    margin-bottom: 15px;
  font-size: 13px;
}
}


/* Header row */
/* Collapsible toggle */
.infobox-header {
.infobox tr:first-of-type .mw-collapsible-toggle {
  background: none;
position: relative;
  color: #4a4a4a;
display: none;
  font-size: 16px;
float: none;
  font-weight: 600;
  text-align: center;
  border-bottom: none;
  padding: 12px 0 4px;
}
}


/* Mod images */
.infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text {
.data-mods td {
position: absolute;
  text-align: center;
right: 0;
  padding: 10px 5px;
display: block;
padding: 5px 15px;
background: black;
color: black;
}
}


.data-mods img {
.infobox tr:first-of-type .mw-collapsible-toggle .mw-collapsible-text:hover {
  margin: 0 5px;
background: #b9c0c6;
  vertical-align: middle;
}
  border-radius: 4px;
 
.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;
}
}
}

Latest revision as of 22:54, 19 May 2025

.infobox {
	/* In case if tooltips go out of boundary */
	overflow: visible;
	width: 100%;
	max-width: 348px;
	margin: 0px 0px 1.6rem 15px;
	background: #121824;
	border-spacing: 0;
	text-align: left;
	padding-bottom: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    color: #F2F0EF;
}

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

.infobox tr {
	display: flex;
	box-sizing: border-box;
	justify-content: space-between;
	flex-direction: row;
	padding: 2px 0;
}

.infobox .data-tag {
    color: #000;
    padding: 2px 8px;
    margin-left: 10px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

.infobox .data-tag-common {
	background-color: #717471;
	color: white;
}

.infobox .data-tag-rare {
	background-color: #1ecbfc;
	color: #000;
}

.infobox .data-next, .infobox .data-previous {
	text-align: center;
	padding: 10px;
}

.infobox .data-tag-epic {
	background-color: #d8299b;
	color: white;
}

.infobox .data-tag-legendary {
	background-color: #fbc700;
	color: #000;
}

/* Infobox column */
.infobox .infobox-nocol {
	width: 100%;
	flex-direction: row;
}

.infobox .infobox-column {
	flex-direction: column;
}

.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 .infobox-data {
	margin: 0 10px;
	border-bottom: 1px solid #444;
	min-width: 25%;
}

/* Infobox image */
.infobox .infobox-image {
	overflow: hidden;
	padding: 0;
	margin: 0;
	position: relative;
	border-radius: 6px 6px 0 0;
}

.infobox .infobox-image::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50%;
	pointer-events: none;
}

.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-color: #121824;
	object-fit: contain;
}

.infobox-image::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50%;
	background: linear-gradient(to bottom,transparent,#0b0d12 100%);
	pointer-events: none;
}

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

/* Infobox title */
.infobox .infobox-title {
	width: 100%;
	font-size: 26px;
	font-weight: 500;
	margin-left: 10px;
}

.infobox .infobox-title th {
	color: #F2F0EF;
}

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

/* Infobox quote */
.infobox .infobox-quote {
    color: #929292;
    font-weight: 500;
    margin: 0 10px 10px 10px;
}

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

/* Infobox header */
.infobox .infobox-header {
	width: 100%;
	margin-top: 5px;
	font-size: 18px;
	justify-content: center;
	border: none;
}

.infobox .infobox-header th {
	color: #F2F0EF;
}

/* Infobox value */
.infobox-data th {
	color: #CCCBCA;
	font-weight: bold;
}

.infobox .data-mods {
	justify-content: center;
	margin-top: -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;
}

.infobox .data-warning {
    background: #DEDFD8;
    color: #27282C;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* 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: black;
}

.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;
	}
}