MediaWiki:Common.css: Difference between revisions

From The Seven Sages of Rome
No edit summary
Tag: Manual revert
No edit summary
Tag: Manual revert
 
(56 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* =========================================
  1. Imports
  ========================================= */
/* Core Layouts */
@import url('/index.php?title=MediaWiki:BentoGrid.css&action=raw&ctype=text/css');
@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:Navbar.css&action=raw&ctype=text/css');
Line 5: Line 8:
@import url('/index.php?title=MediaWiki:LandingPage.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: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: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: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: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');


.grid-container {
/* =========================================
     display: block; /* Change from grid to block display */
  2. Fonts & Typography
     padding: 20px; /* Keep the padding */
  ========================================= */
@font-face {
     font-family: 'Inter';
    src: url('/images/f/f1/Inter.ttf') format('ttf');
     font-weight: 100 900;
    font-display: swap;
}
}


.grid-container .wikitable {
@font-face {
     margin-bottom: 20px; /* Add space between tables */
     font-family: 'Inter';
     width: 100%; /* Make tables full width */
    src: url("/images/9/94/Inter-Italic.ttf") format('ttf');
     font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}
}


.card {
@font-face {
height: 250px;
    font-family: 'Prata';
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    src: url('/images/3/36/Prata-Regular.ttf') format('ttf');
border-radius: 0.75rem;
    font-weight: 100 900;
    font-display: swap;
}
}


.card:hover {
body {
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', 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;
}
}


.card-block {
/* Category Links Box */
display: grid;
#catlinks {
align-content: space-between;
    border-radius: 0.75rem;
height: 100%;
    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);
}
}


.primary-btn {
@media (max-width: 768px) {
  margin-right: auto;
    .mw-body.content {
  margin-left: auto;
        padding: 0 !important;
  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,
 
.primary-btn:focus {
/* =========================================
opacity: .75;
  4. Extension Overrides
  ========================================= */
 
/* Semantic MediaWiki (SMW) */
.smw-datatable {
    font-family: 'Inter', sans-serif !important;
}
}


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


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


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


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


/* WIP banner */
/* Maps */
.wip-alert {
.maps-map {
     position: fixed;
     border-radius: 0.5rem;
     display: none;
     filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
    bottom: 0;
}
    left: 50%;
 
    transform: translate(-50%, 0);
/* DataTables Fixed Header */
     z-index: 999;
.dtfh-floatingparent {
     top: 48px !important;
}
}


/* Version test */
/* OOUI (Dialogs & Popups) */
/* Reset default list styling */
.oo-ui-windowManager-modal > .oo-ui-dialog,
ul {
.oo-ui-menuSelectWidget {
  list-style-type: none;
    z-index: 999 !important;
  padding: 0;
  margin: 0;
}
}


.maps-map {
.oo-ui-popupToolGroup-tools.oo-ui-popupToolGroup-active-tools .oo-ui-iconElement-icon {
border-radius: 0.5rem;
    position: static !important;
filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
}
}


.dtfh-floatingparent {
/* Tag Cloud */
top: 48px !important;
.srf-tagcloud-wordcloud {
    width: unset !important;
}
}


.alert-info {
.srf-tagcloud-wordcloud a {
background: rgba(64, 112, 255, 0.1) !important;
    font-family: "Inter", sans-serif !important;
backdrop-filter: blur(10px) saturate(100%) contrast(45%) brightness(140%) !important;
    font-weight: 500 !important;
-webkit-backdrop-filter: blur(10px) saturate(100%) contrast(45%) brightness(140%) !important;
    letter-spacing: -1px;
border: none !important;
}
}


.oo-ui-windowManager-modal > .oo-ui-dialog {
.srf-tagcloud-wordcloud a:hover {
z-index: 999 !important;
    text-decoration: underline !important;
}
}


.oo-ui-popupToolGroup-tools.oo-ui-popupToolGroup-active-tools .oo-ui-iconElement-icon {
.cc-card-body--table .dataTable {
position: static !important;
padding-left: 0.5rem;
}
}


#catlinks {
/* =========================================
border-radius: 0.75rem;
  5. Print
background-color: white;
  ========================================= */
padding: 0.5rem 1rem 0.5rem 1rem;
@media print
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
{  
    .no-print, .no-print *
    {
        display: none !important;
    }
}
}

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;
    }
}