MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 788: Line 788:
     position: absolute;
     position: absolute;
     top: 538px;
     top: 538px;
     width: 100%; /* Adjust the width as necessary */
     width: 100%;
}
}


Line 797: Line 797:
     cursor: pointer;
     cursor: pointer;
     display: inline-block;
     display: inline-block;
     width: 100%; /* Cards will take full width of the column */
     width: 100%;
     box-sizing: border-box;
     box-sizing: border-box;
     padding: 5px 7px 2px 7px;
     padding: 5px 7px;
     margin-bottom: 10px; /* Space between cards */
     margin-bottom: -1px; /* Negative margin, same as border thickness */
     border-top: 1px solid black;
     border-top: 1px solid black;
     border-bottom: 1px solid black;
     border-bottom: 1px solid black;
     break-inside: avoid-column; /* Prevents cards from being split across columns */
     break-inside: avoid-column;
    z-index: 1; /* Ensures the card is above the bottom border of the card above */
    background: white; /* Assuming cards have a white background */
}
}


/* Removes top border from all cards except the first in each column */
/* Removes top border from the first card in each column */
#community-list .community-card:first-of-type {
#community-list .community-card:first-of-type {
     border-top: none;
     border-top: none;
}
}

Navigation menu