MediaWiki:Common.css

Lz讨论 | 贡献2024年1月27日 (六) 07:16的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
.infobox-container {
    position: relative;
    float: right;
}

.infobox-body {
    border-collapse: collapse;
    border-style: solid;
    border-width: 0.4em;
    border-color: transparent;
    text-align: center;
    vertical-align: center;
}

.infobox-border {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-style: solid;
    border-width: 0.4em;
    border-radius: 10px;
}



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

.tooltip .tooltip-content {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: -10em;
    z-index: 10000;
    padding: 0.5em;
    margin-top: 1em;
    border-radius: 0.2em;
    width: 20em;
    background-color: #e2e1e8;
}

.tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: -1em;
    left: 10.5em;
    margin-left: 0;
    border-width: 0.5em;
    border-style: solid;
    border-color: transparent transparent #e2e1e8 transparent;
}

.tooltip:hover .tooltip-content {
    visibility: visible;
}


table.stripe tr:nth-child(odd) {
    background: #e9e9e9;
}

.skill-container {
    background-color: #d9d9dd;
    border-radius: 5px;
    box-sizing: border-box;
    display: grid;
    gap: 0.2em 1em;
    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: auto auto 1fr;
    padding: 2em;
}

.skill-icon {
    grid-column: 1;
    grid-row: 1 / 3;
}

.skill-icon img {
    background-color: #373F45;
    border-radius: 5px;
    box-shadow: 0 0 5px #888;
    height: 64px;
    width: 64px;
}

.skill-name {
    color: #1C2A32;
    font-size: 1.5em;
    font-weight: bold;
    grid-column: 2 / 4;
    grid-row: 1;
}

.skill-tag {
    color: #5A5D62;
    font-size: 1.2em;
    grid-column: 2;
    grid-row: 2;
}

.skill-type {
    color: #515455;
    font-size: 1.2em;
    grid-column: 3;
    grid-row: 2;
    justify-self: right;
}

.skill-type-icon img {
    height: 32px;
    position: relative;
    top: -1px;
    vertical-align: middle;
    width: 32px;
}

.skill-content {
    background-color: #E2E1E8;
    border-radius: 5px;
    box-shadow: 0 0 5px #888;
    display: flex;
    gap: 1em;
    grid-column: 1 / 4;
    grid-row: 3;
    justify-self: stretch;
    margin-top: 0.5em;
    padding: 1em;
}

.skill-desc {
    display: flex;
    gap: 0.5em;
    flex: auto;
    flex-direction: column;
}

.skill-desc-cost {
    color: #34383c;
    font-weight: bold;
}

.skill-desc-break {
    color: #f26c1c;
    font-weight: bold;
}

.skill-desc-flavor {
    color: #83858a;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

.skill-range-container {
    display: grid;
    flex: initial;
    grid-template-rows: auto auto auto auto auto 1fr;
    width: 128px;
}

.skill-range-image {
    grid-column: 1 / 3;
    grid-row: 1;
}

.skill-range-image img {
    height: 128px;
    width: 128px;
}

.skill-range-tag {
    color: #51565b;
    font-size: 0.9em;
    margin-top: 0.75em;
}

.skill-range-value {
    color: #1c2a32;
    font-size: 0.9em;
    justify-self: right;
    margin-top: 0.75em;
}

.skill-range-line {
    background-color: #D3D3D9;
    grid-column: 1 / 3;
    height: 0.25em;
    justify-self: start;
    position: relative;
    top: -3px;
    width: 100%;
}

.skill-range-stretch {
    justify-self: stretch;
}

.skill-upgrade-container {
    display: grid;
    gap: 0.5em;
    grid-template-columns: auto 1fr;
}

.skill-upgrade-name {
    background-color: #384B53;
    border-radius: 3px;
    box-shadow: 0 0 3px #888;
    color: #EDEDED;
    height: 1lh;
    line-height: 1lh;
    padding: 0.25em;
    text-align: center;
    width: 8.5em;
}

.skill-upgrade-desc {
    line-height: 1lh;
    padding: 0.25em;
}

.hide {
    display: none;
}

.invisible {
    visibility: hidden;
}