MediaWiki:Common.css: Difference between revisions

From Chalo Chatu, Zambia online encyclopedia
no edit summary
(Created page with "→‎Reset italic styling set by user agent: cite, dfn { font-style: inherit; } →‎Straight quote marks for <q>: q { quotes: '"' '"' "'" "'"; } /* Avoid collision...")
 
No edit summary
 
Line 21: Line 21:
}
}


/* Consistent size for <sub> and <sup> */
/* Consistent size for <small>, <sub> and <sup> */
small {
    font-size: 85%;
}
.mw-body sub,
.mw-body sub,
.mw-body sup,
.mw-body sup,
Line 94: Line 97:
div.reflist ol.references {
div.reflist ol.references {
     font-size: 100%;          /* Reset font-size when nested in div.reflist */
     font-size: 100%;          /* Reset font-size when nested in div.reflist */
    margin-bottom: 0;          /* Avoid double margin when nested in dev.reflist */
     list-style-type: inherit;  /* Enable custom list style types */
     list-style-type: inherit;  /* Enable custom list style types */
}
}
Line 231: Line 235:
/* Default style for navigation boxes */
/* Default style for navigation boxes */
.navbox {                    /* Navbox container style */
.navbox {                    /* Navbox container style */
    box-sizing: border-box;
     border: 1px solid #aaa;
     border: 1px solid #aaa;
     width: 100%;
     width: 100%;
    margin: auto;
     clear: both;
     clear: both;
     font-size: 88%;
     font-size: 88%;
     text-align: center;
     text-align: center;
     padding: 1px;
     padding: 1px;
    margin: 1em auto 0;      /* Prevent preceding content from clinging to navboxes */
}
.navbox .navbox {
    margin-top: 0;            /* No top margin for nested navboxes */
}
.navbox + .navbox {
    margin-top: -1px;        /* Single pixel border between adjacent navboxes */
}
}
.navbox-inner,
.navbox-inner,
Line 281: Line 292:
.navbox-odd {
.navbox-odd {
     background: transparent;  /* Odd row striping */
     background: transparent;  /* Odd row striping */
}
table.navbox {
    margin-top: 1em;          /* Prevent preceding content from clinging to navboxes */
}
table.navbox table.navbox {
    margin-top: 0;            /* No top margin for nested navboxes */
}
table.navbox + table.navbox {
    margin-top: -1px;        /* Single pixel border between adjacent navboxes */
}
}
.navbox .hlist td dl,
.navbox .hlist td dl,
Line 918: Line 920:


/* These mbox-small classes must be placed after all other
/* These mbox-small classes must be placed after all other
   ambox/tmbox/ombox etc classes. "body.mediawiki" is so
   ambox/tmbox/ombox etc classes. "html body.mediawiki" is so
   they override "table.ambox + table.ambox" above. */
   they override "table.ambox + table.ambox" above. */
body.mediawiki table.mbox-small {  /* For the "small=yes" option. */
html body.mediawiki .mbox-small {  /* For the "small=yes" option. */
     /* @noflip */
     /* @noflip */
     clear: right;
     clear: right;
Line 927: Line 929:
     /* @noflip */
     /* @noflip */
     margin: 4px 0 4px 1em;
     margin: 4px 0 4px 1em;
    box-sizing: border-box;
     width: 238px;
     width: 238px;
     font-size: 88%;
     font-size: 88%;
     line-height: 1.25em;
     line-height: 1.25em;
}
}
body.mediawiki table.mbox-small-left {  /* For the "small=left" option. */
html body.mediawiki .mbox-small-left {  /* For the "small=left" option. */
     /* @noflip */
     /* @noflip */
     margin: 4px 1em 4px 0;
     margin: 4px 1em 4px 0;
    box-sizing: border-box;
    overflow: hidden;
     width: 238px;
     width: 238px;
     border-collapse: collapse;
     border-collapse: collapse;