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 */
}
/* No-wrap class for specific cells */
.wikitable .nowrap {
white-space: nowrap !important;
overflow: hidden;
text-overflow: ellipsis;
}
/* Truncate class for long text */
.wikitable .truncate {
white-space: nowrap !important;
overflow: hidden;
text-overflow: ellipsis;
max-width: 150px;
}
/* Short text class */
.wikitable .short {
white-space: nowrap !important;
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
}