MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 29: Line 29:
.list {
.list {
   display: flex;
   display: flex;
   flex-wrap: wrap; /* Allow items to wrap to the next line */
   flex-wrap: wrap;
   max-width: 100%; /* Set a maximum width for the container */
   max-width: 1000px;
   margin: 0 auto; /* Center the container on the page, adjust as needed */
   margin: 0 auto;
}
}


.card {
.card {
   width: calc(20% - 2px); /* Adjusted width to accommodate for borders */
   width: calc(20% - 2px);
   box-sizing: border-box; /* Include borders in the width calculation */
   box-sizing: border-box;
   border: 1px solid black;
   border: 1px solid black;
   margin-left: -1px;
   margin-left: -1px; /* Compensate for the double borders */
   transform: translateX(-1px);
   transform: translateX(-1px); /* Move the box 1px to the left */
   height: fit-content;
   height: fit-content;
   padding: 5px;
   padding: 5px;

Navigation menu