Editing Template:Infobox hero/styles.css

Jump to navigation Jump to search
Warning: You are not logged in. Once you make an edit, a temporary account will be created for you. Learn more. Log in or create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 64: Line 64:
width: 100%;
width: 100%;
     max-width: 275px;
     max-width: 275px;
min-width: 240px;
min-width: 250px;
border-collapse: collapse;
border-collapse: collapse;
font-family: 'Retail Demo', 'Open Sans', serif;
font-family: 'Retail Demo', 'Open Sans', serif;
font-size: 15px;
font-size: 16px;
     background-color: var(--th-heroinfobox-color1);
     background-color: var(--th-heroinfobox-color1);
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
Line 100: Line 100:
background-image: linear-gradient(180deg, var(--th-heroinfobox-color1-transparent) var(--th-heroinfobox-bg-grad-point1), var(--th-heroinfobox-color1-grad) var(--th-heroinfobox-bg-grad-height));
background-image: linear-gradient(180deg, var(--th-heroinfobox-color1-transparent) var(--th-heroinfobox-bg-grad-point1), var(--th-heroinfobox-color1-grad) var(--th-heroinfobox-bg-grad-height));
background-color: transparent;
background-color: transparent;
font-size: 15px;
font-size: 16px;
text-align: center;
text-align: center;
text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);
text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.7);
Line 118: Line 118:
.infobox-h-title{
.infobox-h-title{
color: var(--th-heroinfobox-text-title);
color: var(--th-heroinfobox-text-title);
font-size: 22px;
font-size: 25px;
font-weight: bold;
font-weight: bold;
    text-align: center;
text-shadow: 1.2px 2px 3px black, 1.2px 1.2px 0.1px #A5A5A5;
}
.infobox-h-title-regular{
color: var(--th-heroinfobox-text-title);
font-size: 22px;
font-weight: normal;
     text-align: center;
     text-align: center;
text-shadow: 1.2px 2px 3px black, 1.2px 1.2px 0.1px #A5A5A5;
text-shadow: 1.2px 2px 3px black, 1.2px 1.2px 0.1px #A5A5A5;
Line 137: Line 129:
justify-content: space-between;
justify-content: space-between;
align-items: center;
align-items: center;
min-height: 34px;
min-height: 45px;
margin-top: 2px;
margin-top: 4px;
margin-bottom: var(--th-heroinfobox-logo-bottom);
margin-bottom: var(--th-heroinfobox-logo-bottom);
}
}
Line 214: Line 206:
/* --- Text Before Stats --- */
/* --- Text Before Stats --- */
.infobox-h-text-weapon{
.infobox-h-text-weapon{
padding: 2px 0;
padding: 8px 0;
line-height: 1.2em;
line-height: 1.35;
position: relative;
position: relative;
}
}
Line 221: Line 213:
.infobox-h-text-stat-subtitle > *:first-child,
.infobox-h-text-stat-subtitle > *:first-child,
.infobox-h-text-stat-subtitle-border > *:first-child{
.infobox-h-text-stat-subtitle-border > *:first-child{
margin-top: 4px;
margin-top: 8px;
margin-bottom: 0;
margin-bottom: 0;
text-transform: uppercase;
text-transform: uppercase;
Line 229: Line 221:
}
}
.infobox-h-text-stat-subtitle-border{
.infobox-h-text-stat-subtitle-border{
margin-top: 2px;
margin-top: 8px;
border-top: solid 2px var(--th-heroinfobox-color2);
border-top: solid 3px var(--th-heroinfobox-color2);
}
}


/* ---------- Hero Portrait Image ---------- */
/* ---------- Hero Portrait Image ---------- */
.infobox-h-image > div{
.infobox-h-image > div{
max-width: 150px;
max-width: 190px;
height: auto;
height: auto;
margin: auto;
margin: auto;
Line 247: Line 239:
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);
}
/* ---------- Hero Tags (Inside Infobox) ---------- */
.infobox-h-herotags-row {
padding: 0;
}
.infobox-h-herotags-inner {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 6px;
padding: 4px 0 6px 0;
}
.infobox-h-herotag-pill {
display: inline-block;
padding: 2px 8px;
border-radius: 4px;
background: var(--th-heroinfobox-stats-back);
font-size: 13px;
font-weight: 600;
color: var(--th-heroinfobox-text-title);
text-transform: uppercase;
letter-spacing: 0.03em;
text-shadow: 1.5px 1.5px 0.8px rgba(0, 0, 0, 0.5);
}
}


Line 281: Line 247:


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


