MediaWiki:Common.css: Difference between revisions

From The Seven Sages of Rome
No edit summary
No edit summary
Tag: Manual revert
 
(118 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* =========================================
#mw-navigation {
  1. Imports
z-index: 999;
  ========================================= */
border-bottom: 1px solid #e7e7e7;
/* Core Layouts */
background-color: rgba(255, 255, 255, 0.2) !important;
@import url('/index.php?title=MediaWiki:BentoGrid.css&action=raw&ctype=text/css');
backdrop-filter: blur(20px) saturate(160%) contrast(45%) brightness(140%) !important;
@import url('/index.php?title=MediaWiki:Navbar.css&action=raw&ctype=text/css');
-webkit-backdrop-filter: blur(20px) saturate(160%) contrast(45%) brightness(140%);
@import url('/index.php?title=MediaWiki:Breadcrumb.css&action=raw&ctype=text/css');
}
@import url('/index.php?title=MediaWiki:LandingPage.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:WikiTable.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:Skeleton.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:BodyCards.css&action=raw&ctype=text/css');


.nav-link {
/* Features & Components */
color: #374151 !important;
@import url('/index.php?title=MediaWiki:MotifBadges.css&action=raw&ctype=text/css');
}
@import url('/index.php?title=MediaWiki:CustomFiltered.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:CustomDatatable.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:InfoBox.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:CollapsibleTree.css&action=raw&ctype=text/css');


.nav-link:hover {
/* NEW: Offloaded Files (Create these files below) */
color: #030712 !important;
@import url('/index.php?title=MediaWiki:Search.css&action=raw&ctype=text/css');
}
@import url('/index.php?title=MediaWiki:UIComponents.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:VersionTree.css&action=raw&ctype=text/css');


.page-Main_Page .contentHeader {
display: none;
}


 
/* =========================================
.card {
  2. Fonts & Typography
height: 250px;
  ========================================= */
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
@font-face {
border-radius: 0.75rem;
    font-family: 'Inter';
    src: url('/images/f/f1/Inter.ttf') format('ttf');
    font-weight: 100 900;
    font-display: swap;
}
}


.card:hover {
@font-face {
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    font-family: 'Inter';
    src: url("/images/9/94/Inter-Italic.ttf") format('ttf');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}
}


.card-block {
@font-face {
display: grid;
    font-family: 'Prata';
align-content: space-between;
    src: url('/images/3/36/Prata-Regular.ttf') format('ttf');
height: 100%;
    font-weight: 100 900;
    font-display: swap;
}
}


.primary-btn {
body {
  margin-right: auto;
    font-family: 'Inter', sans-serif;
  margin-left: auto;
    background-color: #FCFCFA;
  background-color: #222;
  border-radius: 4px;
  border-style: none;
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font-family: "Farfetch Basis","Helvetica Neue",Arial,sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  max-width: none;
  min-height: 44px;
  min-width: 10px;
  outline: none;
  overflow: hidden;
  padding: 9px 20px 8px;
  position: relative;
  text-align: center;
  text-transform: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: 100%;
}
}


.primary-btn:hover,
#firstHeading {
.primary-btn:focus {
    font-family: 'Prata', 'serif';
opacity: .75;
}
}


.smw-datatable select {
background: #fff;
}


.smw-datatable th a {
color: black;
}


#pfForm .createboxInput, #pfForm .mandatoryField, #pfForm textarea {
max-width: 98% !important;
}


/* Drilldown customization */
/* =========================================
.drilldown-btn-wrapper {
  3. MediaWiki Core Overrides
max-width: 50%;
  ========================================= */
}
.mw-body {
.drilldown-results {
     padding: 0 1rem !important;
     -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}
}


.drilldown-categories-wrapper {
/* Hide Editor View if needed */
display: none;
.editor-view {
    display: none;
}
}


.drilldown-filter {
/* Category Links Box */
background-color: #fafafa;
#catlinks {
     border-radius: 2px;
     border-radius: 0.75rem;
     padding: 5px;
     background-color: white;
     border-color: #e4e4e7;
     padding: 0.5rem 1rem;
     border-width: 1px;
     box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    border-style: solid;
}
}


