Template:Infobox/styles.css: Difference between revisions
Template page
More actions
Content deleted Content added
No edit summary |
set .infobox-image> justify-content: center; |
||
| (33 intermediate revisions by 3 users not shown) | |||
| Line 5: | Line 5: | ||
max-width: 348px; |
max-width: 348px; |
||
margin: 0px 0px 1.6rem 15px; |
margin: 0px 0px 1.6rem 15px; |
||
background: # |
background: #090C19; |
||
border-spacing: 0; |
border-spacing: 0; |
||
text-align: left; |
text-align: left; |
||
| Line 12: | Line 12: | ||
border-radius: 6px; |
border-radius: 6px; |
||
color: #F2F0EF; |
color: #F2F0EF; |
||
| ⚫ | |||
position: relative; |
|||
| ⚫ | |||
.floatright { |
|||
float: right; |
|||
} |
} |
||
| Line 26: | Line 32: | ||
flex-direction: row; |
flex-direction: row; |
||
padding: 2px 0; |
padding: 2px 0; |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
| Line 36: | Line 38: | ||
align-items: center; |
align-items: center; |
||
color: #000; |
color: #000; |
||
padding: 2px |
padding: 2px 8px; |
||
margin-left: 4px; |
margin-left: 4px; |
||
font-size: |
font-size: 13px; |
||
font-weight: |
font-weight: 600; |
||
margin-top: 10px; |
margin-top: 10px; |
||
| ⚫ | |||
| ⚫ | |||
padding: 2px; |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
| Line 51: | Line 61: | ||
background-color: #41eb6a; |
background-color: #41eb6a; |
||
color: #000; |
color: #000; |
||
} |
|||
.infobox .data-tag-uncommon img, .infobox .data-tag-rare img, .infobox .data-tag-legendary img { |
|||
filter: invert(1) |
|||
} |
} |
||
| Line 56: | Line 70: | ||
background-color: #1ecbfc; |
background-color: #1ecbfc; |
||
color: #000; |
color: #000; |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
} |
} |
||
| Line 74: | Line 80: | ||
background-color: #fbc700; |
background-color: #fbc700; |
||
color: #000; |
color: #000; |
||
} |
|||
.infobox .data-next, .infobox .data-previous { |
|||
| ⚫ | |||
} |
|||
| ⚫ | |||
font-size: 13px; |
|||
} |
} |
||
| Line 120: | Line 134: | ||
.infobox .infobox-data { |
.infobox .infobox-data { |
||
margin: 0 10px; |
margin: 0 10px; |
||
| ⚫ | |||
min-width: 25%; |
min-width: 25%; |
||
| ⚫ | |||
} |
} |
||
/* Infobox image */ |
/* Infobox image */ |
||
.infobox .infobox-image { |
.infobox .infobox-image { |
||
| Line 130: | Line 143: | ||
margin: 0; |
margin: 0; |
||
position: relative; |
position: relative; |
||
justify-content: center; |
|||
border-radius: 6px 6px 0 0; |
border-radius: 6px 6px 0 0; |
||
width: 100%; |
|||
} |
} |
||
/* |
|||
.infobox .infobox-image::after { |
*.infobox .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 td { |
.infobox-image td { |
||
padding: 0; |
padding: 0; |
||
} |
|||
.infobox .gradient-common img { |
|||
background: linear-gradient(to right, rgb(153 159 165 / 25%) 0%, rgb(5 13 36) 100%) |
|||
} |
|||
.infobox .gradient-uncommon img { |
|||
background: linear-gradient(to right, rgb(86 203 134 / 25%) 0%, rgb(5 13 36) 100%) |
|||
} |
|||
.infobox .gradient-rare img { |
|||
background: linear-gradient(to right, rgb(30 150 252 / 30%) 0%, rgb(5 13 36) 100%) |
|||
} |
|||
.infobox .gradient-epic img { |
|||
background: linear-gradient(to right, rgb(216 41 155 / 25%) 0%, rgb(5 13 36) 100%) |
|||
} |
|||
.infobox .gradient-legendary img { |
|||
background: linear-gradient(to right, rgb(251 199 0 / 25%) 0%, rgb(5 13 36) 100%) |
|||
} |
} |
||
| Line 156: | Line 187: | ||
} |
} |
||
.infobox .clip-path { |
|||
clip-path: ellipse(100% 100% at 50% 0%); |
|||
} |
|||
.infobox-image img { |
.infobox-image img { |
||
display: block; |
display: block; |
||
max-width: 100%; |
max-width: 100%; |
||
max-height: 210px; |
max-height: 210px; |
||
| ⚫ | |||
object-fit: contain; |
object-fit: contain; |
||
} |
} |
||
| Line 166: | Line 199: | ||
.infobox-image a { |
.infobox-image a { |
||
border-radius: 0; |
border-radius: 0; |
||
} |
|||
.infobox-icon{ |
|||
position: absolute; |
|||
top: 10px; |
|||
left: 10px; |
|||
filter: drop-shadow(0px 0px 1px #000a); |
|||
} |
} |
||
| Line 171: | Line 211: | ||
.infobox .infobox-title { |
.infobox .infobox-title { |
||
width: 100%; |
width: 100%; |
||
font-size: |
font-size: 24px; |
||
font-weight: 500; |
font-weight: 500; |
||
margin |
margin: 0 10px; |
||
} |
} |
||
| Line 203: | Line 243: | ||
.infobox .infobox-quote th { |
.infobox .infobox-quote th { |
||
display: none; |
display: none; |
||
} |
|||
.infobox .data-mods img { |
|||
border: white 1px solid; |
|||
border-radius: 7px; |
|||
} |
} |
||
| Line 291: | Line 336: | ||
content: none; |
content: none; |
||
} |
} |
||
/*infobox map variant icon*/ |
|||
.infobox-map-icon{ |
|||
position: relative; |
|||
top: -24px; |
|||
margin: auto; |
|||
margin-bottom: -30px; |
|||
padding: 6px; |
|||
| ⚫ | |||
border-radius: 1000px; |
|||
} |
|||
@media only screen and ( max-width: 720px ) { |
@media only screen and ( max-width: 720px ) { |
||
Revision as of 10:53, 12 November 2025
.infobox {
/* In case if tooltips go out of boundary */
overflow: visible;
width: 100%;
max-width: 348px;
margin: 0px 0px 1.6rem 15px;
background: #090C19;
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;
font-size: 15px;
position: relative;
}
.floatright {
float: right;
}
/* 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 {
display: flex;
align-items: center;
color: #000;
padding: 2px 8px;
margin-left: 4px;
font-size: 13px;
font-weight: 600;
margin-top: 10px;
}
.infobox .data-tag.icon{
padding: 2px;
}
.infobox .infobox-image + .data-tag, .infobox .data-tag:first-child {
margin-left: 10px;
}
.infobox .data-tag-common {
background-color: #717471;
color: white;
}
.infobox .data-tag-uncommon {
background-color: #41eb6a;
color: #000;
}
.infobox .data-tag-uncommon img, .infobox .data-tag-rare img, .infobox .data-tag-legendary img {
filter: invert(1)
}
.infobox .data-tag-rare {
background-color: #1ecbfc;
color: #000;
}
.infobox .data-tag-epic {
background-color: #d8299b;
color: white;
}
.infobox .data-tag-legendary {
background-color: #fbc700;
color: #000;
}
.infobox .data-next, .infobox .data-previous {
text-align: center;
}
.infobox .data-next td, .infobox .data-previous td {
font-size: 13px;
}
/* Infobox column */
.infobox .infobox-nocol {
width: 100%;
flex-direction: row;
}
.infobox .infobox-column {
flex-direction: column;
justify-content: flex-start;
}
.infobox .infobox-nocol th {
width: 30%;
}
.infobox .infobox-nocol td {
width: 70%;
}
.infobox .infobox-col1 {
width: 100%;
}
.infobox tr.infobox-data.infobox-col1 td {
text-align: end;
}
.infobox tr.data-warning.infobox-data.infobox-col1 td {
text-align: left;
}
.infobox .infobox-col2 {
width: 50%;
}
.infobox .infobox-col3 {
width: calc( 100% / 3 );
}
.infobox .infobox-col4 {
width: 25%;
}
.infobox .infobox-data {
margin: 0 10px;
min-width: 25%;
border-bottom: 1px solid #444;
}
/* Infobox image */
.infobox .infobox-image {
overflow: hidden;
padding: 0;
margin: 0;
position: relative;
justify-content: center;
border-radius: 6px 6px 0 0;
width: 100%;
}
/*
*.infobox .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 td {
padding: 0;
}
.infobox .gradient-common img {
background: linear-gradient(to right, rgb(153 159 165 / 25%) 0%, rgb(5 13 36) 100%)
}
.infobox .gradient-uncommon img {
background: linear-gradient(to right, rgb(86 203 134 / 25%) 0%, rgb(5 13 36) 100%)
}
.infobox .gradient-rare img {
background: linear-gradient(to right, rgb(30 150 252 / 30%) 0%, rgb(5 13 36) 100%)
}
.infobox .gradient-epic img {
background: linear-gradient(to right, rgb(216 41 155 / 25%) 0%, rgb(5 13 36) 100%)
}
.infobox .gradient-legendary img {
background: linear-gradient(to right, rgb(251 199 0 / 25%) 0%, rgb(5 13 36) 100%)
}
.infobox-image--light .image {
background: rgba(29,26,31,0.50);
}
.infobox-image--dark .image {
background: rgba(29,26,31,0.50);
}
.infobox .clip-path {
clip-path: ellipse(100% 100% at 50% 0%);
}
.infobox-image img {
display: block;
max-width: 100%;
max-height: 210px;
object-fit: contain;
}
.infobox-image a {
border-radius: 0;
}
.infobox-icon{
position: absolute;
top: 10px;
left: 10px;
filter: drop-shadow(0px 0px 1px #000a);
}
/* Infobox title */
.infobox .infobox-title {
width: 100%;
font-size: 24px;
font-weight: 500;
margin: 0 10px;
}
.infobox .infobox-title-center {
justify-content: center;
width: 100%;
font-size: 26px;
font-weight: 500;
}
.infobox .infobox-title th, .infobox .infobox-title-center 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 .data-mods img {
border: white 1px solid;
border-radius: 7px;
}
/* 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 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;
}
/*infobox map variant icon*/
.infobox-map-icon{
position: relative;
top: -24px;
margin: auto;
margin-bottom: -30px;
padding: 6px;
background: #090c19;
border-radius: 1000px;
}
@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;
}
}