MediaWiki:Common.css: Difference between revisions
From Chalo Chatu, Zambia online encyclopedia
Jump to navigationJump to search
Chalochatu (talk | contribs) No edit summary |
Chalochatu (talk | contribs) No edit summary |
||
Line 46: | Line 46: | ||
/* === Restore .hlist === */ | /* === Restore .hlist === */ | ||
.hlist ul, .hlist ol { | .hlist ul, | ||
.hlist ol { | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
Line 62: | Line 63: | ||
content: ""; | content: ""; | ||
} | } | ||
/* === Infobox base styling === */ | |||
table.infobox { | /* === Infobox base styling (consolidated) === */ | ||
table.infobox, | |||
.infobox { | |||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
background-color: #f9f9f9; | background-color: #f9f9f9; | ||
Line 72: | Line 75: | ||
border-collapse: collapse; | border-collapse: collapse; | ||
margin: 0.5em 0 1em 1em; | margin: 0.5em 0 1em 1em; | ||
padding: 0.4em; | |||
float: right; | float: right; | ||
clear: right; | clear: right; | ||
Line 83: | Line 87: | ||
.infobox td { | .infobox td { | ||
border: none; | border: none; | ||
padding: 0.2em; | padding: 0.2em 0.5em; | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
Line 94: | Line 98: | ||
.infobox-data { | .infobox-data { | ||
text-align: left; | text-align: left; | ||
width: 65%; | |||
} | } | ||
.infobox-image { | .infobox-image { | ||
Line 99: | Line 104: | ||
padding: 0.2em; | padding: 0.2em; | ||
} | } | ||
.infobox-header | .infobox-header, | ||
.infobox-above { | .infobox-above { | ||
background-color: #ccc; | background-color: #ccc; | ||
Line 113: | Line 114: | ||
text-align: center; | text-align: center; | ||
} | } | ||
/* | |||
. | /* === Collapsible components === */ | ||
border: 1px solid # | .chalo-collapsible { | ||
border: 1px solid #ddd; | |||
margin: 0.2em 0; | |||
} | |||
.chalo-collapsible-head { | |||
background: #f7f7f7; | |||
padding: 0. | padding: 0.3em; | ||
cursor: pointer; | |||
} | |||
.chalo-collapsible-body { | |||
padding: 0.4em 0.6em; | |||
display: block; | |||
} | } | ||
.chalo-collapsible.collapsed .chalo-collapsible-body { | |||
. | display: none; | ||
. | |||
} | } | ||
.infobox- | /* Collapsible inside infobox/sidebars (tighter look) */ | ||
.infobox .chalo-collapsible, | |||
table.sidebar .chalo-collapsible { | |||
border-color: #aaa; | |||
margin: 0.2em 0; | |||
} | } | ||
.infobox .chalo-collapsible-head, | |||
. | table.sidebar .chalo-collapsible-head { | ||
background: #eee; | |||
padding: 0.25em 0.4em; | |||
} | } | ||
.infobox | .infobox .chalo-collapsible-body, | ||
table.sidebar .chalo-collapsible-body { | |||
padding: 0.3em 0.5em; | |||
} | } | ||
/* Chalo Chatu Reflist styles */ | |||
/* === Chalo Chatu Reflist styles === */ | |||
.reflist { | .reflist { | ||
font-size: 90%; | |||
margin-top: 0.3em; | |||
list-style-type: decimal; | |||
} | } | ||
.reflist-columns { | .reflist-columns { | ||
column-count: 2; | |||
column-gap: 1.5em; | |||
} | } | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.reflist-columns { | |||
column-count: 1; | |||
} | |||
} | } |
Latest revision as of 08:02, 19 September 2025
/* === Sidebar core styling === */
table.sidebar {
background: #f9f9f9;
border: 1px solid #aaa;
padding: 0;
font-size: 90%;
width: 22em;
float: right;
clear: right;
margin: 0 0 1em 1em;
}
.sidebar th,
.sidebar td {
padding: 0.2em;
}
.sidebar-title {
background: #ccc;
font-weight: bold;
text-align: center;
}
.sidebar-heading {
background: #eee;
font-weight: bold;
}
.sidebar-content {
text-align: left;
}
.sidebar-image img {
max-width: 100%;
height: auto;
}
.sidebar-navbar {
text-align: right;
font-size: 90%;
}
/* === Restore .plainlist === */
.plainlist ul {
list-style: none;
margin: 0;
padding: 0;
}
.plainlist li {
margin-bottom: 0.2em;
}
/* === Restore .hlist === */
.hlist ul,
.hlist ol {
margin: 0;
padding: 0;
list-style: none;
}
.hlist li {
display: inline;
margin-right: 0.6em;
}
.hlist li::after {
content: "·";
padding-left: 0.4em;
}
.hlist li:last-child::after {
content: "";
}
/* === Infobox base styling (consolidated) === */
table.infobox,
.infobox {
border: 1px solid #aaa;
background-color: #f9f9f9;
color: black;
width: 22em;
font-size: 90%;
line-height: 1.5em;
border-collapse: collapse;
margin: 0.5em 0 1em 1em;
padding: 0.4em;
float: right;
clear: right;
}
.infobox caption {
font-size: 110%;
font-weight: bold;
padding: 0.2em;
}
.infobox th,
.infobox td {
border: none;
padding: 0.2em 0.5em;
vertical-align: top;
}
.infobox-label {
font-weight: bold;
text-align: left;
background-color: #f0f0f0;
width: 35%;
}
.infobox-data {
text-align: left;
width: 65%;
}
.infobox-image {
text-align: center;
padding: 0.2em;
}
.infobox-header,
.infobox-above {
background-color: #ccc;
text-align: center;
font-weight: bold;
}
.infobox-below {
background-color: #eee;
text-align: center;
}
/* === Collapsible components === */
.chalo-collapsible {
border: 1px solid #ddd;
margin: 0.2em 0;
}
.chalo-collapsible-head {
background: #f7f7f7;
padding: 0.3em;
cursor: pointer;
}
.chalo-collapsible-body {
padding: 0.4em 0.6em;
display: block;
}
.chalo-collapsible.collapsed .chalo-collapsible-body {
display: none;
}
/* Collapsible inside infobox/sidebars (tighter look) */
.infobox .chalo-collapsible,
table.sidebar .chalo-collapsible {
border-color: #aaa;
margin: 0.2em 0;
}
.infobox .chalo-collapsible-head,
table.sidebar .chalo-collapsible-head {
background: #eee;
padding: 0.25em 0.4em;
}
.infobox .chalo-collapsible-body,
table.sidebar .chalo-collapsible-body {
padding: 0.3em 0.5em;
}
/* === Chalo Chatu Reflist styles === */
.reflist {
font-size: 90%;
margin-top: 0.3em;
list-style-type: decimal;
}
.reflist-columns {
column-count: 2;
column-gap: 1.5em;
}
@media screen and (max-width: 720px) {
.reflist-columns {
column-count: 1;
}
}