MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 789: Line 789:
.community-card {
.community-card {
   box-sizing: border-box;
   box-sizing: border-box;
   border-bottom: 1px solid black;
   border-bottom: 1px solid black; /* Only bottom border */
  border-right: 1px solid black;
   height: fit-content;
   height: fit-content;
   padding: 5px 7px 2px 7px;
   padding: 5px 7px 2px 7px;
  margin-bottom: 1px; /* Creates space for the top border of the card in the next row */
   font-size: 12pt;
   font-size: 12pt;
   line-height: 25px;
   line-height: 25px;
Line 800: Line 800:


#community-list .community-card:nth-child(-n+5) {
#community-list .community-card:nth-child(-n+5) {
   border-top: 1px solid black;
   border-top: 1px solid black; /* Top border for the first row only */
}
 
/* Optional: Clear right border on the last item of each row */
.community-card:nth-child(5n) {
  border-right: none;
}
}

Navigation menu