Fix wrapping on category lists

This commit is contained in:
ryliejamesthomas 2023-11-01 00:17:52 +11:00
parent 7e0b9d2918
commit 4082f33520
1 changed files with 14 additions and 0 deletions

14
gmt.css
View File

@ -149,3 +149,17 @@ p.nb {
#mw-related-navigation .sidebar-chunk h3 {
border-bottom: var(--colour_secondary) 1px dashed;
}
/* Categories Lists */
div.mw-category-group h3 {
/* Remove margin 'cause it's applied weird to first item */
margin-top:0;
}
div.mw-category-group {
/* Don't break sections over columns */
break-inside:avoid-column;
/* Reapply maring to bottom of each section */
margin-bottom:2em;
}