Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css

MediaWiki interface page
Revision as of 05:49, 25 May 2025 by Finnvian (talk | contribs) (Created page with "CSS placed here will be applied to all skins: .infobox { width: 360px; border: 1px solid #aaa; background: #f9f9f9; float: right; margin: 10px 0 10px 10px; border-radius: 20px; box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); overflow: hidden; font-size: 14px; color: #333; } .infobox-header { background: #848484; color: #fff; text-align: center; font-weight: bold; padding: 12px; font-size: 16px; border-...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.
/* CSS placed here will be applied to all skins */
.infobox {
    width: 360px;
    border: 1px solid #aaa;
    background: #f9f9f9;
    float: right;
    margin: 10px 0 10px 10px;
    border-radius: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-size: 14px;
    color: #333;
}

.infobox-header {
    background: #848484;
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 12px;
    font-size: 16px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.infobox-section-title {
    background: #e6e6e6;
    font-weight: bold;
    padding: 6px;
    text-align: center;
    border-top: 1px solid #ccc;
}

.infobox td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px
}

.infobox a {
    color: #0073e6;
    text-decoration: none;
}

.infobox a:hover {
    text-decoration: underline;
}

/* Wrapper to preserve rounded corners and clip zoom overflow */
.infobox-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    margin: 8px auto;
    width: fit-content;
    display: inline-block;
}

/* Image with grow/shrink effect */
.infobox img {
    border-radius: 12px;
    display: block;
    transition: transform 1s ease;
}

/* Scale image up slightly on hover */
.infobox-image-wrapper:hover img {
    transform: scale(1.028); /* Approx. 10px on 360px image */
}

/* Make bottom corners fully rounded */
.infobox tr:last-child td {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
}