MediaWiki:Common.css: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 167: Line 167:
     display: none;
     display: none;
   }
   }
}
/* Used for {{StatBoxes}} for hero pages*/
.stat-box {
    width: 100px;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.stat-box:hover {
    width: 175px;
}
.stat-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    height: 100%;
    width: 100%;
}
.stat-box-icon {
    width: 40px;
    height: 40px;
}
.stat-box-label {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    font-family: 'Retail Demo', sans-serif;
}
.stat-box-hover {
    display: none;
    position: absolute;
    top: 0;
    left: 175px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-radius: 15px;
}
.stat-box:hover .stat-box-hover {
    display: block;
    opacity: 1;
    transform: translateX(0);
}
@media (max-width: 768px) {
    .stat-box {
        width: 90px;
        height: 130px;
    }
    .stat-box:hover {
        width: 140px;
    }
    .stat-box-hover {
        left: 140px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .stat-box {
        width: 75px;
        height: 110px;
    }
    .stat-box:hover {
        width: 120px;
    }
    .stat-box-hover {
        left: 120px;
        font-size: 12px;
        padding: 8px;
    }
}
.stat-box-table {
    width: 100%;
    border-collapse: separate;
}
.stat-box-table th,
.stat-box-table td {
    padding: 5px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.08);
    border: 1px solid black;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    max-width: 320px;
    font-family: 'Retail Demo', sans-serif;
}
.stat-box-table th:hover,
.stat-box-table td:hover {
    overflow: visible;
    text-overflow: clip;
    background-color: rgba(0, 0, 0, .4);
}
.stat-box-table td::before,
.stat-box-table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.08);
    mix-blend-mode: multiply;
}
.stat-box-table th:first-child,
.stat-box-table td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.stat-box-table th:last-child,
.stat-box-table td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.stat-box-table .darker {
    background-color: rgba(0, 0, 0, 0.25);
}
}

Revision as of 23:38, 21 September 2024

/* CSS placed here will be applied to all skins */
.ability-icon {
     filter: invert(100%);
     opacity: 0.7;
}

.navbox-title .navbar {
    float: left;
    text-align: left;
    margin-right: 0.5em;
}

.navbox .navbar {
    display: block;
    font-size: 100%;
}

.navbar {
    display: inline;
    font-size: 88%;
    font-weight: normal;
}

.navbar.mini li abbr[title] {
    font-variant: small-caps;
    border-bottom: none;
    text-decoration: none;
    cursor: inherit;
}

.mw-body-content .navbar ul {
    line-height: inherit;
}

.navbar ul {
    display: inline-block;
    white-space: nowrap;
}

.hlist dl, .hlist ol, .hlist ul {
    margin: 0;
    padding: 0;
}

.mw-body h1, .mw-body-content h1, .mw-body-content h2, .mw-body-content h3, .mw-body-content h4, .mw-body-content h5, .mw-body-content h6 {
    font-family: 'PT Serif', 'Palatino', 'Georgia', serif !important;
}

.mainpage-header .header-intro h1 {
    font-size: 2.5em;
    font-weight: bold;
    border: none;
    margin: 0 0 0.15em;
}

.mainpage-header .header-intro p {
    font-size: 1.1em;
    line-height: 1.7em;
}

.page-Deadlock_Wiki .mw-parser-output {
    max-width: 95em;
    margin: 0 auto;
}

.mainpage-header .header-stats {
    flex: 1;
    display: flex;
/*    justify-content: center; */
    align-items: center;
    margin-top: -1em;
}

.mainpage-header .header-stats ul {
    list-style: none;
}

.tooltip {
    cursor: help;
    border-bottom: 1px dotted;
}

.HeroCard2:hover {
	transform: scale(1.1);
	z-index: 2;
}

.infobox {
    background: #eee;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 1em 1em;
    padding: 1em;
    width: 250px;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox-table th {
    text-align: right;
    vertical-align: top;
    width: 120px;
}
.infobox-table td {
    vertical-align: top;
}

.navbox {
    display: table !important;
}

table {
  display: table !important;
}
/*CSS for ability hover images*/
.popover-wrapper {
  position: relative;
  display: inline-block;
}
.popover-content {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 300px;
  transform: translate(0, 10px);
  width: auto;
}

.popover-wrapper:hover + .popover-content {
  z-index: 10;
  opacity: 1;
  visibility: visible;
  transform: translate(0, 20px);
  transition: all 0.4s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}

/* In game used colors for weapon, vitality, and spirit, respectively */
.weapon-orange {
  color: #d5903f; 
}

.vitality-green {
  color: #74b01c; 
}

.spirit-purple {
  color: #c288f0; 
}

.mw-page-title-namespace, .mw-page-title-separator, .mw-page-title-main {
  font-family: "Forevs Demo Medium";
}

.infobox-hero-name {
  font-family: "Reaver";
  font-weight: bold;
  text-transform: uppercase;
}

/*HariySaag info for Hero Cards*/
@media screen and (max-width: 480px) {
  td:has(.hide-parent-td-mobile) {
    display: none;
  }
}