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 {
position: absolute;
    position: absolute;
top: 538px;
    top: 538px;
margin: 0 auto;
    margin: 0 auto;
-moz-column-count: 5;
    -moz-column-count: 5;
-webkit-column-count: 5;
    -webkit-column-count: 5;
column-count: 5;
    column-count: 5;
-moz-column-gap: 10px;
    -moz-column-gap: 10px;
-webkit-column-gap: 10px;
    -webkit-column-gap: 10px;
column-gap: 10px;
    column-gap: 10px;
}
}


.community-card {
.community-card {
font-size: 12pt;
    font-size: 12pt;
line-height: 25px;
    line-height: 25px;
letter-spacing: 0.4px;
    letter-spacing: 0.4px;
cursor: pointer;
    cursor: pointer;
width: 100%;
    width: 100%;
margin: 10px 0;
    margin: 10px 0;
display: inline-block;
    display: inline-block;
box-sizing: border-box;
    box-sizing: border-box;
padding: 5px 7px 2px 7px;
    padding: 5px 7px 2px 7px;
border-top: 1px solid black;  
    border-bottom: 1px solid black; /* Bottom border for all cards */
border-bottom: 1px solid black;
}
}


#community-list .community-card:nth-child(-n+5) {
#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 {
    border-bottom: none; /* No bottom border for the last card */
}
}

Navigation menu