MediaWiki:Common.css

From Καλόξύς
Revision as of 11:21, 4 December 2024 by Admin (talk | contribs)

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.
/* CSS placed here will be applied to all skins */

/* Set the height of the logo */
#p-logo, #p-logo a, #p-logo img {
    height: 135px;
    width: auto; /* This ensures the width adjusts to maintain aspect ratio */
    object-fit: contain; /* This ensures the image scales down to fit its container while maintaining aspect ratio */
}

/* Optional: If you want to ensure it doesn't exceed a certain width */
#p-logo img {
    max-width: 100%; /* This ensures the logo doesn't exceed its container's width */
}