Template:Main page/styles.css: Difference between revisions
Zwelf changed the content model of the page Template:Main page/styles.css from "wikitext" to "Sanitized CSS" Tag: content model change |
Multi row layout for items on main page. Maximum number of rows is 3 |
||
Line 38: | Line 38: | ||
.mainpage_box p:last-child { | .mainpage_box p:last-child { | ||
margin-bottom: 0; | margin-bottom: 0; | ||
} | |||
.items > ul { | |||
column-width: 11em; | |||
column-count: 3; | |||
} | } |
Revision as of 23:13, 21 February 2022
/* Imported from https://www.mediawiki.org/w/index.php?title=Template:Main_page/styles.css&oldid=4413265 */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.items > ul {
column-width: 11em;
column-count: 3;
}