MediaWiki:Chorke/Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 50: | Line 50: | ||
td > pre + pre, | td > pre + pre, | ||
pre + div.mw-highlight, | pre + div.mw-highlight, | ||
td > table.wikitable + div.mw-highlight, | |||
td > div.mw-highlight + div.mw-highlight { | td > div.mw-highlight + div.mw-highlight { | ||
margin: 5px 0 2px 0; | margin: 5px 0 2px 0; | ||
| Line 86: | Line 87: | ||
/* 7. Nested Table following another Nested Table */ | /* 7. Nested Table following another Nested Table */ | ||
.mw-parser-output .wikitable td > pre + table.wikitable, | .mw-parser-output .wikitable td > pre + table.wikitable, | ||
.mw-parser-output .wikitable td > table.wikitable + table.wikitable { | .mw-parser-output .wikitable td > table.wikitable + table.wikitable, | ||
.mw-parser-output .wikitable td > div.mw-highlight + table.wikitable { | |||
margin: 5px 0 2px 0; | margin: 5px 0 2px 0; | ||
} | } | ||
Latest revision as of 16:13, 22 January 2026
/* MediaWiki External Image */
.imagelink_cki_xds_tx a {
width:701px;
height:391px;
display:block;
text-decoration:none;
background-image: url("https://wiki.ihe.net/images/d/d7/XDS-Actor-Transaction-b.jpg")
}
/* Syntaxhighlight Copy Button */
.copy-button {
background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3E copy %3C/title%3E%3Cpath d=%22M3 3h8v2h2V3c0-1.1-.895-2-2-2H3c-1.1 0-2 .895-2 2v8c0 1.1.895 2 2 2h2v-2H3z%22/%3E%3Cpath d=%22M9 9h8v8H9zm0-2c-1.1 0-2 .895-2 2v8c0 1.1.895 2 2 2h8c1.1 0 2-.895 2-2V9c0-1.1-.895-2-2-2z%22/%3E%3C/svg%3E") no-repeat 10px center;
background-color: #f8f9fa;
border: 1px solid #ccc;
padding: 10px 10px;
text-indent: 20px;
font-weight: bold;
cursor: pointer;
height: 40px;
width: 100px;
}
/* MediaWiki Collapsible Table */
.mw-collapsible-toggle {
background-repeat: no-repeat;
background-size: contain;
vertical-align: middle;
display: inline-block;
font-size: 0;
height: 20px;
width: 20px;
}
.mw-collapsible-toggle-collapsed {
background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3E expand %3C/title%3E%3Cpath d=%22m17.5 4.75-7.5 7.5-7.5-7.5L1 6.25l9 9 9-9z%22/%3E%3C/svg%3E");
}
.mw-collapsible-toggle-expanded {
background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3E collapse %3C/title%3E%3Cpath d=%22m2.5 15.25 7.5-7.5 7.5 7.5 1.5-1.5-9-9-9 9z%22/%3E%3C/svg%3E");
}
/* Base style override */
td > pre,
td > div.mw-highlight {
margin: 2px 0;
}
/* Dynamic style override */
td > div + pre,
td > pre + pre,
pre + div.mw-highlight,
td > table.wikitable + div.mw-highlight,
td > div.mw-highlight + div.mw-highlight {
margin: 5px 0 2px 0;
}
/* 1. All content tables */
.mw-parser-output table.wikitable {
width: 100%;
}
/* 2. 1st Top-level table at the page content */
.mw-parser-output > table.wikitable:first-child {
margin: -11px 0 6px 0;
}
/* 3. 2nd Top-level table at the page content */
.mw-parser-output > table.wikitable + table.wikitable {
margin: 6px 0;
}
/* 4. Table immediately following a Heading */
.mw-parser-output .mw-heading + table.wikitable {
margin: 2px 0;
}
/* 5. Table immediately following a Heading AND another Table */
.mw-parser-output .mw-heading + table.wikitable + table.wikitable {
margin: 5px 0 2px 0;
}
/* 6. Nested Tables (Table inside a Table Cell) */
.mw-parser-output .wikitable td > table.wikitable {
margin: 2px 0;
}
/* 7. Nested Table following another Nested Table */
.mw-parser-output .wikitable td > pre + table.wikitable,
.mw-parser-output .wikitable td > table.wikitable + table.wikitable,
.mw-parser-output .wikitable td > div.mw-highlight + table.wikitable {
margin: 5px 0 2px 0;
}