MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 780: Line 780:
/* Styling for Community */
/* Styling for Community */
#community-list {
#community-list {
   display: flex;
   display: grid;
   flex-wrap: wrap;
   grid-template-columns: repeat(5, 1fr); /* Creates 5 equal columns */
   margin: 0 auto;
   grid-gap: 1px; /* Adjust gap between rows and columns */
   position: absolute;
   position: absolute;
   top: 538px;
   top: 538px;
}
}
.community-card {
.community-card {
  width: calc(20% - 2px);
   box-sizing: border-box;
   box-sizing: border-box;
   border-bottom: 1px solid black;
   border-bottom: 1px solid black;
  border-right: 1px solid black;
   height: fit-content;
   height: fit-content;
   padding: 5px 7px 2px 7px;
   padding: 5px 7px 2px 7px;
  margin-bottom: 30px;
   font-size: 12pt;
   font-size: 12pt;
   line-height: 25px;
   line-height: 25px;
Line 799: Line 799:
}
}


.community-card:not(:first-child) {
#community-list .community-card:nth-child(-n+5) {
   margin-left: -1px;
   border-top: 1px solid black;
 
}
}


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

Navigation menu