Template:Infobox hero/styles.css: Difference between revisions

created
 
Samlovesmath (talk | contribs)
Added mobile/minerva fixes; added "-h" prefix to differentiate other infobox styles; spirit/weapon caption color adjustments
Line 1: Line 1:
/* ========== @MEDIA/MINERVA FIXES/OVERRIDES ========== */
body.skin-minerva .infobox-h table{
    margin: 0;
}
body.skin-minerva .infobox-h table caption{
    text-align: center;
    display: table-caption;
}
@media (max-width: 639px){
.infobox-h table,
body.skin-minerva .infobox-h table{
display: table;
overflow: visible;
}
.infobox-h table.infobox-h-content{
display: table;
}
}
@media (max-width: 539px){
body.skin-minerva .infobox-h{
max-width: 350px;
margin: 0em auto 1em auto;
float: none;
}
body.skin-minerva .infobox-h-subsection table td{
width: 50%;
}
}
/* ========== INFOBOX_HERO CSS ========== */
/* ========== INFOBOX_HERO CSS ========== */
.infobox{
.infobox-h{
/* -- variables -- */
/* -- variables -- */
--th-heroinfobox-text-normal: white;
--th-heroinfobox-text-normal: white;
Line 42: Line 75:


/* ---------- Background Styling ---------- */
/* ---------- Background Styling ---------- */
.infobox-background {
.infobox-h-background {
position: absolute;
position: absolute;
width: 100%;
width: 100%;
Line 50: Line 83:


/* --- Background Horizontal Positioning --- */
/* --- Background Horizontal Positioning --- */
.infobox-background > figure{
.infobox-h-background > figure{
margin-right: var(--th-heroinfobox-bg-margin) !important;
margin-right: var(--th-heroinfobox-bg-margin) !important;
}
}


/* ---------- Content Styling ---------- */
/* ---------- Content Styling ---------- */
.infobox-content {
.infobox-h-content {
position: relative;
position: relative;
width: 100%;
width: 100%;
Line 72: Line 105:
}
}


.infobox, .infobox-background, .infobox-content{
.infobox-h, .infobox-h-background, .infobox-h-content{
border-radius: 8px;
border-radius: 8px;
}
}


.infobox .infobox-image {
.infobox-h .infobox-h-image {
margin: auto;
margin: auto;
border: none;
border: none;
     text-align: center;
     text-align: center;
}
}
/* .infobox-table th {
    vertical-align: top;
    text-align: right;
    width: 120px;
}
.infobox-table td {
    vertical-align: top;
}
.infobox_item a {
color: #fff;
}
.infobox_template {
border-radius: 8px; overflow: hidden;
} */


/* ---------- Top Section (Above Portrait) ---------- */
/* ---------- Top Section (Above Portrait) ---------- */
.infobox-title{
.infobox-h-title{
color: var(--th-heroinfobox-text-title);
color: var(--th-heroinfobox-text-title);
font-size: 25px;
font-size: 25px;
Line 109: Line 124:
}
}


.infobox-title-hero{
.infobox-h-title-hero{
display: flex;
display: flex;
position: relative;
position: relative;
Line 119: Line 134:
}
}


.infobox-title-hero-left{
.infobox-h-title-hero-left{
position: absolute;
position: absolute;
height: 100%;
height: 100%;
Line 127: Line 142:


/* --- Logo/Name --- */
/* --- Logo/Name --- */
.infobox-title-hero-middle{
.infobox-h-title-hero-middle{
position: relative;
position: relative;
width: 100%;
width: 100%;
Line 134: Line 149:
filter: drop-shadow(1px 1px 2px black);
filter: drop-shadow(1px 1px 2px black);
}
}
.infobox-title-hero-middle-text{
.infobox-h-title-hero-middle-text{
width: calc(100% - 120px);
width: calc(100% - 120px);
margin: 0px 60px;
margin: 0px 60px;
Line 141: Line 156:
word-break: break-word;
word-break: break-word;
}
}
.infobox-title-hero-middle > span{
.infobox-h-title-hero-middle > span{
bottom: 0 !important;
bottom: 0 !important;
}
}
.infobox-title-hero-middle img{
.infobox-h-title-hero-middle img{
margin: var(--th-heroinfobox-logo-bleed);
margin: var(--th-heroinfobox-logo-bleed);
}
}


/* --- Map Icon --- */
/* --- Map Icon --- */
.infobox-title-hero-right{
.infobox-h-title-hero-right{
position: absolute;
position: absolute;
height: 45px;
height: 45px;
Line 158: Line 173:
margin-right: 5px;
margin-right: 5px;
}
}
.infobox-title-hero-right > div{
.infobox-h-title-hero-right > div{
position: relative;
position: relative;
width: 100%;
width: 100%;
Line 165: Line 180:


/* --- Torn Box Behind Map Icon --- */
/* --- Torn Box Behind Map Icon --- */
.infobox-title-hero-tornbox{
.infobox-h-title-hero-tornbox{
     position: absolute;
     position: absolute;
     width: 105%;
     width: 105%;
Line 179: Line 194:
}
}


.infobox-title-hero-icon{
.infobox-h-title-hero-icon{
     position: absolute;
     position: absolute;
     width: calc(100% - 10px);
     width: calc(100% - 10px);
Line 190: Line 205:


/* --- Text Before Stats --- */
/* --- Text Before Stats --- */
.infobox-text-weapon{
.infobox-h-text-weapon{
padding: 8px 0;
padding: 8px 0;
line-height: 1.35;
line-height: 1.35;
Line 196: Line 211:
}
}


.infobox-text-stat-subtitle > *:first-child,
.infobox-h-text-stat-subtitle > *:first-child,
.infobox-text-stat-subtitle-border > *:first-child{
.infobox-h-text-stat-subtitle-border > *:first-child{
margin-top: 8px;
margin-top: 8px;
margin-bottom: 0;
margin-bottom: 0;
text-transform: uppercase;
text-transform: uppercase;
}
}
.infobox-text-stat-subtitle > *:first-child{
.infobox-h-text-stat-subtitle > *:first-child{
margin-top: 4px;
margin-top: 4px;
}
}
.infobox-text-stat-subtitle-border{
.infobox-h-text-stat-subtitle-border{
margin-top: 8px;
margin-top: 8px;
border-top: solid 3px var(--th-heroinfobox-color2);
border-top: solid 3px var(--th-heroinfobox-color2);
Line 211: Line 226:


/* ---------- Hero Portrait Image ---------- */
/* ---------- Hero Portrait Image ---------- */
.infobox-image > div{
.infobox-h-image > div{
max-width: 190px;
max-width: 190px;
height: auto;
height: auto;
Line 221: Line 236:
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
}
.infobox-image > div img{
.infobox-h-image > div img{
filter: drop-shadow(2px 3px 2px var(--th-heroinfobox-color2-shadow));
filter: drop-shadow(2px 3px 2px var(--th-heroinfobox-color2-shadow));
clip-path: rect(3px calc(100% - 3px) calc(100% - 3px) 3px round 8px);
clip-path: rect(3px calc(100% - 3px) calc(100% - 3px) 3px round 8px);
Line 231: Line 246:
/* note: dropdown is a child of subsection            */
/* note: dropdown is a child of subsection            */


.infobox-subsection {
.infobox-h-subsection {
padding: 0 5px 5px 5px;
padding: 0 5px 5px 5px;
vertical-align: middle;
vertical-align: middle;
}
}


.infobox-subsection table{
.infobox-h-subsection table{
table-layout: auto;
table-layout: auto;
padding: 0 6px;
padding: 0 6px;
}
}


.infobox-subsection tr{
.infobox-h-subsection tr{
font-size: 15px;
font-size: 15px;
text-align: left;
text-align: left;
line-height: 1.2em;
line-height: 1.2em;
}
}
.infobox-subsection tr > td{
.infobox-h-subsection tr > td{
padding-bottom: 5px;
padding-bottom: 5px;
}
}
.infobox-subsection tr:first-child > td{
.infobox-h-subsection tr:first-child > td{
padding-top: 5px;
padding-top: 5px;
}
}
.infobox-subsection tr:last-child > td{
.infobox-h-subsection tr:last-child > td{
padding-bottom: 6px;
padding-bottom: 6px;
}
}
.infobox-subsection tr > td:first-child{
.infobox-h-subsection tr > td:first-child{
width: auto;
width: auto;
font-family: "Retail Demo Medium", "Retail Demo", 'Open Sans', serif;
font-family: "Retail Demo Medium", "Retail Demo", 'Open Sans', serif;
Line 264: Line 279:
vertical-align: top;
vertical-align: top;
}
}
.infobox-subsection tr > td:first-child span{
.infobox-h-subsection tr > td:first-child span{
color: var(--th-heroinfobox-stats-text);
color: var(--th-heroinfobox-stats-text);
}
}
.infobox-subsection tr > td:last-child{
.infobox-h-subsection tr > td:last-child{
width: max-content;
width: max-content;
padding-left: 4px;
padding-left: 4px;
Line 273: Line 288:
}
}


.infobox-spiritboon{
.infobox-h-spiritboon{
display: inline-block;
display: inline-block;
}
}
.infobox-spiritboon:not(:empty){
.infobox-h-spiritboon:not(:empty){
padding-right: 5px;
padding-right: 5px;
}
}
.infobox-dropdown tr:first-child .infobox-spiritboon:not(:empty){
.infobox-h-dropdown tr:first-child .infobox-h-spiritboon:not(:empty){
padding-top: 3px;
padding-top: 3px;
}
}


.infobox-subsection-child{
.infobox-h-subsection-child{
width: 100%;
width: 100%;
font-weight: normal;
font-weight: normal;
Line 291: Line 306:
}
}


.infobox-dropdown-header > button{
.infobox-h-dropdown-header > button{
position: absolute;
position: absolute;
top: 0;
top: 0;
Line 304: Line 319:
}
}


.infobox-dropdown-title{
.infobox-h-dropdown-title{
text-shadow: 0 2px 4px black, 1.2px 1.2px rgba(0, 0, 0, 0.7);
text-shadow: 0 2px 4px black, 1.2px 1.2px rgba(0, 0, 0, 0.7);
color: var(--th-heroinfobox-text-normal);
color: var(--th-heroinfobox-text-normal);
}
}


.infobox-dropdown-header button,
.infobox-h-dropdown-header button,
.infobox-dropdown-header button .mw-collapsible-text{
.infobox-h-dropdown-header button .mw-collapsible-text{
color: var(--th-heroinfobox-header-link);
color: var(--th-heroinfobox-header-link);
font-size: 13px;
font-size: 13px;
Line 316: Line 331:
}
}


.infobox-dropdown-header button.mw-collapsible-text:hover,
.infobox-h-dropdown-header button.mw-collapsible-text:hover,
.infobox-dropdown-header button .mw-collapsible-text:hover{
.infobox-h-dropdown-header button .mw-collapsible-text:hover{
color: white;
color: white;
}
}
Line 323: Line 338:


/* ------------ Dropdown Subsection Only -------------------*/
/* ------------ Dropdown Subsection Only -------------------*/
.infobox-dropdown{
.infobox-h-dropdown{
--th-heroinfobox-header-back: #d5903f;
--th-heroinfobox-header-back: #d5903f;
--th-heroinfobox-header-link: #F4E3CF;
--th-heroinfobox-header-link: #F4E3CF;
}
}


.infobox-dropdown .infobox-subsection-child{
.infobox-h-dropdown .infobox-h-subsection-child{
border-top-right-radius: 0;
border-top-right-radius: 0;
border-top-left-radius: 0;
border-top-left-radius: 0;
}
}


.infobox-dropdown .infobox-subsection-child:not(.mw-collapsed) .infobox-dropdown-header{
.infobox-h-dropdown .infobox-h-subsection-child:not(.mw-collapsed) .infobox-h-dropdown-header{
border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
}
}


.infobox-dropdown tr > td:last-child{
.infobox-h-dropdown tr > td:last-child{
white-space: nowrap;
white-space: nowrap;
}
}


/*--- Statistic Dropdown Themes --- */
/*--- Statistic Dropdown Themes --- */
.infobox-dropdown-weapon{
.infobox-h-dropdown-weapon{
--th-heroinfobox-header-back: #d5903f;
--th-heroinfobox-header-back: #CD8837;
--th-heroinfobox-header-link: #FFF0DF;
--th-heroinfobox-header-link: #FFF0DF;
}
}
.infobox-dropdown-vitality{
.infobox-h-dropdown-vitality{
--th-heroinfobox-header-back: #74b01c;
--th-heroinfobox-header-back: #74b01c;
--th-heroinfobox-header-link: #DAFFD2;
--th-heroinfobox-header-link: #DAFFD2;
}
}
.infobox-dropdown-spirit{
.infobox-h-dropdown-spirit{
--th-heroinfobox-header-back: #ba5ca6;
--th-heroinfobox-header-back: #A657BC;
--th-heroinfobox-header-link: #ffdff8;
--th-heroinfobox-header-link: #ffdff8;
}
}


/*--- Statistic Dropdown Header --- */
/*--- Statistic Dropdown Header --- */
.infobox-dropdown-header{
.infobox-h-dropdown-header{
position: relative;
position: relative;
width: calc(100% - 4px);
width: calc(100% - 4px);
Line 369: Line 384:


/* ------------ Subsection Text Themes -------------------*/
/* ------------ Subsection Text Themes -------------------*/
.infobox-content .infotext-bold{
.infobox-h-content .infotext-h-bold{
font-weight: bold;
font-weight: bold;
}
}
.infobox-content .infotext-title{
.infobox-h-content .infotext-h-title{
color: var(--th-heroinfobox-text-title);
color: var(--th-heroinfobox-text-title);
}
}
.infobox-content .infotext-big{
.infobox-h-content .infotext-h-big{
font-size: 18px;
font-size: 18px;
}
}
.infobox-content .infotext-bigger{
.infobox-h-content .infotext-h-bigger{
text-shadow: 1.1px 2px 2px black, 1.2px 1.2px 0.2px #7a7369;
text-shadow: 1.1px 2px 2px black, 1.2px 1.2px 0.2px #7a7369;
font-size: 20px;
font-size: 20px;
Line 386: Line 401:


/* ------------ Hero Tags -------------------*/
/* ------------ Hero Tags -------------------*/
.infobox-herotags{
.infobox-h-herotags{
display: flex;
display: flex;
justify-content: flex-start;
justify-content: flex-start;
Line 397: Line 412:
}
}


.infobox-herotags > div{
.infobox-h-herotags > div{
display: inline-block;
display: inline-block;
position: relative;
position: relative;
}
}


.infobox-herotag-back{
.infobox-h-herotag-back{
position: absolute;
position: absolute;
top: 0;
top: 0;
Line 412: Line 427:
}
}


.infobox-herotag-text{
.infobox-h-herotag-text{
position: relative;
position: relative;
color: var(--th-heroinfobox-tags-text);
color: var(--th-heroinfobox-tags-text);
Line 424: Line 439:


/*--- Tag Posing --- */
/*--- Tag Posing --- */
.infobox-herotags > div:nth-child(3n + 1) .infobox-herotag-back{
.infobox-h-herotags > div:nth-child(3n + 1) .infobox-h-herotag-back{
     transform: rotateZ(3deg);
     transform: rotateZ(3deg);
     animation-name: TagGroove1;
     animation-name: TagGroove1;
Line 430: Line 445:
     animation-iteration-count: infinite;
     animation-iteration-count: infinite;
}
}
.infobox-herotags > div:nth-child(3n + 2) .infobox-herotag-back{
.infobox-h-herotags > div:nth-child(3n + 2) .infobox-h-herotag-back{
     transform: rotateZ(-3deg);
     transform: rotateZ(-3deg);
     animation-name: TagGroove2;
     animation-name: TagGroove2;
Line 436: Line 451:
     animation-iteration-count: infinite;
     animation-iteration-count: infinite;
}
}
.infobox-herotags > div:nth-child(3n + 3) .infobox-herotag-back{
.infobox-h-herotags > div:nth-child(3n + 3) .infobox-h-herotag-back{
     transform: rotateZ(4deg);
     transform: rotateZ(4deg);
     animation-name: TagGroove3;
     animation-name: TagGroove3;
Line 447: Line 462:


/*--- Tag Animation (ONLY on Hover) --- */
/*--- Tag Animation (ONLY on Hover) --- */
.infobox-herotags:hover .infobox-herotag-back{
.infobox-h-herotags:hover .infobox-h-herotag-back{
animation-play-state: running;
animation-play-state: running;
}
}