Template:Infobox Character/styles.css: Difference between revisions

From Omniverse Project
Jump to navigation Jump to search
Created page with ".infobox_INSERTNAME { background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px; } .infobox-title { font-size: 2em; text-align: center; } .infobox-image { text-align: center; } .infobox-table th { text-align: right; vertical-align: top; width: 120px; } .infobox-table td { vertical-align: top; }"
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
.infobox_INSERTNAME {
/**
    background: #eee;
* Common TemplateStyles used by [[Template:Extension]], [[Template:Skin]],
    border: 1px solid #aaa;
* [[Template:Tool]], etc.
    float: right;
*/
    margin: 0 0 1em 1em;
.infobox {
    padding: 1em;
box-sizing: border-box;
    width: 400px;
border: 2px solid var( --border-color-base, #a2a9b1 );
width: 280px;
border-collapse: collapse;
border-spacing: 0;
background-color: white;
color: #333;
/* these are overriden by .infobox-rtl on the templates of interest */
/* @noflip */
clear: right;
/* @noflip */
float: right;
/* @noflip */
margin: 0 0 0.5em 0.5em;
}
}
.infobox-title {
 
    font-size: 2em;
.infobox-rtl {
    text-align: center;
/* @noflip */
clear: left;
/* @noflip */
float: left;
/* @noflip */
margin: 0 0.5em 0.5em 0;
}
}
.infobox-image {
 
    text-align: center;
.infobox th {
/* @noflip */
text-align: left;
padding: 0.2em 0.5em;
vertical-align: top;
}
}
.infobox-table th {
 
    text-align: right;
.infobox-rtl th {
    vertical-align: top;
/* @noflip */
    width: 120px;
text-align: right;
}
}
.infobox-table td {
 
    vertical-align: top;
@media (max-width: 719px) {
/* high specificity to ensure specific infoboxes won't override these
* properties with their own tstyles inadvertently */
body.mediawiki .infobox {
float: none;
clear: both;
width: 100%;
margin: 0 0 .5em 0;
}
}
 
.infobox td {
border: none;
padding: 0.2em 0.5em;
vertical-align: top;
}
 
.infobox-header {
background-color: #a2a9b1;
color: #FFF;
text-align: left;
}
 
.infobox-header a {
color: #FFF;
}
 
.infobox-header td,
.infobox-header th {
padding: 0.5em 0.5em;
}
 
.infobox-header img {
padding: 0 0.2em 0 0.5em;
}
 
@media screen {
html.skin-theme-clientpref-night .infobox {
background-color: inherit;
color: inherit;
}
}
 
@media screen and (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .infobox {
background-color: inherit;
color: inherit;
  }
}
}

Latest revision as of 10:08, 16 March 2025

/**

* Common TemplateStyles used by Template:Extension, Template:Skin,
* Template:Tool, etc.
*/

.infobox { box-sizing: border-box; border: 2px solid var( --border-color-base, #a2a9b1 ); width: 280px; border-collapse: collapse; border-spacing: 0; background-color: white; color: #333; /* these are overriden by .infobox-rtl on the templates of interest */ /* @noflip */ clear: right; /* @noflip */ float: right; /* @noflip */ margin: 0 0 0.5em 0.5em; }

.infobox-rtl { /* @noflip */ clear: left; /* @noflip */ float: left; /* @noflip */ margin: 0 0.5em 0.5em 0; }

.infobox th { /* @noflip */ text-align: left; padding: 0.2em 0.5em; vertical-align: top; }

.infobox-rtl th { /* @noflip */ text-align: right; }

@media (max-width: 719px) { /* high specificity to ensure specific infoboxes won't override these * properties with their own tstyles inadvertently */ body.mediawiki .infobox { float: none; clear: both; width: 100%; margin: 0 0 .5em 0; } }

.infobox td { border: none; padding: 0.2em 0.5em; vertical-align: top; }

.infobox-header { background-color: #a2a9b1; color: #FFF; text-align: left; }

.infobox-header a { color: #FFF; }

.infobox-header td, .infobox-header th { padding: 0.5em 0.5em; }

.infobox-header img { padding: 0 0.2em 0 0.5em; }

@media screen { html.skin-theme-clientpref-night .infobox { background-color: inherit; color: inherit; } }

@media screen and (prefers-color-scheme: dark) {

 html.skin-theme-clientpref-os .infobox {

background-color: inherit; color: inherit;

 }

}