Toggle 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
More languages
More actions
Revision as of 21:11, 9 June 2024 by Master-Brent (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.
/* Basic Infobox with Modern Blue and Dark Gray Theme using Divs */
.infobox {
  background-color: #444; /* Dark gray background */
  border: 2px solid #5c85d6; /* Modern blue border */
  border-radius: 10px; /* Rounded corners */
  color: #ffffff; /* White text */
  font-family: 'Arial', sans-serif; /* Modern, clean font */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Subtle shadow */
  margin: 10px;
  float: right; /* Float to the right */
  width: 300px; /* Fixed width */
}

.infobox-header {
  background-color: #5c85d6; /* Blue background for header */
  color: #FFFFFF; /* White text */
  padding: 10px; /* Padding for the header */
  text-align: center; /* Center-align the header text */
  font-size: 1.25em; /* Slightly larger text */
  font-weight: bold; /* Bold header text */
  border-top-left-radius: 8px; /* Match container rounding */
  border-top-right-radius: 8px; /* Match container rounding */
}

.infobox-image {
  text-align: center; /* Center the image */
  padding: 10px; /* Padding for the image area */
}

.infobox-row {
  display: flex; /* Use flexbox to layout label and value */
  justify-content: space-between; /* Space out the label and value */
  padding: 5px 10px; /* Padding for each row */
  border-top: 1px solid #5c85d6; /* Blue border separator */
}

.infobox-label {
  font-weight: bold; /* Bold text for labels */
  flex: 1; /* Flex to take up space */
  text-align: left; /* Align text to the left */
}

.infobox-value {
  flex: 2; /* Flex to take more space */
  text-align: right; /* Align text to the right */
}

.infobox-value a {
  color: #66ccff; /* Light blue for links */
  text-decoration: none; /* Remove underline from links */
}

.infobox-value a:hover {
  color: #3399ff; /* Bright blue for hovered links */
  text-decoration: underline; /* Underline on hover */
}

/* Center the image within the infobox */
.infobox img {
  display: block;
  margin: 0 auto;
}