MediaWiki:Common.css

MediaWiki interface page
Revision as of 03:45, 2 June 2024 by Software2 (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 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.image-grid img {
    max-width: 100%;
    height: auto;
}

body.page-Main_Page div#siteSub { display: none !important; }


.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.box {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin: 10px;
  flex: 1 1 250px; /* Ensure each box has a minimum width of 250px */
  max-width: 300px; /* Set a maximum width to prevent stretching */
  text-align: center;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}