MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 379: Line 379:
}
}
#related-articles {
#related-articles {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
     margin-top: 20px;
     margin-top: 20px;
    margin-right: 4.5%;
}
}
.label-related-articles {
 
text-transform: uppercase;
.related-articles-label {
margin-bottom: 0 !important;
    margin-bottom: 15px; /* Space between the label and the articles */
text-indent: 50px;
}
}
.related-article {
.related-article {
     width: calc(50% - 1px); /* Adjust for two articles per row */
     width: calc(50% - 1px); /* Adjusted width */
     box-sizing: border-box;
     box-sizing: border-box;
     border: 1px solid black;
     border: 1px solid black;
Line 403: Line 399:
}
}


.related-article:not(:first-child) {
.related-article:first-child {
     margin-left: -1px;
     border-right: none; /* Remove right border for the first column */
}
 
.related-article:nth-child(2n + 1) {
    margin-left: 0;
}
}


.related-article:last-child {
.related-article:nth-child(odd):not(:last-child) {
     margin-right: 0;
     border-right: 1px solid black; /* Add right border for the odd columns, except the last one */
}
}
.related-article-entry-number {
.related-article-entry-number {

Navigation menu