MediaWiki:Common.css: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 30: Line 30:
   display: flex;
   display: flex;
   flex-wrap: wrap;
   flex-wrap: wrap;
   max-width: 90%;
   max-width: 100%;
   margin: 0 auto;
   margin: 0 auto;
}
}
Line 38: Line 38:
   box-sizing: border-box;
   box-sizing: border-box;
   border: 1px solid black;
   border: 1px solid black;
  margin-left: -1px; /* Compensate for the double borders */
  transform: translateX(-1px); /* Move the box 1px to the left */
   height: fit-content;
   height: fit-content;
   padding: 5px;
   padding: 5px;
Line 45: Line 43:
}
}


.card:first-child {
.card:not(:first-child) {
   margin-left: 0;
   margin-left: -1px;
  transform: translateX(-1px);
}
}


Line 52: Line 51:
   margin-right: 0;
   margin-right: 0;
}
}


  .mw-body .firstHeading {
  .mw-body .firstHeading {

Navigation menu