MediaWiki:Common.css: Difference between revisions

From The Seven Sages of Rome
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(13 intermediate revisions by the same user not shown)
Line 8: 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 */
/* Features & Components */
Line 56: Line 58:
}
}


/* List Resets & Styling */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}


ul ul, ul ol, ol ul, ol ol {
    padding-left: 1.5rem;
    list-style-type: disc;
}




Line 163: Line 155:
}
}


/** Table **/
.cc-card-body--table .dataTable {
/* Container & overall layout */
padding-left: 0.5rem;
#DataTables_Table_0_wrapper {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1c1c1e;
  background: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
}
}


/* Search panes */
/* =========================================
.dtsp-titleRow {
  5. Print
  display: flex;
  ========================================= */
  align-items: center;
@media print
  justify-content: space-between;
{  
  margin-bottom: 0.75rem;
    .no-print, .no-print *
  font-weight: 600;
    {
  color: #111827;
        display: none !important;
}
    }
 
.dtsp-titleRow button {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #374151;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}
 
.dtsp-titleRow button:hover:not(:disabled) {
  background-color: #f3f4f6;
  border-color: #9ca3af;
}
 
.dtsp-titleRow button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
 
/* Individual search panes */
.dtsp-searchPane {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem;
  background-color: #fafafa;
  margin-bottom: 0.5rem;
}
 
/* Search input & button */
.dtsp-paneInputButton.dtsp-search {
  width: calc(100% - 2.5rem);
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
 
.dtsp-paneInputButton.dtsp-search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
 
.dtsp-searchButtonCont button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.5rem;
  margin-left: 0.25rem;
  border-radius: 0.375rem;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
 
.dtsp-searchButtonCont button:hover:not(:disabled) {
  background-color: #2563eb;
}
 
.dtsp-searchButtonCont button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
 
/* Buttons inside search panes */
.dtsp-buttonGroup .dtsp-paneButton {
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  margin-right: 0.25rem;
  transition: all 0.2s;
}
 
.dtsp-buttonGroup .dtsp-paneButton:hover:not(:disabled) {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}
 
.dtsp-buttonGroup .dtsp-paneButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
 
/* Caret rotation */
.dtsp-collapseButton .dtsp-caret {
  display: inline-block;
  transition: transform 0.2s;
}
 
.dtsp-collapseButton.dtsp-rotated .dtsp-caret {
  transform: rotate(180deg);
}
 
/* DataTables main table */
table.dataTable {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  font-size: 0.875rem;
}
 
table.dataTable th,
table.dataTable td {
  padding: 0.5rem 0.75rem;
  text-align: left;
}
 
table.dataTable thead {
  background-color: #f3f4f6;
}
 
table.dataTable thead th {
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  position: relative;
}
 
table.dataTable tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s;
}
 
table.dataTable tbody tr:hover {
  background-color: #f9fafb;
}
 
.dtsp-pill {
  background-color: #3b82f6;
  color: white;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
}
 
/* Paging controls */
.dt-paging-button {
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  padding: 0.25rem 0.5rem;
  margin-left: 0.25rem;
  background-color: #f3f4f6;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
 
.dt-paging-button:hover:not(.disabled) {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}
 
.dt-paging-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
 
/* Table links */
table.dataTable a {
  color: #3b82f6;
  text-decoration: none;
}
 
table.dataTable a:hover {
  text-decoration: underline;
}
 
/* Info text */
.dt-info {
  font-size: 0.875rem;
  color: #6b7280;
}
}

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