MediaWiki:Common.css

From Borsheim Crane Service Wiki

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.
/* Borsheim red navbar styling */
.navbar-default {
    background-color: #c41e3a !important;
    border: none !important;
}

.navbar-default .navbar-brand {
    color: white !important;
}

.navbar-default .navbar-nav > li > a {
    color: white !important;
}

.navbar-default .navbar-nav > li > a:hover {
    background-color: rgba(255,255,255,0.1) !important;
}

/* Red links */
a {
    color: #c41e3a !important;
}

.wikitable {
    table-layout: auto; /* Let table size itself */
    width: 100%; /* Use full width available */
}

.wikitable td, 
.wikitable th {
    height: auto; /* Auto height based on content */
    padding: 8px 12px; /* Comfortable padding */
    vertical-align: top;
    word-wrap: break-word; /* Handle long text */
    white-space: normal; /* Allow text wrapping */
}

/* Auto-adjust column widths */
.wikitable td {
    width: auto; /* Columns size to content */
    min-width: 80px; /* Minimum width to prevent too narrow */
    max-width: 300px; /* Maximum width to prevent too wide */
}