Jump to content

MediaWiki:Minerva.css: Difference between revisions

From Shark's Hypothetical Weather
Created page with "Reset user agent styles. We don't reset small or blockquote here deliberately: cite, dfn { font-style: inherit; } q { quotes: '"' '"' "'" "'"; } Hide stuff meant for accounts with special permissions. Made visible again in [[MediaWiki:Group-sysop.css]] and so on for other groups.: .checkuser-show, .sysop-show, .user-show, .templateeditor-show, .extendedmover-show, .patroller-show, .extendedconfirmed-show, .autoconfirmed-show { display: none; } /* Prev..."
 
No edit summary
Tags: Mobile edit Mobile web edit
 
(53 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Reset user agent styles. We don't reset small or blockquote here deliberately */
.infobox {
cite,
  background-color: #F9F9F9 !important;
dfn {
  border: 1px solid #DCDBE0 !important;
font-style: inherit;
  border-collapse: collapse;
  width: 100%;
  padding: 0.01em !important;
  font-size: 14.4px !important;
  line-height: 1.8em !important;
  color: #202123 !important;
  margin: 0 auto 1em auto;
}
}


q {
.infobox td,
quotes: '"' '"' "'" "'";
.infobox th {
  border: none;
  padding: 6px 8px;
  vertical-align: top;
  background-color: #F9F9F9;
  font-size: 14.4px !important;
  color: #202123 !important;
}
}


/* Hide stuff meant for accounts with special permissions. Made visible again in
/* ✅ NEW ALIGNMENT RULES + INDENT */
  [[MediaWiki:Group-sysop.css]] and so on for other groups. */
.infobox td:nth-child(1) {
.checkuser-show,
  text-align: center !important;
.sysop-show,
  width: 48% !important;
.user-show,
.templateeditor-show,
.extendedmover-show,
.patroller-show,
.extendedconfirmed-show,
.autoconfirmed-show {
display: none;
}
}


/* Prevent flags in tables from collapsing
.infobox td:nth-child(2) {
Fix for T116318
  text-align: left !important;
*/
  padding-left: 12px !important;
.flagicon img {
min-width: 23px;
}
}


/* Prevent unnecessary margin at the bottom of centralnotices */
/* Clean row-based dividers */
.cnotice {
.infobox tr {
margin-bottom: 0 !important;
  border-bottom: 0.75px solid #DCDBE0 !important;
}
}


/*
.infobox tr:last-child {
* BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
  border-bottom: none;
* SEE [[MediaWiki talk:Common.css/to do]]
*/
.mw-parser-output .infobox-header,
.mw-parser-output .infobox-subheader,
.mw-parser-output .infobox-above,
.mw-parser-output .infobox-title,
.mw-parser-output .infobox-image,
.mw-parser-output .infobox-full-data,
.mw-parser-output .infobox-below {
text-align: center;
}
}


/* Prevent line breaks in silly places:
/* Section header style */
  1) Where desired
.infobox .section-header {
  2) Links when we don't want them to
  background-color: #F9F9F9;
*/
  font-weight: bold;
.mw-parser-output .nowrap,
  text-align: left;
.nowraplinks a {
  border-bottom: 0.75px solid #DCDBE0 !important;
white-space: nowrap;
}
}
.mw-parser-output .infobox .nowrap {
white-space: normal !important;
}
/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
white-space: normal;
}
/* Generic class texhtml class for inline math */
span.texhtml {
font-family: serif;
white-space: nowrap;
}
/* Normal font styling for wikitable row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row],
.wikitable.plainrowheaders th[scope=rowgroup] {
font-weight: normal;
/* @noflip */
text-align: left;
}
/********* General fixes for night mode - please sync any changes here with [[MediaWiki:Vector.css]] *********/


@media screen {
/* Caption style */
   html.skin-theme-clientpref-night .navbox a:not(.new):not(.mw-selflink):link,
.infobox caption {
   html.skin-theme-clientpref-night .infobox a:not(.new):not(.mw-selflink):link {
   background-color: #F9F9F9;
    color: var( --color-progressive ) !important;
  padding: 0.5em;
   }
   text-align: center;
  /* T370074 */
   font-weight: bold;
  html.skin-theme-clientpref-night .mw-parser-output section > figure img,
   font-size: 14.4px !important;
   html.skin-theme-clientpref-night .mw-parser-output section > div > figure img,
   color: #202123;
   html.skin-theme-clientpref-night .mw-parser-output > figure img {
      background: var( --background-color-disabled-fixed, #C8CCD1 );
  }
}
}


@media screen and (prefers-color-scheme: dark) {
@media screen and (max-width: 720px) {
   html.skin-theme-clientpref-os .navbox a:not(.new):not(.mw-selflink):link,
   .infobox {
  html.skin-theme-clientpref-os .infobox a:not(.new):not(.mw-selflink):link {
     float: none !important;
     color: var( --color-progressive ) !important;
    margin-left: auto !important;
  }
    margin-right: auto !important;
  /* T370074 */
  html.skin-theme-clientpref-os .mw-parser-output section > figure img,
  html.skin-theme-clientpref-os .mw-parser-output section > div > figure img,
  html.skin-theme-clientpref-os .mw-parser-output > figure img {
      background: var( --background-color-disabled-fixed, #C8CCD1 );
   }
   }
}
}

Latest revision as of 11:32, 25 April 2025

.infobox {
  background-color: #F9F9F9 !important;
  border: 1px solid #DCDBE0 !important;
  border-collapse: collapse;
  width: 100%;
  padding: 0.01em !important;
  font-size: 14.4px !important;
  line-height: 1.8em !important;
  color: #202123 !important;
  margin: 0 auto 1em auto;
}

.infobox td,
.infobox th {
  border: none;
  padding: 6px 8px;
  vertical-align: top;
  background-color: #F9F9F9;
  font-size: 14.4px !important;
  color: #202123 !important;
}

/* ✅ NEW ALIGNMENT RULES + INDENT */
.infobox td:nth-child(1) {
  text-align: center !important;
  width: 48% !important;
}

.infobox td:nth-child(2) {
  text-align: left !important;
  padding-left: 12px !important;
}

/* Clean row-based dividers */
.infobox tr {
  border-bottom: 0.75px solid #DCDBE0 !important;
}

.infobox tr:last-child {
  border-bottom: none;
}

/* Section header style */
.infobox .section-header {
  background-color: #F9F9F9;
  font-weight: bold;
  text-align: left;
  border-bottom: 0.75px solid #DCDBE0 !important;
}

/* Caption style */
.infobox caption {
  background-color: #F9F9F9;
  padding: 0.5em;
  text-align: center;
  font-weight: bold;
  font-size: 14.4px !important;
  color: #202123;
}

@media screen and (max-width: 720px) {
  .infobox {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}