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 10:58, 17 May 2025 by Finnrian (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; Apply rounded corners to all sides: 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; paddin...")
(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; /* Apply rounded corners to all sides */
    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;  /* Ensure blue background follows */
    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: 6px;
    border-bottom: 1px solid #ddd;
}

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

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

.infobox img {
    border-radius: 12px;
    display: block;
    margin: 8px auto;
}

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