Difference between revisions of "MediaWiki:Common.css"

Jump to navigation Jump to search
482 bytes added ,  12:57, 18 February 2022
no edit summary
Line 14: Line 14:
.mainpage-buttons ul {
.mainpage-buttons ul {
display: inline-grid;  
display: inline-grid;  
grid-template-columns: 150px 150px 150px;  
grid-template-columns: 75px 75px 75px 75px 75px 75px;  
grid-gap: 5px;  
grid-gap: 5px;  
text-align: center;
text-align: center;
Line 22: Line 22:
padding: 10px 0;
padding: 10px 0;
display: block;
display: block;
}
.mainpage-buttons ul li:nth-child(3n-2) {
    grid-column: 1 / span 2;
}
.mainpage-buttons ul li:nth-child(3n-1) {
    grid-column: 3 / span 2;
}
.mainpage-buttons ul li:nth-child(3n) {
    grid-column: 5 / span 2;
}
.mainpage-buttons ul li:nth-child(3n-1):last-child {
grid-column: 4 / span 3;
}
.mainpage-buttons ul li:nth-child(3n-2):last-child {
grid-column: 1 / span 6;
}
.mainpage-buttons ul li:nth-child(3n-2):nth-last-child(2) {
grid-column: 1 / span 3;
}
}


Navigation menu