Jump to content

MediaWiki:Common.css: Difference between revisions

From Dreamon Studios Wiki
No edit summary
No edit summary
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ------------------
--- General Style ---
------------------ */
:root {
  color-scheme: light !important;
}
:root, .skin-invert, .no-theme {
}
/* -----------------
/* -----------------
--- Infoboxes ---
--- Infoboxes ---
Line 4: Line 16:


.infobox {
.infobox {
  background-color: #f8f9fa;
   border: 1px solid #a2a9b1;
   border: 1px solid #a2a9b1;
   color: black;
   color: #000;
   padding: .2em;
   padding: .2em;
   font-size: .9em;
   font-size: .9em;
Line 13: Line 24:
}
}


.infobox th {
.infobox th,
.infobox td {
  padding: .2em .5em;
  text-align: left;
  vertical-align: top;
}
 
.infobox .infobox-above,
.infobox .infobox-title {
  font-size: 1.25em;
  font-weight: bold;
  text-align: center !important;
}
 
.infobox .infobox-caption {
  font-weight: normal !important;
  text-align: center !important;
}
 
.infobox .infobox-header {
   font-size: 1.1em;
   font-size: 1.1em;
   font-weight: bold;
   font-weight: bold;
   text-align: left;
   text-align: center !important;
   vertical-align: top;
}
 
.infobox .infobox-label {
   font-weight: bold;
}
}


.infobox td {
/* Fixes weird stretching bug with the Vector skin */
   padding: .2em .5em;
.infobox img {
   text-align: left;
   display: block;
   vertical-align: top;
  margin: 0 auto;
   max-width: 100%;
   height: auto;
}
}


@media (max-width: 640px) {
@media (max-width: 640px) {
   .infobox {
   .infobox {
    width: 100%;
     float: none;
     float: none;
     clear: both;
     clear: both;
    width: 100% !important;
     margin: 0 0 1em 0;
     margin: 0 0 1em 0;
     table-layout: fixed;
     table-layout: fixed;
   }
   }
 
    
   .infobox th,
  .infobox td {
    width: 100% !important;
  }
   
   .infobox .nowrap {
   .infobox .nowrap {
     white-space: normal;
     white-space: normal;
Line 55: Line 85:
     width: 22em;
     width: 22em;
   }
   }
}
.infobox .infobox-caption td {
  text-align: center;
}
/* Fixes weird stretching bug on Vector */
.infobox img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
  font-size: 125%;
  font-weight: bold;
  text-align: center !important;
}
.infobox-caption {
  font-size: .9em;
  text-align: center !important;
}
}

Latest revision as of 10:03, 7 January 2026

/* ------------------
--- General Style ---
------------------ */

:root {
  color-scheme: light !important;
}

:root, .skin-invert, .no-theme {

}

/* -----------------
--- Infoboxes ---
----------------- */

.infobox {
  border: 1px solid #a2a9b1;
  color: #000;
  padding: .2em;
  font-size: .9em;
  line-height: 1.5em;
  border-spacing: 3px;
}

.infobox th,
.infobox td {
  padding: .2em .5em;
  text-align: left;
  vertical-align: top;
}

.infobox .infobox-above,
.infobox .infobox-title {
  font-size: 1.25em;
  font-weight: bold;
  text-align: center !important;
}

.infobox .infobox-caption {
  font-weight: normal !important;
  text-align: center !important;
}

.infobox .infobox-header {
  font-size: 1.1em;
  font-weight: bold;
  text-align: center !important;
}

.infobox .infobox-label {
  font-weight: bold;
}

/* Fixes weird stretching bug with the Vector skin */
.infobox img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .infobox {
    width: 100%;
    float: none;
    clear: both;
    margin: 0 0 1em 0;
    table-layout: fixed;
  }
  
  .infobox .nowrap {
    white-space: normal;
  }
}

@media (min-width: 640px) {
  .infobox {
    /* @noflip */
    margin: 0.5em 0 0.5em 1em;
    /* @noflip */
    float: right;
    /* @noflip */
    clear: right;
    width: 22em;
  }
}