MediaWiki:Common.css: Difference between revisions

From koreapedia
No edit summary
No edit summary
Line 6: Line 6:
}
}


/* Infoboxes */
.infobox {
.infobox {
border: 1px solid #a2a9b1;
  border: 1px solid #a2a9b1;
color: black;
  background: #f9f9f9;
padding: 0.2em;
  float: right; clear: right;
font-size: 88%;
  margin: 0 0 1em 1em;
line-height: 1.5em;
  width: 280px;
border-spacing: 3px;
  border-collapse: collapse;
}
 
@media screen {
.infobox {
background-color: #f8f9fa;
    }
}
 
@media (max-width: 640px) {
.infobox {
width: 100%;
}
   
.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;
}
}
 
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
}
 
.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}
 
/* 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;
}
 
.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
padding: 0.2em;
}
 
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}
 
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
/* @noflip */
text-align: right;
}
 
/* 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;
}
 
/* Remove underlines from certain links */
.nounderlines a,
.IPA a:link,
.IPA a:visited {
text-decoration: none !important;
}
 
/* Prevent line breaks in silly places where desired (nowrap)
  and links when we don't want them to (nowraplinks a) */
.nowrap,
.nowraplinks a {
white-space: nowrap;
}
 
/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
white-space: normal;
}
 
/* texhtml class for inline math (based on generic times-serif class) */
/* remove spans when this is TemplateStyled */
span.texhtml {
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
font-size: 118%;
line-height: 1;
/* Force tabular and lining display for texhtml */
font-variant-numeric: lining-nums tabular-nums;
font-kerning: none;
}
 
span.texhtml span.texhtml {
font-size: 100%;
}
 
@media (min-width: 640px) {
span.texhtml {
white-space: nowrap;
}
}
 
/* Prevent flags in tables from collapsing: Fix for T116318
* TODO: Remove when [[phab:T368469]] merges [[phab:T367463]] for the other skins
*/
@media (max-width: 640px) {
.flagicon a > img,
.flagicon noscript > img {
max-width: none !important;
}
}
 
@media screen {
.nochecker .gallerybox .thumb img {
background-image: none;
}
}
}
.infobox th, .infobox td { border: 1px solid #eaecf0; padding: 0.4em; }
.infobox-title { text-align: center; padding: 0.6em; background: #eceff1; font-weight: 600; }
.infobox-image { text-align: center; padding: 0.4em; }
.infobox-caption { text-align: center; font-size: 90%; color: #54595d; padding: 0.3em; }
.infobox-label { text-align: left; width: 35%; background: #f2f3f4; font-weight: 600; }
.infobox-data { padding: 0.4em; }

Revision as of 16:36, 8 October 2025

.skin-chameleon .chameleon-logo img {
    max-width: 30px;   /* desired width */
    max-height: 30px;   /* desired height */
    height: auto;
    width: auto;
}

.infobox {
  border: 1px solid #a2a9b1;
  background: #f9f9f9;
  float: right; clear: right;
  margin: 0 0 1em 1em;
  width: 280px;
  border-collapse: collapse;
}
.infobox th, .infobox td { border: 1px solid #eaecf0; padding: 0.4em; }
.infobox-title { text-align: center; padding: 0.6em; background: #eceff1; font-weight: 600; }
.infobox-image { text-align: center; padding: 0.4em; }
.infobox-caption { text-align: center; font-size: 90%; color: #54595d; padding: 0.3em; }
.infobox-label { text-align: left; width: 35%; background: #f2f3f4; font-weight: 600; }
.infobox-data { padding: 0.4em; }