MediaWiki:Common.css

MediaWiki interface page

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
.infobox {
    float: right;
    width: 22em;
    background: #333; /* Dark background color */
    border: 1px solid #555; /* Darker border color */
    padding: 5px;
    font-size: 95%;
    margin: 0 0 1em 1em;
    border-radius: 8px; /* Rounded corners */
    color: #ddd; /* Light text color */
}

.infobox .header {
    font-size: 125%;
    font-weight: bold;
    text-align: center;
    background: #444; /* Darker background for header */
    color: #fff; /* White text color for header */
    padding: 5px;
    border-radius: 8px 8px 0 0; /* Rounded corners for header */
}

.infobox .field {
    padding: 5px 0;
    display: flex;
}

.infobox .field .label {
    background: #555; /* Slightly lighter background for labels */
    padding: 2px 5px;
    font-weight: bold;
    flex: 1;
    color: #fff; /* White text color for labels */
    border-radius: 4px; /* Rounded corners for labels */
}

.infobox .field .value {
    padding: 2px 5px;
    flex: 2;
    color: #ddd; /* Light text color for values */
}

.infobox .image img {
    border: 1px solid #555; /* Border for image */
    border-radius: 5px; /* Rounded corners for image */
    display: block;
    margin: 0 auto; /* Center image */
}