.drilldown-filter:hover {
@media (max-width: 768px) {
    background-color: #f4f4f5;
     .mw-body.content {
}
         padding: 0 !important;
.drilldown-values-toggle {
padding-right: 6px;
}
 
/* WIP banner */
.wip-alert {
    position: fixed;
    display: none;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 999;
}
 
/* Custom navbar breakpoint */
@media (min-width: 1350px){
     .navbar-expand-custom {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .navbar-expand-custom .navbar-nav {
        flex-direction: row;
    }
    .navbar-expand-custom .dropdown-menu {
        position: absolute;
    }
    .navbar-expand-custom .nav-link {
         padding-right: .5rem;
        padding-left: .5rem;
    }
    .navbar-expand-custom > .container {
        flex-wrap: nowrap;
    }
    .navbar-expand-custom .navbar-collapse {
        display: flex!important;
        flex-basis: auto;
    }
    .navbar-expand-custom .navbar-toggler {
        display: none;
     }
     }
}
}


/* CSS to be placed in MediaWiki:Common.css */
.version-tree {
    text-align: center;
    padding: 20px;
    font-family: sans-serif;
}


.tree-node {
/* =========================================
    display: inline-block;
  4. Extension Overrides
    vertical-align: top;
  ========================================= */
    text-align: center;
    padding: 0 10px;
    position: relative;
}


.node-content {
/* Semantic MediaWiki (SMW) */
     position: relative;
.smw-datatable {
    padding: 10px 0;
     font-family: 'Inter', sans-serif !important;
}
}


.node-box {
.smw-datatable select {
    display: inline-block;
     background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 15px;
     background: #f8f9fa;
    position: relative;
    z-index: 1;
}
}


.node-children {
.smw-datatable th a {
     position: relative;
     color: black;
    margin-top: 20px;
}
 
/* Lines connecting nodes */
.node-children:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    border-left: 1px solid #ccc;
    height: 20px;
}
 
.tree-node .tree-node:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 1px solid #ccc;
    height: 10px;
}
 
.node-children .tree-node:first-child:after,
.node-children .tree-node:last-child:after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 10px;
    border-top: 1px solid #ccc;
}
 
.node-children .tree-node:first-child:after {
    right: 50%;
}
 
.node-children .tree-node:last-child:after {
    left: 50%;
}
 
.node-children .tree-node:only-child:after {
    display: none;
}
}


/* Horizontal line connecting siblings */
/* PageForms */
.node-children {
#pfForm .createboxInput,
     position: relative;
#pfForm .mandatoryField,
#pfForm textarea {
     max-width: 98%;
}
}


.node-children:after {
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > input,
    content: '';
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .select2,
    position: absolute;
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .pf-select2-container,
    top: 0;
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .oo-ui-comboBoxInputWidget {
    left: 0;
     width: 100% !important;
    right: 0;
     border-top: 1px solid #ccc;
}
}


.node-children .tree-node:only-child:before {
/* Maps */
     height: 10px;
.maps-map {
    border-radius: 0.5rem;
     filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
}
}


/* Modern WikiTable Styles */
/* DataTables Fixed Header */
.wikitable {
.dtfh-floatingparent {
     background-color: #ffffff;
     top: 48px !important;
    border-collapse: collapse;
    margin: 1em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    width: 100%;
}
}


.wikitable > tr > th,
/* OOUI (Dialogs & Popups) */
.wikitable > * > tr > th {
.oo-ui-windowManager-modal > .oo-ui-dialog,
    background-color: #f8f9fa;
.oo-ui-menuSelectWidget {
    border: 1px solid #dee2e6;
     z-index: 999 !important;
    padding: 0.75rem;
    color: #495057;
    font-weight: 600;
    text-align: left;
     vertical-align: middle;
}
}


.wikitable > tr > td,
.oo-ui-popupToolGroup-tools.oo-ui-popupToolGroup-active-tools .oo-ui-iconElement-icon {
.wikitable > * > tr > td {
     position: static !important;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    vertical-align: middle;
     color: #212529;
}
}


.wikitable > tr:nth-child(even),
/* Tag Cloud */
.wikitable > * > tr:nth-child(even) {
.srf-tagcloud-wordcloud {
     background-color: rgba(0,0,0,0.02);
     width: unset !important;
}
}


.wikitable > tr:hover,
.srf-tagcloud-wordcloud a {
.wikitable > * > tr:hover {
     font-family: "Inter", sans-serif !important;
     background-color: rgba(0,0,0,0.04);
     font-weight: 500 !important;
     transition: background-color 0.15s ease-in-out;
    letter-spacing: -1px;
}
}


/* Responsive table wrapper */
.srf-tagcloud-wordcloud a:hover {
.table-responsive {
     text-decoration: underline !important;
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
     margin-bottom: 1rem;
}
}


