MediaWiki:Common.css: Difference between revisions

From BMW 3-Series E36 Wiki Encyclopedia
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 100: Line 100:
.twocolgrid tr:nth-child(odd) td {
.twocolgrid tr:nth-child(odd) td {
   background: #ffffff;
   background: #ffffff;
}
.page-Main_Page .mw-first-heading,
.page-Main_Page .firstHeading,
.page-Main_Page h1 {
    display: none !important;
}
/* Reduce space above page content */
.mw-page-container-inner {
    padding-top: 0 !important;
}
/* Reduce title spacing */
.mw-first-heading {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}
/* Compact page header */
.mw-body-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* Upload Image button - Top Navigation */
#ca-upload-image a {
    font-weight: bold !important;
    color: #064f85 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}
/* Hover effect */
#ca-upload-image a:hover {
    color: #0066cc !important;
    text-decoration: underline;
}
}

Latest revision as of 23:29, 12 October 2026

/* ===================================================== */
/* Global tweaks (safe & minimal) */
/* ===================================================== */

.mw-body {
  max-width: 1200px;
}

/* ===================================================== */
/* PART INFOBOX */
/* ===================================================== */

.partbox{
  float: right;
  width: 300px;
  margin: 0 0 16px 16px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* --- Infobox title (SOFT dark gray) --- */
.partbox-title{
  background: #4b5563;        /* slate gray (soft, not black) */
  color: #f9fafb;
  font-weight: 700;
  padding: 9px 12px;
  font-size: 13.5px;
  border-bottom: 1px solid #374151;
}

/* --- Table base --- */
.partbox-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

/* --- Table cells --- */
.partbox-table th,
.partbox-table td{
  padding: 8px 10px;
  border-top: 1px solid #e5e7eb;
  vertical-align: top;
}

/* --- Left column (labels) --- */
.partbox-table th{
  width: 42%;
  text-align: left;
  background: #f3f4f6;        /* light gray */
  color: #111827;
  font-weight: 600;
}

/* --- Right column (values) --- */
.partbox-table td{
  color: #1f2937;
  background: #ffffff;
}

/* ===================================================== */
/* Mobile safety (prevents layout breakage) */
/* ===================================================== */

@media (max-width: 768px){
  .partbox{
    float: none;
    width: 100%;
    margin: 12px 0;
  }
}

/* Two-column grid table – restore borders + zebra striping */
.twocolgrid {
  border-collapse: collapse;
}

/* Grid lines */
.twocolgrid th,
.twocolgrid td {
  border: 1px solid #d1d5db;
  padding: 10px;
  vertical-align: top;
}

/* Header row */
.twocolgrid th {
  background: #f3f4f6;
  font-weight: 600;
}

/* Alternating row colors (body only) */
.twocolgrid tr:nth-child(even) td {
  background: #fafafa;
}

.twocolgrid tr:nth-child(odd) td {
  background: #ffffff;
}



.page-Main_Page .mw-first-heading,
.page-Main_Page .firstHeading,
.page-Main_Page h1 {
    display: none !important;
}


/* Reduce space above page content */
.mw-page-container-inner {
    padding-top: 0 !important;
}

/* Reduce title spacing */
.mw-first-heading {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* Compact page header */
.mw-body-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}




/* Upload Image button - Top Navigation */
#ca-upload-image a {
    font-weight: bold !important;
    color: #064f85 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Hover effect */
#ca-upload-image a:hover {
    color: #0066cc !important;
    text-decoration: underline;
}