Module:Infobox/styles.css: Difference between revisions

remove .infobox-table tr rule per Template talk:Infobox#Display for table rows
m (1 revision imported)
(remove .infobox-table tr rule per Template talk:Infobox#Display for table rows)
Line 31: Line 31:
}
}


/* T281642 */
/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
body.skin-minerva .infobox-header,
 
body.skin-minerva .infobox-subheader,
@media screen {
body.skin-minerva  .infobox-above,
    html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] {
body.skin-minerva .infobox-title,
    background: #1f1f23 !important;
body.skin-minerva  .infobox-image,
      /* switch with var( --color-base ) when supported. */
body.skin-minerva  .infobox-full-data,
      color: #f8f9fa;
body.skin-minerva .infobox-below {
}
text-align: center;
}
}




/* Dark theme: [[William_Wragg]], [[Coral_Castle]] */
@media screen and ( prefers-color-scheme: dark) {
html.skin-theme-clientpref-night .infobox-full-data div {
    html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) div:not(.notheme) {
    background: #1f1f23 !important;
      background: #1f1f23 !important;
       /* switch with var( --color-base ) when supported. */
       /* switch with var( --color-base ) when supported. */
       color: #f8f9fa;
       color: #f8f9fa;
    }
}
}


@media (prefers-color-scheme: dark) {
 
     html.skin-theme-clientpref-os .infobox-full-data div {
/* Since infobox is a table, many infobox templates take advantage of this to
      background: #1f1f23 !important;
* add columns and rows to the infobox itself rather than as part of a new table
      /* switch with var( --color-base ) when supported. */
* inside them. This class should be discouraged and removed on the long term,
      color: #f8f9fa;
* but allows us to at least identify these tables going forward
     }
* Currently in use on: [[Module:Infobox3cols]]
* Fixes issue described in [[phab:F55300125]] on Vector 2022.
*/
@media (min-width: 640px) {
  body.skin--responsive .infobox-table {
     display: table !important;
  }
  body.skin--responsive .infobox-table > caption {
    display: table-caption !important;
  }
  body.skin--responsive .infobox-table > tbody {
    display: table-row-group;
  }
  body.skin--responsive .infobox-table th,
  body.skin--responsive .infobox-table td {
    padding-left: inherit;
     padding-right: inherit;
  }
}
}
Anonymous user