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: grid;
    grid-template-columns: repeat(5, 1fr); /* Creates 5 columns with equal width */
    grid-gap: 10px; /* Sets the gap between grid items */
     position: absolute;
     position: absolute;
     top: 538px;
     top: 538px;
     margin: 0 auto;
     margin: 0 auto;
     -moz-column-count: 5;
     width: 100%; /* Adjust this width as necessary */
    -webkit-column-count: 5;
    column-count: 5;
    -moz-column-gap: 10px;
    -webkit-column-gap: 10px;
    column-gap: 10px;
}
}


Line 796: Line 794:
     letter-spacing: 0.4px;
     letter-spacing: 0.4px;
     cursor: pointer;
     cursor: pointer;
     width: 100%;
     padding: 5px 7px 2px 7px;
     margin: 10px 0;
     border-top: 1px solid black;
     display: inline-block;
     border-bottom: 1px solid black;
     box-sizing: border-box;
     box-sizing: border-box;
    padding: 5px 7px 2px 7px;
    border-bottom: 1px solid black; /* Bottom border for all cards */
}
#community-list .community-card:first-of-type {
    border-top: 1px solid black; /* Top border only for the first card */
}
}


#community-list .community-card:last-of-type {
/* Optionally, if you want to remove the top border from all cards except the ones in the first row */
     border-bottom: none; /* No bottom border for the last card */
#community-list .community-card:nth-child(-n+5) {
     border-top: none;
}
}

Navigation menu