MediaWiki:Common.css: Difference between revisions

From dsignwiki
Jump to navigation Jump to search
 
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
@font-face {
    font-family: "Liberation Sans";
    src: url("/resources/fonts/LiberationSans-Regular.ttf");
}
@font-face {
    font-family: "Linux Libertine";
    src: url("/resources/fonts/LinLibertine_R.ttf");
}
/* === GLOBAL TYPOGRAPHY === */
/* Base body text — Liberation Sans */
html,
body,
.mw-body,
.mw-parser-output {
    font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;          /* base = 16px */
    line-height: 1.2;         
}
/* Paragraphs and list text */
p, li, td, th {
    font-size: 1.1rem;        /* slightly larger than base text */
}
/* === HEADINGS — Linux Libertine === */
h1, h2, h3, h4, h5, h6,
.firstHeading,
.mw-headline {
    font-family: "Linux Libertine", Georgia, serif;
}
.mw-body h1, .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1 { font-size: 3rem; line-height: 1.15; } 
/* === SIDEBAR MENU === */
#mw-panel,
.vector-menu-content,
#p-navigation,
#p-tb,
#p-lang {
    font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;        /* sidebar smaller for contrast */
    line-height: 1.4;
}
#partner-logos {
  display: flex;
  justify-content: right;
  align-items: right;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 1rem;
}
#partner-logos img {
  height: 40px;
  object-fit: contain;    /* keeps aspect ratio, fits within the box */
  max-width: 100%;        /* prevents overflow */
  display: block;          /* removes inline gaps below images */
}
/* === Modern Wiki Table Styling === */
/* === Modern Wiki Table Styling === */
/* === Modern Wiki Table Styling === */
.wikitable.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden; /* so rounded corners clip correctly */
  font-size: 0.95rem;
}
/* Header cells */
.wikitable.custom-table th {
  background-color: ##0000FF;
  color: #002b7f;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #d0d9ff;
}
/* Data cells */
.wikitable.custom-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #eee;
}
/* Zebra striping */
.wikitable.custom-table tr:nth-child(even) td {
  background-color: #f9fbff;
}
/* Hover effect */
.wikitable.custom-table tr:hover td {
  background-color: rgba(0, 64, 255, 0.06);
}
/* Rounded corners for first & last rows */
.wikitable.custom-table tr:first-child th:first-child {
  border-top-left-radius: 0.5rem;
}
.wikitable.custom-table tr:first-child th:last-child {
  border-top-right-radius: 0.5rem;
}
.wikitable.custom-table tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}
.wikitable.custom-table tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}
/* Hide the automatic Tools and Special pages sections */
/* Hide the automatic Tools and Special pages sections */
#p-tb,  /* Toolbox container */
#p-tb {  
#t-specialpages {  
     display: none !important;
     display: none !important;
}
}

Latest revision as of 17:52, 3 November 2025

/* CSS placed here will be applied to all skins */
@font-face {
    font-family: "Liberation Sans";
    src: url("/resources/fonts/LiberationSans-Regular.ttf");
}

@font-face {
    font-family: "Linux Libertine";
    src: url("/resources/fonts/LinLibertine_R.ttf");
}


/* === GLOBAL TYPOGRAPHY === */

/* Base body text — Liberation Sans */
html,
body,
.mw-body,
.mw-parser-output {
    font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;           /* base = 16px */
    line-height: 1.2;          
}

/* Paragraphs and list text */
p, li, td, th {
    font-size: 1.1rem;         /* slightly larger than base text */
}

/* === HEADINGS — Linux Libertine === */
h1, h2, h3, h4, h5, h6,
.firstHeading,
.mw-headline {
    font-family: "Linux Libertine", Georgia, serif;
}
.mw-body h1, .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1 { font-size: 3rem; line-height: 1.15; }   


/* === SIDEBAR MENU === */
#mw-panel,
.vector-menu-content,
#p-navigation,
#p-tb,
#p-lang {
    font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;         /* sidebar smaller for contrast */
    line-height: 1.4;
}








#partner-logos {
  display: flex;
  justify-content: right;
  align-items: right;
  flex-wrap: wrap;
  gap: 4rem;
  margin-top: 1rem;

}

#partner-logos img {
  height: 40px;
  object-fit: contain;     /* keeps aspect ratio, fits within the box */
  max-width: 100%;         /* prevents overflow */
  display: block;          /* removes inline gaps below images */
}






/* === Modern Wiki Table Styling === */
/* === Modern Wiki Table Styling === */
/* === Modern Wiki Table Styling === */
.wikitable.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  background-color: #fff;
  border-radius: 0.5rem;
  overflow: hidden; /* so rounded corners clip correctly */
  font-size: 0.95rem;
}



/* Header cells */
.wikitable.custom-table th {
  background-color: ##0000FF;
  color: #002b7f;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #d0d9ff;
}

/* Data cells */
.wikitable.custom-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #eee;
}

/* Zebra striping */
.wikitable.custom-table tr:nth-child(even) td {
  background-color: #f9fbff;
}

/* Hover effect */
.wikitable.custom-table tr:hover td {
  background-color: rgba(0, 64, 255, 0.06);
}

/* Rounded corners for first & last rows */
.wikitable.custom-table tr:first-child th:first-child {
  border-top-left-radius: 0.5rem;
}
.wikitable.custom-table tr:first-child th:last-child {
  border-top-right-radius: 0.5rem;
}
.wikitable.custom-table tr:last-child td:first-child {
  border-bottom-left-radius: 0.5rem;
}
.wikitable.custom-table tr:last-child td:last-child {
  border-bottom-right-radius: 0.5rem;
}






/* Hide the automatic Tools and Special pages sections */
#p-tb { 
    display: none !important;
}