MediaWiki:Common.css

From aquila
Revision as of 10:31, 21 July 2026 by Aquila (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
.character-infobox {
    float: right;
    width: 300px;
    margin: 0 0 1em 1em;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid var(--infobox-color);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    font-size: 90%;
}


/* Title/Header */
.character-infobox-title {
    background: var(--infobox-color);
    color: var(--infobox-text);
    text-align: center;
    font-size: 130%;
    font-weight: bold;
    padding: 10px;
    border-radius: 0;
}


/* Image Area */
.character-infobox-image {
    text-align: center;
    padding: 12px;
    background: #f7f7f7;
}


/* Labels */
.character-infobox th {
    width: 35%;
    text-align: left;
    vertical-align: top;
    padding: 7px;
    background: #eeeeee;
    border-top: 1px solid #d5d5d5;
    font-weight: bold;
}


/* Values */
.character-infobox td {
    padding: 7px;
    border-top: 1px solid #d5d5d5;
    background: #ffffff;
}


/* Remove first row borders */
.character-infobox tr:first-of-type th,
.character-infobox tr:first-of-type td {
    border-top: none;
}


/* Hover effect */
.character-infobox tr:hover th,
.character-infobox tr:hover td {
    background: rgba(0,0,0,0.04);
}


/* Bottom rounded corners */
.character-infobox tr:last-child th {
    border-radius: 0 0 0 8px;
}

.character-infobox tr:last-child td {
    border-radius: 0 0 8px 0;
}


/* Image rounding */
.character-infobox-image img {
    max-width: 100%;
    height: auto;
}


/* Links inside infobox */
.character-infobox a {
    color: inherit;
}


/* Mobile support */
@media screen and (max-width: 700px) {

    .character-infobox {
        float: none;
        width: 100%;
        margin: 1em 0;
    }

}

/* ===================================
   Wiki Welcome Page
   =================================== */


.wiki-welcome {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}


/* Logo */

.wiki-welcome-logo {
    margin-bottom: 15px;
}


/* Title */

.wiki-welcome-title {
    font-size: 220%;
    font-weight: bold;
    margin-bottom: 5px;
}


.wiki-welcome-subtitle {
    font-size: 120%;
    color: #666;
    margin-bottom: 25px;
}



/* Statistics */

.wiki-welcome-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}


.wiki-stat {
    width: 150px;
    padding: 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
}


.wiki-stat-number {
    display: block;
    font-size: 180%;
    font-weight: bold;
}


.wiki-stat-label {
    display: block;
    color: #666;
}



/* Content Boxes */

.wiki-welcome-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}


.wiki-welcome-box {
    text-align: left;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 0 0 10px 10px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}


.wiki-welcome-box h2 {
    margin-top: 0;
    border-bottom: 2px solid #555;
    padding-bottom: 5px;
}


.wiki-welcome-box ul {
    padding-left: 20px;
}


/* Mobile */

@media(max-width:700px){

.wiki-welcome-title {
    font-size:160%;
}

.wiki-stat {
    width:100%;
}

}