MediaWiki:Common.css: Difference between revisions

From Borsheim Crane Service Wiki
No edit summary
No edit summary
Line 27: Line 27:
}
}


.wikitable td,
.wikitable th.nowrap-col ~ td {
.wikitable th {
     white-space: nowrap;
    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;
     overflow: hidden;
     text-overflow: ellipsis;
     text-overflow: ellipsis;
}
}

Revision as of 20:02, 3 June 2025

/* 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 th.nowrap-col ~ td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}