/* Sort indicators if sortable tables are used */
.cc-card-body--table .dataTable {
.wikitable th.headerSort {
padding-left: 0.5rem;
    cursor: pointer;
}
}


.wikitable th.headerSort:after {
/* =========================================
    content: '↕';
  5. Print
    display: inline-block;
  ========================================= */
    margin-left: 0.5em;
@media print
    opacity: 0.5;
{  
}
     .no-print, .no-print *
 
     {
.wikitable th.headerSortUp:after {
         display: none !important;
    content: '↑';
    opacity: 1;
}
 
.wikitable th.headerSortDown:after {
    content: '↓';
    opacity: 1;
}
 
/* Caption styling */
.wikitable > caption {
    padding: 0.75rem;
    color: #6c757d;
    text-align: left;
    caption-side: top;
    font-style: italic;
    border-bottom: 2px solid #dee2e6;
}
 
/* Mobile optimizations */
@media (max-width: 768px) {
     .wikitable > tr > th,
    .wikitable > * > tr > th,
    .wikitable > tr > td,
     .wikitable > * > tr > td {
         padding: 0.5rem;
     }
     }
}
}

Latest revision as of 22:12, 5 March 2026

/* =========================================
   1. Imports
   ========================================= */
/* Core Layouts */
@import url('/index.php?title=MediaWiki:BentoGrid.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:Navbar.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:Breadcrumb.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:LandingPage.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:WikiTable.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:Skeleton.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:BodyCards.css&action=raw&ctype=text/css');

/* Features & Components */
@import url('/index.php?title=MediaWiki:MotifBadges.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:CustomFiltered.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:CustomDatatable.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:InfoBox.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:CollapsibleTree.css&action=raw&ctype=text/css');

/* NEW: Offloaded Files (Create these files below) */
@import url('/index.php?title=MediaWiki:Search.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:UIComponents.css&action=raw&ctype=text/css');
@import url('/index.php?title=MediaWiki:VersionTree.css&action=raw&ctype=text/css');


/* =========================================
   2. Fonts & Typography
   ========================================= */
@font-face {
    font-family: 'Inter';
    src: url('/images/f/f1/Inter.ttf') format('ttf');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("/images/9/94/Inter-Italic.ttf") format('ttf');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Prata';
    src: url('/images/3/36/Prata-Regular.ttf') format('ttf');
    font-weight: 100 900;
    font-display: swap;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FCFCFA;
}

#firstHeading {
    font-family: 'Prata', 'serif';
}




/* =========================================
   3. MediaWiki Core Overrides
   ========================================= */
.mw-body {
    padding: 0 1rem !important;
}

/* Hide Editor View if needed */
.editor-view {
    display: none;
}

/* Category Links Box */
#catlinks {
    border-radius: 0.75rem;
    background-color: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

@media (max-width: 768px) {
    .mw-body.content {
        padding: 0 !important;
    }
}


/* =========================================
   4. Extension Overrides
   ========================================= */

/* Semantic MediaWiki (SMW) */
.smw-datatable {
    font-family: 'Inter', sans-serif !important;
}

.smw-datatable select {
    background: #fff;
}

.smw-datatable th a {
    color: black;
}

/* PageForms */
#pfForm .createboxInput,
#pfForm .mandatoryField,
#pfForm textarea {
    max-width: 98%;
}

#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > input,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .select2,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .pf-select2-container,
#pfForm :not(.dateInput):not(.monthInput):not(.yearInput) > .oo-ui-comboBoxInputWidget {
    width: 100% !important;
}

/* Maps */
.maps-map {
    border-radius: 0.5rem;
    filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
}

/* DataTables Fixed Header */
.dtfh-floatingparent {
    top: 48px !important;
}

/* OOUI (Dialogs & Popups) */
.oo-ui-windowManager-modal > .oo-ui-dialog,
.oo-ui-menuSelectWidget {
    z-index: 999 !important;
}

.oo-ui-popupToolGroup-tools.oo-ui-popupToolGroup-active-tools .oo-ui-iconElement-icon {
    position: static !important;
}

/* Tag Cloud */
.srf-tagcloud-wordcloud {
    width: unset !important;
}

.srf-tagcloud-wordcloud a {
    font-family: "Inter", sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -1px;
}

.srf-tagcloud-wordcloud a:hover {
    text-decoration: underline !important;
}

.cc-card-body--table .dataTable {
	padding-left: 0.5rem;
}

/* =========================================
   5. Print
   ========================================= */
@media print
{    
    .no-print, .no-print *
    {
        display: none !important;
    }
}