MediaWiki:Common.css: Difference between revisions
From Captain of Industry Wiki
Thadius856 (talk | contribs) Enable Template:Div col |
Thadius856 (talk | contribs) Test to see if I'm losing my mind due to content model `sanitzed-css` |
||
| Line 52: | Line 52: | ||
/* Avoid elements breaking between columns. See also Template:No col break */ | /* Avoid elements breaking between columns. See also Template:No col break */ | ||
.div-col li, .div-col dd { page-break-inside: avoid; break-inside: avoid-column; } | .div-col li, .div-col dd { page-break-inside: avoid; break-inside: avoid-column; } | ||
/* Test to see if I'm losing my mind due to content model `sanitzed-css` */ | |||
#box-3a .i {line-height: 28px;} | |||
#box-3a .i > a:first-child {display: inline-block; width: 20px; text-align: center;} | |||
#box-3a .mclist {columns: 3;} | |||
#box-3a .mclist li {height: 28px;} | |||
#box-3a{flex: 2 0 auto;} | |||
.width-a#box-3a .mclist {columns: 2;} | |||
.width-b#box-3a .mclist {columns: 2;} | |||
.width-c#box-3a .mclist {columns: 3;} | |||
.width-d#box-3a .mclist {columns: 2;} | |||
.width-e#box-3a {flex: 1 1 320px;} | |||
.width-e#box-3a .mclist {columns: 2;} | |||
.width-f#box-3a {flex: 1 1 720px;} | |||
.width-f#box-3a .mclist {columns: 4;} | |||
.width-g#box-3a .mclist {columns: 6;} | |||
.width-h#box-3a .mclist {columns: 4;} | |||
.width-i#box-3a .mclist {columns: 3;} | |||
.width-j#box-3a .mclist {columns: 2;} | |||
Revision as of 11:03, 24 January 2022
/* CSS placed here will be applied to all skins */
/* Scale logo to fit. */
#p-logo a { background-repeat: round; background-position: inherit; }
/* Remove top padding from the main menu, logo has already enough empty space.*/
div#mw-panel { padding-top: 0; }
/* Enable Template:Mbox and its associated parameters */
td.mbox-image { border: none; padding: 2px 0 2px 0.9em; text-align: center; }
th.mbox-text, td.mbox-text { border: none; padding: 0.25em 0.9em; width: 100%; }
/* Enable Template:Ambox and its associated parameters */
table.ambox { margin: 0 10%; border: 1px solid #a2a9b1; border-left: 10px solid #36c; box-sizing: border-box; }
table.ambox-speedy { border-left: 10px solid #b32424; background-color: #ff8282; }
table.ambox-delete { border-left: 10px solid #b32424; }
table.ambox-content { border-left: 10px solid #f28500; }
table.ambox-style { border-left: 10px solid #fc3; }
table.ambox-notice { border-left: 10px solid #36c; }
table.ambox-move { border-left: 10px solid #9932cc; }
table.ambox-protection { border-left: 10px solid #a2a9b1; }
table.ambox + table.ambox { margin-top: -1px; }
/* Enable Template:Cmbox and its associated parameters */
table.cmbox { margin: 3px 10%; border-collapse: collapse; border: 1px solid #a2a9b1; background-color: #dfe8ff; box-sizing: border-box; color: #222222; }
table.cmbox-speedy { margin-top: 4px; margin-bottom: 4px; border: 4px solid #b32424; background-color: #ffdbdb; }
table.cmbox-delete { background-color: #ffdbdb; }
table.cmbox-content { background-color: #ffe7ce; }
table.cmbox-style { background-color: #fff9db; }
table.cmbox-notice { background-color: #d8e8ff; }
table.cmbox-move { background-color: #e4d8ff; }
table.cmbox-protection { background-color: #efefe1; }
/* Enable styling of references */
.references-small { font-size: 90%; }
/* 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;
}
/* Enable Template:Div col */
.div-col { margin-top: 0.3em; margin-bottom: 0.3em; column-width: 30em; }
.div-col-small { font-size: 90%; }
.div-col-rules { column-rule: 1px solid #aaa; }
/* Reset top margin for lists in div col */
.div-col dl, .div-col ol, .div-col ul { margin-top: 0; }
/* Avoid elements breaking between columns. See also Template:No col break */
.div-col li, .div-col dd { page-break-inside: avoid; break-inside: avoid-column; }
/* Test to see if I'm losing my mind due to content model `sanitzed-css` */
#box-3a .i {line-height: 28px;}
#box-3a .i > a:first-child {display: inline-block; width: 20px; text-align: center;}
#box-3a .mclist {columns: 3;}
#box-3a .mclist li {height: 28px;}
#box-3a{flex: 2 0 auto;}
.width-a#box-3a .mclist {columns: 2;}
.width-b#box-3a .mclist {columns: 2;}
.width-c#box-3a .mclist {columns: 3;}
.width-d#box-3a .mclist {columns: 2;}
.width-e#box-3a {flex: 1 1 320px;}
.width-e#box-3a .mclist {columns: 2;}
.width-f#box-3a {flex: 1 1 720px;}
.width-f#box-3a .mclist {columns: 4;}
.width-g#box-3a .mclist {columns: 6;}
.width-h#box-3a .mclist {columns: 4;}
.width-i#box-3a .mclist {columns: 3;}
.width-j#box-3a .mclist {columns: 2;}