MediaWiki:Common.css

From Laima
Revision as of 20:13, 5 November 2025 by Laima (talk | contribs) (Created page with "CSS placed here will be applied to all skins: #content { background-color: #fffcf3; } #mw-content { background-color: #fffcf3; } #mw-content-container { background-color: #bdbab3; } #p-logo { background-color: #bdbab3; } .res-img img { max-width:20%; height:auto; } .tooltip-content { display: none; position: absolute; background: #333; color: #fff; padding: 5px; border-radius: 6px; width: max-content; max-width: 300px; z-i...")
(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 */
#content { background-color: #fffcf3; }
#mw-content { background-color: #fffcf3; }
#mw-content-container { background-color: #bdbab3; }
#p-logo { background-color: #bdbab3; }
.res-img img {
    max-width:20%;
    height:auto;
}
.tooltip-content {
    display: none;
    position: absolute;
    background: #333;
    color: #fff;
    padding: 5px;
    border-radius: 6px;
    width: max-content;
    max-width: 300px;
    z-index: 100;
    font-size: 14px !important;  /* Force font size for tooltip */
    line-height: 1.4 !important; /* Force line height for tooltip */
}
.worldmap-table {
    border-collapse: collapse;
    border-spacing: 0;
    padding: 0;
    margin: 0;
    border: none;
    background-color: transparent;
    text-align: center;
}
.worldmap-table td {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0;
    line-height: 0;
    position: relative;
    text-align: center;
}
.worldmap-table td > div {
    text-align: center;
}
.worldmap-table img {
    display: block;
    padding: 0;
    margin: 0 auto;  /* Center images horizontally */
}
.worldmap-table .dungeon-marker {
    font-size: 12px !important;
    line-height: normal !important;
    text-align: center;
}
div:hover > .tooltip-content {
    display: block;
}