.infobox-h-subsection tr{
.infobox-h-subsection tr{
font-size: 14px;
font-size: 15px;
text-align: left;
text-align: left;
line-height: 1.1em;
line-height: 1.2em;
}
}
.infobox-h-subsection tr > td{
.infobox-h-subsection tr > td{
padding-bottom: 2px;
padding-bottom: 5px;
}
}
.infobox-h-subsection tr:first-child > td{
.infobox-h-subsection tr:first-child > td{
padding-top: 2px;
padding-top: 5px;
}
.infobox-h-dropdown .infobox-h-subsection-child tr:first-child > td {
    padding-top: 5px;
}
}
.infobox-h-subsection tr:last-child > td{
.infobox-h-subsection tr:last-child > td{
padding-bottom: 4px;
padding-bottom: 6px;
}
}
.infobox-h-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", 'Open Sans', serif;
text-shadow: 1.5px 1.5px 0.8px rgba(0,0,0,0.5);
text-shadow: 1.5px 1.5px 0.8px rgba(0,0,0,0.5);
color: var(--th-heroinfobox-stats-text);
color: var(--th-heroinfobox-stats-text);
Line 316: Line 279:
vertical-align: top;
vertical-align: top;
}
}
.infobox-h-subsection tr > td:first-child .infobox-h-stat-label{
.infobox-h-subsection tr > td:first-child span{
color: var(--th-heroinfobox-stats-text);
color: var(--th-heroinfobox-stats-text);
text-decoration: underline;
}
}
.infobox-h-subsection tr > td:last-child{
.infobox-h-subsection tr > td:last-child{
Line 330: Line 292:
}
}
.infobox-h-spiritboon:not(:empty){
.infobox-h-spiritboon:not(:empty){
padding-right: 0;
padding-right: 5px;
}
}
.infobox-h-dropdown tr:first-child .infobox-h-spiritboon:not(:empty){
.infobox-h-dropdown tr:first-child .infobox-h-spiritboon:not(:empty){
Line 372: Line 334:
.infobox-h-dropdown-header button .mw-collapsible-text:hover{
.infobox-h-dropdown-header button .mw-collapsible-text:hover{
color: white;
color: white;
}
.infobox-h-dropdown-header > button::before,
.infobox-h-dropdown-header > button::after{
color: inherit;
}
}


Line 426: Line 383:
position: relative;
position: relative;
width: calc(100% - 4px);
width: calc(100% - 4px);
padding: 1px;
padding: 2px;
background-color: var(--th-heroinfobox-header-back);
background-color: var(--th-heroinfobox-header-back);
Line 442: Line 399:
}
}
.infobox-h-content .infotext-h-big{
.infobox-h-content .infotext-h-big{
font-size: 16px;
font-size: 18px;
}
}
.infobox-h-content .infotext-h-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: 18px;
font-size: 20px;
}
 
 
 
/* ------------ Hero Tags -------------------*/
.infobox-h-herotags{
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
gap: 8px;
column-gap: 10px;
--th-heroinfobox-tags-text: #FFEFD7;
--th-heroinfobox-tags-back: #000000;
}
 
.infobox-h-herotags > div{
display: inline-block;
position: relative;
}
 
.infobox-h-herotag-back{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--th-heroinfobox-tags-back);
animation-play-state: paused;
}
 
.infobox-h-herotag-text{
position: relative;
color: var(--th-heroinfobox-tags-text);
font-size: 1.2em;
font-family: "VALVE Pulp", "Open Sans", "serif";
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 2px 7px;
cursor: default;
}
 
/*--- Tag Posing --- */
.infobox-h-herotags > div:nth-child(3n + 1) .infobox-h-herotag-back{
    transform: rotateZ(3deg);
    animation-name: TagGroove1;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
.infobox-h-herotags > div:nth-child(3n + 2) .infobox-h-herotag-back{
    transform: rotateZ(-3deg);
    animation-name: TagGroove2;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
.infobox-h-herotags > div:nth-child(3n + 3) .infobox-h-herotag-back{
    transform: rotateZ(4deg);
    animation-name: TagGroove3;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}
}




/* ------------ Stat Cell Modifiers -------------------*/


/* Headroom for a section's first row when it carries a scaling icon. */
 
.infobox-h .infobox-h-dropdown .infobox-h-subsection-child tr > td.infobox-h-stat-label-scaled{
/*--- Tag Animation (ONLY on Hover) --- */
padding-top: 8px;
.infobox-h-herotags:hover .infobox-h-herotag-back{
animation-play-state: running;
}
 
/* --- Tag Keyframes (ripped from game) --- */
@keyframes 'TagGroove1'
{
    0%{
transform: rotateZ(-3deg);
}
    25%{
transform: rotateZ(-3deg);
}
    26%{
transform: rotateZ(2deg);
}
    50%{
        transform: rotateZ(2deg);
    }
    51%{
        transform: rotateZ(-1deg);
    }
    75%{
        transform: rotateZ(-1deg);
    }
    76%{
        transform: rotateZ(0deg);
    }
    100%{
        transform: rotateZ(0deg);
    }
}
 
@keyframes 'TagGroove2'
{
    0%{
transform: rotateZ(3deg);
}
    25%{
transform: rotateZ(3deg);
}
    26%{
transform: rotateZ(-1deg);
}
    50%{
        transform: rotateZ(-1deg);
    }
    51%{
        transform: rotateZ(0deg);
    }
    75%{
        transform: rotateZ(0deg);
    }
    76%{
        transform: rotateZ(2deg);
    }
    100%{
        transform: rotateZ(2deg);
    }
}
}


/* Breathing room for value cells whose scaling icon sits near the edge. */
@keyframes 'TagGroove3'
.infobox-h .infobox-h-dropdown .infobox-h-subsection-child tr > td.infobox-h-stat-value-padded{
{
padding-right: 5px;
    0%{
transform: rotateZ(-3deg);
}
    25%{
transform: rotateZ(-3deg);
}
    26%{
transform: rotateZ(-1deg);
}
    50%{
        transform: rotateZ(-1deg);
    }
    51%{
        transform: rotateZ(2deg);
    }
    75%{
        transform: rotateZ(2deg);
    }
    76%{
        transform: rotateZ(0deg);
    }
    100%{
        transform: rotateZ(0deg);
    }
}
}
Please note that all contributions to The Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Deadlock:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template